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]
Status: CONFIRMED
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
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
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: ---


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

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]
build.log

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] )
                >=sys-apps/util-linux-2.16[static-libs]
+               >=virtual/libudev-208:=[static-libs]
        )"
 BDEPEND="
        sys-devel/autoconf-archive


For the problem with the "version" symbol (see https://github.com/systemd/systemd/issues/20600) 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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dbacd04e9ca6e8288089f5d566eb29e1c672799

commit 6dbacd04e9ca6e8288089f5d566eb29e1c672799
Author:     Rolf Eike Beer <eike@sf-mail.de>
AuthorDate: 2021-09-03 17:25:22 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-03 20:50:40 +0000

    sys-fs/udev: depend on static libudev when also building static binaries
    
    Bug: https://bugs.gentoo.org/811438
    Closes: https://github.com/gentoo/gentoo/pull/22206
    Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bee913293f7dc9492a247e10fdb8374e7e6cdd95

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

    sys-fs/lvm2: fix syntax error
    
    Bug: https://bugs.gentoo.org/811438
    Fixes: 6dbacd04e9ca6e8288089f5d566eb29e1c672799
    Signed-off-by: Sam James <sam@gentoo.org>

 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(-)