Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722424 - sys-apps/util-linux automagically links against sys-libs/librtas
Summary: sys-apps/util-linux automagically links against sys-libs/librtas
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2020-05-11 09:31 UTC by Jeroen Roovers (RETIRED)
Modified: 2021-11-15 01:01 UTC (History)
0 users

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 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-11 09:31:02 UTC
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
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-05-11 09:39:42 UTC
Which architecture?
Dependency on ppc / ppc64 is unconditional since commit f8f0251b47594046f8d276c00a34e5aa4d20ef22 (bug #705544):
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8f0251b47594046f8d276c00a34e5aa4d20ef22
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-11 12:05:50 UTC
(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.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2020-05-11 12:36:57 UTC
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?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-05-11 23:13:19 UTC
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.
Comment 5 Mike Gilbert gentoo-dev 2020-05-12 00:23:01 UTC
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.
Comment 6 Larry the Git Cow gentoo-dev 2021-11-15 00:50:54 UTC
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(-)