From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 02 Nov 2014 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 18926@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14149474481129 (code B ref -1); Sun, 02 Nov 2014 16:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Nov 2014 16:57:28 +0000 Received: from localhost ([127.0.0.1]:46293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkyT2-0000I8-1f for submit@debbugs.gnu.org; Sun, 02 Nov 2014 11:57:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37194) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xkv97-0002v2-HO for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:24:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkv8w-0001k2-Tw for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:24:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8w-0001jy-QV for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:24:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8r-0007Yb-4b for bug-guix@gnu.org; Sun, 02 Nov 2014 08:24:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkv8g-0001iW-Um for bug-guix@gnu.org; Sun, 02 Nov 2014 08:24:25 -0500 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:36980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8g-0001iA-NC for bug-guix@gnu.org; Sun, 02 Nov 2014 08:24:14 -0500 Received: by mail-pd0-f179.google.com with SMTP id g10so10030670pdj.10 for ; Sun, 02 Nov 2014 05:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=jjkIMDuaMxhjK3yKsLIg5/iB3mgWT8DmBYuTckmTNDg=; b=eWpZyvv7taU99CohQezB6wo78oZiwFY1uY0fR5jZDgPBe8aJNiJB/akeELe7DXKGqC iTDsL+sp+jwdk5EXVV+AqZJbK5R0bXbXjazak2gUoOHihPMmpKmpaP5k1ciXktr5DjGK UV4KF38pcP9cEcDCU3xtJ4nN/cnFtmKxD+FeX6Cb+M1iquxtvpUHWjqaq5KKaHZRaDaZ /6W8ifVbTgAhab/zze4Mpk93dTeiHGLeXGWAcBcnJejXQnGFM0itgKI4kot3J698MTRX 0DKCJmRcDk1/4+CtEzYJETM4oF8rJVntuF0U0L4ycjjY8/v/8kunrxqdVpx3ZgPwuny0 H5oA== X-Received: by 10.70.61.37 with SMTP id m5mr54609pdr.162.1414934653180; Sun, 02 Nov 2014 05:24:13 -0800 (PST) Received: from localhost ([171.113.73.222]) by mx.google.com with ESMTPSA id y10sm362971pdq.15.2014.11.02.05.24.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Nov 2014 05:24:12 -0800 (PST) From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-unknown-linux-gnu) Date: Sun, 02 Nov 2014 21:24:01 +0800 Message-ID: <877fzdu45q.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Sun, 02 Nov 2014 11:57:27 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will install libraries files to $out/lib64. if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to find cmake modules of inputs. I find this when packaging https://github.com/lxdg/libqtxdg. From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 02 Nov 2014 22:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.141496893210422 (code B ref 18926); Sun, 02 Nov 2014 22:56:01 +0000 Received: (at 18926) by debbugs.gnu.org; 2 Nov 2014 22:55:32 +0000 Received: from localhost ([127.0.0.1]:46507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xl43Y-0002i2-0b for submit@debbugs.gnu.org; Sun, 02 Nov 2014 17:55:32 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:36175) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xl43V-0002ht-39 for 18926@debbugs.gnu.org; Sun, 02 Nov 2014 17:55:30 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 381933F0B; Sun, 2 Nov 2014 23:55:28 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lnyiGlg4A-fv; Sun, 2 Nov 2014 23:55:28 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id BAEEB18C1; Sun, 2 Nov 2014 23:55:27 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877fzdu45q.fsf@gmail.com> Date: Sun, 02 Nov 2014 23:55:49 +0100 In-Reply-To: <877fzdu45q.fsf@gmail.com> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Sun, 02 Nov 2014 21:24:01 +0800") Message-ID: <87d295i556.fsf@gnu.org> User-Agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will insta= ll > libraries files to $out/lib64. I found several CMake-built libraries on x86_64 (graphite2, openjpeg, qjson) that all use lib/, not lib64/. Then I found one counterexample, libftdi; however, setting CMAKE_INSTALL_LIBDIR=3Dlib doesn=E2=80=99t make any different: it still ins= talls libraries in $out/lib64. Any idea? Here=E2=80=99s the patch I tried: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm index 74b4f01..b1598dd 100644 --- a/guix/build/cmake-build-system.scm +++ b/guix/build/cmake-build-system.scm @@ -53,6 +53,8 @@ build-type)) '()) ,(string-append "-DCMAKE_INSTALL_PREFIX=" out) + ;; Install libraries to $prefix/lib, not $prefix/lib64. + "-DCMAKE_INSTALL_LIBDIR=lib" ;; add input libraries to rpath "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" ;; add (other) libraries of the project itself to rpath --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable According to , LIBRARY_OUTPUT_PATH might be better for this, no? > if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to > find cmake modules of inputs. You=E2=80=99re talking about .cmake files, right? Could you try the attached patch and report back? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-cmake-Add-search-paths-for-CMAKE_-INCLUDE-LIBRAR.patch Content-Description: the patch >From 536c143997fa146dc77d6e8defc24032452e5a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 2 Nov 2014 23:54:28 +0100 Subject: [PATCH] gnu: cmake: Add search paths for CMAKE_{INCLUDE,LIBRARY,MODULE}_PATH. * gnu/packages/cmake.scm (cmake)[native-search-paths]: New field. * guix/build/cmake-build-system.scm (configure): Remove 'setenv' calls for "CMAKE_LIBRARY_PATH" and "CMAKE_INCLUDE_PATH". --- gnu/packages/cmake.scm | 19 +++++++++++++++++++ guix/build/cmake-build-system.scm | 2 -- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index 63805ef..e0349be 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -100,6 +100,25 @@ ("expat" ,expat) ("bzip2" ,bzip2) ("libarchive" ,libarchive))) + + (native-search-paths + (list + ;; Search path used by the 'FIND_XXX' functions. + (search-path-specification + (variable "CMAKE_PROGRAM_PATH") + (directories '("bin"))) + (search-path-specification + (variable "CMAKE_INCLUDE_PATH") + (directories '("include"))) + (search-path-specification + (variable "CMAKE_LIBRARY_PATH") + (directories '("lib" "lib64"))) + + ;; Search path used by 'FIND_PACKAGE' and 'INCLUDE'. + (search-path-specification + (variable "CMAKE_MODULE_PATH") + (directories '("lib/cmake"))))) + (home-page "http://www.cmake.org/") (synopsis "Cross-platform build system") (description diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm index b1598dd..766797e 100644 --- a/guix/build/cmake-build-system.scm +++ b/guix/build/cmake-build-system.scm @@ -60,8 +60,6 @@ ;; add (other) libraries of the project itself to rpath ,(string-append "-DCMAKE_INSTALL_RPATH=" out "/lib") ,@configure-flags))) - (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH")) - (setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH")) (format #t "running 'cmake' with arguments ~s~%" args) (zero? (apply system* "cmake" args))))) -- 2.1.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > I find this when packaging https://github.com/lxdg/libqtxdg. It=E2=80=99s 404. Thanks, Ludo=E2=80=99. --=-=-=-- From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 03 Nov 2014 13:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.141502231129392 (code B ref 18926); Mon, 03 Nov 2014 13:46:02 +0000 Received: (at 18926) by debbugs.gnu.org; 3 Nov 2014 13:45:11 +0000 Received: from localhost ([127.0.0.1]:46923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlHwU-0007dx-Oy for submit@debbugs.gnu.org; Mon, 03 Nov 2014 08:45:11 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:64576) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlHwR-0007dd-Kb for 18926@debbugs.gnu.org; Mon, 03 Nov 2014 08:45:08 -0500 Received: by mail-pd0-f178.google.com with SMTP id fp1so11621587pdb.9 for <18926@debbugs.gnu.org>; Mon, 03 Nov 2014 05:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=Ezppb20SqARIIZQZehgp5FfSo+FRPFEo3uxhHLNOYj8=; b=t+D1L547un8ixicibKbXgzz2bzSIrWIzKHBqCr+ZBooskjQT5wIHS6eq1M3pGScj6w Q6SMhrBH57R92jzovKOpELK9nQWomQocTvTjDeT8tq6bCNuA1R58NjU/eTcOzpqH52oO oUXK8ZWer909D6HuEgbgjQw6xsSRHVnwPHQD2jJefn6wtQqHUJhcWM86mEgshZltJr4G fANvJV8bOvDFQ0YZeJRNiXLOhZhf2UdOnJGrqQEEOvgqjGpyUa45ifc4/bYCOkUMFrKq e6oWelOa90dbCVSp6jVcKOOY9icU2k7DE+5yuLRXsBR03msgHweW9mMQa+2ytk0rmY2h OixA== X-Received: by 10.68.221.162 with SMTP id qf2mr1044489pbc.152.1415022301129; Mon, 03 Nov 2014 05:45:01 -0800 (PST) Received: from localhost ([171.113.73.222]) by mx.google.com with ESMTPSA id nv7sm14823721pdb.68.2014.11.03.05.44.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Nov 2014 05:45:00 -0800 (PST) From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= In-Reply-To: <87d295i556.fsf@gnu.org> References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-unknown-linux-gnu) Date: Mon, 03 Nov 2014 21:44:54 +0800 Message-ID: <87sii02yax.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > >> if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will inst= all >> libraries files to $out/lib64. > > I found several CMake-built libraries on x86_64 (graphite2, openjpeg, > qjson) that all use lib/, not lib64/. > > Then I found one counterexample, libftdi; however, setting > CMAKE_INSTALL_LIBDIR=3Dlib doesn=E2=80=99t make any different: it still i= nstalls > libraries in $out/lib64. Any idea? libftdi (not using GNUInstallDirs.cmake) handle this itself by set LIB_SUFFIX, look like we have to set it specifically. > > Here=E2=80=99s the patch I tried: > > diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-s= ystem.scm > index 74b4f01..b1598dd 100644 > --- a/guix/build/cmake-build-system.scm > +++ b/guix/build/cmake-build-system.scm > @@ -53,6 +53,8 @@ > build-type)) > '()) > ,(string-append "-DCMAKE_INSTALL_PREFIX=3D" out) > + ;; Install libraries to $prefix/lib, not $prefix/lib64. > + "-DCMAKE_INSTALL_LIBDIR=3Dlib" > ;; add input libraries to rpath > "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=3DTRUE" > ;; add (other) libraries of the project itself to rpath > > According to , > LIBRARY_OUTPUT_PATH might be better for this, no? no, this is for build phase. > >> if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to >> find cmake modules of inputs. > > You=E2=80=99re talking about .cmake files, right? yes, but now I find out that they can under both lib/cmake and share/cmake. > > Could you try the attached patch and report back? > > From 536c143997fa146dc77d6e8defc24032452e5a4c Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Ludovic=3D20Court=3DC3=3DA8s?=3D > Date: Sun, 2 Nov 2014 23:54:28 +0100 > Subject: [PATCH] gnu: cmake: Add search paths for > CMAKE_{INCLUDE,LIBRARY,MODULE}_PATH. > > * gnu/packages/cmake.scm (cmake)[native-search-paths]: New field. > * guix/build/cmake-build-system.scm (configure): Remove 'setenv' calls > for "CMAKE_LIBRARY_PATH" and "CMAKE_INCLUDE_PATH". > --- > gnu/packages/cmake.scm | 19 +++++++++++++++++++ > guix/build/cmake-build-system.scm | 2 -- > 2 files changed, 19 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm > index 63805ef..e0349be 100644 > --- a/gnu/packages/cmake.scm > +++ b/gnu/packages/cmake.scm > @@ -100,6 +100,25 @@ > ("expat" ,expat) > ("bzip2" ,bzip2) > ("libarchive" ,libarchive))) > + > + (native-search-paths > + (list > + ;; Search path used by the 'FIND_XXX' functions. > + (search-path-specification > + (variable "CMAKE_PROGRAM_PATH") > + (directories '("bin"))) > + (search-path-specification > + (variable "CMAKE_INCLUDE_PATH") > + (directories '("include"))) > + (search-path-specification > + (variable "CMAKE_LIBRARY_PATH") > + (directories '("lib" "lib64"))) > + > + ;; Search path used by 'FIND_PACKAGE' and 'INCLUDE'. > + (search-path-specification > + (variable "CMAKE_MODULE_PATH") > + (directories '("lib/cmake"))))) > + > (home-page "http://www.cmake.org/") > (synopsis "Cross-platform build system") > (description > diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-s= ystem.scm > index b1598dd..766797e 100644 > --- a/guix/build/cmake-build-system.scm > +++ b/guix/build/cmake-build-system.scm > @@ -60,8 +60,6 @@ > ;; add (other) libraries of the project itself to rpath > ,(string-append "-DCMAKE_INSTALL_RPATH=3D" out "/lib") > ,@configure-flags))) > - (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH")) > - (setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH")) > (format #t "running 'cmake' with arguments ~s~%" args) > (zero? (apply system* "cmake" args))))) >=20=20 > --=20 > 2.1.2 thanks for the patch, I have apply it, but it does not work. because libqtxdg have qtxdg-config.cmake in $out/share/cmake/qt5xdg. after add CMAKE_PREFIX_PATH with: (search-path-specification (variable "CMAKE_PREFIX_PATH") (directories '(""))) I could get liblxqt(use libqtxdg) build ok. and by setting CMAKE_PREFIX_PATH, I think we can get rid of CMAKE_PROGRAM_PATH, CMAKE_INCLUDE_PATH, and maybe CMAKE_LIBRARY_PATH. see: http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_PREFIX_PATH.html. > > >> I find this when packaging https://github.com/lxdg/libqtxdg. > > It=E2=80=99s 404. oh, sorry, it's https://github.com/lxde/libqtxdg and here is the packages I'm working on: --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=lxqt.scm Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGx4cXQpCiAgIzp1c2UtbW9kdWxlIChndWl4IGxpY2Vuc2VzKQogICM6 dXNlLW1vZHVsZSAoZ3VpeCBwYWNrYWdlcykKICAjOnVzZS1tb2R1bGUgKGd1aXggZG93bmxvYWQp CiAgIzp1c2UtbW9kdWxlIChndWl4IHV0aWxzKQogICM6dXNlLW1vZHVsZSAoZ3VpeCBidWlsZC1z eXN0ZW0gY21ha2UpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMpCiAgIzp1c2UtbW9kdWxl IChnbnUgcGFja2FnZXMgcXQpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgcGtnLWNvbmZp ZykpCgooZGVmaW5lLXB1YmxpYyBsaWJxdHhkZwogIChwYWNrYWdlCiAgICAobmFtZSAibGlicXR4 ZGciKQogICAgKHZlcnNpb24gIjEuMC4wIikKICAgIChzb3VyY2UKICAgICAob3JpZ2luCiAgICAg ICAobWV0aG9kIHVybC1mZXRjaCkKICAgICAgICh1cmkgKHN0cmluZy1hcHBlbmQgImh0dHA6Ly9s eHF0Lm9yZy9kb3dubG9hZHMvIiBuYW1lICIvIiB2ZXJzaW9uICIvIgogICAgICAgICAgICAgICAg ICAgICAgICAgICBuYW1lICItIiB2ZXJzaW9uICIudGFyLnh6IikpCiAgICAgICAoc2hhMjU2CiAg ICAgICAgKGJhc2UzMgogICAgICAgICAiMXFnMmhqZDB5YmdsdnB4eXgzNTFseG1zMjVuY2lpcHlp bHdwZjdnNDJ6NXdnNjJqMnhhZCIpKSkpCiAgICAoYnVpbGQtc3lzdGVtIGNtYWtlLWJ1aWxkLXN5 c3RlbSkKICAgIChhcmd1bWVudHMKICAgICBgKCM6dGVzdHM/ICNmIDsgZmFpbGVkCiAgICAgICAj OmNvbmZpZ3VyZS1mbGFncyAnKCItRENNQUtFX0lOU1RBTExfTElCRElSPWxpYiIKICAgICAgICAg ICAgICAgICAgICAgICAgICAgIi1EVVNFX1FUNT1PTiIKICAgICAgICAgICAgICAgICAgICAgICAg ICAgIi1EQlVJTERfVEVTVFM9T04iKSkpCiAgICAoaW5wdXRzCiAgICAgYCgoInF0IiAscXQpKSkK ICAgIChob21lLXBhZ2UgImh0dHA6Ly9seHF0Lm9yZy8iKQogICAgKHN5bm9wc2lzICJRdCBpbXBs ZW1lbnRhdGlvbiBvZiBmcmVlZGVza3RvcCB4ZGcgc3BlY3MiKQogICAgKGRlc2NyaXB0aW9uICJG SVhNRSIpCiAgICAobGljZW5zZSBsZ3BsMi4xKykpKQogIAoKKGRlZmluZS1wdWJsaWMgbGlibHhx dAogIChwYWNrYWdlCiAgICAobmFtZSAibGlibHhxdCIpCiAgICAodmVyc2lvbiAiMC44LjAiKQog ICAgKHNvdXJjZQogICAgIChvcmlnaW4KICAgICAgIChtZXRob2QgdXJsLWZldGNoKQogICAgICAg KHVyaSAoc3RyaW5nLWFwcGVuZCAiaHR0cDovL2x4cXQub3JnL2Rvd25sb2Fkcy9seHF0LyIgdmVy c2lvbiAiLyIKICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZSAiLSIgdmVyc2lvbiAiLnRh ci54eiIpKQogICAgICAgKHNoYTI1NgogICAgICAgIChiYXNlMzIKICAgICAgICAgIjBrcDM2dmI4 emNhYTFya2tkcHFtOTY2d2g3NGw5amRsYTJtaHJjdzM4aG1hMWtpYWY1NHIiKSkpKQogICAgKGJ1 aWxkLXN5c3RlbSBjbWFrZS1idWlsZC1zeXN0ZW0pCiAgICAoYXJndW1lbnRzCiAgICAgYCgjOnRl c3RzPyAjZiA7IG5vIGNoZWNrIHRhcmdldAogICAgICAgIzpjb25maWd1cmUtZmxhZ3MgJygiLURV U0VfUVQ1PU9OIikpKQogICAgKG5hdGl2ZS1pbnB1dHMgYCgoInBrZy1jb25maWciICxwa2ctY29u ZmlnKSkpCiAgICAoaW5wdXRzCiAgICAgYCgoInF0IiAscXQpCiAgICAgICAoImxpYnF0eGRnIiAs bGlicXR4ZGcpKSkKICAgIChob21lLXBhZ2UgImh0dHA6Ly9seHF0Lm9yZy8iKQogICAgKHN5bm9w c2lzICJDb3JlIHV0aWxpdHkgbGlicmFyeSBmb3IgYWxsIExYREUtUXQgY29tcG9uZW50cyIpCiAg ICAoZGVzY3JpcHRpb24gIkZJWE1FIikKICAgIChsaWNlbnNlIGxncGwyLjErKSkpCgo= --=-=-=-- From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 03 Nov 2014 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.141503356216443 (code B ref 18926); Mon, 03 Nov 2014 16:53:01 +0000 Received: (at 18926) by debbugs.gnu.org; 3 Nov 2014 16:52:42 +0000 Received: from localhost ([127.0.0.1]:47762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlKry-0004H9-7c for submit@debbugs.gnu.org; Mon, 03 Nov 2014 11:52:42 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:37145) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlKrv-0004H0-Mv for 18926@debbugs.gnu.org; Mon, 03 Nov 2014 11:52:40 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 16CB53EBF; Mon, 3 Nov 2014 17:52:38 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7+zoeUr4rWC2; Mon, 3 Nov 2014 17:52:38 +0100 (CET) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DD36EEFE; Mon, 3 Nov 2014 17:52:37 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 Brumaire an 223 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Mon, 03 Nov 2014 17:53:00 +0100 In-Reply-To: <87sii02yax.fsf@gmail.com> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Mon, 03 Nov 2014 21:44:54 +0800") Message-ID: <874mugp6oj.fsf@gnu.org> User-Agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Ludovic Court=C3=A8s writes: > >> =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: >> >>> if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will ins= tall >>> libraries files to $out/lib64. >> >> I found several CMake-built libraries on x86_64 (graphite2, openjpeg, >> qjson) that all use lib/, not lib64/. >> >> Then I found one counterexample, libftdi; however, setting >> CMAKE_INSTALL_LIBDIR=3Dlib doesn=E2=80=99t make any different: it still = installs >> libraries in $out/lib64. Any idea? > libftdi (not using GNUInstallDirs.cmake) handle this itself by > set LIB_SUFFIX, look like we have to set it specifically. Ah, OK. Still, graphite2, openjpeg, and qjson all install to $prefix/lib, even when not passing CMAKE_INSTALL_LIBDIR=3Dlib. Is it really needed? >>> if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to >>> find cmake modules of inputs. >> >> You=E2=80=99re talking about .cmake files, right? > yes, but now I find out that they can under both lib/cmake and share/cmak= e. In that case... >> + ;; Search path used by 'FIND_PACKAGE' and 'INCLUDE'. >> + (search-path-specification >> + (variable "CMAKE_MODULE_PATH") >> + (directories '("lib/cmake"))))) ^ ... just add "share/cmake" here. ---=E2=80=99 Could you try that? > after add CMAKE_PREFIX_PATH with: > > (search-path-specification > (variable "CMAKE_PREFIX_PATH") > (directories '(""))) I thought about it, but that "" is inelegant and not as clear. > and here is the packages I'm working on: Looks like a good start. :-) Thanks, Ludo=E2=80=99. From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 04 Nov 2014 12:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.141510497613062 (code B ref 18926); Tue, 04 Nov 2014 12:43:01 +0000 Received: (at 18926) by debbugs.gnu.org; 4 Nov 2014 12:42:56 +0000 Received: from localhost ([127.0.0.1]:48339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XldRn-0003Oc-C5 for submit@debbugs.gnu.org; Tue, 04 Nov 2014 07:42:55 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:64827) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XldRm-0003OU-0b for 18926@debbugs.gnu.org; Tue, 04 Nov 2014 07:42:54 -0500 Received: by mail-pd0-f180.google.com with SMTP id ft15so13458097pdb.25 for <18926@debbugs.gnu.org>; Tue, 04 Nov 2014 04:42:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=9BO7JhlU1hqg/XdZvSApuArnR/obIqREhQvkQgrAfzg=; b=gEgMRwO7EQCzDwIIkKrYy2D1baVADOR6GdTRgEJSd3vz4jSzHryf32SxqZd3U+udSE LSWaqvZZtCTUp88rndDmZvoDcDLD4mzxukdSC9+szPDeixdGMkgQnnnBiqg65ei8N4u0 KNG6Tj+l+K1SolXgk2pCYeLbsVlhOCkWXkqi3vW7ah+rCOP9zLyK1OzLtse68Y78WvNN 4hIQAjTnAy2ZwTqwxxNTRccN0srQrjGQjXfGbC7vbE7fXNryiRc7ohy0ByChwUMD0NaR 5dxTL7x75d4DHHPK8VX4gEJQ21jPmjDX3mMGMHTeTDL1BacFlmna/zVp7SJOsgLRlx8D iZfA== X-Received: by 10.70.60.138 with SMTP id h10mr7696706pdr.154.1415104972927; Tue, 04 Nov 2014 04:42:52 -0800 (PST) Received: from localhost ([171.113.73.222]) by mx.google.com with ESMTPSA id oq6sm347913pdb.45.2014.11.04.04.42.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Nov 2014 04:42:52 -0800 (PST) From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= In-Reply-To: <874mugp6oj.fsf@gnu.org> References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-unknown-linux-gnu) Date: Tue, 04 Nov 2014 20:42:47 +0800 Message-ID: <871tpjb0hk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Ludovic Court=C3=A8s writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > >> Ludovic Court=C3=A8s writes: >> >>> =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: >>> >>>> if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will in= stall >>>> libraries files to $out/lib64. >>> >>> I found several CMake-built libraries on x86_64 (graphite2, openjpeg, >>> qjson) that all use lib/, not lib64/. >>> >>> Then I found one counterexample, libftdi; however, setting >>> CMAKE_INSTALL_LIBDIR=3Dlib doesn=E2=80=99t make any different: it still= installs >>> libraries in $out/lib64. Any idea? >> libftdi (not using GNUInstallDirs.cmake) handle this itself by >> set LIB_SUFFIX, look like we have to set it specifically. > > Ah, OK. > > Still, graphite2, openjpeg, and qjson all install to $prefix/lib, even > when not passing CMAKE_INSTALL_LIBDIR=3Dlib. Is it really needed? Not sure, it's just for packages using GNUInstallDirs.cmake. > >>>> if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to >>>> find cmake modules of inputs. >>> >>> You=E2=80=99re talking about .cmake files, right? >> yes, but now I find out that they can under both lib/cmake and share/cma= ke. > > In that case... > >>> + ;; Search path used by 'FIND_PACKAGE' and 'INCLUDE'. >>> + (search-path-specification >>> + (variable "CMAKE_MODULE_PATH") >>> + (directories '("lib/cmake"))))) > ^ > ... just add "share/cmake" here. ---=E2=80=99 > > Could you try that? Well, it not work, here is the exact output by liblxqt: By not providing "FindQt5Xdg.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Xdg", but CMake did not find one. Could not find a package configuration file provided by "Qt5Xdg" with any of the following names: Qt5XdgConfig.cmake qt5xdg-config.cmake Add the installation prefix of "Qt5Xdg" to CMAKE_PREFIX_PATH or set "Qt5Xdg_DIR" to a directory containing one of the above files. If "Qt5Xd= g" provides a separate development package or SDK, be sure it has been installed. Since FindQt5Xdg.cmake is not provided by upstream, it looks like we have t= o set CMAKE_PREFIX_PATH or Qt5Xdg_DIR. And if I understand correctly, at liblxqt side, since #:configure-flags can not refer inputs, I have to add a pre-configure phase, then using setenv. > >> after add CMAKE_PREFIX_PATH with: >> >> (search-path-specification >> (variable "CMAKE_PREFIX_PATH") >> (directories '(""))) > > I thought about it, but that "" is inelegant and not as clear. Yes, it not feeling good, but I have no better idea now. > >> and here is the packages I'm working on: > > Looks like a good start. :-) > > Thanks, > Ludo=E2=80=99. From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 04 Jan 2015 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.14203911929445 (code B ref 18926); Sun, 04 Jan 2015 17:07:02 +0000 Received: (at 18926) by debbugs.gnu.org; 4 Jan 2015 17:06:32 +0000 Received: from localhost ([127.0.0.1]:36530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7odM-0002SH-3J for submit@debbugs.gnu.org; Sun, 04 Jan 2015 12:06:32 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:34397) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7odK-0002S8-0N for 18926@debbugs.gnu.org; Sun, 04 Jan 2015 12:06:31 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5FD924399; Sun, 4 Jan 2015 18:06:28 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SYL2+EPkTeYk; Sun, 4 Jan 2015 18:06:28 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 02661A39; Sun, 4 Jan 2015 18:06:27 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> Date: Sun, 04 Jan 2015 18:06:26 +0100 In-Reply-To: <871tpjb0hk.fsf@gmail.com> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Tue, 04 Nov 2014 20:42:47 +0800") Message-ID: <87wq52327h.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Ludovic Court=C3=A8s writes: > >> =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: >> >>> Ludovic Court=C3=A8s writes: >>> >>>> =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: >>>> >>>>> if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will i= nstall >>>>> libraries files to $out/lib64. >>>> >>>> I found several CMake-built libraries on x86_64 (graphite2, openjpeg, >>>> qjson) that all use lib/, not lib64/. >>>> >>>> Then I found one counterexample, libftdi; however, setting >>>> CMAKE_INSTALL_LIBDIR=3Dlib doesn=E2=80=99t make any different: it stil= l installs >>>> libraries in $out/lib64. Any idea? >>> libftdi (not using GNUInstallDirs.cmake) handle this itself by >>> set LIB_SUFFIX, look like we have to set it specifically. >> >> Ah, OK. >> >> Still, graphite2, openjpeg, and qjson all install to $prefix/lib, even >> when not passing CMAKE_INSTALL_LIBDIR=3Dlib. Is it really needed? > Not sure, it's just for packages using GNUInstallDirs.cmake. >> >>>>> if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to >>>>> find cmake modules of inputs. >>>> >>>> You=E2=80=99re talking about .cmake files, right? >>> yes, but now I find out that they can under both lib/cmake and share/cm= ake. >> >> In that case... >> >>>> + ;; Search path used by 'FIND_PACKAGE' and 'INCLUDE'. >>>> + (search-path-specification >>>> + (variable "CMAKE_MODULE_PATH") >>>> + (directories '("lib/cmake"))))) >> ^ >> ... just add "share/cmake" here. ---=E2=80=99 >> >> Could you try that? > Well, it not work, here is the exact output by liblxqt: [...] >>> after add CMAKE_PREFIX_PATH with: >>> >>> (search-path-specification >>> (variable "CMAKE_PREFIX_PATH") >>> (directories '(""))) >> >> I thought about it, but that "" is inelegant and not as clear. > Yes, it not feeling good, but I have no better idea now. In =E2=80=98core-updates=E2=80=99 it=E2=80=99s now possible to specify file= patterns, so we could look for *.cmake files under lib/cmake or share/cmake like this: (search-path-specification (variable "CMAKE_MODULE_PATH") (files '("lib/cmake" "share/cmake")) (file-type 'regular) (file-pattern "\\.cmake$")) Would it help? What else is needed? Ludo=E2=80=99. From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 08 Feb 2015 18:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.142341926218492 (code B ref 18926); Sun, 08 Feb 2015 18:15:01 +0000 Received: (at 18926) by debbugs.gnu.org; 8 Feb 2015 18:14:22 +0000 Received: from localhost ([127.0.0.1]:37530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKWNB-0004oB-UY for submit@debbugs.gnu.org; Sun, 08 Feb 2015 13:14:22 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:36159 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKWNA-0004o4-0m for 18926@debbugs.gnu.org; Sun, 08 Feb 2015 13:14:20 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:47897 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YKWN9-0005KG-IZ; Sun, 08 Feb 2015 13:14:19 -0500 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> <87wq52327h.fsf@gnu.org> Date: Sun, 08 Feb 2015 19:14:18 +0100 In-Reply-To: <87wq52327h.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 04 Jan 2015 18:06:26 +0100") Message-ID: <87vbjcp8xx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > In =E2=80=98core-updates=E2=80=99 it=E2=80=99s now possible to specify fi= le patterns, so we > could look for *.cmake files under lib/cmake or share/cmake like this: > > (search-path-specification > (variable "CMAKE_MODULE_PATH") > (files '("lib/cmake" "share/cmake")) > (file-type 'regular) > (file-pattern "\\.cmake$")) > > Would it help? What else is needed? Any updates on this bug? I=E2=80=99d like to know if the above solution addresses the problem or if more is needed. TIA, Ludo=E2=80=99. From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 01 Mar 2015 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.142520394317171 (code B ref 18926); Sun, 01 Mar 2015 10:00:02 +0000 Received: (at 18926) by debbugs.gnu.org; 1 Mar 2015 09:59:03 +0000 Received: from localhost ([127.0.0.1]:32885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS0eN-0004Ss-5a for submit@debbugs.gnu.org; Sun, 01 Mar 2015 04:59:03 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:49307) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS0eK-0004SE-Sz for 18926@debbugs.gnu.org; Sun, 01 Mar 2015 04:59:01 -0500 Received: from debian ([82.66.2.95]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0M6AQg-1XYHOD16S2-00y629; Sun, 01 Mar 2015 10:58:51 +0100 Date: Sun, 1 Mar 2015 10:58:47 +0100 From: Andreas Enge Message-ID: <20150301095847.GA28759@debian> References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> <87wq52327h.fsf@gnu.org> <87vbjcp8xx.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vbjcp8xx.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:Fb5rRHV+6ERI6oyOVDRQC7nCxGcTggMqB3CujFom7CRjJzjYotE ha0aNCEkHf0+/Adb/MF1BoORd135sqfPdPofwEuk+vxUmcwdvaEZUfMmKtXu3ba8WBbQoBK jwAUb/f4WrhBqq0eogs2zXXFzHqeKaZJ/JLDLVSYXWUhHyrjo+A4NQnehG/gJ3EltfXWMCc 2RkVcsbB7YG8zdq1sVyeg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) The patch does not work. I thought this was due to it returning the .cmake files themselves and not the directory containing them. Here, for instance, it contains /gnu/store/h30r6z3fc67h8557kd63vjjdlfpc58wj-libqtxdg-1.1.0/share/cmake/qt5xdg/qt5xdg-config.cmake Inside the build directory, I tried an export CMAKE_MODULE_PATH=/gnu/store/h30r6z3fc67h8557kd63vjjdlfpc58wj-libqtxdg-1.1.0/share/cmake/qt5xdg with the same error message. Then I followed the advice given on screen and set export CMAKE_PREFIX_PATH=/gnu/store/h30r6z3fc67h8557kd63vjjdlfpc58wj-libqtxdg-1.1.0 which worked. export Qt5Xdg_DIR=/gnu/store/h30r6z3fc67h8557kd63vjjdlfpc58wj-libqtxdg-1.1.0/share/cmake/qt5xdg worked as well. But I do not see how to implement this kind of package specific path in guix. The following explains why CMAKE_MODULE_PATH has no effect here: http://www.cmake.org/cmake/help/v3.0/command/find_package.html Apparently, there is a "module mode" and a "config mode". The first one uses CMAKE_MODULE_PATH and looks for files called FindPACKAGE.cmake. We are in the second case here, where a file PACKAGEConfig.cmake or package-config.cmake is looked for. Further below on that page, it is explained where these config files are looked for. On unix like systems, this is /(lib/|lib|share)/cmake/*/ /(lib/|lib|share)/*/ /(lib/|lib|share)/*/(cmake|CMake)/ The part can be set by CMAKE_PREFIX_PATH. What would be desirable is the following: In the definition of a search path, we need an additional transformation (if it is not already there). We need to look for the regular expression (.+)/(lib|lib64|share)/.+\.cmake$ or maybe (.+)/(lib|lib/[^/]+|share)/.+\.cmake$ and put \1 into CMAKE_PREFIX_PATH. I think that would also make the lines (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH")) (setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH")) in guix/build/cmake-build-system obsolete. Concerning the "lib64" part, I still have doubts. The documentation speaks of "lib/"; yet, there are packages which install into "lib64" (like libqtxdg, needed for liblxqt, which triggered this discussion). So if the suggestion above does not work, we can in a second step try to play with CMAKE_INSTALL_LIBDIR. Andreas From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 01 Mar 2015 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andreas Enge Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.142522056315488 (code B ref 18926); Sun, 01 Mar 2015 14:37:02 +0000 Received: (at 18926) by debbugs.gnu.org; 1 Mar 2015 14:36:03 +0000 Received: from localhost ([127.0.0.1]:32995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS4yO-00041a-LX for submit@debbugs.gnu.org; Sun, 01 Mar 2015 09:36:01 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:33353 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS4yI-00041O-BS for 18926@debbugs.gnu.org; Sun, 01 Mar 2015 09:35:55 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:57210 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YS4yH-0000ml-F4; Sun, 01 Mar 2015 09:35:53 -0500 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> <87wq52327h.fsf@gnu.org> <87vbjcp8xx.fsf@gnu.org> <20150301095847.GA28759@debian> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?UTF-8?Q?Vent=C3=B4se?= an 223 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Sun, 01 Mar 2015 15:35:51 +0100 In-Reply-To: <20150301095847.GA28759@debian> (Andreas Enge's message of "Sun, 1 Mar 2015 10:58:47 +0100") Message-ID: <87r3t8g4zc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Andreas Enge skribis: > What would be desirable is the following: > In the definition of a search path, we need an additional transformation > (if it is not already there). We need to look for the regular expression > (.+)/(lib|lib64|share)/.+\.cmake$ > or maybe > (.+)/(lib|lib/[^/]+|share)/.+\.cmake$ > and put > \1 > into CMAKE_PREFIX_PATH. That=E2=80=99s not currently possible using the search path mechanism (and I can=E2=80=99t imagine such weird semantics.) I can imagine two solutions, in order of preference: 1. Find CMAKE_ environment variables that can be set using the search path mechanism. Many environment variables are documented, is there really none that we can use? 2. Add custom code to cmake-build-system.scm instead of using the search path mechanism. WDYT? Thanks for taking the time to investigate! Ludo=E2=80=99. From unknown Sat Sep 06 00:10:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 01 Mar 2015 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 18926@debbugs.gnu.org Received: via spool by 18926-submit@debbugs.gnu.org id=B18926.142524069914194 (code B ref 18926); Sun, 01 Mar 2015 20:12:02 +0000 Received: (at 18926) by debbugs.gnu.org; 1 Mar 2015 20:11:39 +0000 Received: from localhost ([127.0.0.1]:33547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSADC-0003gs-JZ for submit@debbugs.gnu.org; Sun, 01 Mar 2015 15:11:39 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:64612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSAD9-0003gb-ND for 18926@debbugs.gnu.org; Sun, 01 Mar 2015 15:11:36 -0500 Received: from debian ([82.66.2.95]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LqU6b-1XoPfl0TCr-00e5Xe; Sun, 01 Mar 2015 21:11:28 +0100 Date: Sun, 1 Mar 2015 21:11:25 +0100 From: Andreas Enge Message-ID: <20150301201125.GA9166@debian> References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> <87wq52327h.fsf@gnu.org> <87vbjcp8xx.fsf@gnu.org> <20150301095847.GA28759@debian> <87r3t8g4zc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87r3t8g4zc.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:w3+HWBhu2OgS7RlxYCeCrAFYarT8w6YeFeksXO8OMiNnN0ftTFu 6or4fJW29G0y2hPZPpI0wpWQ3X/4vz3tEh4AvzFwrOQ7bMRPRrmUlnRL3AAP65Vk9wnVKL8 QIhAft9GhmE5gnIxFGkhNTgThr+t1hfuzluyj7ZRNGc/YBPuwmbAWVsBpEkkje9DTk6jnKa 8GLwWSIiABXAhIxNdUjAg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Sun, Mar 01, 2015 at 03:35:51PM +0100, Ludovic Courtès wrote: > That’s not currently possible using the search path mechanism (and I > can’t imagine such weird semantics.) I think the semantics is relatively clear: Match file names with a regular expression and, if there is a match, add the result to a search path. It is much like search-replace with regular expressions. But of course, the search path could become very long: Essentially each package built with cmake would contribute an entry. > I can imagine two solutions, in order of preference: > 1. Find CMAKE_ environment variables that can be set using the search > path mechanism. Many environment variables are documented, is > there really none that we can use? The problem here is that the .cmake files are in a subdirectory which is named after the package. I think our current search path specification cannot handle this, since we can only use it with fixed prefixes of a full file location. One possibility would be to use CMAKE_PREFIX_PATH, which should contain the install location of input packages. So the code proposed in a previous message: (search-path-specification (variable "CMAKE_PREFIX_PATH") (directories '(""))) should work. In practice, in a user profile, it would amount to only the profile root, which makes sense: This is the install location from a user point of view. In the build environment, it would add one entry for each input, but I do not see a way of singling out only the packages built with cmake. > 2. Add custom code to cmake-build-system.scm instead of using the > search path mechanism. One could try to emulate the "trivial" search path above by adding each input to CMAKE_PREFIX_PATH. But it would not solve the problem that a user install- ing a library built with cmake (like libqtxdg) into his profile would not be able to compile another package (like liblxqt) requiring it. I also thought about searching for package-config.cmake files and defining an environment variable PACKAGE_DIR if one is found. The problem is capitalisation: Here we find /gnu/store/...-libqtxdg-1.1.0/share/cmake/qt5xdg/qt5xdg-config.cmake and need to set the environment variable Qt5Xdg_DIR . It is impossible to guess this! All in all, I am in favour of using the trivial search path with the "" directory. It would be activated only if cmake is an input, or a user installs cmake into his profile. Andreas From unknown Sat Sep 06 00:10:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: bug#18926: closed (Re: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH) Message-ID: References: <20150314151115.GA3428@debian> <877fzdu45q.fsf@gmail.com> X-Gnu-PR-Message: they-closed 18926 X-Gnu-PR-Package: guix Reply-To: 18926@debbugs.gnu.org Date: Sat, 14 Mar 2015 15:12:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1426345922-7345-1" This is a multi-part message in MIME format... ------------=_1426345922-7345-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX= _PATH which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18926@debbugs.gnu.org. --=20 18926: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18926 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1426345922-7345-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18926-done) by debbugs.gnu.org; 14 Mar 2015 15:11:23 +0000 Received: from localhost ([127.0.0.1]:46716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWnik-0001tc-VR for submit@debbugs.gnu.org; Sat, 14 Mar 2015 11:11:23 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:61043) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWnii-0001tT-Hl for 18926-done@debbugs.gnu.org; Sat, 14 Mar 2015 11:11:21 -0400 Received: from debian ([82.66.2.95]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0MWfMN-1Z4axZ1x2R-00XuvQ; Sat, 14 Mar 2015 16:11:18 +0100 Date: Sat, 14 Mar 2015 16:11:15 +0100 From: Andreas Enge To: Ludovic =?iso-8859-15?Q?Court=E8s?= Subject: Re: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Message-ID: <20150314151115.GA3428@debian> References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> <87wq52327h.fsf@gnu.org> <87vbjcp8xx.fsf@gnu.org> <20150301095847.GA28759@debian> <87r3t8g4zc.fsf@gnu.org> <20150301201125.GA9166@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150301201125.GA9166@debian> User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:KukSqeUD0zv4gdS+rGUxusxldfkqDvg5lDLA0rIxRbcxXXK5nd5 HhUqT1fxc3dsHadMK8uwaOORVADRo27Ay6BToW8mbHo6FBX7KCcQaA53c24jT77riObDuvK UNytejgwtR40uZgqp2jX5jcwSX3IBVMuqegpqWP16u/x9/4ELrGbZeTXSlekgEWyfbklk6H knSGjoskHVzhcCefJrbjQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18926-done Cc: =?utf-8?B?5a6L5paH5q2m?= , 18926-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Commit 0d6f936 fixes the issue with CMAKE_PREFIX_PATH. I am closing this bug; if a problem occurs with CMAKE_INSTALL_LIBDIR, we may reopen it. Andreas ------------=_1426345922-7345-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Nov 2014 16:57:28 +0000 Received: from localhost ([127.0.0.1]:46293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkyT2-0000I8-1f for submit@debbugs.gnu.org; Sun, 02 Nov 2014 11:57:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37194) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xkv97-0002v2-HO for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:24:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkv8w-0001k2-Tw for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:24:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8w-0001jy-QV for submit@debbugs.gnu.org; Sun, 02 Nov 2014 08:24:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8r-0007Yb-4b for bug-guix@gnu.org; Sun, 02 Nov 2014 08:24:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkv8g-0001iW-Um for bug-guix@gnu.org; Sun, 02 Nov 2014 08:24:25 -0500 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:36980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkv8g-0001iA-NC for bug-guix@gnu.org; Sun, 02 Nov 2014 08:24:14 -0500 Received: by mail-pd0-f179.google.com with SMTP id g10so10030670pdj.10 for ; Sun, 02 Nov 2014 05:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=jjkIMDuaMxhjK3yKsLIg5/iB3mgWT8DmBYuTckmTNDg=; b=eWpZyvv7taU99CohQezB6wo78oZiwFY1uY0fR5jZDgPBe8aJNiJB/akeELe7DXKGqC iTDsL+sp+jwdk5EXVV+AqZJbK5R0bXbXjazak2gUoOHihPMmpKmpaP5k1ciXktr5DjGK UV4KF38pcP9cEcDCU3xtJ4nN/cnFtmKxD+FeX6Cb+M1iquxtvpUHWjqaq5KKaHZRaDaZ /6W8ifVbTgAhab/zze4Mpk93dTeiHGLeXGWAcBcnJejXQnGFM0itgKI4kot3J698MTRX 0DKCJmRcDk1/4+CtEzYJETM4oF8rJVntuF0U0L4ycjjY8/v/8kunrxqdVpx3ZgPwuny0 H5oA== X-Received: by 10.70.61.37 with SMTP id m5mr54609pdr.162.1414934653180; Sun, 02 Nov 2014 05:24:13 -0800 (PST) Received: from localhost ([171.113.73.222]) by mx.google.com with ESMTPSA id y10sm362971pdq.15.2014.11.02.05.24.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Nov 2014 05:24:12 -0800 (PST) From: =?utf-8?B?5a6L5paH5q2m?= To: bug-guix@gnu.org Subject: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-unknown-linux-gnu) Date: Sun, 02 Nov 2014 21:24:01 +0800 Message-ID: <877fzdu45q.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 02 Nov 2014 11:57:27 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) if CMAKE_INSTALL_LIBDIR not set to `lib`, GNUInstallDirs.cmake will install libraries files to $out/lib64. if CMAKE_PREFIX_PATH not set to PATH of `inputs`, cmake will unable to find cmake modules of inputs. I find this when packaging https://github.com/lxdg/libqtxdg. ------------=_1426345922-7345-1--