Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482192 - dev-lang/scala-2.10.2 - [artifact:dependencies] [WARNING] Unable to get resource 'biz.aQute:bnd:jar:1.50.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: Network is unreachable
Summary: dev-lang/scala-2.10.2 - [artifact:dependencies] [WARNING] Unable to get resou...
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:
Depends on:
Blocks: 482260
  Show dependency tree
 
Reported: 2013-08-23 09:26 UTC by Christian Strahl
Modified: 2013-08-31 09:19 UTC (History)
0 users

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


Attachments
build.log (build.log,7.17 KB, text/plain)
2013-08-23 09:28 UTC, Christian Strahl
Details
Scala 2.10.2 build log (scala-2.10.2-build.log,6.53 KB, text/plain)
2013-08-25 21:10 UTC, Sumit Khanna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Strahl 2013-08-23 09:26:50 UTC
When i try to emerge scala-2.10.2, it fails due to missing artifact (see build log).


Reproducible: Always




# emerge --info
Portage 2.2.1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo-0.1-desktop x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-0.1-desktop-x86_64-Intel-R-_Xeon-R-_CPU_W3670_@_3.20GHz-with-gentoo-2.2
KiB Mem:    12324904 total,   1300976 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 23 Aug 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local-repo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer 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://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
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="/usr/local/portage"
USE="3dnow 3dnowext 64bit 7zip X a52 aac acl acpi alsa amd64 apache2 apm apng applet aqua_theme asf async automount avahi bash-completion berkdb bonobo branding bzip2 c++ cairo calendar cdda cddb cdio cdr cdrom cgi cli colord consolekit cracklib crypt css ctype cups custom-optimization cvs cvsgraph cxx dbus dhcp directfb divx divx4linux dpms dri dts dvb dvbplayer dvd dvdr eds emboss emerald emul-linux-x86 encode evo exif ext-png fam fat fbcon fbcondecor fbsplash ffmpeg firefox flac flash fortran fpx ftp g3dvl gaim gdbm gecko gedit gif gimp gimpprint ginac git glade glitz gnome gnome-keyring gnome-online-accounts gnome-print gnomecanvas gnomedb gnutls gpm gps graphviz grub gs gsl gstreamer gtk gtk3 gtkhtml gzip h323 hddtemp hfs icons iconv icq id3 ieee1394 imap inkjar introspection ipsec ipv6 java jfs jpeg jpeg2k kvm lame lcms ldap libnotify libsecret libvisual live lm_sensors logitech-mouse mad math matroska ming mmx mmxext mng mod modules moonlight mouse mozbranding mozilla moznopango mp2 mp3 mp4 mp4live mpd-mad mpe mpeg mpeg2 mpeg4 mplayer mplayer-bin mudflap multilib musepack mysql nautilus ncurses net nfs nfsidmap nfsv4 nfsv41 nls no-seamonkey nptl nsplugin ntfs nvidia ogg opencl opengl openmp opus pam pango pcap pcapnav pcre pdf plotutils png policykit postscript ppds print ps pulseaudio python qt3support qt4 rar readline real samba sblive scanner sdl sensord session sftp simplexml skins slang smp socialweb spell sql sqlite sse sse-filters sse2 ssl startup-notification stream svg svgz tcpd themes theora thesaurus threads thunderbird tidy tiff totem transcode truetype tv_check type1 udev udisks unicode upower usb userlocales utf8 vcd vdpau vdr vfat vim vim-syntax vorbis wav webdav wifi winbind wireshark wma wmf wxwidgets x264 xcb xfs xine xinerama xml xmldoclet xmlreader xmlwriter xpm xprint xscreensaver xsettings xsl xslt xulrunner xv xvid zeroconf zip 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Christian Strahl 2013-08-23 09:28:06 UTC
Created attachment 356732 [details]
build.log
Comment 2 Mike Limansky 2013-08-25 17:29:03 UTC
Same problem here. I was able to emerge scala only using:
$ FEATURES="-sandbox" emerge scala.
Comment 3 Sumit Khanna 2013-08-25 21:10:14 UTC
I get a similar error:

boot:
     [echo] Updating bootstrap libs.  (To do this by hand, run ./pull-binary-libs.sh)

init:
 * ACCESS DENIED:  mkdir:        /root/.m2
 * ACCESS DENIED:  mkdir:        /root/.m2
 * ACCESS DENIED:  mkdir:        /root/.m2
 * ACCESS DENIED:  mkdir:        /root/.m2

BUILD FAILED
/var/tmp/portage/dev-lang/scala-2.10.2/work/scala-2.10.2/build.xml:25: The following error occurred while executing this line:
/var/tmp/portage/dev-lang/scala-2.10.2/work/scala-2.10.2/build.xml:58: The following error occurred while executing this line:
/var/tmp/portage/dev-lang/scala-2.10.2/work/scala-2.10.2/build.xml:165: Directory /root/.m2/repository creation was not successful for an unknown reason


Looks like it's trying to pull down the maven dependencies into root's home directory and violating the sandbox.
Comment 4 Sumit Khanna 2013-08-25 21:10:59 UTC
Created attachment 357006 [details]
Scala 2.10.2 build log
Comment 5 Sumit Khanna 2013-08-25 21:13:32 UTC
Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-x86_64-Intel-R-_Core-TM-_i7-2760QM_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8174436 total,   3560252 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 25 Aug 2013 14:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.1, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo penguindreams-org
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=nocona"
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="-O3 -pipe -march=nocona"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 audiofile avahi berkdb bluetooth browserplugin bzip2 cairo cdinstall cdparanoia cdr cleartype cli corefonts cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread emacs emul-linux-x86 exif fam ffmpeg firefox flac fortran ftp gdbm gif gnome gpm gstreamer gtk2 gtkhtml gudev hal hwdb iconv ipv6 java jpeg ldap libcaca log4j mad matroska mmx modules mono mp3 mp4 mpd mpeg msn mudflap multilib mysql ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl openmp pam pcre pdf png pulseaudio quicktime readline real rtc samba sdl seamonkey session spell sse sse2 ssl svg tcpd theora tiff tracker truetype type1 unicode usb vcd vorbis win32codecs wmf xinerama xmms xscreensaver xvid yahoo 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir uusertrack 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" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint intel vesa" 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, USE_PYTHON
Comment 6 Mark Wright gentoo-dev 2013-08-27 03:15:50 UTC
I thought I listed all the jars in SRC_URI so it would not fetch them.  I did not notice it was fetching more jar(s).

I think what needs to be done is to:
- list the additional jar(s) that it is trying to fetch in SRC_URI
- in java_prepare, copy the jar(s) to which ever directory it is looking in for it(them).
Comment 7 Mark Wright gentoo-dev 2013-08-27 03:33:17 UTC
I learn from the related bug 482260 that its downloading lots of files (which is a Gentoo QA issue, sorry I did not notice it was doing this) which are placed in /var/tmp/portage/.m2/repository

I wonder if I tar'd up that directory and placed the tarball in the SRC_URI, unpack it somewhere in ${WORKDIR}, then change this line:

export JAVA_OPTS="$JAVA_OPTS -Duser.home=${T}"

to something like:

export JAVA_OPTS="$JAVA_OPTS -Duser.home=${WORKDIR}/repository"

if that might work.

The scala ebuild is bootstraping a compiler, so it does need to start with some binaries.
Comment 8 Mark Wright gentoo-dev 2013-08-30 14:02:28 UTC
I patched the build.xml and tweaked the ebuild, and committed my changes to portage:

Fix: bug 482192 - thanks to Christian Strahl, Mike Limansky and Sumit Khanna for reporting; bug 482260 - thanks to Christoph Lange for reporting; bug 482286
Comment 9 Mark Wright gentoo-dev 2013-08-31 09:19:20 UTC
It is fixed in my tests.  I did an emerge with no network to test it.