Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57106 - `emerge <tbz2file>` fails
Summary: `emerge <tbz2file>` fails
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All All
: High normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155723 472746
  Show dependency tree
 
Reported: 2004-07-14 19:54 UTC by SpanKY
Modified: 2013-08-19 18:38 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 SpanKY gentoo-dev 2004-07-14 19:54:52 UTC
i'm not sure if this has been filed before and genone couldnt recall anything at the time sooooooooooooooo here it is:

if you download a binary package and try to emerge it without doing a whole lot of annoying footwork related to $PKGDIR, it'll fail

case in point:
wget ftp://blah/sandboxshell-0.1-r1.tbz2
emerge sandboxshell-0.1-r1.tbz2
Calculating dependencies ...done!
>>> emerge (1 of 1) app-shells/sandboxshell-0.1-r1 to /
!!! CATEGORY info missing from info chunk, aborting...

however, if i do this, it'll 'work':
mkdir All
mv sandboxshell-0.1-r1.tbz2
PKGDIR=`pwd` emerge -K sandboxshell

imo, that's just a huge PITA ... the tbz2 file contains all the information it needs in order to determine category and all that hokey, so why aint it working :)

test this with Portage 2.0.50-r8 and Portage 2.0.51_pre13 ; both yield same crappy result :x
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-08-04 20:13:21 UTC
Ran fixpackages lately?
Comment 2 SpanKY gentoo-dev 2004-08-04 21:30:40 UTC
i highly doubt that's the issue

this will happen if your PKGDIR is completely empty and if you generate a tbz2 pkg right then and there
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-12 21:26:38 UTC
Emerge by path is broken, do the binpkging properly.
Comment 4 SpanKY gentoo-dev 2005-08-13 00:35:35 UTC
then fix the emerge by path :P

it's not like you need any information from the path to the tbz2 ... all the
CATEGORY, PN, PV, etc... information is stored inside of the tarball
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-13 16:37:21 UTC
The hilarious part is this is also triggered if you delete PKGDIR in the middle 
of a long sequence of merging.  I was upgrading my Ultra 2 and I had previously 
removed my 36 gig /home drive, so I have no space for binpkgs and forgot to 
remove the FEATURE.

So I rm -rf'd /home/packages to make sure / didn't fill up.  Sure enough the 
next package died horribly with the same error.
Comment 6 Zac Medico gentoo-dev 2007-07-15 10:53:17 UTC
In order to support this a virtual repository could be generated to contain binary packages that are given on the command line.  This approach would allow the resolver to view the package as coming from a repo so that it doesn't have to treat it as a special case.