running gcc-config-1.5 on fbsd gives me: /usr/bin/gcc-config: line 273: tac: command not found please check for the availability of tac before using it. with this version, LD_PATH gets broken up andm right after installing it, I get stuff like: Shared object "libstdc++.so.6" not found, required by "eix" i unkeyworded the offending versions until a fix reaches the tree
-ENOUSEFULINFO only people with access to bsd systems can debug this. the g/bsd shell someone gave me sometime ago appears to be dead.
(In reply to comment #1) > -ENOUSEFULINFO > > only people with access to bsd systems can debug this. the g/bsd shell someone > gave me sometime ago appears to be dead. tac isnt available on fbsd... google sent me to this page: http://www.gentoo.org/doc/en/articles/l-sed3.xml (code listing 1.5 and the phrase below it) therefore, the following patch will fix this problem: --- /usr/bin/gcc-config 2011-11-11 10:41:00.356924602 -0300 +++ gcc-config 2011-11-11 12:39:24.888229120 -0300 @@ -269,7 +269,7 @@ MY_LDPATH=$(${SED} -n \ -e '/^LDPATH=/{s|LDPATH=||;s|"||g;s|:|\n|g;p}' \ "${GCC_ENV_D}"/${REAL_CHOST}-* \ - "${GCC_ENV_D}"/${CC_COMP} | tac + "${GCC_ENV_D}"/${CC_COMP} | sed -e '1!G;h;$!d' ) # Pass all by default Sorry, I assumed 'tac: command not found' was enough info to infer that tac wasn't available :=)
ok, so let's focus on the core issue and not the symptoms. issue: `tac` not available. symptom: LDPATH is wrong. i'll take a look.
i think i misread your original summary as the focus was on LDPATH being wrong rather than tac missing. oh well. should be all set now in the tree; thanks for the report! Commit message: Add a fallback when tac is unavailable as suggested by Alexis Ballier http://sources.gentoo.org/sys-devel/gcc-config/files/gcc-config-1.5?r1=1.5&r2=1.6 http://sources.gentoo.org/sys-devel/gcc-config/gcc-config-1.5-r2.ebuild?rev=1.1