Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490438 - sys-apps/portage: PORTAGE_RO_DISTDIRS is ignored
Summary: sys-apps/portage: PORTAGE_RO_DISTDIRS is ignored
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 377365
  Show dependency tree
 
Reported: 2013-11-04 21:11 UTC by Vladimir Varlamov
Modified: 2020-05-16 20:40 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 Vladimir Varlamov 2013-11-04 21:11:05 UTC
PORTAGE_RO_DISTDIRS ignored or don't work or work not as expected

Reproducible: Always

Steps to Reproduce:
1. set PORTAGE_RO_DISTDIRS="/usr/local/portage/distfiles" in make.conf
2. download required tarball to /usr/local/portage/distfiles
3. emerge some package from overlay

Actual Results:  
new tarball downloading from server and PORTAGE_RO_DISTDIRS ignored (if tarball downloaded to PORTDIR then all works)

Expected Results:  
if tarball download to PORTAGE_RO_DISTDIRS then all works

emerge --info
Portage 2.2.7 (default/linux/x86/13.0, gcc-4.3.4, glibc-2.11.1, 3.0.8-std240-i586 i686)
=================================================================
System uname: Linux-3.0.8-std240-i586-i686-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-gentoo-2.2
KiB Mem:     2061544 total,    421268 free
KiB Swap:    4016240 total,   3914584 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.2
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.3.4, 4.4.2
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.11.1
Repositories: gentoo local-bes-internal
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -mfpmath=387,sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/libexec/munin/plugins /usr/share/bash-completion /usr/share/gnupg/qualified.txt /var/bind /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -mfpmath=387,sse"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl acpi bash-completion bzip2 bzlib charconv cli cracklib crypt curl cxx depth32 dovecot-sasl dri exiscan-acl extensions extraengine fastcgi fontconfig gdbm gnutls gocr iconv jpeg jpeg2k lm_sensors logrotate lzw modules mudflap mysql ncurses nls nocardbus nosendmail nptl nptlonly ocrad openmp pam pam_timestamp pcre pg-intdatetime png pop3d readline reiserfs samba sasl session sockets spf ssl symlink sysvipc tesseract threads tiff truetype unicode userlocales utf8 vchroot winbind x86 xfs zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="*" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jaak Ristioja 2020-05-16 19:55:52 UTC
After more than 6 years PORTAGE_RO_DISTDIRS still doesn't seem to work with sys-apps/portage-2.3.99-r2.

Would it be difficult to fix this functionality in portage?
Comment 2 Mike Gilbert gentoo-dev 2020-05-16 20:23:20 UTC
It works fine for me.
Comment 3 Zac Medico gentoo-dev 2020-05-16 20:26:24 UTC
(In reply to Jaak Ristioja from comment #1)
> After more than 6 years PORTAGE_RO_DISTDIRS still doesn't seem to work with
> sys-apps/portage-2.3.99-r2.
> 
> Would it be difficult to fix this functionality in portage?

I works for me. This is the test case that I used just now:

> $ emerge -f --nodeps portage
> 
> >>> Fetching (1 of 1) sys-apps/portage-2.3.99-r2::gentoo
>  * portage-2.3.99.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                  [ ok ]
>  * portage-2.3.89-bug-718578.patch BLAKE2B SHA512 size ;-) ...   
> $ mkdir /tmp/distdir
> $ cp -a /var/portage/distfiles/portage-2.3.99.tar.bz2 /tmp/distdir
> $ rm /var/cache/distfiles/portage-2.3.99.tar.bz2
> $ PORTAGE_RO_DISTDIRS=/tmp/distdir emerge -f --nodeps portage
> 
> >>> Fetching (1 of 1) sys-apps/portage-2.3.99-r2::gentoo
>  * portage-2.3.99.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                  [ ok ]
>  * portage-2.3.89-bug-718578.patch BLAKE2B SHA512 size ;-) ...                                                                                                                         [ ok ]
> $ ls -l /var/cache/distfiles/portage-2.3.99.tar.bz2
> lrwxrwxrwx 1 zmedico portage 35 May 16 13:18 /var/cache/distfiles/portage-2.3.99.tar.bz2 -> /tmp/distdir/portage-2.3.99.tar.bz2
Comment 4 Jaak Ristioja 2020-05-16 20:36:26 UTC
(In reply to Jaak Ristioja from comment #1)
> After more than 6 years PORTAGE_RO_DISTDIRS still doesn't seem to work with
> sys-apps/portage-2.3.99-r2.

I take it back. It seems this was a misconfiguration issue on my side. After finding this old bug, I incorrectly attributed the fault to Portage.

I apologize for the trouble.