Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509602 - dev-java/jboss-logging-3.1.4 fails to compile against dev-java/slf4j-api-1.7.7
Summary: dev-java/jboss-logging-3.1.4 fails to compile against dev-java/slf4j-api-1.7.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 509952 (view as bug list)
Depends on:
Blocks: 538862
  Show dependency tree
 
Reported: 2014-05-05 06:53 UTC by Victor Orozco
Modified: 2015-05-17 21:38 UTC (History)
4 users (show)

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


Attachments
jboss-logging build log (build.log,2.99 KB, text/x-log)
2014-05-05 06:53 UTC, Victor Orozco
Details
jboss-logging-3.1.3-r1 build log (build.log,3.07 KB, text/x-log)
2014-05-09 07:50 UTC, Victor Orozco
Details
build.log (build.log,4.88 KB, text/plain)
2014-05-11 20:44 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Orozco 2014-05-05 06:53:18 UTC
Created attachment 376404 [details]
jboss-logging build log

Due some changes on slf4j-api-1.7.7 API, jboss-logging's compilation fails with the following error:

src/main/java/org/jboss/logging/Slf4jLoggerProvider.java:58: error: incompatible types
        return MDC.getCopyOfContextMap();
                                      ^
  required: Map<String,Object>
  found:    Map<String,String>

I've also tested to compile jboss-logging against slf4j-api-1.7.5-r1 and slf4j-api-1.7.6, both are ok.

emerge --info

Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.19, 3.13.11-gentoo x86_64)
=================================================================
System uname: Linux-3.13.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-2670QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:    16389452 total,  13312364 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 05 May 2014 06:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo init6 mpd steam-overlay java
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/bodega/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=5.0 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.lug.udel.edu/pub/gentoo/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/init6 /var/lib/layman/mpd /var/lib/layman/steam /var/lib/layman/java"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 aspell berkdb bluray branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr eds emboss encode evo exif fam fbcondecor ffmpeg firefox flac fontconfig fortran fuse gdbm gif git gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtkstyle iconv introspection ipv6 java jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session socialweb spell sse sse2 sse3 sse4_1 ssl startup-notification subversion svg systemd tcpd theora tiff truetype udev udisks unicode upower usb vorbis vpx wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher" LINGUAS="en pt pt_BR es" NETBEANS_MODULES="apisupport javafx cnd java profiler websvccommon enterprise webcommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_5" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-08 14:13:57 UTC
Thank you very much for reporting.

+  08 May 2014; Tom Wijsman <TomWij@gentoo.org>
+  +files/jboss-logging-3.1.3-r1-build.xml, +jboss-logging-3.1.3-r1.ebuild:
+  Revision bump, thorough review to use java-pkg-2 and fix up common mistakes;
+  could fix bug #509602, reported by Victor Orozo.

Works for me with slf4j-api-1.7.7. However, the ebuild had some issues; can you try again, it's been thoroughly reviewed and should better use the libraries.

Can you try the revision bump (3.1.3-r1) and let us know if it is fixed?
Comment 2 Victor Orozco 2014-05-09 07:50:27 UTC
Created attachment 376602 [details]
jboss-logging-3.1.3-r1 build log

I've tried to build the revision bump with oracle-jdk-bin-1.7 and oracle-jdk-bin-1.8, however the bug still remains. I'm attaching the new build.log.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-09 12:07:54 UTC
--- slf4j-1.7.6/slf4j-api/src/main/java/org/slf4j/MDC.java
+++ slf4j-1.7.7/slf4j-api/src/main/java/org/slf4j/MDC.java
@@ -180,7 +180,7 @@
    * @return A copy of the current thread's context map. May be null.
    * @since 1.5.1
    */
-  public static Map getCopyOfContextMap() {
+  public static Map<String, String> getCopyOfContextMap() {
     if (mdcAdapter == null) {
       throw new IllegalStateException("MDCAdapter cannot be null. See also "
           + NULL_MDCA_URL);

^ Found the cause; though, I'm not sure about the appropriate way to fix it.
Comment 4 Joel Berendzen 2014-05-09 14:30:26 UTC
I can confirm against jboss-logging-3.1.3-r1, slf4j-api-1.7.7, icedtea-7 and -6.
Comment 5 Joel Berendzen 2014-05-09 14:39:36 UTC
It appears the problem is with slf4j-api-1.7.7 as backing down to 1.7.6 solved the jboss-logging problem.
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-10 08:46:29 UTC
*** Bug 509952 has been marked as a duplicate of this bug. ***
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-10 08:50:48 UTC
Thank you very much for reporting this.

+  10 May 2014; Tom Wijsman <TomWij@gentoo.org> jboss-logging-3.1.3-r1.ebuild:
+  Temporarily restrict the version of the slf4j-api dependency to <1.7.7;
+  temporarily fixes bug #509602, reported by Victor Orozco, until a patch is
+  available.

Can you please keep this bug open until it is properly fixed?

A proper fix means to figure out whether to change slf4j-api or jboss-logging (respectively Map<K,V> -> Map versus Map -> Map<K,V>) and upstream that effort.
Comment 8 Juergen Rose 2014-05-11 19:30:05 UTC
Now, jboss-logging-3.1.4 fails to compile.
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-11 20:32:02 UTC
(In reply to Juergen Rose from comment #8)
> Now, jboss-logging-3.1.4 fails to compile.

Works for me. Why does it fail? Can you attach the complete build log?
Comment 10 Juergen Rose 2014-05-11 20:43:51 UTC
(In reply to Tom Wijsman (TomWij) from comment #9)
> (In reply to Juergen Rose from comment #8)
> > Now, jboss-logging-3.1.4 fails to compile.
> 
> Works for me. Why does it fail? Can you attach the complete build log?

package:
      [jar] Building jar: /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/target/jboss-logging-3.1.3.GA.jar

jar:

javadoc:
  [javadoc] Javadoc 1.4 doesn't support the -1.1 switch anymore
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] 1 error
  [javadoc] javadoc: error - Cannot find doclet class net.gleamynode.apiviz.APIviz

BUILD FAILED
/var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/build.xml:110: java.lang.IllegalStateException: basedir /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/target/site/apidocs does not exist.
        at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879)
        at org.apache.tools.ant.taskdefs.Javadoc.postProcessGeneratedJavadocs(Javadoc.java:2474)
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1790)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 4 seconds
 * ERROR: dev-java/jboss-logging-3.1.4::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3962:  Called java-pkg-2_src_compile
 *   environment, line 1859:  Called eant 'jar' 'javadoc' '-f' 'build.xml'



root@lynx2:/root(27)# emerge --info '=dev-java/jboss-logging-3.1.4::gentoo'
Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19, 3.14.3-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.14.3-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.2
KiB Mem:     3972248 total,    715060 free
KiB Swap:   12582908 total,  12001212 free
Timestamp of tree: Sun, 11 May 2014 02:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo sunrise science x-portage g-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_lynx2"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/science /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli cmake consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack laptop latex lcms ldap lensfun libffi libkms libnotify libsamplerate lirc live lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python python-bindings q32 qemu qhull qt3support qt4 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx vtk wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DVB_CARDS="usb-wt220u" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 11 Juergen Rose 2014-05-11 20:44:42 UTC
Created attachment 376732 [details]
build.log
Comment 12 Juergen Rose 2014-05-13 16:56:52 UTC
'emerge jboss-logging-3.1.4' fails too.
Comment 13 Juergen Rose 2014-05-14 10:21:37 UTC
'MAKEOPTS=-j1 USE=-doc emerge -v1 jboss-logging' works.
Comment 14 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-14 14:31:06 UTC
Indeed, temporarily base/package.use.mask'ing it until APIviz is in the tree:

# Tom Wijsman <TomWij@gentoo.org> (14 May 2014)
# Documentation generation needs APIviz which is not in the Portage tree yet.
# Tracked in Gentoo bug #509602.
dev-java/jboss-logging doc
Comment 15 Patrice Clement gentoo-dev 2015-04-20 14:59:32 UTC
It fails to compile because someday, some folk working on jboss-logging, in a far far away galaxy, decided to override the MDC.getCopyOfContextMap() static call.

https://github.com/qos-ch/slf4j/blob/master/slf4j-api/src/main/java/org/slf4j/MDC.java#L226

As you can see, originally, this call returns a Map <String, String>. 

https://github.com/jboss-logging/jboss-logging/blob/master/src/main/java/org/jboss/logging/Slf4jLoggerProvider.java#L57
https://github.com/jboss-logging/jboss-logging/blob/master/src/main/java/org/jboss/logging/LoggerProvider.java#L32

Yet, the JBoss folks decided it should return a Map <String, Object> instead. So obviously, the compiler tells you to bugger off at compile time. I am trying to knock a patch together .. I might as well send the jboss devs a PR.
Comment 16 Patrice Clement gentoo-dev 2015-05-17 21:34:20 UTC
>>> Preparing source in /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA ...
 * Applying jboss-logging-3.1.4-MDC.patch ...                                                                              [ ok ]
Searching for bundled jars:
None found.
Searching for bundled classes (no output if none found):
Search done.
>>> Source prepared.
...
>>> Compiling source in /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA ...
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/build.xml
compile:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/target/classes
    [javac] Compiling 33 source files to /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/target/classes
     [copy] Copying 1 file to /var/tmp/portage/dev-java/jboss-logging-3.1.4/work/jboss-logging-3.1.4.GA/target/classes
BUILD SUCCESSFUL
Total time: 4 seconds
>>> Source compiled.

\o/

Corrected for version 3.1.4.
Comment 17 Patrice Clement gentoo-dev 2015-05-17 21:38:51 UTC
+  17 May 2015; Patrice Clement <monsieurp@gentoo.org>
+  +files/jboss-logging-3.1.4-MDC.patch, +files/jboss-logging-3.1.4-build.xml,
+  jboss-logging-3.1.4.ebuild:
+  Patch for mending Map misuse in order to get the package to compile against
+  slf4j-api-1.7.7. Fix bug 509602.

There you go. We can stabilise it right away to carry forward netbeans stabilisation request.