Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557116 - dev-java/java-config-2.2.0 error: [Errno 2] No such file or directory: '/tmp/portage/dev-java/java-config-2.2.0/image//_python3.4/usr/share/java-config-2/config/'
Summary: dev-java/java-config-2.2.0 error: [Errno 2] No such file or directory: '/tmp/...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-09 10:49 UTC by PusRob
Modified: 2020-07-22 05:45 UTC (History)
4 users (show)

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


Attachments
archive containing build.log, build environment file, outputs of emerge --info and emerge -pqv (LogFiles.tar.gz,32.71 KB, application/x-gzip)
2015-08-09 10:49 UTC, PusRob
Details
A new build.log (build.log,15.12 KB, text/plain)
2015-08-10 10:41 UTC, PusRob
Details
environment file (environment,127.84 KB, text/plain)
2015-08-10 10:42 UTC, PusRob
Details
output of emerge --info (emerge-info,5.91 KB, text/plain)
2015-08-10 10:44 UTC, PusRob
Details
output of emerge -pqv (emerge-pqv,272 bytes, text/plain)
2015-08-10 10:46 UTC, PusRob
Details
build.log (build.log,17.14 KB, text/plain)
2016-06-29 09:34 UTC, Martin Mokrejš
Details
java-config-2.2.0-r3.ebuild.patch (java-config-2.2.0-r3.ebuild.patch,663 bytes, patch)
2016-07-28 11:55 UTC, Martin Mokrejš
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PusRob 2015-08-09 10:49:44 UTC
Created attachment 408608 [details]
archive containing build.log, build environment file, outputs of emerge --info and emerge -pqv

As I try to update the system, some packages are marked for rebuild with python 3.4. The process stops pretty quickly with the following error:

running install_egg_info
Writing /tmp/portage/dev-java/java-config-2.2.0/image//_python3.4/usr/bin/lib64/python3.4/site-packages/java_config-2.2.0-py3.4.egg-info
error: [Errno 2] No such file or directory: '/tmp/portage/dev-java/java-config-2.2.0/image//_python3.4/usr/share/java-config-2/config/

Note the "//" in the path before _python3.4. That's a clearly wrong path, there shouldn't be a double slash. I guess some environment variable got mixed up somewhere, but I'm not sure where to look for it.

This bug prevents me from upgrading any package needing the new python3.4 flag, which is a huge problem.

I'm attaching the environment file, build.log and outputs of emerge --info and emerge -pqv
Comment 1 Mike Gilbert gentoo-dev 2015-08-09 15:24:02 UTC
(In reply to PusRob from comment #0)
> Created attachment 408608 [details]
> archive containing build.log, build environment file, outputs of emerge
> --info and emerge -pqv

In the future, please attach these separately. A single tarball is more difficult to work with quickly from a web browser.

> Note the "//" in the path before _python3.4. That's a clearly wrong path,
> there shouldn't be a double slash. I guess some environment variable got
> mixed up somewhere, but I'm not sure where to look for it.

The double-slash almost certainly has nothing to do with the issue you are experincing.
Comment 2 Mike Gilbert gentoo-dev 2015-08-09 15:27:02 UTC
Your build log is nothing but 15481 null bytes.

Please provide it as a plain-text attachment.
Comment 3 PusRob 2015-08-10 10:41:05 UTC
Created attachment 408716 [details]
A new build.log
Comment 4 PusRob 2015-08-10 10:42:45 UTC
Created attachment 408718 [details]
environment file
Comment 5 PusRob 2015-08-10 10:44:11 UTC
Created attachment 408720 [details]
output of emerge --info
Comment 6 PusRob 2015-08-10 10:46:13 UTC
Created attachment 408722 [details]
output of emerge -pqv
Comment 7 Mike Gilbert gentoo-dev 2015-08-10 14:36:01 UTC
I'm unable to reproduce the error.

It looks like setup.py defines a custom install function that calls os.mkdir on that path. Maybe in some circumstance the parent directory does not exist at that point.
Comment 8 PusRob 2015-08-10 16:17:12 UTC
So, could you give some ideas where and what to check for possible sources of the error? It's quite annoying not being able to update any python related packages...
Comment 9 Mike Gilbert gentoo-dev 2015-08-10 16:29:28 UTC
(In reply to PusRob from comment #8)
> So, could you give some ideas where and what to check for possible sources
> of the error? It's quite annoying not being able to update any python
> related packages...

I have only seen information on a possible bug for one package (java-config). If you are encountering issues with other packages, please seek support on mailing lists, IRC, or forums.

If you find another bug, feel free to report it separately.
Comment 10 Martin Mokrejš 2016-06-29 09:33:48 UTC
Seems I can CONFIRM this bug on a Gentoo:prefix install (via bootstrap_rap.sh):

creating /scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7/scratch/mmokrejs/gentoo_rap/etc/java-config-2/build
copying config/jdk.conf -> /scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7/scratch/mmokrejs/gentoo_rap/etc/java-config-2/build/
copying config/compilers.conf -> /scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7/scratch/mmokrejs/gentoo_rap/etc/java-config-2/build/
running install_egg_info
Writing /scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7/scratch/mmokrejs/gentoo_rap/usr/lib64/python2.7/site-packages/java_config-2.2.0-py2.7.egg-info
error: [Errno 2] No such file or directory: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7/usr/share/java-config-2/config/'
 * ERROR: dev-java/java-config-2.2.0-r3::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_install
 *   environment, line 2568:  Called distutils-r1_src_install
 *   environment, line  742:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install'
 *   environment, line  290:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 2090:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 1398:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 1396:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line  490:  Called distutils-r1_run_phase 'distutils-r1_python_install'
 *   environment, line  711:  Called distutils-r1_python_install
 *   environment, line  627:  Called esetup.py 'install' '--root=/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7'
 *   environment, line  964:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/java-config-2.2.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/java-config-2.2.0-r3::gentoo'`.
 * The complete build log is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/temp/environment'.
 * Working directory: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/work/java-config-2.2.0'
 * S: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/work/java-config-2.2.0'

>>> Failed to emerge dev-java/java-config-2.2.0-r3, Log file:


$ emerge -pqv '=dev-java/java-config-2.2.0-r3::gentoo'
[ebuild  N    ] dev-java/java-config-2.2.0-r3  USE="{-test}" PYTHON_TARGETS="python2_7 -python3_3 -python3_4 -python3_5" 

$ emerge --info '=dev-java/java-config-2.2.0-r3::gentoo'
Portage 2.3.0 (python 3.4.4-final-0, prefix/linux-standalone/amd64, gcc-5.4.0, unavailable, 2.6.32-573.12.1.el6.Bull.88.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.32-573.12.1.el6.Bull.88.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2670_0_@_2.60GHz-with-redhat-6.4-Santiago
KiB Mem:   131942764 total,  17350416 free
KiB Swap:   65536128 total,  64525608 free
Timestamp of repository gentoo: Wed, 29 Jun 2016 00:45:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26) 2.26.20160125
app-shells/bash:          4.3_p46::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::rap
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26::rap
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8_p20160608::rap
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::rap
Repositories:

gentoo
    location: /scratch/mmokrejs/gentoo_rap/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    eclass-overrides: rap

rap
    location: /scratch/mmokrejs/gentoo_rap/usr/portage-stage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/android.git
    masters: gentoo
    eclass-overrides: rap

science
    location: /scratch/mmokrejs/gentoo/var/lib/layman/science
    masters: gentoo
    priority: 0
    eclass-overrides: rap

haskell
    location: /scratch/mmokrejs/gentoo/var/lib/layman/haskell
    masters: gentoo
    priority: 1
    eclass-overrides: rap

x-layman
    location: /scratch/mmokrejs/gentoo_rap/var/lib/layman
    masters: gentoo
    priority: 2
    eclass-overrides: rap

ACCEPT_KEYWORDS="amd64 ~amd64 ~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 -O2 -pipe -march=native"
DISTDIR="/scratch/mmokrejs/gentoo_rap/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/scratch/mmokrejs/gentoo_rap/usr/portage/packages"
PORTAGE_CONFIGROOT="/scratch/mmokrejs/gentoo_rap/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/scratch/mmokrejs/gentoo_rap/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules ncurses nls nptl openmp pcre prefix readline seccomp session sse sse2 ssl tcpd unicode 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" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Martin Mokrejš 2016-06-29 09:34:22 UTC
Created attachment 439148 [details]
build.log
Comment 12 Steven Trogdon 2016-07-15 03:44:22 UTC
This does fail in Gentoo::prefix with profile [prefix/linux-standalone/amd64] installed via bootstrap_rap.sh. The prefix issue is fixed with ebuild and patch at https://bugs.gentoo.org/show_bug.cgi?id=510268 which is in the main Prefix tree

http://rsync.prefix.bitzolder.nl/dev-java/java-config/

I believe the java-config-2.2.0-r3.ebuild for profile [prefix/linux-standalone/amd64] is that from the main gentoo tree.
Comment 13 Martin Mokrejš 2016-07-28 11:55:24 UTC
Created attachment 441804 [details, diff]
java-config-2.2.0-r3.ebuild.patch

This patch works for me, although I think it just avoids the underlying issue (the value passed to --root is wrong):

>>> Install java-config-2.2.0-r3 into /scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/ category dev-java
 * python2_7: running distutils-r1_run_phase python_install
/scratch/mmokrejs/gentoo_rap/usr/bin/python2.7 setup.py install --root=/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-java/java-config-2.2.0-r3/image/_python2.7

BTW, Gentoo:RAP uses the main Gentoo portage tree, so call it gx86. ;-) Gentoo:Prefix uses it's own tree, but it is not related to this.
Comment 14 martin-kokos 2019-02-01 11:40:57 UTC
I have also encountered the problem

error: [Errno 2] No such file or directory: '/var/tmp/portage/portage/dev-java/java-config-2.2.0-r4/image/_python3.6/usr/share/java-config-2/config/'
Comment 15 Francois Chenier 2019-04-05 03:20:34 UTC
Still not fixed because (see patch) os.mkdir() can't create multiple directories in one single function call. For me, to compile, I had to change

os.mkdir(self.root + eprefix + '/usr/share/java-config-2/config/')

for 

os.mkdir(self.root + eprefix + '/usr/share/')
os.mkdir(self.root + eprefix + '/usr/share/java-config-2/')
os.mkdir(self.root + eprefix + '/usr/share/java-config-2/config/')
Comment 16 Benda Xu gentoo-dev 2020-05-13 04:04:27 UTC
Does this bug persist with dev-java/java-config-2.2.0-r4 ? I don't seem to reproduce it.
Comment 17 Patrice Clement gentoo-dev 2020-07-22 05:45:19 UTC
Please try again with java-config-2.3.1 and above and report back. Thanks.