From: Jonathan Callen <jcallen@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Wrong instructions when installing Oracle JRE
Date: Tue, 10 Apr 2018 20:49:15 -0400 [thread overview]
Message-ID: <1b8a3a1e-62c2-a187-4ce3-9e5dc6d1dde2@gentoo.org> (raw)
In-Reply-To: <20180410202346.p5d3gdzpxp6t2hco@matica.foolinux.mooo.com>
[-- Attachment #1.1: Type: text/plain, Size: 1964 bytes --]
On 04/10/2018 04:23 PM, Ian Zimmerman wrote:
> When I do emerge dev-java/oracle-jre-bin, portage quoth:
>
> !!! dev-java/oracle-jre-bin-1.8.0.162-r1 has fetch restriction turned on.
> !!! This probably means that this ebuild's files must be downloaded
> !!! manually. See the comments in the ebuild for more information.
>
> * Fetch failed for 'dev-java/oracle-jre-bin-1.8.0.162-r1', Log file:
> * '/var/log/portage/dev-java:oracle-jre-bin-1.8.0.162-r1:20180410-201117.log'
> * Package: dev-java/oracle-jre-bin-1.8.0.162-r1
> * Repository: gentoo
> * Maintainer: java@gentoo.org
> * USE: abi_x86_64 alsa amd64 elibc_glibc fontconfig kernel_linux userland_GNU
> * FEATURES: fakeroot preserve-libs sandbox userpriv
> * Please download jre-8u162-linux-x64.tar.gz and move it to
> * /var/tmp/portage/dev-java/oracle-jre-bin-1.8.0.162-r1/distdir:
> *
> * http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
>
> But no matter how much I tried to please it (copying the file into a
> distdir/ subdirectory, or copying it _as a file_ called distdir) I
> couldn't get it to work.
>
> OTOH, just doing what first comes to mind (putting the file in
> /usr/portage/distfiles/) does work.
>
> what the foo?
>
The problem is that Portage now changes the value of the "${DISTDIR}"
environment variable inside an ebuild to a temporary directory it
creates and fills with symlinks to the real distfiles in your actual
${DISTDIR}. The message in the ebuild was written before this change
happened and directly references the "${DISTDIR}" environment variable,
assuming it to still have the value you specified in make.conf. As you
figured out, the correct action is to install the file in your real
${DISTDIR}, but the ebuild no longer has access to determine what the
name of that directory should be.
This probably should be reported as a bug.
--
Jonathan Callen
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-04-11 0:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-10 20:23 [gentoo-user] Wrong instructions when installing Oracle JRE Ian Zimmerman
2018-04-10 20:55 ` Dale
2018-04-10 22:43 ` Peter Humphrey
2018-04-11 0:49 ` Jonathan Callen [this message]
2018-04-11 3:22 ` J. Roeleveld
2018-04-11 4:08 ` Dale
2018-04-11 6:08 ` R0b0t1
2018-04-11 10:27 ` Dale
2018-04-11 10:44 ` Peter Humphrey
2018-04-11 11:02 ` Dale
2018-04-11 13:15 ` Michael Orlitzky
2018-04-11 13:25 ` Dale
2018-04-12 16:19 ` [gentoo-user] " Ian Zimmerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1b8a3a1e-62c2-a187-4ce3-9e5dc6d1dde2@gentoo.org \
--to=jcallen@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox