Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 151304

Summary: net-proxy/squid ebuild overwrites /etc/squid/errors
Product: Gentoo Linux Reporter: Micha&#322; Wiernowolski <mihalw>
Component: New packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Micha&#322; Wiernowolski 2006-10-14 02:45:34 UTC
Each time I rebuild squid the link /etc/squid/errors gets overwritten, because the src_install() section contains the following:
>  #simply switch this symlink to choose the desired language..
>  dosym /usr/lib/squid/errors/English /etc/squid/errors

Since this simlink is not managed by etc-update (as I understand it can't), I usually forget to switch it back.
Instead of resetting this symlink, it should be checked, and left if OK.

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc2 i686)
=================================================================
System uname: 2.6.18-rc2 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Thu, 12 Oct 2006 08:00:03 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -m32 -O2 -pipe -msse3 -fomit-frame-pointer -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -m32 -O2 -pipe -msse3 -fomit-frame-pointer -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl en"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa apache2 artworkextra asf atm audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr cli crypt ctype cups dba dlloader dri dvd dvdr elibc_glibc emboss encode ethereal exif expat fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gecko-sdk gif gimp gimpprint glut gmp gnome gtk gtk2 gtkhtml guile hddtemp idn imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java joystick jpeg kernel_linux lcms libg++ libwww linguas_en linguas_pl live logrotate mad memlimit mikmod mmap mmx mmxext mng mod motif mp3 mpeg ncurses nfs nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdflib perl png posix ppds pppd python qt quicktime readline real reflection rtc rtsp sdk sdl session simplexml skins slang soap sockets spell spl sse sse2 ssl stream symlink tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia vorbis win32codecs wxwindows x264 x86 xml xml2 xmms xorg xosd xsl xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 02:47:38 UTC

*** This bug has been marked as a duplicate of 148597 ***
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-10-14 05:40:04 UTC
this is not the same thing as bug 148597.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-10-14 05:41:33 UTC
I will try to find a solution to this issue.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-10-16 11:53:00 UTC
Fixed in 2.6.4-r2.
This version will remove /etc/squid/errors symlink from your system. You will still be able to select a different error directory than the default (/usr/share/squid/errors/English) through error_directory configuration directive.