Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402507 - dev-lang/java: pre-create /opt/icedtea-bin-7.2.0/jre/.systemPrefs/
Summary: dev-lang/java: pre-create /opt/icedtea-bin-7.2.0/jre/.systemPrefs/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 400565
Blocks:
  Show dependency tree
 
Reported: 2012-02-07 13:02 UTC by Martin Mokrejš
Modified: 2012-02-27 11:18 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š 2012-02-07 13:02:44 UTC
I am trying to make an ebuild for a java-based program using install4j installer. It is trying to create an empty directory in /opt/icedtea-bin-7.2.0/jre/.systemPrefs. This gets caught by portage as

ACCESS DENIED  mkdir:        /opt/icedtea-bin-7.2.0/jre/.systemPrefs

I am not the only one getting this kind of of error. While I do agree that the java_jdk is probably at fault I do not know how to stop doing this mkdir call. But, thanks to the bug https://bugzilla.redhat.com/show_bug.cgi?id=741821 when I just create the directory myself as root, I do not get these errors anymore. There is no additional writes to the root filesystem necessary, it is just about the missing "skeleton" directory.

Would you be willing to add this to all java ebuilds so the directory would be pre-created for everybody? (mkdir /opt/icedtea-bin-7.2.0/jre/.systemPrefs)

Note: I am trying like a crazy to get working ebuild for sci-biology/OBO-Edit2 (does not work). It is using same install4j thing like sci-biology/tablet-bin (works). Both in sci overlay.


# emerge --info
Portage 2.1.10.45 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.2-default x86_64)
=================================================================
System uname: Linux-3.2.2-default-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Sun, 05 Feb 2012 12:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.2-r1
sys-devel/binutils:       2.22.52.0.1
sys-devel/gcc:            4.2.4-r1, 4.3.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE skype-eula Nero-EULA-US"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/mnt/external/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en cs cz"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/external/usr/portage"
PORTDIR_OVERLAY="/home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 amr apache apache2 berkdb bzip2 cairo cgi cli cracklib crypt cups cxx dbus device-mapper dhcp dri emboss encode fax ffmpeg flac fontconfig fortran gd gdbm gimp gnome gpm hal hpijs iconv id3tag innodb ipv6 java jce jpeg jpg ladspa laptop lcms libnotify mad mmx modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ogg opengl openmp openssl pam parport pcre pdf perl php png policykit ppds pppd python qt3support qt4 readline scanner server session sndfile sqlite sse sse2 sse3 ssl suexec svg sysfs syslog tcpd threads tiff truetype udev unicode usb wavpack xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel vmware fbdev" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Mokrejš 2012-02-07 13:36:44 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4666397
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4701347

http://www.docjar.com/html/api/java/util/prefs/FileSystemPreferences.java.html


In the end, I can shutdown the errors with:

pkg_setup() {
    einfo "Fixing java access violations ..."
    # learned from bug #387227
    # opened a bug #402507 to get this .systemPrefs directory pre-created for everybody
    addpredict /opt/icedtea-bin-7.2.0/jre/.systemPrefs
    addpredict /usr/local/bin/OBO-Edit
}
Comment 2 Martin Mokrejš 2012-02-07 13:51:23 UTC
Hey, I do have these:

/opt/sun-jdk-1.6.0.22/jre/.systemPrefs
/opt/sun-jdk-1.5.0.19/jre/.systemPrefs
/opt/sun-jdk-1.6.0.29/jre/.systemPrefs
/opt/sun-jdk-1.6.0.30/jre/.systemPrefs

It looks this is actually just a fault of icedtea-bin-7.2.0. Other java VMs have this directory.
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-02-07 14:01:51 UTC
We create those directories for other VMs at install time for the same reason as in the Read Hat bug.
Comment 4 Ralph Sennhauser (RETIRED) gentoo-dev 2012-02-08 13:21:56 UTC
Fixed by creating the missing files for source builds. Those affected by this issue please reinstall icedtea. The fix will propagate to icedtea-bin on next version bump.
Comment 5 Ralph Sennhauser (RETIRED) gentoo-dev 2012-02-27 11:18:01 UTC
Part of the latest bumps, closing.