Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266855 - sys-apps/portage-2.1.6.7: env-update remove blacklisted entries in /etc/prelink.conf
Summary: sys-apps/portage-2.1.6.7: env-update remove blacklisted entries in /etc/preli...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 468524
  Show dependency tree
 
Reported: 2009-04-20 14:12 UTC by David Girault
Modified: 2013-05-19 04:45 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 David Girault 2009-04-20 14:12:16 UTC
When sys-devel/prelink is installed, the /etc/prelink.conf file contains a lot of file or directory that are blacklisted. 

After calling 'env-update', no more blacklisted entries exist in /etc/prelink.conf!

I think sys-devel/prelink should install a /etc/env.d/01prelink file that include the necessary PRELINK_PATH and PRELINK_PATH_MASK variables so env-update will create a good /etc/prelink.conf.

Regards,
David

Reproducible: Always

Steps to Reproduce:
1. Install sys-devel/prelink
2. Look at /etc/prelink.conf
3. Run env-update
4. Look at /etc/prelink.conf again



Expected Results:  
Original blacklist entries still present after env-update.

Since my /etc is now versionned, here is a diff output for /etc/prelink.conf file:

Index: /etc/prelink.conf
===================================================================
--- /etc/prelink.conf   (revision 5)
+++ /etc/prelink.conf   (working copy)
@@ -1,38 +1,15 @@
-# This config file contains a list of directories both with binaries
-# and libraries prelink should consider by default.
-# If a directory name is prefixed with `-l ', the directory hierarchy
-# will be walked as long as filesystem boundaries are not crossed.
-# If a directory name is prefixed with `-h ', symbolic links in a
-# directory hierarchy are followed.
-# Directories or files with `-b ' prefix will be blacklisted.
--b *.la
--b *.png
--b *.py
--b *.pl
--b *.pm
--b *.sh
--b *.xml
--b *.xslt
--b *.a
--b *.js
--b /lib/modules
--b /usr/lib{,32,64}/locale
--b /usr/lib{,32,64}/wine
--b /usr/lib{,32,64}/valgrind
--b /usr/X11R6/lib{,32,64}/X11/xfig
--b /usr/src
+# prelink.conf autogenerated by env-update; make all changes to
+# contents of /etc/env.d directory
 -l /bin
--l /usr/bin
 -l /sbin
+-l /usr/bin
 -l /usr/sbin
--l /usr/X11R6/bin
--l /usr/kerberos/bin
--l /usr/games
--l /usr/libexec
--l /var/ftp/bin
--l /lib{,32,64}
--l /usr/lib{,32,64}
--l /usr/X11R6/lib{,32,64}
--l /usr/kerberos/lib{,32,64}
--l /usr/X11R6/LessTif
--l /var/ftp/lib{,32,64}
+-l /lib
+-l /usr/lib
+-h /usr/local/lib/
+-h /usr/i686-pc-linux-gnu/lib/
+-h /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/
+-h /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/
+-h /opt/bin/
+-h /usr/i486-pc-linux-gnu/gcc-bin/4.1.2/
+-h /usr/i686-pc-linux-gnu/gcc-bin/4.1.2/


My emerge --info:
Portage 2.1.6.7 (default/linux/x86/2008.0/server, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_1.80GHz-with-glibc2.0
Timestamp of tree: Sun, 19 Apr 2009 04:45:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="acl bash-completion berkdb bzip2 cdr cgi cli cracklib crypt cups dri dvd dvdr emacs fam gdbm gpm iconv ipv6 jpeg ldap mailwrapper midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection sasl session snmp spl sqlite ssl sysfs tcpd truetype unicode x86 xml xorg zlib" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en fr" USERLAND="GNU" VIDEO_CARDS="fbdev nv r128"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS