Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 408591

Summary: dev-db/oracle-instantclient-basic-11.2.0.3 fails to emerge: does not recognize fetched files in /usr/portage/distfiles
Product: Gentoo Linux Reporter: Carlos Konstanski <ckonstanski>
Component: [OLD] DevelopmentAssignee: Michael Haubenwallner (RETIRED) <haubi>
Status: RESOLVED FIXED    
Severity: normal CC: pyxlcy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: oracle-instantclient-basic-11.2.0.3.ebuild.patch

Description Carlos Konstanski 2012-03-17 14:14:18 UTC
I have fetched the two files necessary to emerge dev-db/oracle-instantclient-basic-11.2.0.3, but the ebuild does not recognize that they are sitting in /usr/portage/distfiles.

root@sphinkpad:~ # emerge -av --deep --newuse --update world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild    FU ~] dev-db/oracle-instantclient-basic-11.2.0.3 [11.2.0.2] USE="(multilib%*)" 57,132 kB

Total: 1 package (1 upgrade), Size of downloads: 57,132 kB
Fetch Restriction: 1 package (1 unsatisfied)

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-db/oracle-instantclient-basic-11.2.0.3
 * instantclient-basic-linux.x64-11.2.0.3.0.zip RMD160 SHA1 SHA256 size ;-) ...                                                                                                                 [ ok ]
 * instantclient-sdk-linux.x64-11.2.0.3.0.zip RMD160 SHA1 SHA256 size ;-) ...                                                                                                                   [ ok ]

!!! dev-db/oracle-instantclient-basic-11.2.0.3 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-db/oracle-instantclient-basic-11.2.0.3', Log file:
 *  '/var/tmp/portage/dev-db/oracle-instantclient-basic-11.2.0.3/temp/build.log'
 * Please go to
 *   http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
 *   and download
 * Instant Client for Linux x86
 *     Basic: instantclient-basic-linux-11.2.0.3.0.zip
 * Instant Client for Linux x86-64
 *     Basic: instantclient-basic-linux.x64-11.2.0.3.0.zip
 *     SDK:   instantclient-sdk-linux.x64-11.2.0.3.0.zip
 * After downloading, put them in:
 *     /usr/portage/distfiles/

>>> Failed to emerge dev-db/oracle-instantclient-basic-11.2.0.3, Log file:

>>>  '/var/tmp/portage/dev-db/oracle-instantclient-basic-11.2.0.3/temp/build.log'
root@sphinkpad:~ # ll /usr/portage/distfiles/instantclient-@(sdk|basic)-linux.x64-11.2.0.3.0.zip 
-rw-rw-r-- 1 portage portage 60331694 Mar  8 07:32 /usr/portage/distfiles/instantclient-basic-linux.x64-11.2.0.3.0.zip
-rw-rw-r-- 1 portage portage   641586 Mar  8 07:32 /usr/portage/distfiles/instantclient-sdk-linux.x64-11.2.0.3.0.zip


Reproducible: Always
Comment 1 Richard Grenville 2012-03-18 01:34:03 UTC
Since you have multilib USE flag turned on, you also need to fetch the x86 client file manually on amd64:
> * Instant Client for Linux x86
> *     Basic: instantclient-basic-linux-11.2.0.3.0.zip
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2012-03-19 06:45:05 UTC
(In reply to comment #1)
> Since you have multilib USE flag turned on, you also need to fetch the x86
> client file manually on amd64:
> > * Instant Client for Linux x86
> > *     Basic: instantclient-basic-linux-11.2.0.3.0.zip

Exactly. 
However, ideas for improving the pkg_fetch messages to be less confusing are welcome!
Comment 3 Carlos Konstanski 2012-03-19 12:59:18 UTC
Adding the x86 file worked. Thanks. I have to agree that the instructions were not clear. This is the first time that both files were required; there was no precedent for needing both files. The instructions could easily be interpreted to mean "pick the right file for your architecture". It wouldn't be hard to reword it to say "you need both files on your multilib system".
Comment 4 Richard Grenville 2012-03-19 13:26:49 UTC
Created attachment 305879 [details, diff]
oracle-instantclient-basic-11.2.0.3.ebuild.patch

Or maybe telling the user which file is missing, like this?

I don't know if PORTAGE_RO_DISTDIRS can be handled correctly with this patch.

(In reply to comment #2)
> However, ideas for improving the pkg_fetch messages to be less confusing are
> welcome!
Comment 5 Michael Haubenwallner (RETIRED) gentoo-dev 2012-09-24 18:51:06 UTC
(In reply to comment #4)
> Or maybe telling the user which file is missing, like this?

Done in similar way in oracle-instantclient-basic-11.2.0.3.