Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343921 - =dev-java/icedtea-6.1.9.1 fails in src_compile, wrong file location
Summary: =dev-java/icedtea-6.1.9.1 fails in src_compile, wrong file location
Status: RESOLVED DUPLICATE of bug 342735
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 347137 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-02 23:52 UTC by Ivan Trombley
Modified: 2010-12-10 18:06 UTC (History)
5 users (show)

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


Attachments
Build log (build.log,15.35 KB, text/plain)
2010-11-02 23:53 UTC, Ivan Trombley
Details
emerge --info (emerge.info,4.63 KB, text/plain)
2010-11-02 23:53 UTC, Ivan Trombley
Details
build.log (build.log,14.68 KB, text/plain)
2010-11-03 20:39 UTC, Andrew Savchenko
Details
environment (environment,167.80 KB, text/plain)
2010-11-03 20:40 UTC, Andrew Savchenko
Details
emerge --info (emerge-info,6.95 KB, text/plain)
2010-11-03 20:41 UTC, Andrew Savchenko
Details
icedtea-6.1.9.1-tar.patch (icedtea-6.1.9.1-tar.patch,394 bytes, patch)
2010-11-04 01:21 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Trombley 2010-11-02 23:52:51 UTC
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
Comment 1 Ivan Trombley 2010-11-02 23:53:23 UTC
Created attachment 252977 [details]
Build log
Comment 2 Ivan Trombley 2010-11-02 23:53:41 UTC
Created attachment 252979 [details]
emerge --info
Comment 3 Andrew Savchenko gentoo-dev 2010-11-03 20:38:54 UTC
The same problem here. Looks like a parallel build issue, will try with -j1 and report here later.
Comment 4 Andrew Savchenko gentoo-dev 2010-11-03 20:39:44 UTC
Created attachment 253065 [details]
build.log
Comment 5 Andrew Savchenko gentoo-dev 2010-11-03 20:40:51 UTC
Created attachment 253067 [details]
environment
Comment 6 Andrew Savchenko gentoo-dev 2010-11-03 20:41:06 UTC
Created attachment 253069 [details]
emerge --info
Comment 7 Andrew Savchenko gentoo-dev 2010-11-03 20:42:07 UTC
(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.
Comment 8 Andrew Savchenko gentoo-dev 2010-11-03 21:43:11 UTC
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.
Comment 9 Andrew Savchenko gentoo-dev 2010-11-04 01:21:01 UTC
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.
Comment 10 Ivan Trombley 2010-11-09 01:34:14 UTC
Thanks Andrew, your patch works for me.
Comment 11 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-11-14 00:51:36 UTC
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 ***
Comment 12 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-12-10 18:05:51 UTC
Another possible reason is old sandbox version, if you use ~arch tar, you need ~arch sandbox. Bug 342735
Comment 13 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-12-10 18:06:01 UTC

*** This bug has been marked as a duplicate of bug 342735 ***
Comment 14 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-12-10 18:06:36 UTC
*** Bug 347137 has been marked as a duplicate of this bug. ***