Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68947 - emerge ignores my .wgetrc
Summary: emerge ignores my .wgetrc
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 68951 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-26 01:51 UTC by Daniel Kerwin
Modified: 2004-11-02 05:43 UTC (History)
2 users (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 Daniel Kerwin 2004-10-26 01:51:22 UTC
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"
Comment 1 rob holland (RETIRED) gentoo-dev 2004-10-26 02:35:37 UTC
*** Bug 68951 has been marked as a duplicate of this bug. ***
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-10-26 05:29:03 UTC
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).
Comment 3 Daniel Kerwin 2004-10-26 05:33:21 UTC
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.
Comment 4 SpanKY gentoo-dev 2004-10-26 18:27:12 UTC
well, why dont you move said variables to /etc/make.conf and see if that fixes things ?
Comment 5 Scott McKenzie 2004-11-01 05:07:17 UTC
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)
Comment 6 SpanKY gentoo-dev 2004-11-01 19:44:32 UTC
my question still stands, why not use the variables in make.conf instead of ~/.wgetrc ?
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2004-11-02 05:37:24 UTC
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.
Comment 8 Daniel Kerwin 2004-11-02 05:43:06 UTC
Well, so i'll add my .wgetrc to /var/tmp/portage/homedir. This works. 
Thanks for your help.