unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Guix-devel <guix-devel@gnu.org>
Subject: lvm2/device-mapper (dmeventd): libdevmapper-event-lvm2mirror.so: error: depends on 'libdevmapper-event-lvm2.so.2.02', which cannot be found in RUNPATH
Date: Wed, 30 May 2018 13:15:40 +0200	[thread overview]
Message-ID: <87zi0ho0mb.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3094 bytes --]


The quest to update udisks is decidedly long...

One of the dependencies is dmraid, which in turns need
device-mapper-event, which is part of lvm2 but it's not part of the Guix
package as of now.

I'm trying to add device-mapper-event (a.k.a. dmevent) to lvm2.  I've
added the following to the configure flags:

                               "--enable-cmdlib"
                               "--enable-dmeventd" ; Requires '--enable-cmdlib'.

But now I get the following error:

--8<---------------cut here---------------start------------->8---
starting phase `validate-runpath'
validating RUNPATH of 8 binaries in "/gnu/store/gh7rda7y5nfh7v5njlll45ckbm4aigmd-lvm2-2.02.177/lib"...
/gnu/store/gh7rda7y5nfh7v5njlll45ckbm4aigmd-lvm2-2.02.177/lib/device-mapper/libdevmapper-event-lvm2mirror.so: error: depends on 'libdevmapper-event-lvm2.so.2.02', which cannot be found in RUNPATH ("/gnu/store/n6acaivs0jwiwpidjr551dhdni5kgpcr-glibc-2.26.105-g0890d5379c/lib" "/gnu/store/xfjba1kww8ngdc6nxldd8ly93nh13ayy-gcc-5.5.0-lib/lib" "/gnu/store/xfjba1kww8ngdc6nxldd8ly93nh13ayy-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/../../..")
[...]
/gnu/store/gh7rda7y5nfh7v5njlll45ckbm4aigmd-lvm2-2.02.177/lib/liblvm2cmd.so: error: depends on 'libdevmapper.so.1.02', which cannot be found in RUNPATH ("/gnu/store/n6acaivs0jwiwpidjr551dhdni5kgpcr-glibc-2.26.105-g0890d5379c/lib" "/gnu/store/xfjba1kww8ngdc6nxldd8ly93nh13ayy-gcc-5.5.0-lib/lib" "/gnu/store/bcvm220bjrx39g67hajjssgn20mlhyfr-eudev-3.2.5/lib" "/gnu/store/xfjba1kww8ngdc6nxldd8ly93nh13ayy-gcc-5.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/../../..")
validating RUNPATH of 3 binaries in "/gnu/store/gh7rda7y5nfh7v5njlll45ckbm4aigmd-lvm2-2.02.177/sbin"...
phase `validate-runpath' failed after 0.0 seconds
--8<---------------cut here---------------end--------------->8---

Indeed, the new libraries don't have the right paths:

--8<---------------cut here---------------start------------->8---
> ldd libdevmapper-event-lvm2.so.2.02 
	linux-vdso.so.1 (0x00007fffb2127000)
	liblvm2cmd.so.2.02 => not found
	libdevmapper.so.1.02 => not found
	libpthread.so.0 => /gnu/store/n6acaivs0jwiwpidjr551dhdni5kgpcr-glibc-2.26.105-g0890d5379c/lib/libpthread.so.0 (0x00007f3fd36c0000)
	libgcc_s.so.1 => /gnu/store/xfjba1kww8ngdc6nxldd8ly93nh13ayy-gcc-5.5.0-lib/lib/libgcc_s.so.1 (0x00007f3fd34a9000)
	libc.so.6 => /gnu/store/n6acaivs0jwiwpidjr551dhdni5kgpcr-glibc-2.26.105-g0890d5379c/lib/libc.so.6 (0x00007f3fd30f7000)
	/gnu/store/4sqaib7c2dfjv62ivrg9b8wa7bh226la-glibc-2.26.105-g0890d5379c/lib/ld-linux-x86-64.so.2 (0x00007f3fd3ae1000)
--8<---------------cut here---------------end--------------->8---

Apparently the following snippet

--8<---------------cut here---------------start------------->8---
(string-append "LDFLAGS=-Wl,-rpath="
               (assoc-ref %outputs "out")
               "/lib")
--8<---------------cut here---------------end--------------->8---

from the lvm2 package declaration is not enough.
Any clue how to enforce the right path into the new libraries?

-- 
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

             reply	other threads:[~2018-05-30 11:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-30 11:15 Pierre Neidhardt [this message]
2018-06-04  8:41 ` lvm2/device-mapper (dmeventd): libdevmapper-event-lvm2mirror.so: error: depends on 'libdevmapper-event-lvm2.so.2.02', which cannot be found in RUNPATH Ludovic Courtès
2018-06-06  9:58   ` Pierre Neidhardt
2018-06-07 16:17     ` Ludovic Courtès
2018-06-17 18:56   ` Pierre Neidhardt
2018-06-17 21:29     ` Ludovic Courtès
2018-06-28 18:17       ` Pierre Neidhardt
2018-06-29  8:37         ` Ludovic Courtès
2018-06-29  8:41           ` Pierre Neidhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zi0ho0mb.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).