Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218358 - emerge runs src_unpack when binary package is installed
Summary: emerge runs src_unpack when binary package is installed
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-19 02:49 UTC by Triffid Hunter
Modified: 2008-06-10 01:40 UTC (History)
0 users

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


Attachments
unreal-tournament-goty-451.ebuild (unreal-tournament-goty-451.ebuild,4.73 KB, text/plain)
2008-06-10 01:33 UTC, Triffid Hunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Triffid Hunter 2008-04-19 02:49:41 UTC
my unreal tournament GOTY cds were damaged, so I quickpkged my install in case I needed it again. Recently I got a new hard drive and did a fresh gentoo install and now I'm trying to install the binary package I created, but it asks for the CDs... Why is src_unpack being run for a binary package? Makes no sense to me, it already has all the files it needs in the proper directory structure, just need to extract to image dir then copy as usual.

I expected emerge -K to create /var/tmp/portage/blah, unpack to image/, mark it as installed (touch .unpacked .compiled .installed) then ebuild qmerge.

Doing this manually gives me exactly what I wanted.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-19 04:19:24 UTC
The CDs are asked for because of legal issues. The tbz2s you made are simply that - tar.bz2 files - you don't really need portage to reuse them (although it might have helped).
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-22 20:38:53 UTC
Umm... what?
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-22 20:43:18 UTC
Are you sure src_unpack was called?  When did you make your binary package?  The cdrom_get_cds call was moved to src_unpack on 24 Oct 2006.  If your package is from before that date, then it would have had cdrom_get_cds in pkg_setup, which is run for every binary package.

Binary packages use their own internal ebuilds and not the ones in the tree.
Comment 4 Triffid Hunter 2008-04-22 23:25:56 UTC
Everything related to the package is dated March 23 2007.

I'll check the ebuild from within if you can point out how to extract it
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-22 23:45:20 UTC
I'll have to find out, as I don't actually know (without installing it).

If you have it installed, it'll be in /var/db/pkg/games-fps/unreal-tournament-goty-$version on your machine.

Wrt comment #2, that was in response to the "legal issues" not to you.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2008-06-09 21:18:21 UTC
no reply.  reopen with more info regarding the ebuild installed.
Comment 7 Triffid Hunter 2008-06-10 01:33:32 UTC
Created attachment 156149 [details]
unreal-tournament-goty-451.ebuild

looks like the cd stuff is in pkg_setup()
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2008-06-10 01:40:40 UTC
That ebuild is from 2004.  Rebuild your binary package with the latest ebuild.