Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834552

Summary: media-libs/game-music-emu-0.6.3 does not declare its dependency on sys-libs/zlib
Product: Gentoo Linux Reporter: Michael Yagliyan <burnsmellfactory>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: UNCONFIRMED ---    
Severity: normal CC: burnsmellfactory
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: Build log
emerge info output

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/ 
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