[Nix-dev] kdepim-4.2.0 cmake_install

Andrew Morsillo andrew.morsillo at gmail.com
Wed Feb 4 21:00:51 CET 2009


I am trying to build kdepim-4.2.0, but am encountering a problem
during the install phase.


CMake Error at libkdepim/cmake_install.cmake:84 (FILE):
  file INSTALL cannot copy file
  "/tmp/nix-build-mx2f0hyfzdacl9s8dympyvj62872zkf3-kdepim-4.2.0.drv-0/kdepim-4.2.0/libkdepim/interfaces/org.kde.addressbook.service.xml"
  to
  "/nix/store/zvp91wq652i9cm548mr1a5ab9q2sjnll-kdelibs-4.2.0/share/dbus-1/interfaces/org.kde.addressbook.service.xml".
Call Stack (most recent call first):
  cmake_install.cmake:39 (INCLUDE)


A look at the build output reveals the following in
build/libkdepim/cmake_install.cmake


IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" MATCHES
"^(Unspecified)$")
  FILE(INSTALL DESTINATION
"/nix/store/zvp91wq652i9cm548mr1a5ab9q2sjnll-kdelibs-4.2.0/share/dbus-1/interfaces"
TYPE FILE FILES
    "/tmp/nix-build-mx2f0hyfzdacl9s8dympyvj62872zkf3-kdepim-4.2.0.drv-0/kdepim-4.2.0/libkdepim/interfaces/org.kde.addressbook.service.xml"
    "/tmp/nix-build-mx2f0hyfzdacl9s8dympyvj62872zkf3-kdepim-4.2.0.drv-0/kdepim-4.2.0/libkdepim/interfaces/org.kde.mailtransport.service.xml"
    )
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}"
MATCHES "^(Unspecified)$")



Which lead to the CMakeLists.txt for libkdepim where i found:

install(FILES interfaces/org.kde.addressbook.service.xml
interfaces/org.kde.mailtransport.service.xml DESTINATION
${KDE4_DBUS_INTERFACES_DIR})


With ${KDE4_DBUS_INTERFACES_DIR} pointing to the kdelibs dir that is
not writable at install time.
I am at a loss as to how to solve this problem. If I patch the
CMakeLists.txt before building so that
the destination is somewhere in the kdepim install dir how can I make
these dbus interface files useable?

Might I need to change my nix expression for kdelibs to somehow
separate these dbus files so they may be
shared with kdepim when it is built?

Andrew Morsillo



More information about the nix-dev mailing list