Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715920 - dev-libs/elfutils[static-libs] should depend on other packages with [static-libs?]
Summary: dev-libs/elfutils[static-libs] should depend on other packages with [static-l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 686946
  Show dependency tree
 
Reported: 2020-04-02 15:45 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2020-04-02 17:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (elfutils.patch,3.85 KB, patch)
2020-04-02 15:57 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2020-04-02 15:45:32 UTC
Static libraries of dev-libs/elfutils (libdw.a, libelf.a) require static libraries of its dependencies:

$ grep private /usr/lib64/pkgconfig/libdw.pc
Requires.private: zlib liblzma
Libs.private: -lbz2
$ grep private /usr/lib64/pkgconfig/libelf.pc
Requires.private: zlib
$ nm -C /usr/lib64/libdw.a | grep " U BZ2_"
                 U BZ2_bzDecompress
                 U BZ2_bzDecompressEnd
                 U BZ2_bzDecompressInit
$ nm -C /usr/lib64/libdw.a | grep " U lzma_"
                 U lzma_auto_decoder
                 U lzma_code
                 U lzma_end
$ nm -C /usr/lib64/libdw.a | grep -E " U (adler32|compress|crc32|deflate|get_crc_table|gz|inflate|zError|zlib)"
                 U gzclose
                 U gzdirect
                 U gzdopen
                 U gzerror
                 U gzread
$ nm -C /image/usr/lib64/libelf.a | grep -E " U (adler32|compress|crc32|deflate|get_crc_table|gz|inflate|zError|zlib)"
                 U deflate
                 U deflateEnd
                 U deflateInit_
                 U inflate
                 U inflateEnd
                 U inflateInit_
                 U inflateReset
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-04-02 15:57:30 UTC
Created attachment 629076 [details, diff]
Patch
Comment 2 Larry the Git Cow gentoo-dev 2020-04-02 17:45:58 UTC
The bug has been closed via the following commit(s):

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

commit 261f473f807caef944d126c23438181bdf699d6b
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2020-04-02 15:52:06 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-04-02 17:45:52 +0000

    dev-libs/elfutils: Depend on other packages with [static-libs?].
    
    libdw.a static library requires libbz2.a, liblzma.a and libz.a static libraries.
    libelf.a static library requires libz.a static library.
    
    Closes: https://bugs.gentoo.org/715920
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-libs/elfutils/elfutils-0.177.ebuild | 8 ++++----
 dev-libs/elfutils/elfutils-0.178.ebuild | 8 ++++----
 dev-libs/elfutils/elfutils-0.179.ebuild | 8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-02 17:47:01 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)
> Created attachment 629076 [details, diff] [details, diff]
> Patch

Looks good. Pushed as-is. Thank you!