Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653894 - dev-java/oracle-jre-bin-1.8.0.172 einfo should write "/usr/portage/distfiles"
Summary: dev-java/oracle-jre-bin-1.8.0.172 einfo should write "/usr/portage/distfiles"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-23 14:55 UTC by Jeff Hubbs
Modified: 2018-04-23 20:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Hubbs 2018-04-23 14:55:53 UTC
If you emerge -p dev-java/oracle-jre-bin you'll get something like 

 * Please download jre-8u172-linux-x64.tar.gz and move it to
 * /var/tmp/tmpjlo2s8yc/portage/dev-java/oracle-jre-bin-1.8.0.172/distdir

So you do the thing (starting with mkdir -p to make the whole path) and try emerge dev-java/oracle-jre-bin (BTW all this is with ">=dev-java/oracle-jre-bin-1.8.0.162-r1:1.8 Oracle-BCLA-JavaSE" in package.license) and instead of it working now you get

 * Fetch failed for 'dev-java/oracle-jre-bin-1.8.0.172', Log file:
 *  '/var/tmp/portage/dev-java/oracle-jre-bin-1.8.0.172/temp/build.log'
 * Please download jre-8u172-linux-x64.tar.gz and move it to
 * /var/tmp/portage/dev-java/oracle-jre-bin-1.8.0.172/distdir:

So you do THAT thing but you get the same ration when you try to emerge the package.

It turns out the fix is to copy the file to /usr/portage/distfiles.

Ebuild needs to either expect what it says to do or say what it expects.
Comment 1 James Le Cuirot gentoo-dev 2018-04-23 19:16:29 UTC
Yeah, that's a relatively new problem arising from a change in Portage. I did notice it last night when bumping it but it was way past my bedtime and a security bump is more important. I don't think there's a variable we can use now so in other ebuilds, I have simply replaced it with "your distfiles directory". Will do that here ASAP.
Comment 2 Larry the Git Cow gentoo-dev 2018-04-23 20:42:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2412c81c3b593ec453042a9d3471e677a774c08b

commit 2412c81c3b593ec453042a9d3471e677a774c08b
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-04-23 20:39:02 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-04-23 20:42:06 +0000

    dev-java/oracle-jre-bin: Replace broken ${DISTDIR} message
    
    Closes: https://bugs.gentoo.org/653894
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.162-r1.ebuild | 2 +-
 dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.172.ebuild    | 2 +-
 dev-java/oracle-jre-bin/oracle-jre-bin-9.0.4-r1.ebuild     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39c4d34ffa54b5701ddb8ff49e1858b89baa7c86

commit 39c4d34ffa54b5701ddb8ff49e1858b89baa7c86
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-04-23 20:38:03 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-04-23 20:42:04 +0000

    dev-java/oracle-jdk-bin: Replace broken ${DISTDIR} message
    
    Closes: https://bugs.gentoo.org/653894
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.162-r1.ebuild | 2 +-
 dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.172.ebuild    | 2 +-
 dev-java/oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37019f9f72392ad5ff343e190dfc6920332c5136

commit 37019f9f72392ad5ff343e190dfc6920332c5136
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-04-23 20:37:27 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-04-23 20:42:03 +0000

    dev-java/java-sdk-docs: Replace broken ${DISTDIR} message
    
    Closes: https://bugs.gentoo.org/653894
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 dev-java/java-sdk-docs/java-sdk-docs-1.8.0.172.ebuild | 2 +-
 dev-java/java-sdk-docs/java-sdk-docs-9.0.4.ebuild     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)