Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211067 - repoman fails to commit Manifest from overlay under some conditions
Summary: repoman fails to commit Manifest from overlay under some conditions
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Portage team
URL: http://pastebin.ca/913590
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 216231
  Show dependency tree
 
Reported: 2008-02-22 05:14 UTC by Robin Johnson
Modified: 2010-09-23 02:04 UTC (History)
0 users

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


Attachments
fix path inconsistencies induced by symlinks (symlink_fix.patch,865 bytes, patch)
2008-02-22 06:50 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-22 05:14:15 UTC
I have discovered a case where repoman fails to commit the Manifest on the second pass. This seems to be related to being in a symlinked location of an overlay.

On the system where I reproduced this:
/usr/portage is an rsync copy of the tree.
PORTDIR_OVERLAY=/code/gentoo/gentoo-cvs/gentoo-x86 which is my CVS checkout.

If I'm under the $PORTDIR_OVERLAY directly, commits work fine.
However, I also have a symlink at /usr/local/portage pointing to the overlay.
If I commit from the symlinked path version, then repoman fails to commit the Manifest on the second pass.

Short version:
# Works
cd $PORTDIR_OVERLAY/$CAT/$PN ; ... ; repoman ci -m '....'
# Does not work
ln -s $PORTDIR_OVERLAY /elsewhere ; cd /elsewhere/$CAT/$PN ; ... ; repoman ci -m '...'


Portage 2.1.4.1 (default-linux/ppc/ppc64/2007.1/32bit-userland/desktop/970/pmac, gcc-4.2.2, glibc-2.7-r1, 2.6.24-rc6-prod-g6f0f5304 ppc64)
=================================================================
System uname: 2.6.24-rc6-prod-g6f0f5304 ppc64 PPC970MP, altivec supported
Timestamp of tree: Tue, 23 Oct 2007 17:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-pipe -O2 -mtune=970 -mcpu=970 -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -mtune=970 -mcpu=970 -mabi=altivec"
DISTDIR="/home/gentoo/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks lmirror metadata-transfer mirror parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_CA en_GB en_ZA en_US en af"
MAKEOPTS="-l 3.5 -j4"
PKGDIR="/home/gentoo/packages/buck-int-2007.1/ppc64-32ul/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/code/gentoo/gentoo-cvs/gentoo-x86 /code/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl adplug agg alsa altivec amr animgif ares arts audiofile avahi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdio cdparanoia cdr chardet cli cracklib crypt cscope cups curl daap dbus dc1394 dia diskio djbfft dri dts dv dvd dvdr eds emboss emf encode esd exif expat fam ffmpeg fftw firefox flac fortran gcc64 gd gdbm gif gimp gmp gnokii gnome gnutls gstreamer gtk hal ical iconv id3tag ieee1394 imagemagick imlib inkjar ipv6 isdnlog javacomm jbig jpeg jpeg2k kde latex lcms ldap libgcrypt libnotify libsamplerate logitech-mouse lzo mad midi mikmod mmap modplug mp3 mpeg mudflap multitarget musepack ncurses nls nptl nptlonly nsplugin offensive ogg openexr opengl openmp oss pam pch pcre pda pdf perl plotutils png postscript povray ppc pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection rpc scanner sdl session sid slp smp sms smux sndfile snmp socks5 solver speex spell spl ssl svg sysfs taglib tcpd tetex theora tidy tiff timidity truetype truetype-fonts tta twolame type1-fonts unicode urandom usb v4l v4l2 vcd vcdx vidix vim-syntax vorbis vorbis-psy wavpack wideband wifi wma wmf x264 xanim xcb xcomposite xfs xinerama xinetd xml xorg xosd xpm xscreensaver xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15 glk iowarrior ncurses null png ppm text usbhub usblcd X xosd" LINGUAS="en_CA en_GB en_ZA en_US en af" USERLAND="GNU" VIDEO_CARDS="none nv nouveau radeon avivo radeonhd"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2008-02-22 06:50:38 UTC
Created attachment 144290 [details, diff]
fix path inconsistencies induced by symlinks
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-22 19:38:47 UTC
zmedico: verified. works 100%.
Comment 3 Zac Medico gentoo-dev 2008-02-29 20:58:28 UTC
This is fixed in 2.2_pre3.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:03 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:47 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.