Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719366 - sys-apps/openrc-0.42.1: build failure with USE="-split-usr static-libs"
Summary: sys-apps/openrc-0.42.1: build failure with USE="-split-usr static-libs"
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-25 09:44 UTC by Sergey Gromov
Modified: 2024-03-01 16:17 UTC (History)
1 user (show)

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


Attachments
Specify SHLIBDIR (file_719366.txt,465 bytes, patch)
2020-04-25 09:50 UTC, Sergey Gromov
Details | Diff
Build log (file_719366.txt,109.00 KB, text/plain)
2020-04-25 09:54 UTC, Sergey Gromov
Details
drop-shlibdir.patch (drop-shlibdir.patch,1.01 KB, patch)
2021-03-20 20:31 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.