Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925930 - QA Notice: Missing gen_usr_ldscript for *.so and DIE after stage "install" in package "dev-libs/libpwquality"
Summary: QA Notice: Missing gen_usr_ldscript for *.so and DIE after stage "install" in...
Status: RESOLVED DUPLICATE of bug 920823
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-01 16:13 UTC by smail.muk2
Modified: 2024-03-01 16:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description smail.muk2 2024-03-01 16:13:28 UTC
Bug in "usr-ldscript.eclass" wih (static-libs) and (!split-usr) OR MAY BE bug in "portage/python*/install-qa-check.d/80libraries"

Reproducible: Always

Steps to Reproduce:
exit at QA stage by error:
 * QA Notice: Missing gen_usr_ldscript for PACKAGE.so
 * ERROR: MANY/PACKAGE failed:
 *   add those ldscripts
 * 
 * Call stack:
 *   misc-functions.sh, line 671:  Called install_qa_check
 *   misc-functions.sh, line 134:  Called source 'install_symlink_html_docs'
 *         80libraries, line 182:  Called lib_check
 *         80libraries, line 157:  Called die
 * The specific snippet of code:
 *   	[[ ${abort} == "yes" ]] && die "add those ldscripts"

This is conflict between QA check in portage scripts "install-qa-check.d/80libraries" and "usr-ldscript.eclass".
In eclass "usr-ldscript.eclass" with use (staic-libs !split-usr) simple "return 0" if use (!split-usr) and not generated ldscript for resolve bug https://bugs.gentoo.org/4411 .  After install-stage (QA) is "DIE" - as not found "/usr/lib*/*.so" (stub for ldconfig).

Fix may be:
- remove line "use split-usr || return 0" in file "usr-ldscript.eclass".
- OR need changes in sources PORTAGE for disable check with use (!split-usr). Didn't do this option (I didn’t find out how to check use in the portage program).

It's tested with profile "default/linux/amd64/17.1/desktop/systemd/merged-usr" and package "dev-libs/libpwquality-1.4.5".
Bug #719366 - very similar.

Reproduce:
1. Set new profile to "default/linux/amd64/17.1/desktop/systemd/merged-usr" or any contains "merged-usr". With successful done "merge-usr".
2. define use "static-libs". /Me define in global use.
3. reinstall package "dev-libs/libpwquality".  Also possible in the following packages: sys-apps/openrc "openrc" "sys-fs/nilfs-utils" "sys-fs/reiserfsprogs". Or any packages with use (staic-libs !split-usr).



Actual Results:  
fail
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-01 16:17:35 UTC

*** This bug has been marked as a duplicate of bug 920823 ***