Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931668 - sys-apps/shadow-4.14.2 requires a specific version of libbbsd
Summary: sys-apps/shadow-4.14.2 requires a specific version of libbbsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-10 11:04 UTC by Nguyen Thai Ngoc Duy
Modified: 2024-05-10 14:47 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 Nguyen Thai Ngoc Duy 2024-05-10 11:04:33 UTC
I encountered this error

/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: ../libsubid/.libs/libsubid.so: undefined reference to `freezero'

while I had libbsd-0.10.0. Manually emerging libbsd-0.11.8 first fixed the problem, but shadow should automatically rebuild libbsd in this case I think. And I don't know exactly which version of libbsd introduces freezero.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2024-05-10 14:47:09 UTC
The bug has been closed via the following commit(s):

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

commit af6ed27691d4161c67f60740f74188523e300dc4
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-05-10 14:43:45 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-05-10 14:43:45 +0000

    sys-apps/shadow: do not use libbsd
    
    Only 2 functions are used: readpassphrase and freezero.
    freezero is a trivial wrapper around explicit_bzero and free.
    readpassphrase has been copied locally from OpenBSD.
    
    No need to pull in libbsd and its deps for this.
    
    Closes: https://bugs.gentoo.org/924684
    Closes: https://bugs.gentoo.org/931668
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/shadow/{shadow-4.14.6.ebuild => shadow-4.14.6-r1.ebuild} | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)