Emerge of dev-java/icedtea-6.1.9.1 fails with the following: "... if ! test -d openjdk ; \ then \ mkdir openjdk ; \ /bin/tar xf openjdk-6-src-b20-21_jun_2010.tar.gz -C openjdk; \ chmod -R ug+w openjdk ; \ sh /var/tmp/portage/dev-java/icedtea-6.1.9.1/work/icedtea6-1.9.1/fsg.sh ; \ fi /bin/tar: test/Makefile: Cannot open: No such file or directory /bin/tar: test: Cannot utime: No such file or directory /bin/tar: test: Cannot change ownership to uid 10, gid 143: No such file or directory /bin/tar: test: Cannot change mode to rwxrwxr-x: No such file or directory /bin/tar: Exiting with failure status due to previous errors make: *** [stamps/extract-openjdk.stamp] Error 2" I will attach the complete build log. Reproducible: Always Steps to Reproduce: 1. emerge =dev-java/icedtea-6.1.9.1
Created attachment 252977 [details] Build log
Created attachment 252979 [details] emerge --info
The same problem here. Looks like a parallel build issue, will try with -j1 and report here later.
Created attachment 253065 [details] build.log
Created attachment 253067 [details] environment
Created attachment 253069 [details] emerge --info
(In reply to comment #3) > The same problem here. Looks like a parallel build issue, will try with -j1 and > report here later. No, it fails with -j1 with the same error.
Hmm, if ! test -d openjdk ; \ then \ mkdir openjdk ;\ /bin/tar xf openjdk-6-src-b20-21_jun_2010.tar.gz -C openjdk; \ chmod -R ug+w openjdk ; \ sh /var/tmp/portage/dev-java/icedtea-6.1.9.1/work/icedtea6-1.9.1/fsg.sh ; \ fi /bin/tar: test/Makefile: Cannot open: No such file or directory /bin/tar: test: Cannot utime: No such file or directory /bin/tar: test: Cannot stat: No such file or directory /bin/tar: Exiting with failure status due to previous errors 1) openjdk-6-src-b20-21_jun_2010.tar.gz is fully extracted by /bin/tar xf openjdk-6-src-b20-21_jun_2010.tar.gz without any problems. 2) I compared extracted tarball in the $S/openjdk and openjdk-6-src-b20-21_jun_2010.tar.gz with content extracted by hand using the command above. The only difference is absence of test directory and test/Makefile file. 3) If I run make from the top of the $S manually it works well. So my only guess is that environment setup during emerge somehow tampers with tar behaviour.
Created attachment 253121 [details, diff] icedtea-6.1.9.1-tar.patch Looks like tar is confused by test directory already present in the current work directory, despite -C option is specified. Don't ask me why, maybe some tar bug. Anyway the following patch helps.
Thanks Andrew, your patch works for me.
I guess it was due to app-arch/tar-1.24 and doesn't happen now? *** This bug has been marked as a duplicate of bug 342785 ***
Another possible reason is old sandbox version, if you use ~arch tar, you need ~arch sandbox. Bug 342735
*** This bug has been marked as a duplicate of bug 342735 ***
*** Bug 347137 has been marked as a duplicate of this bug. ***