Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25585 - quickpkg no longer finds/creates packages properly
Summary: quickpkg no longer finds/creates packages properly
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-30 12:22 UTC by Jon Chambers
Modified: 2011-10-30 22:21 UTC (History)
0 users

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 Jon Chambers 2003-07-30 12:22:24 UTC
I've been trying to use quickpkg to speed up the installation process on some of
my friends' machines until I can build a stage3 tarball. Quickpkg was working
fine last week, but now (I presume after a portage update) it's being very
picky. Before, I could specify the short name of a package (e.g. less), and
quickpkg would figure out what to do with it. Now when I try that, I get the
following:

Code:
# quickpkg less
cat: less/PF: No such file or directory
cp: cannot stat `less/*': No such file or directory
cut: less/CONTENTS: No such file or directory
rm: cannot remove `/tmp/portage//temp/CONTENTS': No such file or directory
rm: cannot remove `/tmp/portage//temp/*': No such file or directory


If I cd over to /var/db/pkg/ and attempt to quickpkg the package's long name
(sys-apps/less-381), it will package everything and create a .tbz2 in
/usr/portage/packages/All, but will no longer create a symlink under
/usr/portage/packages/sys-apps (or create the directory, for that matter). It
was doing this fine before.

When quickpkg starts work on a package, it throws these two lines, but continues
normally and seems to succeed (it creates a usable package under
/usr/portage/packages/All/):

Code:
rm: cannot remove `/tmp/portage/less-381/temp': No such file or directory
tar: Removing leading `/' from member names


Also, quickpkging creates a file called .tbz2 in /usr/portage/packages/All.

Code:
# ls -al .tbz2
-rw-r--r--    1 root     root           78 Jul 30 12:24 .tbz2
# du .tbz2
4       .tbz2
# du -h .tbz2
4.0K    .tbz2 

The resulting packages in /usr/portage/packages/All DO work, but the .tbz2 file
needs to be removed to surpress warnings, and I had to write a script to
generate the symlinks.

Reproducible: Always
Steps to Reproduce:
Attempt to use quickpkg to build binary packages already merged packages.  See
above.
Actual Results:  
See above.

Expected Results:  
See above.

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://adelie.polymtl.ca/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
alsa gdbm berkdb slang readline arts tetex aalib svga tcltk java mysql postgres
X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde motif
opengl cdr acpi dga dvd emacs ethereal fbcon flash gd gtk2 imap jikes lirc
moznocompose moznoirc moznomail mozsvg pcmcia plotutils pnp samba sse tiff
trusted usb wmf xinerama xml -3dnow -esd -gnome -ldap"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 SpanKY gentoo-dev 2003-07-30 16:16:05 UTC
upgrade your portage ... 
-r5 is the last version that uses this bunk quickpkg ... it has been completely 
redone in -r7 and the 49_pre's ... 
 
you probably upgraded to -r6 at some point which had the newer quickpkg (and 
support short names), but r6 was removed because of certain issues ... 
that means you now have r5 (which your `emerge info` shows) ... 
that is the original version that requires you to specifcy full path to 
/var/db/pkg/sys-apps/less-381 
 
if you dont want to upgrade your portage, you could always just do this: 
`ebuild /usr/portage/sys-apps/portage/portage-2.0.48-r7 clean unpack` and 
then grab the quickpkg script from the temp directory 
Comment 2 Jon Chambers 2003-07-30 19:40:35 UTC
Thanks for the solution; seems to be fine now.  Any chance that this could get added to the changelog?  The one in /usr/portage/sys-apps/portage is virtually empty, all recent ones in CVS tree (linked as http://www.gentoo.org/cgi-bin/viewcvs.cgi/ from www.gentoo.org) have no mention of quickpkg, and the link in the changelogs themselves (http://www.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-src/portage/ChangeLog?rev=HEAD&content-type=text/vnd.viewcvs-markup) is broken.