Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865875 - sys-devel/binutils-2.39 automagic dep on dev-libs/msgpack
Summary: sys-devel/binutils-2.39 automagic dep on dev-libs/msgpack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-20 10:07 UTC by Ionen Wolkens
Modified: 2022-09-06 21:34 UTC (History)
2 users (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 Ionen Wolkens gentoo-dev 2022-08-20 10:07:08 UTC
There's a --with-msgpack switch which defaults to auto (${P}/binutils/configure.ac)

 * VDB: detected possibly incorrect RDEPEND (sys-devel/binutils-2.39)
 *  > dev-libs/msgpack:=

$ grep msgpack /var/db/pkg/sys-devel/binutils-2.39/NEEDED
/usr/x86_64-pc-linux-gnu/binutils-bin/2.39/readelf libctf-nobfd-2.39.0.gentoo-sys-devel-binutils-st.so,libz.so.1,libmsgpackc.so.2,libc.so.6

This also use pkg-config to look for the dep (just a reminder that binutils doesn't depend on virtual/pkgconfig if don't explicitly disable).

I normally don't have msgpack installed, but noticed while checking configure.ac changes for mingw64-toolchain bumps.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-09-06 11:33:08 UTC
This can cause real breakage for systems running on binary packages:

$ readelf
readelf: error while loading shared libraries: libmsgpackc.so.2: cannot open shared object file: No such file or directory

How can I work on Gentoo now?! xP
Comment 2 Larry the Git Cow gentoo-dev 2022-09-06 21:34:32 UTC
The bug has been closed via the following commit(s):

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

commit 001f2d2011a09562d882943e0b2de72a0ed86046
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-06 21:33:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-06 21:33:35 +0000

    sys-devel/binutils: fix automagic msgpack dep
    
    Closes: https://bugs.gentoo.org/865875
    Signed-off-by: Sam James <sam@gentoo.org>

 .../binutils/{binutils-2.39-r1.ebuild => binutils-2.39-r2.ebuild}   | 5 ++++-
 sys-devel/binutils/binutils-9999.ebuild                             | 6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)