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
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to