GNU bug report logs -
#31999
[PATCH 1/7] gnu: Add volume-key.
Previous Next
Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>
Date: Thu, 28 Jun 2018 21:33:02 UTC
Severity: normal
Tags: patch
Done: Pierre Neidhardt <ambrevar <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 31999 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Pierre Neidhardt <ambrevar <at> gmail.com> writes:
> * GNU/packages/linux.scm (lvm2)[configure-flags]: Build device-mapper-event.
[...]
> + "--enable-cmdlib"
> + "--enable-dmeventd" ; Requires '--enable-cmdlib'.
I was able to get this working by modifying LDFLAGS *and* CLDFLAGS like
so:
[Message part 2 (text/x-patch, inline)]
1 file changed, 12 insertions(+), 1 deletion(-)
gnu/packages/linux.scm | 13 ++++++++++++-
modified gnu/packages/linux.scm
@@ -2133,11 +2133,22 @@ time.")
"--enable-udev_rules"
"--enable-pkgconfig"
+ "--enable-cmdlib"
+ "--enable-dmeventd"
+
;; Make sure programs such as 'dmsetup' can
;; find libdevmapper.so.
(string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out")
- "/lib"))
+ "/lib,-rpath="
+ (assoc-ref %outputs "out")
+ "/lib/device-mapper")
+ (string-append "CLDFLAGS=-Wl,-rpath="
+ (assoc-ref %outputs "out")
+ "/lib,-rpath="
+ (assoc-ref %outputs "out")
+ "/lib/device-mapper")
+ )
;; The tests use 'mknod', which requires root access.
#:tests? #f))
[back]
[Message part 3 (text/plain, inline)]
The reason CLDFLAGS is required is because the dmeventd plugins do not
respect LDFLAGS. See "%.so" (around line 449) in make.tmpl.in.
I think it would be okay to patch the Make template to also take LDFLAGS
into account. Not sure what CLDFLAGS is used for, but it seems
redundant to have the same contents in both. Can you try that?
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 6 years and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.