Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705544 - sys-apps/util-linux automagically depends on sys-libs/librtas on ppc64
Summary: sys-apps/util-linux automagically depends on sys-libs/librtas on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-16 10:05 UTC by Georgy Yakovlev
Modified: 2021-11-15 01:01 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 Georgy Yakovlev archtester gentoo-dev 2020-01-16 10:05:24 UTC
Caught it after depclean:
!!! 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.34-r3)



small section from man-page:
DESCRIPTION
       lscpu  gathers  CPU  architecture information from sysfs, /proc/cpuinfo and any applicable architecture-specific libraries (e.g. librtas on Pow‐
       erpc).  



it's not essential dependency and only needed on non-open IBM power machines and VMs to query additional cpu info, so probably ok to disable.

commit that added the functionality and description here
https://github.com/karelzak/util-linux/commit/bd9b94d12a6158b6080630085f77e59ac1b7de26

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-04-03 23:10:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8f0251b47594046f8d276c00a34e5aa4d20ef22

commit f8f0251b47594046f8d276c00a34e5aa4d20ef22
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2020-04-03 22:24:49 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2020-04-03 23:10:02 +0000

    sys-apps/util-linux: capture automagic librtas dep
    
    Closes: https://bugs.gentoo.org/705544
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 sys-apps/util-linux/util-linux-2.35.1-r1.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2021-11-15 00:50:55 UTC
The bug has been referenced in 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(-)