retitle 710340 qtkeychain: FTBFS on !linux: libraries left in /usr/lib
tag 710340 + patch
thanks

Hi,

qtkeychain fails because the copy of GNUInstallDirs.cmake (shipped in 
cmake/Modules) uses multiarch library paths on Debian only on Linux. 
This has been fixed in Debian's version of it since 2.8.9-1 [1].

There are two solutions for this:
1) patch the qtkeychain's copy of GNUInstallDirs.cmake
   Attached there is the same patch (just with adjusted path) that has
   been applied to cmake
2) use the system version
   This means moving away qtkeychain's copy before cmake is invoked,
   moving it back on clean (to get back the original sources), also 
   raising the cmake build dependency to 2.8.9-1~.

I guess upstream ships such copy to support also cmake versions older 
than 2.8.5 (where GNUInstallDirs.cmake has been added); maybe they could 
consider just relying on cmake >= 2.8.5 and drop the copy of 
GNUInstallDirs.cmake.

[1] http://packages.qa.debian.org/c/cmake/news/20120818T204746Z.html

-- 
Pino Toscano
From: John Stamp <jst...@users.sourceforge.net>
Subject: Install to multiarch libdir when CMAKE_SYSTEM_NAME != Linux
Date: Tue, 14 Aug 2012 22:27:05 -0700
Origin: other, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684956#5
Last-Update: 2012-08-18
Bug: http://bugs.debian.org/684956

diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index 0302e4b..4dc2d68 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/Modules/GNUInstallDirs.cmake
@@ -78,7 +78,7 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
   # For Debian with multiarch, use 'lib/${CMAKE_LIBRARY_ARCHITECTURE}' if
   # CMAKE_LIBRARY_ARCHITECTURE is set (which contains e.g. "i386-linux-gnu"
   # See http://wiki.debian.org/Multiarch
-  if(CMAKE_SYSTEM_NAME MATCHES "Linux"
+  if((CMAKE_SYSTEM_NAME MATCHES "Linux|kFreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "GNU")
       AND NOT CMAKE_CROSSCOMPILING)
     if (EXISTS "/etc/debian_version") # is this a debian system ?
        if(CMAKE_LIBRARY_ARCHITECTURE)

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to