Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811438 - sys-fs/lvm2-2.02.188-r1[static]: missing dependency to udev[static-libs]
Summary: sys-fs/lvm2-2.02.188-r1[static]: missing dependency to udev[static-libs]
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: PullRequest
Depends on:
Reported: 2021-09-02 16:13 UTC by Rolf Eike Beer
Modified: 2021-09-03 21:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (lvm2-static.log,36.61 KB, text/x-log)
2021-09-02 16:13 UTC, Rolf Eike Beer

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2021-09-02 16:13:26 UTC
Created attachment 737185 [details]

hppa2.0-unknown-linux-gnu-gcc -O2 -pipe -march=2.0 -fPIC -Wl,-O1 -Wl,--as-needed -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--no-export-dynamic -static -L. -L../../libdm/ioctl dmeventd.o \
        -o dmeventd.static -ldl -ldevmapper-event -ldevmapper -lpthread  -ludev -lrt -pthread  -lblkid  -lm
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: dmeventd.o: in function `_do_process_request':
(.text+0x24f0): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: cannot find -ludev

I think something like this is missing:

diff --git a/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild
index b657f6fca27..e3d7d2126a6 100644
--- a/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild
+++ b/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild
@@ -41,6 +41,7 @@ DEPEND="${DEPEND_COMMON}
        static? (
                selinux? ( sys-libs/libselinux[static-libs] )
+               >=virtual/libudev-208:=[static-libs]

For the problem with the "version" symbol (see I have fixed it like this:

sed 's/ version(/ sd_version(/' -i $(grep -rl ' version(' src/)
Comment 1 Mike Gilbert gentoo-dev 2021-09-02 16:34:57 UTC
The dependency should be conditional on the udev USE flag.
Comment 2 Larry the Git Cow gentoo-dev 2021-09-03 20:50:49 UTC
The bug has been referenced in the following commit(s):

commit 6dbacd04e9ca6e8288089f5d566eb29e1c672799
Author:     Rolf Eike Beer <>
AuthorDate: 2021-09-03 17:25:22 +0000
Commit:     Mike Gilbert <>
CommitDate: 2021-09-03 20:50:40 +0000

    sys-fs/udev: depend on static libudev when also building static binaries
    Signed-off-by: Rolf Eike Beer <>
    Signed-off-by: Mike Gilbert <>

 sys-fs/lvm2/lvm2-2.02.187-r3.ebuild | 1 +
 sys-fs/lvm2/lvm2-2.02.188-r1.ebuild | 1 +
 sys-fs/lvm2/lvm2-2.03.13-r1.ebuild  | 1 +
 3 files changed, 3 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2021-09-03 21:05:45 UTC
The bug has been referenced in the following commit(s):

commit bee913293f7dc9492a247e10fdb8374e7e6cdd95
Author:     Sam James <>
AuthorDate: 2021-09-03 21:05:15 +0000
Commit:     Sam James <>
CommitDate: 2021-09-03 21:05:37 +0000

    sys-fs/lvm2: fix syntax error
    Fixes: 6dbacd04e9ca6e8288089f5d566eb29e1c672799
    Signed-off-by: Sam James <>

 sys-fs/lvm2/lvm2-2.02.188-r1.ebuild | 2 +-
 sys-fs/lvm2/lvm2-2.03.13-r1.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)