Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834552 - media-libs/game-music-emu-0.6.3 does not declare its dependency on sys-libs/zlib
Summary: media-libs/game-music-emu-0.6.3 does not declare its dependency on sys-libs/zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-04 07:19 UTC by Michael Yagliyan
Modified: 2025-05-23 03:22 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,39.13 KB, text/x-log)
2022-03-04 07:19 UTC, Michael Yagliyan
Details
emerge info output (emerge-info.log,7.15 KB, text/x-log)
2022-03-04 07:22 UTC, Michael Yagliyan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Yagliyan 2022-03-04 07:19:38 UTC
Created attachment 766202 [details]
Build log

I already have game-music-emu installed 64-bit, and most likely I already had zlib (which is very widely used) installed at the time so I never noticed an issue...  until I had to build a bunch of packages 32-bit for Wine support.

The build failed, here is the relevant snippet (full log attached):

FAILED: gme/libgme.so.0.6.3 
...
cannot find -lz
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed
...

Indeed, the build order from emerge pretend output shows it was planning to install zlib after game-music-emu:

...
[ebuild   R    ] media-libs/game-music-emu-0.6.3::gentoo  ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] virtual/jpeg-100::gentoo  USE="-static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] media-libs/xvid-1.3.7::gentoo  USE="threads -examples -pic" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] sys-libs/libxcrypt-4.4.27:0/1::gentoo  USE="(compat) (split-usr) (system) -static-libs -test" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] virtual/libcrypt-2:0/2::gentoo  USE="-static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] sys-libs/zlib-1.2.11-r4:0/1::gentoo  USE="minizip (split-usr) -static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
...

And I checked the ebuild, it makes no mention of zlib.

As expected, if I `emerge -1 sys-libs/zlib` first, then reattempt emerging game-music-emu, it builds just fine.
Comment 1 Michael Yagliyan 2022-03-04 07:22:22 UTC
Created attachment 766205 [details]
emerge info output
Comment 2 Larry the Git Cow gentoo-dev 2025-05-23 03:22:31 UTC
The bug has been closed via the following commit(s):

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

commit 61415848f2dca06214a03fd3f3b28ca7530bb1e1
Author:     demize <demize@unstable.systems>
AuthorDate: 2025-04-03 18:37:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-23 03:21:50 +0000

    media-libs/game-music-emu: depend on sys-libs/zlib
    
    Closes: https://bugs.gentoo.org/834552
    Signed-off-by: Vivian Heisz (vhz) <demize@unstable.systems>
    Part-of: https://github.com/gentoo/gentoo/pull/41449
    Closes: https://github.com/gentoo/gentoo/pull/41449
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{game-music-emu-0.6.3.ebuild => game-music-emu-0.6.3-r1.ebuild}   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)