<?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>169363</bug_id>
          
          <creation_ts>2007-03-04 20:54 0000</creation_ts>
          <short_desc>catalyst-2.0.3_pre2 removes # from beginning of all lines in rc.conf</short_desc>
          <delta_ts>2007-03-20 17:17:24 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Hosted Projects</product>
          <component>Catalyst</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InSVN</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>agaffney@gentoo.org</reporter>
          <assigned_to>catalyst@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2007-03-04 20:54:16 0000</bug_when>
            <thetext>The sed statement that sets DISPLAYMANAGER in rc.conf in targets/support/livecdfs-update.sh is a bit off:

sed -i \
  -e &quot;s:DISPLAYMANAGER=\&quot;xdm\&quot;:DISPLAYMANAGER=\&quot;${clst_livecd_xdm}\&quot;:&quot; \
  -e &quot;:^DISPLAYMANAGER: s:^#::&quot; \
  /etc/rc.conf

The first regex in the 2nd part of the command is ignored since it&apos;s not wrapped in / /. This causes sed to remove # from the beginning of all lines in rc.conf.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2007-03-04 20:54:35 0000</bug_when>
            <thetext>Created an attachment (id=112115)
patch to fix the problem

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2007-03-04 20:56:47 0000</bug_when>
            <thetext>The patch merges the two parts into a single regex that takes care of an existing DISPLAYMANAGER line with or without a beginning #. It also handles the case of the default possibly changing from &quot;xdm&quot; in the future. I made the same modification to the sed statement for /etc/conf.d/xdm.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2007-03-04 21:09:47 0000</bug_when>
            <thetext>I just re-ran livecd-stage2 with my patch, and it appears that both rc.conf and conf.d/xdm were modified properly. Also, it appears that the current sed statement doesn&apos;t work with / /, either. Perhaps it&apos;s the space between the 2 parts of the second statement. Whatever... :P</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-03-06 17:41:17 0000</bug_when>
            <thetext>Fixed in SVN/2.0.3_pre3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-03-20 17:17:24 0000</bug_when>
            <thetext>This is fixed in 2.0.3 which should be hitting the tree shortly.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>112115</attachid>
            <date>2007-03-04 20:54 0000</date>
            <desc>patch to fix the problem</desc>
            <filename>catalyst.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHRhcmdldHMvc3VwcG9ydC9saXZlY2Rmcy11cGRhdGUuc2gKPT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0g
dGFyZ2V0cy9zdXBwb3J0L2xpdmVjZGZzLXVwZGF0ZS5zaAkocmV2aXNpb24gMTIxOCkKKysrIHRh
cmdldHMvc3VwcG9ydC9saXZlY2Rmcy11cGRhdGUuc2gJKHdvcmtpbmcgY29weSkKQEAgLTE0Mywx
MSArMTQzLDEwIEBACiBpZiBbIC1uICIke2Nsc3RfbGl2ZWNkX3hkbX0iIF0KIHRoZW4KIAlzZWQg
LWkgXAotCQktZSAiczpESVNQTEFZTUFOQUdFUj1cInhkbVwiOkRJU1BMQVlNQU5BR0VSPVwiJHtj
bHN0X2xpdmVjZF94ZG19XCI6IiBcCi0JCS1lICI6XkRJU1BMQVlNQU5BR0VSOiBzOl4jOjoiIFwK
KwkJLWUgInM6XiNcXD9ESVNQTEFZTUFOQUdFUj0uXCskOkRJU1BMQVlNQU5BR0VSPVwiJHtjbHN0
X2xpdmVjZF94ZG19XCI6IiBcCiAJCS9ldGMvcmMuY29uZgogCXNlZCAtaSBcCi0JCS1lICJzOkRJ
U1BMQVlNQU5BR0VSPVwieGRtXCI6RElTUExBWU1BTkFHRVI9XCIke2Nsc3RfbGl2ZWNkX3hkbX1c
IjoiIFwKKwkJLWUgInM6XiNcXD9ESVNQTEFZTUFOQUdFUj0uXCskOkRJU1BMQVlNQU5BR0VSPVwi
JHtjbHN0X2xpdmVjZF94ZG19XCI6IiBcCiAJCS9ldGMvY29uZi5kL3hkbQogZmkKIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>