Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 719366

Summary: sys-apps/openrc-0.42.1: build failure with USE="-split-usr static-libs"
Product: Gentoo Linux Reporter: Sergey Gromov <p1419>
Component: Current packagesAssignee: OpenRC Team <openrc>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Specify SHLIBDIR
Build log
drop-shlibdir.patch

Description Sergey Gromov 2020-04-25 09:44:23 UTC
OpenRC fails to build with USE="static-libs -split-usr". It installs the shared libraries in /lib*, and the static libraries in /usr, which doesn’t pass lib_check because gen_usr_ldscript is a no-op with USE="-split-usr".

To fix, add SHLIBDIR=${UPREFIX}/${LIBNAME} to MAKE_ARGS.

Reproducible: Always
Comment 1 Sergey Gromov 2020-04-25 09:50:17 UTC
Created attachment 634494 [details, diff]
Specify SHLIBDIR
Comment 2 Sergey Gromov 2020-04-25 09:54:21 UTC
Created attachment 634498 [details]
Build log
Comment 3 William Hubbs gentoo-dev 2021-03-20 19:21:43 UTC
Imo the better fix is to drop the use of SHLIBDIR upstream and put
everything in LIBDIR.

The controversy I would run into here is it would break Gentoo users who
are using separate /usr with no initramfs because I would have to force
libdir to be in /usr.
Comment 4 William Hubbs gentoo-dev 2021-03-20 20:31:01 UTC
Created attachment 692610 [details, diff]
drop-shlibdir.patch

Ideally, this is the patch I would apply to fix this issue.

The down side is, it would break any gentoo users who use separate /usr
without initramfs hard.
Comment 5 William Hubbs gentoo-dev 2021-03-21 22:09:56 UTC
Due to a request from the gentoo QA team, I will be dropping the
static-libs use flag in the next release.