Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52106 - Wrong hard-coded Config Files
Summary: Wrong hard-coded Config Files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-26 09:28 UTC by andrusky
Modified: 2004-07-14 17:47 UTC (History)
3 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 andrusky 2004-05-26 09:28:49 UTC
Programs complains about not being about to find their hard coded configuration files due to the fact that they are being hard coded to "/var/tmp/portage/{...}".

For example: (a2ps)

a2ps: cannot open file `/var/tmp/portage/a2ps-4.13c/image//etc/a2ps/a2ps.cfg': No such file or directory
a2ps: cannot find file `level1.ppd': No such file or directory

This is happening with lots of packages: gimp, enscript, fontconfig; to name a few.
Comment 1 andrusky 2004-06-08 13:28:31 UTC
Tried reinstalling gentoo, and during the install everything is fine, but now whenever I try to install or upgrade packages they are again installed with the wrong hard-coded configuration files. I don't know why this was moved to printing since I did say it was happening to other packages as well (which have nothing to do with printing). The latest list of packages are:

* fontconfig
* gimp
* gift
* a2ps
* enscript
* tvtime

For example: when compiling gift-fasttrack I get the following error

libtool: link: warning: library `/usr/lib/libgift.la' was moved.
libtool: link: warning: library `/usr/lib/libgiftproto.la' was moved.
grep: /var/tmp/portage/gift-0.11.6/image//usr/lib/libgift.la: No such file or directory
/bin/sed: can't read /var/tmp/portage/gift-0.11.6/image//usr/lib/libgift.la: No such file or directory
libtool: link: `/var/tmp/portage/gift-0.11.6/image//usr/lib/libgift.la' is not a valid libtool archive

Of course the directory "/var/tmp/portage/gift-0.11.6/image" no longer exists.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-06-08 14:27:16 UTC
these are errors in the packages, and you only provided the exact error for a2ps which is a printing package. Re-assigning to bug-wranglers.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-06-08 15:33:14 UTC
Reopen with the output of emerge --info please.
Comment 4 andrusky 2004-06-09 07:49:21 UTC
As per request:

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-ck2)
=================================================================
System uname: 2.6.4-ck2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://gentoo.binarycompass.org http://mirrors.tds.net/gentoo http://gentoo.llarian.net/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm avi berkdb cdr crypt cups divx4linux doc dvd dvdr encode flac foomaticdb gdbm gif gkthtml gpm gtk gtk2 imagemagick imlib java jikes joystick jpeg junit libg++ libwww mad maildir mikmod mmx motif mpeg msn ncurses nls oggvorbis opengl oss pam pda pdflib perl png postgres python qt quicktime readline sdl slang spell sse ssl svga tcpd tetex theora tiff truetype usb video video_cards_radeon x86 xml xml2 xmms xv xvid zlib"

Comment 5 foser (RETIRED) gentoo-dev 2004-06-11 05:03:27 UTC
this is probably not reproducable and just happens randomly now and then.. this is one of the reasons we should start using DESTDIR instead of the usual econf stuff.
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-05 07:42:30 UTC
so what's the status of this bug?
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-05 08:55:47 UTC
I don't know... I freshly compiled a2ps-4.13c right now, and it seems not broken.
(I have MAKEOPTS=-j2 if it makes any difference) a2ps works flawlessly and 

king% strings /usr/bin/a2ps|grep a2ps.cfg
/etc/a2ps/a2ps.cfg
king% strings /usr/bin/a2ps|grep image   
king% 

so the path is not hardcoded. All the ebuild mentioned here use einstall in 
src_install() section, so changing it to "make DESTDIR=${D} install" might help?
Comment 8 Jon Hood (RETIRED) gentoo-dev 2004-07-05 08:59:55 UTC
net-p2p/gift requires the user to make the config file, as it cannot be known what plugins the user wants to enable. This is done by running "gift-setup" by the user you want to run the giFT daemon as. A more detailed howto is available at:
http://forums.gentoo.org/viewtopic.php?t=130787
and there is a howto on the third page of that forum for if you're running a central giFT server. Removing net-p2p from cc: list.
Comment 9 andrusky 2004-07-14 17:47:22 UTC
I finished rebuilding my system only a short while ago; all because of the compile bug with gcc on reiser4 file systems. I'm now using xfs and all the problems I was having have disappeared. The only thing different is the filesystem, the configurations and kernel options, etc. are as close to what I had before as I can remember. But, that said, I don't see how a filesystem can cause all the trouble I've experienced.