This is /var/cvsroot/gentoo-x86/sys-devel/gcc/files/fix_libtool_files.sh,v 1.16 2012/05/18 21:28:56 vapier Exp When I run fix_libtool_files.sh --justfixit, I get: * fix_libtool_files.sh: /usr/share/gcc-data/fixlafiles.awk does not exist! Within the source file, the path "/usr/share/gcc-data/fixlafiles.awk" is generated by expanding EPREFIX and AWKDIR. However, in EPREFIX is not set in the environment (should it be?) I use ~/gentoo/startprefix to change into the prefix environment, in which EPREFIX is not set -- not sure if it's a bug in my setup, or if EPREFIX is unset by design inside the startprefix environment. The problem is solved when I do the following: EPREFIX="${HOME}/gentoo" fix_libtool_files.sh --justfixit Reproducible: Always Steps to Reproduce: 1. ${HOME}/gentoo/startprefix 2. fix_libtool_files.sh --justfixit Actual Results: When I run fix_libtool_files.sh --justfixit, I get: * fix_libtool_files.sh: /usr/share/gcc-data/fixlafiles.awk does not exist! Expected Results: ~ $ EPREFIX="${HOME}/gentoo" fix_libtool_files.sh --justfixit * Scanning libtool files for hardcoded gcc library paths... * [1/4] Scanning /home/ehuang/gentoo/lib ... * [2/4] Scanning /home/ehuang/gentoo/usr/lib ... * [3/4] Scanning /home/ehuang/gentoo/usr/local/lib ... * [4/4] Scanning /home/ehuang/gentoo/usr/x86_64-pc-linux-gnu/lib ... emerge --info: !!! Your current profile is deprecated and not supported anymore. !!! Use eselect profile to update your profile. !!! Please upgrade to the following profile if possible: default/linux/amd64/13.0/no-multilib Portage 2.2.01.21688-prefix (prefix/linux/amd64, gcc-4.6.3, unavailable, 2.6.32.12-0.7-default x86_64) ================================================================= System uname: Linux-2.6.32.12-0.7-default-x86_64-Intel-R-_Xeon-R-_CPU_X7560_@_2.27GHz-with-SuSE-11-x86_64 KiB Mem: 529191900 total, 412303616 free KiB Swap: 0 total, 0 free Timestamp of tree: Sat, 16 Feb 2013 23:05:07 +0000 ld GNU ld (GNU Binutils) 2.23 app-shells/bash: 4.2_p39-r1::gentoo_prefix dev-lang/python: 2.7.3-r2::gentoo_prefix, 3.3.0::gentoo_prefix dev-util/pkgconfig: 0.28::gentoo_prefix sys-devel/autoconf: 2.69::gentoo_prefix sys-devel/automake: 1.12.4::gentoo_prefix sys-devel/binutils: 2.23::gentoo_prefix sys-devel/gcc: 4.2.4-r01.4::gentoo_prefix, 4.6.3::gentoo_prefix sys-devel/gcc-config: 1.8-r00.1::gentoo_prefix sys-devel/libtool: 2.4.2::gentoo_prefix sys-devel/make: 3.82-r4::gentoo_prefix sys-kernel/linux-headers: 3.7::gentoo_prefix (virtual/os-headers) Repositories: gentoo_prefix ACCEPT_KEYWORDS="~amd64-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -O2 -pipe" DISTDIR="/home/ehuang/gentoo/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1" MAKEOPTS="-j16" PKGDIR="/home/ehuang/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/home/ehuang/gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home/ehuang/gentoo/var/tmp" PORTDIR="/home/ehuang/gentoo/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 libffi mmx modules mudflap ncurses nls nptl openmp pcre prefix readline session sse sse2 ssl static-libs tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Nothing wrong with your setup, the script simply used EPREFIx, but it shouldn't. Fixed that now, thanks!