Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149781 - quickpkg makes bad binary packages (problems with symlinks to directories)
Summary: quickpkg makes bad binary packages (problems with symlinks to directories)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2006-10-01 15:05 UTC by Marco Clocchiatti
Modified: 2007-06-20 23:32 UTC (History)
0 users

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


Attachments
quickpkg bug (quickpkg-bug.txt,49.89 KB, text/plain)
2006-10-01 15:11 UTC, Marco Clocchiatti
Details
make quickpkg exclude symlinks to directories (directory_symlinks.patch,633 bytes, patch)
2006-10-01 16:19 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Clocchiatti 2006-10-01 15:05:31 UTC
s939 ~ # emerge --info
Portage 2.1.1-r1 (!/usr/portage/profiles/default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-reiser4-r8 x86_64)
=================================================================
System uname: 2.6.17-reiser4-r8 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 14:00:07 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -ftracer"
DISTDIR="/mnt/tmp/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en_GB"
MAKEOPTS="-j3 -s"
PKGDIR="/mnt/tmp/packages64"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/tmp/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cairo caps cddb cdparanoia cdr chroot cli crypt cspell cups curl dba dbus dga directfb dlloader dmi dri dv dvd dvdr dvdread dvx4linux eds elibc_glibc emboss encode esd exif expat fam fbcon ffmpeg flac foomaticdb fortran fpx ftp gd gdbm gif gimp gmp gnome gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal ieee1394 imlib innodb input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_penmount isdnlog jack java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lcms ldap libcaca libg++ linguas_en_GB linguas_it live lzo mad mailwrapper md5sum memlimit mikmod mime mng mozilla mp3 mpeg mplayer mssql mysql mythtv nas ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openexr opengl oss pam pam_chroot pam_console pam_timestamp pcre pdf pdflib perl php png posix ppds pppd pwdb python qt qt3 qt4 quicktime readline reflection rtc samba scanner sdl seamonkey session slang speex spell spl ssl svg tcltk tcpd tetex tga theora threads tidy tiff tokenizer trace truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vmware vorbis wmf xcomposite xine xml xml2 xmlreader xmlwriter xmms xorg xpm xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marco Clocchiatti 2006-10-01 15:09:08 UTC
sometimes, quickpkg makes bad binary packages, which cause `emerge K` to failed.

It happens just for some packages, such as portage and gcc (4.1.1).

I will happend a sequence of these four commands:

# emerge portage
# emerge -K portage #lucky
# quickpkg portage
# emerge -K portage #unlucky
Comment 2 Marco Clocchiatti 2006-10-01 15:11:50 UTC
Created attachment 98560 [details]
quickpkg bug

# emerge portage
# emerge -K portage #lucky
# quickpkg portage
# emerge -K portage #unlucky
Comment 3 Zac Medico gentoo-dev 2006-10-01 15:20:51 UTC
It seems like something's wrong with your tar command.  Please post the ouput of the following commands:

tar --version
emerge -pv tar
Comment 4 Marco Clocchiatti 2006-10-01 15:37:36 UTC
s939 ~ # tar --version
tar (GNU tar) 1.15.1
s939 ~ # emerge -pv tar

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

Calculating dependencies... done!
[ebuild   R   ] app-arch/tar-1.15.1-r1  USE="bzip2 nls -build -static" 0 kB

Total size of downloads: 0 kB
Comment 5 Marco Clocchiatti 2006-10-01 15:38:19 UTC
I've just recompiled tar before posting.
Comment 6 Zac Medico gentoo-dev 2006-10-01 15:53:12 UTC
It works fine for me on x86 but produces similar errors on amd64 (both tar-1.15.91 in my case).  I'll fiddle with the options and see if I can make it behave.
Comment 7 Zac Medico gentoo-dev 2006-10-01 16:19:25 UTC
Created attachment 98565 [details, diff]
make quickpkg exclude symlinks to directories 

This is fixed in svn r4570.  This problem was a side effect from the fix for bug #146564.
Comment 8 Marco Clocchiatti 2006-10-02 07:37:10 UTC
thank you. tested. now it works.

:)
Comment 9 Zac Medico gentoo-dev 2006-10-02 20:34:48 UTC
This has been released in 2.1.2_pre2-r2.
Comment 10 Zac Medico gentoo-dev 2007-06-20 23:32:13 UTC
This is more properly fixed in the new python version of quickpkg (bug 164655).