[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/45: gnu: lvm2-static: Properly handle eudev dependency in pkg-config.
From: |
guix-commits |
Subject: |
06/45: gnu: lvm2-static: Properly handle eudev dependency in pkg-config. |
Date: |
Sun, 18 Feb 2024 08:41:04 -0500 (EST) |
jpoiret pushed a commit to branch core-updates-glibc-2.39
in repository guix.
commit 68ea63a3306c21d3de77d6ff65aa8b8576731009
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Wed Jan 17 11:52:27 2024 +0100
gnu: lvm2-static: Properly handle eudev dependency in pkg-config.
* gnu/packages/linux.scm (lvm2-static): Add linking flags for the static
eudev
output.
Change-Id: Ic43be600f0569a8ffa69544cbf661f05d82e2084
---
gnu/packages/linux.scm | 39 ++++++++++++++++++++++++---------------
1 file changed, 24 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c7da4957bf..ba81cbad3e 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4596,8 +4596,8 @@ mapper. Kernel components are part of Linux-libre.")
(inherit lvm2)
(name "lvm2-static")
- ;; Propagate udev because libdevmapper.a depends on libudev.
- (propagated-inputs `(("udev:static" ,eudev "static")))
+ (inputs `(,@(package-inputs lvm2)
+ ("udev:static" ,eudev "static")))
(arguments
(substitute-keyword-arguments (package-arguments lvm2)
@@ -4611,19 +4611,28 @@ mapper. Kernel components are part of Linux-libre.")
;; it until the situation improves.
(delete "--enable-dmeventd" ,flags)))
((#:phases phases)
- `(modify-phases ,phases
- (add-before 'configure 'adjust-Makefile
- (lambda _
- ;; These fixes are related to the upstream libdm->device_mapper
- ;; migration and will hopefully be fixed upstream in due time.
- (substitute* "tools/Makefile.in"
- ;; This variable is empty in a static configuration and causes
- ;; an erroneous GCC command line.
- (("-L\\$\\(interfacebuilddir\\)") "")
- ;; Remove obsolete reference to libdevmapper.a.
- (("-ldevmapper") ""))
- #t))))))
- (synopsis "Logical volume management for Linux (statically linked)")))
+ #~(modify-phases #$phases
+ (add-before 'configure 'adjust-Makefile
+ (lambda _
+ ;; These fixes are related to the upstream libdm->device_mapper
+ ;; migration and will hopefully be fixed upstream in due time.
+ (substitute* "tools/Makefile.in"
+ ;; This variable is empty in a static configuration and
causes
+ ;; an erroneous GCC command line.
+ (("-L\\$\\(interfacebuilddir\\)") "")
+ ;; Remove obsolete reference to libdevmapper.a.
+ (("-ldevmapper") ""))
+ #t))
+ (add-after 'install 'adjust-pkgconfig
+ ;; The static eudev is missing its pkg config file, and I am not
+ ;; rebuilding it at this point.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* (string-append #$output
"/lib/pkgconfig/devmapper.pc")
+ (("Requires.private: .*") "")
+ (("Libs.private:")
+ (format #f "Libs.private: -L~a -ludev"
+ (dirname (search-input-file inputs
"lib/libudev.a")))))))))))
+ (synopsis "Logical volume management for Linux (statically linked)")))
(define-public thin-provisioning-tools
(package
- branch core-updates-glibc-2.39 created (now cbfa13a859), guix-commits, 2024/02/18
- 05/45: gnu: libblockdev: Add libcryptsetup propagated inputs., guix-commits, 2024/02/18
- 01/45: gnu: cryptsetup: Update to 2.6.1., guix-commits, 2024/02/18
- 08/45: Partially revert gnu: python-matplotlib: Fix flaky Legend loc test., guix-commits, 2024/02/18
- 15/45: gnu: linux-pam: Add libxcrypt dependency., guix-commits, 2024/02/18
- 40/45: gnu: mailutils: Add libxcrypt dependency., guix-commits, 2024/02/18
- 07/45: gnu: cryptsetup-static: Fix static build., guix-commits, 2024/02/18
- 06/45: gnu: lvm2-static: Properly handle eudev dependency in pkg-config.,
guix-commits <=
- 02/45: gnu: Add libdevmapper-propagated-inputs., guix-commits, 2024/02/18
- 03/45: gnu: Add libcryptsetup-propagated-inputs., guix-commits, 2024/02/18
- 04/45: gnu: volume-key: Add required transitive dependencies., guix-commits, 2024/02/18
- 10/45: gnu: glibc: Update to 2.39., guix-commits, 2024/02/18
- 11/45: gnu: gcc: Simplify application of Hurd-specific pthread patch., guix-commits, 2024/02/18
- 39/45: gnu: also-utils: Adapt for glibc 2.39., guix-commits, 2024/02/18
- 36/45: gnu: python-natsort: Add en_US.UTF-8 locale for tests., guix-commits, 2024/02/18
- 32/45: gnu: cyrus-sasl: Add libxcrypt dependency., guix-commits, 2024/02/18
- 31/45: gnu: cups-minimal: Add libxcrypt dependency., guix-commits, 2024/02/18
- 14/45: gnu: python: Add libxcrypt dependency., guix-commits, 2024/02/18