Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669414 - wxgtk prefers libsdl2
Summary: wxgtk prefers libsdl2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-23 16:32 UTC by Rick Farina (Zero_Chaos)
Modified: 2018-11-07 15:00 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 Rick Farina (Zero_Chaos) gentoo-dev 2018-10-23 16:32:21 UTC
wxgtk, at least in 3.0.4 (haven't checked other versions) prefers libsdl2

WITH_PLUGIN_SDL=0
if test "$wxUSE_SOUND" = "yes"; then 
  if test "$USE_UNIX" = 1 ; then 
    if test "$wxUSE_LIBSDL" != "no"; then 
      PKG_CHECK_MODULES([SDL], [sdl2 >= 2.0.0],
                  [
                    EXTRALIBS_SDL="$SDL_LIBS"
                    CFLAGS="$SDL_CFLAGS $CFLAGS"
                    CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
                    AC_DEFINE(wxUSE_LIBSDL)
                  ],
                  [
                    AC_MSG_NOTICE([SDL 2.0 not available. Falling back to 1.2.])
                    AM_PATH_SDL([1.2.0],
                                [
                                  EXTRALIBS_SDL="$SDL_LIBS"
                                  CFLAGS="$SDL_CFLAGS $CFLAGS"
                                  CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
                                  AC_DEFINE(wxUSE_LIBSDL)
                                ],
                                [wxUSE_LIBSDL="no"])
      ])   
      if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then 
        WITH_PLUGIN_SDL=1
      fi   
    fi   
  fi
fi


Unfortunately the ebuild deps on libsdl, which means that if libsdl2 is installed, it gets linked instead and the rdeps are wrong.  This becomes obvious when a binary package is installed and libsdl2 isn't present.
Comment 1 Larry the Git Cow gentoo-dev 2018-11-07 15:00:31 UTC
The bug has been closed via the following commit(s):

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

commit 0f15d3f9db609851eef3a20c5af432409f41c3c7
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2018-11-07 14:13:40 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2018-11-07 14:57:30 +0000

    x11-libs/wxGTK: update patchset and fix USE=sdl dep
    
    configure checks for sdl2 first, and unconditionally picks that
    if found, instead of libsdl. So as we are in 2018, just force
    libsdl2 for USE=sdl to guarantee that what is depended on is
    also picked.
    
    Update patchset to early November state for a number of wxGTK
    bug fixes found on upstream WX_3_0_BRANCH.
    
    Closes: https://bugs.gentoo.org/669414
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>
    Package-Manager: Portage-2.3.49, Repoman-2.3.11

 x11-libs/wxGTK/Manifest                          |   1 +
 x11-libs/wxGTK/files/wxGTK-3.0.5-collision.patch |  75 +++++++++
 x11-libs/wxGTK/wxGTK-3.0.4-r1.ebuild             | 140 +++++++++++++++++
 x11-libs/wxGTK/wxGTK-3.0.4-r301.ebuild           | 184 +++++++++++++++++++++++
 4 files changed, 400 insertions(+)