Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513578 - >=sys-devel/gcc-4.1[gcj]: Automagic dependency on ( media-libs/dssi media-sound/jack-audio-connection-kit )
Summary: >=sys-devel/gcc-4.1[gcj]: Automagic dependency on ( media-libs/dssi media-sou...
Status: RESOLVED DUPLICATE of bug 513576
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-17 12:53 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2015-06-02 07:50 UTC (History)
1 user (show)

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


Attachments
toolchain.eclass.patch (toolchain.eclass.patch,6.14 KB, patch)
2014-06-20 19:55 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2014-06-17 12:53:45 UTC
sys-devel/gcc[gcj] has automagic dependency on ( media-libs/dssi media-sound/jack-audio-connection-kit ).
If media-libs/dssi and media-sound/jack-audio-connection-kit are already installed, then installation of sys-devel/gcc[gcj] will install /usr/lib*/gcj-*/libgjsmdssi.{la,so}.


gcc-4.9.0/libjava/classpath/configure.ac:

dnl -----------------------------------------------------------
dnl DSSI code (enabled by default)
dnl -----------------------------------------------------------
AC_ARG_ENABLE([dssi],
              [AS_HELP_STRING(--disable-dssi,compile DSSI providers (enable by --enable-dssi) [default=yes])],
              [case "${enableval}" in
                yes) COMPILE_DSSI=yes ;;
                no) COMPILE_DSSI=no ;;
                *) COMPILE_DSSI=yes ;;
              esac],
              [COMPILE_DSSI=no
               AC_CHECK_HEADERS([dssi.h], [
                 AC_CHECK_HEADERS([jack/jack.h],COMPILE_DSSI=yes)])])
AM_CONDITIONAL(CREATE_DSSI_LIBRARIES, test "x${COMPILE_DSSI}" = xyes)


gcc-4.9.0/libjava/classpath/native/jni/Makefile.am:

if CREATE_DSSI_LIBRARIES
  DSSIDIR = midi-dssi
endif
...
SUBDIRS = classpath $(JNIDIRS) \
  $(ALSADIR) $(DSSIDIR) $(GTKDIR) $(CLASSPATH_QT_PEER_DIR) $(XMLJDIR) \
  $(CLASSPATH_GCONF_PEER_DIR) $(CLASSPATH_GSTREAMER_PEER_DIR) $(GMPDIR)


gcc-4.9.0/libjava/classpath/native/jni/midi-dssi/Makefile.am:

nativeexeclib_LTLIBRARIES = libgjsmdssi.la 

libgjsmdssi_la_SOURCES = gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.c \
                         gnu_javax_sound_midi_dssi_DSSISynthesizer.c \
                         dssi_data.h

libgjsmdssi_la_LIBADD = $(top_builddir)/native/jni/classpath/jcl.lo -ljack
libgjsmdssi_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version

AM_LDFLAGS = @CLASSPATH_MODULE@
AM_CPPFLAGS = @CLASSPATH_INCLUDES@ 
# No STRICT_WARNING_CFLAGS here as we use dlsym to load the address of 
# a function,and ISO C prohibits casting void pointers, like those returned
# by dlsym, to function pointers.
AM_CFLAGS = @WARNING_CFLAGS@ @ERROR_CFLAGS@ @EXTRA_CFLAGS@



Suggestion:
- Add "gcj-dssi" to IUSE.
- Add "gcj-dssi? ( gcj )" to REQUIRED_USE when EAPI >= 4.
- Add "gcj? ( gcj-dssi? ( media-libs/dssi media-sound/jack-audio-connection-kit ) )" to DEPEND.
- media-libs/dssi seems to be not needed at run time. If it is true, then
  "gcj? ( gcj-dssi? ( media-sound/jack-audio-connection-kit ) )" should be added to RDEPEND.
  (Otherwise the same string should be added to RDEPEND as string added to DEPEND.)
- Pass "$(use_enable gcj-dssi dssi)" to configure.
- Potential fallback dependency on app-emulation/emul-linux-x86-soundlibs. See bug #511832.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-06-20 19:55:27 UTC
Created attachment 379340 [details, diff]
toolchain.eclass.patch

Patch for bug #511832, bug #513576, bug #513578 and bug #513716.
Comment 2 SpanKY gentoo-dev 2015-05-26 14:30:15 UTC

*** This bug has been marked as a duplicate of bug 513576 ***