Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 868285 - media-libs/libcaca-0.99_beta19-r8 [imlib] does not properly depend on media-libs/imlib2
Summary: media-libs/libcaca-0.99_beta19-r8 [imlib] does not properly depend on media-l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-03 14:28 UTC by Anthony Basile
Modified: 2022-10-10 22:06 UTC (History)
0 users

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 Anthony Basile gentoo-dev 2022-09-03 14:28:07 UTC
When built with USE=imlib, libcaca provides /usr/bin/cacaview and /usr/bin/img2txt that link against /usr/lib/libImlib2.so.1 which is provided by media-libs/imlib2:

# ldd /usr/bin/cacaview | grep libImlib2 
	libImlib2.so.1 => /usr/lib/libImlib2.so.1 (0x7f0350f6e000)
# ldd /usr/bin/img2txt | grep libImlib2 
	libImlib2.so.1 => /usr/lib/libImlib2.so.1 (0x7fbd01744000)

But libcaca-0.99_beta19-r8.ebuild does not RDEPEND on media-libs/imlib2. As a result, `emerge --depclean --with-bdeps=n` removes media-libs/imlib2, leaving /usr/lib/libImlib2.so.1 orphaned.  Rather than RDEPEND-ing on media-libs/imlib2, the ebuild merely DEPEND-s on it.

The fix is easy, just move the following line

   imlib? ( >=media-libs/imlib2-1.4.6-r2[${MULTILIB_USEDEP}] )

from the DEPEND list to the RDEPEND list.

Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2022-09-03 14:37:01 UTC
For completeness, this is the error message from `emerge --depclean --with-bdeps=n`



!!! existing preserved libs:
>>> package: media-libs/imlib2-1.7.1-r2
 *  - /usr/lib/libImlib2.so.1
 *  - /usr/lib/libImlib2.so.1.7.1
 *      used by /usr/bin/cacaview (media-libs/libcaca-0.99_beta19-r8)
 *      used by /usr/bin/img2txt (media-libs/libcaca-0.99_beta19-r8)
Comment 2 Larry the Git Cow gentoo-dev 2022-10-10 22:06:51 UTC
The bug has been closed via the following commit(s):

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

commit ffce9b894fca9840e433b255e63fc2ad6a8203b6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-10 21:59:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-10 22:06:06 +0000

    media-libs/libcaca: fix RDEPEND
    
    Closes: https://bugs.gentoo.org/868285
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{libcaca-0.99_beta19-r9.ebuild => libcaca-0.99_beta19-r10.ebuild}    | 1 +
 1 file changed, 1 insertion(+)