View previous topic :: View next topic |
Author |
Message |
Featherfoot Veteran
Joined: 28 Dec 2002 Posts: 1108 Location: Stuart, Florida
|
Posted: Sun Oct 06, 2013 12:09 am Post subject: Emerge of dev-java/oracle-jdk-bin-1.7.0.40 -tar file-Fixed |
|
|
I am trying to emerge dev-java/oracle-jdk-bin-1.7.0.40 and I am getting an error message that doesn't make sense. It says that the emerge of
The error message is that the jdk tar file does not look correct. I was able to open the tar file with ark and it looks correct. I'm wondering whether there is something wrong with the way it builds the directory name containing the tar file as the name printed out, "/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/distdir/jdk-7u40-linux-x64.tar.gz"., doesn't look right.
I have checked that the required files are located in /usr/portage/distfiles and that the tar file looks correct. I need some more ideas.
The error message is as follows:
bopper portage # emerge oracle-jdk-bin
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-java/oracle-jdk-bin-1.7.0.40
* jdk-7u40-linux-x64.tar.gz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* javafx_samples-2_2_40-linux.zip SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* jdk-7u40-linux-x64-demos.tar.gz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
>>> Unpacking source...
>>> Unpacking jdk-7u40-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/work
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/distdir/jdk-7u40-linux-x64.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
* ERROR: dev-java/oracle-jdk-bin-1.7.0.40::gentoo failed (unpack phase):
* failure unpacking jdk-7u40-linux-x64.tar.gz
*
* Call stack:
* ebuild.sh, line 93: Called src_unpack
* environment, line 2839: Called default
* phase-functions.sh, line 796: Called __eapi2_src_unpack
* phase-functions.sh, line 787: Called __eapi0_src_unpack
* phase-helpers.sh, line 585: Called unpack 'jdk-7u40-linux-x64.tar.gz' 'javafx_samples-2_2_40-linux.zip' 'jdk-7u40-linux-x64-demos.tar.gz'
* phase-helpers.sh, line 342: Called __unpack_tar 'gzip -d'
* phase-helpers.sh, line 315: Called __assert_sigpipe_ok 'failure unpacking jdk-7u40-linux-x64.tar.gz'
* isolated-functions.sh, line 39: Called die
* The specific snippet of code:
* [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
*
* If you need support, post the output of `emerge --info '=dev-java/oracle-jdk-bin-1.7.0.40::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-java/oracle-jdk-bin-1.7.0.40::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/work'
* S: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/work/jdk1.7.0_40'
>>> Failed to emerge dev-java/oracle-jdk-bin-1.7.0.40, Log file:
>>> '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/temp/build.log'
bopper portage # emerge oracle-jdk-bin
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-java/oracle-jdk-bin-1.7.0.40
* jdk-7u40-linux-x64.tar.gz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* javafx_samples-2_2_40-linux.zip SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* jdk-7u40-linux-x64-demos.tar.gz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
>>> Unpacking source...
>>> Unpacking jdk-7u40-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/work
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/distdir/jdk-7u40-linux-x64.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
* ERROR: dev-java/oracle-jdk-bin-1.7.0.40::gentoo failed (unpack phase):
* failure unpacking jdk-7u40-linux-x64.tar.gz
*
* Call stack:
* ebuild.sh, line 93: Called src_unpack
* environment, line 2839: Called default
* phase-functions.sh, line 796: Called __eapi2_src_unpack
* phase-functions.sh, line 787: Called __eapi0_src_unpack
* phase-helpers.sh, line 585: Called unpack 'jdk-7u40-linux-x64.tar.gz' 'javafx_samples-2_2_40-linux.zip' 'jdk-7u40-linux-x64-demos.tar.gz'
* phase-helpers.sh, line 342: Called __unpack_tar 'gzip -d'
* phase-helpers.sh, line 315: Called __assert_sigpipe_ok 'failure unpacking jdk-7u40-linux-x64.tar.gz'
* isolated-functions.sh, line 39: Called die
* The specific snippet of code:
* [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
*
* If you need support, post the output of `emerge --info '=dev-java/oracle-jdk-bin-1.7.0.40::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-java/oracle-jdk-bin-1.7.0.40::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/work'
* S: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/work/jdk1.7.0_40'
>>> Failed to emerge dev-java/oracle-jdk-bin-1.7.0.40, Log file:
Last edited by Featherfoot on Sun Oct 06, 2013 2:40 am; edited 1 time in total |
|
Back to top |
|
|
gienah Developer
Joined: 24 Nov 2010 Posts: 212 Location: AU
|
Posted: Sun Oct 06, 2013 2:23 am Post subject: |
|
|
Since the error is "permission denied" you could check the files has read permissions:
Code: | ls -al /usr/portage/distfiles/jdk-7u40-linux-x64.tar.gz
ls -al /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/distdir/jdk-7u40-linux-x64.tar.gz
|
The directory name is fine, it copies the file from /usr/portage/distfiles to
/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.40/distdir then tries to
extract it.
It might help to change the ownership of the file to portage and to make sure
it read permissions:
Code: | chown portage:portage /usr/portage/distfiles/jdk-7u40-linux-x64.tar.gz
chmod a+r /usr/portage/distfiles/jdk-7u40-linux-x64.tar.gz
|
|
|
Back to top |
|
|
Featherfoot Veteran
Joined: 28 Dec 2002 Posts: 1108 Location: Stuart, Florida
|
Posted: Sun Oct 06, 2013 2:38 am Post subject: |
|
|
You are right! Firefox now sets the permissions of downloads differently than it used to and that caused the problem.
Thanks for your help. |
|
Back to top |
|
|
wrc1944 Advocate
Joined: 15 Aug 2002 Posts: 3435 Location: Gainesville, Florida
|
Posted: Thu Oct 17, 2013 2:39 pm Post subject: |
|
|
Thanks much- I had the same thing with jre-7u45-linux-x64.tar.gz and even after doing chown and chgrp to root on the file I still had the error out on permissions.
After doing:
Code: | amd64 wrc # ls -al /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.45/distdir/jre-7u45-linux-x64.tar.gz
ls: cannot access /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.45/distdir/jre-7u45-linux-x64.tar.gz: No such file or directory
amd64 wrc #
amd64 wrc #
amd64 wrc # chown portage:portage /usr/portage/distfiles/jre-7u45-linux-x64.tar.gz
amd64 wrc # chmod a+r /usr/portage/distfiles/jre-7u45-linux-x64.tar.gz |
I could emerge oracle-jre-bin normally. Now to see if i can get youtube videos back in Firefox or Chromium, and the java thing was indeed the problem. _________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|