When i try to fetch packages with emerge my personal wgetrc ($HOME/.wgetrc) is ignored. i tried "strace -trace=open,close -f emerge -u world" and saw in the output that only /etc/wget/wgetrc is opened for reading. If i execute exactly the same command as defined in /etc/make.conf it works and uses my .wgetrc. It also happens with "ebuild [EBUILD FILE] fetch". Reproducible: Always Steps to Reproduce: 1. try to fetch a package with emerge or ebuild 2. 3. Actual Results: No packages are fetched. Expected Results: The packages should get fetched. Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1 i686) ================================================================= System uname: 2.6.8.1 i686 Intel(R) Xeon(TM) CPU 3.06GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks fixpackages sandbox" GENTOO_MIRRORS="http://adelie.polymtl.ca/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups encode f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl python qt quicktime readline sdl slang snmp spell ssl svga tcpd truetype x86 xml2 xmms xprint xv zlib"
*** Bug 68951 has been marked as a duplicate of this bug. ***
Aren't all wgetrc options specifiable on the command line? If you really want to use a .wgetrc, try adding it to /var/tmp/portage/homedir (by default).
There are Informations i dont want to add to the command line like user and password for our proxies. The strange thing is that it worked a couple of days before. Something must have changed the last week. As i explained the wget command works perfectly on my shell but it doesn't through emerge. emerge must do something strange with wget.
well, why dont you move said variables to /etc/make.conf and see if that fixes things ?
Hope this isn't out of place here, but I'm finding that wget is ignoring my ~/.netrc config when emerging. This file contains my user name and password for a private portage mirror. If I fetch the file using wget manually then my user name and password are accepted. When using emerge to fetch the files wget tries to login with anonymous and my login is rejected. Same portage version: Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-mh1 i686)
my question still stands, why not use the variables in make.conf instead of ~/.wgetrc ?
There's no chance that portage will ever use a average joe user's ".wgetrc". You can specify whatever options you want in one of /etc/wgetrc, /etc/make.conf or ${PORTAGE_TMPDIR}/portage/homedir/.wgetrc as stated above. If you really really want it to use your own personal .wgetrc, you can also create a portage executable script that is suid and owned by your user that simply executes wget with whatever options and then use that as your FETCHCOMMAND.
Well, so i'll add my .wgetrc to /var/tmp/portage/homedir. This works. Thanks for your help.