checking for rtas_get_sysparm in -lrtas... yes !!! existing preserved libs: >>> package: sys-libs/librtas-2.0.2 * - /usr/lib64/librtas.so.2 * - /usr/lib64/librtas.so.2.0.0 * used by /usr/bin/lscpu (sys-apps/util-linux-2.35.1-r2) Use emerge @preserved-rebuild to rebuild packages using these libraries
Which architecture? Dependency on ppc / ppc64 is unconditional since commit f8f0251b47594046f8d276c00a34e5aa4d20ef22 (bug #705544): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8f0251b47594046f8d276c00a34e5aa4d20ef22
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1) > Which architecture? It doesn't matter: if you have librtas installed, util-linux will use it. That's what "automagically links" means.
Theoretically true, but sys-libs/librtas-2.0.2 (the only version available) has KEYWORDS="ppc ppc64". Have you installed this package on another architecture? Why?
jer: on ppc systems, librtas is required for building now. Do you really want me to patch the autoconf just to add an option that would never be used? I think that on ppc* it should ALWAYS be built with librtas.
If necessary, we could set ac_cv_lib_rtas_rtas_get_sysparm=no for arches other than ppc/ppc64. I am still curious to know what arch jer is using, and how/why librtas was installed/uninstalled.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23dd6f9f869621138b9789c13b393e6f96f3ceb8 commit 23dd6f9f869621138b9789c13b393e6f96f3ceb8 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-15 00:45:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-15 00:50:45 +0000 sys-apps/util-linux: make librtas conditional on USE=rtas It's not _always_ useful on PPC*. Let's set the cache variable in the build system based on a USE flag instead. (It also led to some sandbox issues being noticed with 'lscpu', which have been fixed separately in librtas now.) Closes: https://bugs.gentoo.org/722424 Bug: https://bugs.gentoo.org/705544 Signed-off-by: Sam James <sam@gentoo.org> profiles/arch/base/package.use.mask | 4 ++++ profiles/arch/powerpc/package.use.mask | 4 ++++ sys-apps/util-linux/metadata.xml | 1 + sys-apps/util-linux/util-linux-2.37.2-r1.ebuild | 8 +++++--- sys-apps/util-linux/util-linux-9999.ebuild | 8 +++++--- 5 files changed, 19 insertions(+), 6 deletions(-)