<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>63973</bug_id>
          
          <creation_ts>2004-09-14 02:06 0000</creation_ts>
          <short_desc>gcc-config confused if profile in /etc/env.d/gcc/config doesn&apos;t exist</short_desc>
          <delta_ts>2004-10-02 05:25:39 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>65129</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>swtaylor@gentoo.org</reporter>
          <assigned_to>toolchain@gentoo.org</assigned_to>
          <cc>azarah@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>swtaylor@gentoo.org</who>
            <bug_when>2004-09-14 02:06:38 0000</bug_when>
            <thetext>While it appears the gcc 3.4.2 ebuild somehow misses updating the file 
/etc/env.d/gcc/config, this exposes a quirk of gcc-config saying no profile
exists, if this &apos;config&apos; file doesn&apos;t point to a profile that exists.


ThinkPad gcc # gcc-config --version
gcc-config-1.3.6
ThinkPad gcc # gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist!
ThinkPad gcc # cat config
CURRENT=i386-pc-linux-gnu-3.4.1
ThinkPad gcc # ls
config  i386-pc-linux-gnu-3.3.4  i386-pc-linux-gnu-3.4.2
ThinkPad gcc # vi config
&quot;config&quot; 1L, 32C written
ThinkPad gcc # cat config
CURRENT=i386-pc-linux-gnu-3.4.2
ThinkPad gcc # gcc-config -l
[1] i386-pc-linux-gnu-3.3.4
[2] i386-pc-linux-gnu-3.4.2
ThinkPad gcc #emerge -pv gcc-config
[ebuild   R   ] sys-devel/gcc-config-1.3.6-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-09-14 09:15:31 0000</bug_when>
            <thetext>Travvis 
 This is the same problem that I pointed out to you that happened to me.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-09-14 10:59:42 0000</bug_when>
            <thetext>the slot for 3.4.2 was broken. i&apos;ve fixed it... but still, this is also a bug in gcc-config.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-09-14 11:03:45 0000</bug_when>
            <thetext>How is this a bug in gcc-config?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swtaylor@gentoo.org</who>
            <bug_when>2004-09-14 11:18:50 0000</bug_when>
            <thetext>running &quot;gcc-config -l&quot; should list the available profiles, and allow you to set
a profile, even if {disk error, human error, backup process, etc} has a &quot;config&quot;
file that doesn&apos;t point to an existing profile. Might even be good for gcc-config
to automatically at least pick and set one, or the closest match or something if
the profile in &quot;config&quot; doesn&apos;t exist... rather than saying &quot;Profile does not
exist&quot;. Because as you can see, there ARE two profiles that DO exist. And at that
point in time, someone is probably trying to run gcc-config in hopes of fixing the
dreaded &quot;gcc can not compile anything&quot; issue (since it cant be found) and the last
thing someone needs to hear is that they have no gcc profile when they really do.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-09-14 12:45:29 0000</bug_when>
            <thetext>Created an attachment (id=39597)
gcc-config-1.3.6.diff

Scott please see if you can find any bugs in the behavior of this patch for
gcc-config.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-09-14 12:47:41 0000</bug_when>
            <thetext>uCpie busybox # gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist or invalid setting in current config i386-pc-linux-uclibc-3.4.24096u094376094576097u437096
[1] i386-pc-linux-uclibc-3.3.4
[2] i386-pc-linux-uclibc-3.4.2
uCpie busybox # gcc-config 2 
 * Switching to i386-pc-linux-uclibc-3.4.2 compiler...                                                                                                [ ok ]
 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-09-26 21:38:22 0000</bug_when>
            <thetext>...is this patch in cvs yet?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-09-28 15:02:25 0000</bug_when>
            <thetext>Nope. still waiting on some feedback. It&apos;s become a blocker for another bug. 
Surely somebody can test it other than me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>richard@tannery.co.uk</who>
            <bug_when>2004-09-30 00:15:28 0000</bug_when>
            <thetext>Your patch fixed the problems I was having with lots of programs failing to start after they reported that libstdc++.so.6 was missing including firefox, man etc. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-10-02 05:25:39 0000</bug_when>
            <thetext>fixed in cvs, give it some time to reach rsync.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>39597</attachid>
            <date>2004-09-14 12:45 0000</date>
            <desc>gcc-config-1.3.6.diff</desc>
            <filename>gcc-config-1.3.6.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGdjYy1jb25maWctMS4zLjYKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3Zhci9jdnNyb290
L2dlbnRvby14ODYvc3lzLWRldmVsL2djYy1jb25maWcvZmlsZXMvZ2NjLWNvbmZpZy0xLjMuNix2
CnJldHJpZXZpbmcgcmV2aXNpb24gMS40CmRpZmYgLXUgLWIgLUIgLXcgLXAgLXIxLjQgZ2NjLWNv
bmZpZy0xLjMuNgotLS0gZ2NjLWNvbmZpZy0xLjMuNgkxOSBBdWcgMjAwNCAxNToxNjoyNSAtMDAw
MAkxLjQKKysrIGdjYy1jb25maWctMS4zLjYJMTQgU2VwIDIwMDQgMTk6NDQ6MjQgLTAwMDAKQEAg
LTQ0NCw4ICs0NDQsOCBAQCBmaQogaWYgWyAhIC1kICIvdXNyL2xpYi9nY2MtbGliLyR7Q0NfQ09N
UCUtKn0vJHtDQ19DT01QIyMqLX0iIC1vIFwKICAgICAgISAtZiAiL2V0Yy9lbnYuZC9nY2MvJHtD
Q19DT01QfSIgXQogdGhlbgotCWVlcnJvciAiJDA6IFByb2ZpbGUgZG9lcyBub3QgZXhpc3QhIgot
CWV4aXQgMQorCWVlcnJvciAiJDA6IFByb2ZpbGUgZG9lcyBub3QgZXhpc3Qgb3IgaW52YWxpZCBz
ZXR0aW5nIGZvciAvZXRjL2Vudi5kL2djYy8ke0NDX0NPTVB9IgorCSNleGl0IDEKIGZpCiAKIGlm
IFsgIiR7Q0hFQ0tfQ0hPU1R9IiA9ICJ5ZXMiIF0K
</data>        

          </attachment>
    </bug>

</bugzilla>