I manage my configurations in /etc with SVN. This means that every directory gets a hidden sub-directory called ".svn" containing various files and directories. gcc-config sources all files in /etc/env.d/gcc *including sub-directories* with a name matching the pattern "${REAL_CHOST}-*". Unfortunately, SVN has files matching this pattern in .svn. One way to correct the problem is to limit the search to /etc/env.d/gcc *without sub-directories*. I'll attach a patch that implements this. Using gcc-config-1.3.10-r1. Reproducible: Always Steps to Reproduce: 1. Manage /etc/env.d/gcc with SVN 2. Switch profile with gcc-config Actual Results: gcc-config outputs the following: * Switching to i686-pc-linux-gnu-3.3.5 compiler... /usr/sbin/gcc-config: line 1: K: command not found /usr/sbin/gcc-config: line 2: fs:unix:access: command not found /usr/sbin/gcc-config: line 3: V: command not found /usr/sbin/gcc-config: line 4: 644: command not found (...) /usr/sbin/gcc-config: line 17: K: command not found /usr/sbin/gcc-config: line 18: fs:unix:user: command not found /usr/sbin/gcc-config: line 19: V: command not found /usr/sbin/gcc-config: line 20: root: command not found /usr/sbin/gcc-config: line 21: END: command not found [ ok ] So gcc-config actually succeeds, but the behaviour is not quite correct. Expected Results: * Switching to i686-pc-linux-gnu-3.3.5 compiler... [ ok ]
Created attachment 55019 [details, diff] Patch correcting the problem This is a patch against gcc-config-1.3.10-r1 that limits the search to /etc/env.d/gcc without looking in sub-directories.
fixed in cvs, thanks
Created attachment 55739 [details, diff] Patch that really corrects the problem The previous patch didn't work correctly. Also, the fix in CVS doesn't, either. This patch restricts the search to 1 level, i.e. the /etc/env.d/gcc directory. That should definitely do it.
Also, sorry for the bad first patch.
done