Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305035 - emerge -pv ignores PORTAGE_RO_DISTDIRS variable in make.conf
Summary: emerge -pv ignores PORTAGE_RO_DISTDIRS variable in make.conf
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 335925
  Show dependency tree
Reported: 2010-02-14 08:30 UTC by dE
Modified: 2010-09-04 08:17 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description dE 2010-02-14 08:30:48 UTC
In make.conf the variable PORTAGE_RO_DISTDIRS works but not when pretending.

I.e even though the respective sources corresponding to an ebuild are present in the directory specified by PORTAGE_RO_DISTDIRS, emerge -pv states they need to be downloaded.

Reproducible: Always

Steps to Reproduce:
1. Cut and paste some of the source files (corresponding to ebuilds y) from your default distdir and any another location x.

2.Add PORTAGE_RO_DISTDIRS="'x'" to make.conf

3. emerge -pv y; it states that the sources need to be redownloaded...but it has been already downloaded and placed in x.

4) Action emerge y does not download the distfiles that were specified in emerge -pv y. It uses the location x to get the distfiles from.

Expected Results:  
emerge -pv should show it does not need to download any disfiles related to y.

Portage 2.2_rc60 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-55-with-gentoo-1.12.13
Timestamp of tree: Sat, 30 Jan 2010 01:45:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_LICENSE="* -@EULA dlj-1.1 Broadcom"
CFLAGS="-march=athlon64 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
FEATURES="assume-digests distlocks fail-clean fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow X a52 aac acc acl acpi alib alsa amd64 asf bash-completion bcmath branding bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib crypt css cxx dbus dga djvu dri dts dv dvd dvdr encode exif fam ffmpeg fftw firefox flac fortran ftp gdbm gif gpm gsl gsm gstreamer gtk hal iconv ipv6 jpeg jpeg2k lame latex ldap libnotify libsamplerate lzo mad matroska matrox memlimit mikmod mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nls nptl nptlonly nsplugin oci8-instant-client offensive ogg openal openexr opengl openmp oss pam pcre pdf perl png ppds pppd python qt3support quicktime raw readline reflection samba sdl session sharedmem shorten slang smp speex spell spl sse sse2 ssl startup-notification svg symlink sysfs taglib tcpd theora thunar tiff truetype unicode vcd vorbis wavpack wmf x264 xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon" 
Comment 1 Vladimir Berezhnoy 2010-07-18 20:01:34 UTC
This issue still exists
Portage 2.2_rc67 (default/linux/x86/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-home2 i686)
Comment 2 dE 2010-07-19 04:54:28 UTC
This feature of portage works on the principle of Symlinks. Once you run portage as root, it makes links of the files in the RO directories to the DISTDIR, and then when you pretend, stuff works as expected.
Comment 4 Zac Medico gentoo-dev 2010-08-23 06:03:40 UTC
This is in 2.2_rc68, but I'll leave this bug open until it's in an unmasked version.
Comment 5 Zac Medico gentoo-dev 2010-09-04 08:17:24 UTC
This is fixed in 2.1.9.