[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#564146: FindKDE4Internal.cmake sets settings which violate debian RPATH policy



Package: kdelibs5-dev
Version: 4:4.3.4-1
Severity: serious
File: /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake

Hello,

FindKDE4Internal.cmake alters default cmake RPATH in the way that all KDE
applications violate Debian RPATH policy (no /usr/lib in RPATH) unless they are
built with -DCMAKE_SKIP_RPATH=ON or CMAKE_INSTALL_RPATH is overriden manually.

/mnt/sda2/usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:882,18

   # the rest is RPATH handling
   # here the defaults are set
   # which are partly overwritten in kde4_handle_rpath_for_library()
   # and kde4_handle_rpath_for_executable(), both located in KDE4Macros.cmake, Alex
   if (APPLE)
      set(CMAKE_INSTALL_NAME_DIR ${LIB_INSTALL_DIR})
   else (APPLE)
      # add our LIB_INSTALL_DIR to the RPATH and use the RPATH figured out by cmake when compiling
      set(CMAKE_INSTALL_RPATH ${LIB_INSTALL_DIR} )
      set(CMAKE_SKIP_BUILD_RPATH FALSE)
      set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
      set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
   endif (APPLE)

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/1 CPU core)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kdelibs5-dev depends on:
ii  automoc             1.0~version-0.9.88-4 automatic moc for Qt 4 packages
ii  cmake               2.8.0-5              A cross-platform, open-source make
ii  kdelibs5            4:4.3.4-1            core libraries for all KDE 4 appli
ii  libc6               2.10.2-4             Embedded GNU C Library: Shared lib
ii  libphonon-dev       4:4.6.0-1            Qt 4 Phonon library development fi
ii  libplasma3          4:4.3.4-1            library for the KDE 4 Plasma deskt
ii  libqt4-dev          4:4.6.0-1            Qt 4 development files
ii  libqt4-xml          4:4.6.0-1            Qt 4 XML module
ii  libqtcore4          4:4.6.0-1            Qt 4 core module
ii  libsoprano-dev      2.3.1+dfsg.1-1       development files for the Soprano 
ii  libstdc++6          4.4.2-8              The GNU Standard C++ Library v3
ii  pkg-kde-tools       0.5.3                common makesnippets and build scri

Versions of packages kdelibs5-dev recommends:
pn  libqt4-opengl-dev             <none>     (no description available)

kdelibs5-dev suggests no packages.

-- no debconf information



Reply to: