Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge of dev-java/oracle-jdk-bin-1.7.0.40 -tar file-Fixed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 657
Location: Stuart, Florida

PostPosted: Sun Oct 06, 2013 12:09 am    Post subject: Emerge of dev-java/oracle-jdk-bin-1.7.0.40 -tar file-Fixed Reply with quote

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
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 170
Location: AU

PostPosted: Sun Oct 06, 2013 2:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 657
Location: Stuart, Florida

PostPosted: Sun Oct 06, 2013 2:38 am    Post subject: Reply with quote

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
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 2789
Location: Gainesville, Florida

PostPosted: Thu Oct 17, 2013 2:39 pm    Post subject: Reply with quote

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- Gigabyte GIGABYTE GA-990FXA-UD3 AM3+ rev.-4.0
Amd FX 8320, 3.5 GHz, 16GB GSkill DDR3 1866mhz
Samsung SATA 1000GB, Radeon HD 6570 2GB DDR3
Gentoo ~x86, ~amd64, glibc-2.20-r1, gcc-4.9.2 kernel-3.19.0-gentoo (USE=experimental "native")
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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