Summary: | sys-devel/gdb-8.1-r1 automagic dependency on dev-libs/mpfr | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mart Raudsepp <leio> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch
Patch |
Description
Mart Raudsepp
![]() The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddc1ddb8bf51e234d63c744d84eb306ecc6d2139 commit ddc1ddb8bf51e234d63c744d84eb306ecc6d2139 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2018-06-23 15:41:29 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2018-06-23 15:43:17 +0000 sys-devel/gdb: Add dependency on dev-libs/mpfr Closes: https://bugs.gentoo.org/652146 Package-Manager: Portage-2.3.40, Repoman-2.3.9 sys-devel/gdb/gdb-8.1-r1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) # scanelf -qF "%F: %n" $(qlist sys-devel/gdb | sort) | grep -i mpfr /usr/bin/gdb: libreadline.so.7,libz.so.1,libdl.so.2,libncursesw.so.6,libpthread.so.0,libm.so.6,libpython3.6.so.1.0,libexpat.so.1,liblzma.so.5,libmpfr.so.6,libc.so.6,ld-linux-x86-64.so.2 # grep client sys-devel/gdb/metadata.xml <flag name="client">Install the main "gdb" program (most people want this)</flag> So this dependency should be conditional on USE="client", since /usr/bin/gdb is the only file linked against libmpfr.so. (In reply to Arfrever Frehtes Taifersar Arahesis from comment #2) > So this dependency should be conditional on USE="client", since /usr/bin/gdb > is the only file linked against libmpfr.so. Can you attach patch to the ebuild? Created attachment 538022 [details, diff]
Patch
Passing --with-mpfr is a mistake.
configure.ac contains:
AC_ARG_WITH(mpfr,
[AS_HELP_STRING([--with-mpfr=PATH],
[specify prefix directory for installed MPFR package.
Equivalent to --with-mpfr-include=PATH/include
plus --with-mpfr-lib=PATH/lib])])
AC_ARG_WITH(mpfr-include,
[AS_HELP_STRING([--with-mpfr-include=PATH],
[specify directory for installed MPFR include files])])
AC_ARG_WITH(mpfr-lib,
[AS_HELP_STRING([--with-mpfr-lib=PATH],
[specify directory for the installed MPFR library])])
if test "x$with_mpfr" != x; then
gmplibs="-L$with_mpfr/lib $gmplibs"
gmpinc="-I$with_mpfr/include $gmpinc"
fi
if test "x$with_mpfr_include" != x; then
gmpinc="-I$with_mpfr_include $gmpinc"
fi
if test "x$with_mpfr_lib" != x; then
gmplibs="-L$with_mpfr_lib $gmplibs"
fi
Created attachment 538036 [details, diff]
Patch
Improved patch with explicit slot added to dependency on dev-libs/mpfr.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d11fb1a86270b960afdac2a2f8562c6468006099 commit d11fb1a86270b960afdac2a2f8562c6468006099 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2018-07-01 19:48:51 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-07-01 20:36:57 +0000 sys-devel/gdb: Depend on dev-libs/mpfr only with USE="client". Do not pass --with-mpfr option which only sets paths for searching headers and libraries, resulting in using -Iyes/include and -Lyes/lib. Bug: https://bugs.gentoo.org/652146 sys-devel/gdb/gdb-8.1-r2.ebuild | 256 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 256 insertions(+) |