Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550136 - =dev-java/matrix-toolkits-java-0.9.12: java-utils-2.eclass: line 294: USE: readonly variable
Summary: =dev-java/matrix-toolkits-java-0.9.12: java-utils-2.eclass: line 294: USE: re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 08:37 UTC by Martin Mokrejš
Modified: 2015-05-27 08:31 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 Martin Mokrejš 2015-05-22 08:37:27 UTC
>>> Emerging (1 of 1) dev-java/matrix-toolkits-java-0.9.12::gentoo
 * mtj-0.9.12.zip SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                              [ ok ]
/usr/portage/eclass/java-utils-2.eclass: line 294: USE: readonly variable
/usr/portage/eclass/java-utils-2.eclass: line 294: USE: readonly variable
/usr/portage/eclass/java-utils-2.eclass: line 294: USE: readonly variable
 * Using: oracle-jdk-bin-1.8
>>> Unpacking source...
>>> Unpacking mtj-0.9.12.zip to /var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/work
>>> Source unpacked in /var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/work
>>> Preparing source in /var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/work/mtj-0.9.12 ...
 * Removing bundled jars...
removed ‘junit-3.8.2.jar’
 * java-pkg_ensure-dep: The ebuild is attempting to use junit, which is not declared with a SLOT in [RP]DEPEND and --build-only wasn't given.
removed ‘mtj-0.9.12.jar’
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/work/mtj-0.9.12 ...
/var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/temp/environment: line 470: USE: readonly variable
/var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/temp/environment: line 470: USE: readonly variable
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/work/mtj-0.9.12 ...
 * Disabling all optional ANT_TASKS
 * java-pkg_ensure-dep: The ebuild is attempting to use junit, which is not declared with a SLOT in [RP]DEPEND and --build-only wasn't given.
Buildfile: /var/tmp/portage/dev-java/matrix-toolkits-java-0.9.12/work/mtj-0.9.12/build.xml




# emerge --info
Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-4.8.4, glibc-2.20-r2, 3.15.6-aufs-r1 x86_64)
=================================================================
System uname: Linux-3.15.6-aufs-r1-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     4050712 total,   1940912 free
KiB Swap:   33554428 total,  33323080 free
Timestamp of repository gentoo: Wed, 20 May 2015 19:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.1) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.3::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

x-layman
    location: /var/lib/layman
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
USE="X a52 aac acpi alsa amd64 amr apache apache2 apulse avx berkdb bindist bluetooth boost branding bzip2 cairo cdda cdr cgi cli coin colord cracklib crypt cryptlib cups cxx dbus device-mapper dhcp directfb dri drm dts dvd dvdr eds emboss encode evo exif fam fax fbcon ffmpeg firefox flac fontconfig fortran gbm gd gdbm geoip gif gimp glamor glpk gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gudev hal hpijs hwdb iconv id3tag imaging innodb introspection java jce jpeg jpg keymap ladspa lapack laptop lcms ldap libnotify libsecret lm_sensors mad matroska mmx mmxext mng modules mp3 mp4 mpeg mpi mpich2 multilib mysql nautilus ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp pam pango parport pcre pdf perl php png ppds pppd python qt3support qt4 readline rendering resolvconf scanner sdl server session slideshow sndfile spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk tracker truetype udev unicode upower usb v4l v4l2 vim-syntax vnc vorbis wavpack wifi wxwidgets x11 x264 xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64 32" 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="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB cs cz" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Greg Turner 2015-05-23 00:02:21 UTC
Confirmed.

Bash ain't lyin'.  The offending line of code from the eclass is here:

depend-java-query() {
    # Used to have a which call here but it caused endless loops for some people
    # that had some weird bashrc voodoo for which.
    USE="${USE}" /usr/bin/depend-java-query "${@}"
}

Well, that's embarrassing.

If I change the above to:

depend-java-query() {
    # Used to have a which call here but it caused endless loops for some people
    # that had some weird bashrc voodoo for which.
    (
        export USE
        /usr/bin/depend-java-query "${@}"
    )
}

I believe the eclass author's intentions are more-or-less realized without any error message from bash.  Offhand, I can't think of any non-ridiculous way to achieve this without a sub-shell.
Comment 2 James Le Cuirot gentoo-dev 2015-05-27 08:31:52 UTC
I already fixed this before it was brought to my attention. The wrapper function isn't needed any more.