Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940731 - [guru] games-emulation/dosbox-x has dependency conflict with libsdl2 upgrade due to obsolete USE flag
Summary: [guru] games-emulation/dosbox-x has dependency conflict with libsdl2 upgrade ...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Yuan Liao (Leo3418)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-03 20:49 UTC by securable.alias
Modified: 2024-10-07 09:06 UTC (History)
3 users (show)

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


Attachments
ebuild modified as stated in bug report (dosbox-x-2024.07.01-r1.ebuild,6.75 KB, application/vnd.gentoo.ebuild)
2024-10-03 20:49 UTC, securable.alias
Details
ebuild modified according to correction (dosbox-x-2024.07.01-r1.ebuild,6.75 KB, application/vnd.gentoo.ebuild)
2024-10-04 15:42 UTC, securable.alias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description securable.alias 2024-10-03 20:49:50 UTC
Created attachment 904877 [details]
ebuild modified as stated in bug report

Dosbox-x depends on the package media-libs/libsdl2[threads]. However, that USE flag has been removed from newer libsdl2 on the justification that "it's effectively mandatory".
I am not skilled enough to make head or tail of the upstream cmakes, so I can't tell if that's on by default. However, the ebuild commit by the libsdl2 maintainer certainly suggests it is.
This could develop into a serious issue if libsdl2-2.28.5-r3 is dropped at a later date.

Expected behavior: media-libs/libsdl2 upgrade is not in conflict with dosbox-x.

Suggested: Attached ebuild.
Changes:
52 --- media-libs/libsdl2[X,alsa,opengl?,sound,threads,video]
52 +++ >=media-libs/libsdl2-2.30.7-r1[X,alsa,opengl?,sound,video]

Be advised that I am not experienced, I am not clever, and someone who actually maintains a Gentoo package should vet this fix.
Comment 1 Viorel Munteanu gentoo-dev 2024-10-04 07:59:03 UTC
(In reply to securable.alias from comment #0)
> Suggested: Attached ebuild.
> Changes:
> 52 --- media-libs/libsdl2[X,alsa,opengl?,sound,threads,video]
> 52 +++ >=media-libs/libsdl2-2.30.7-r1[X,alsa,opengl?,sound,video]

The syntax for this case is threads(+) https://devmanual.gentoo.org/general-concepts/dependencies/index.html#use-dependency-defaults
Comment 2 securable.alias 2024-10-04 15:42:43 UTC
Created attachment 904909 [details]
ebuild modified according to correction

Accordingly, find attached a further revised r1 ebuild, that the matter may move quickly should the maintainer find this adequate.

Changes (from 2024.07.01): 
52 --- media-libs/libsdl2[X,alsa,opengl?,sound,threads,video]
52 +++ media-libs/libsdl2[X,alsa,opengl?,sound,threads(+),video]
Comment 3 Yuan Liao (Leo3418) 2024-10-04 22:50:02 UTC
Thank you both for letting me know this issue and the suggestions!  I have pushed a fix to 'dev', awaiting a merge to 'master' by a Trusted Contributor.
Comment 4 Larry the Git Cow gentoo-dev 2024-10-07 09:06:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3a74bcdf3ef29cc86bd3f6646486b8d1f1b4f620

commit 3a74bcdf3ef29cc86bd3f6646486b8d1f1b4f620
Author:     Yuan Liao <liaoyuan@gmail.com>
AuthorDate: 2024-10-04 22:18:15 +0000
Commit:     Yuan Liao <liaoyuan@gmail.com>
CommitDate: 2024-10-04 22:18:15 +0000

    games-emulation/dosbox-x: Update for libsdl2's dropped IUSE=threads
    
    Closes: https://bugs.gentoo.org/940731
    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>

 games-emulation/dosbox-x/dosbox-x-2024.07.01.ebuild | 2 +-
 games-emulation/dosbox-x/dosbox-x-9999.ebuild       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)