<?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>179025</bug_id>
          
          <creation_ts>2007-05-18 17:43 0000</creation_ts>
          <short_desc>app-portage/cfg-update breaks backward compatibility when using /etc/profile</short_desc>
          <delta_ts>2007-05-18 23:28:00 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>Applications</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dpblnt@gmail.com</reporter>
          <assigned_to>truedfx@gentoo.org</assigned_to>
          <cc>xentric@zeelandnet.nl</cc>

      

      
          <long_desc isprivate="0">
            <who>dpblnt@gmail.com</who>
            <bug_when>2007-05-18 17:43:13 0000</bug_when>
            <thetext>i don&apos;t have a .bashrc, thus i use cfg-update with ALIASFILE    = /etc/profile
after upgrading to cfg-update-1.8.2 i tried running cfg-update -u -a and got a complaint about:
cfg-update -u -a
&gt;&gt;&gt; cfg-update-1.8.2: Creating checksum index...
  /root/.bashrc not found!
  This file is important for properly setting up the root account.
  Created a pre-configured /root/.bashrc file for you...
  The bash shell will now load /etc/profile when you &quot;su&quot; to root...
  Now type: &quot;source /root/.bashrc&quot; to load it.


in my /etc/cfg-update.conf i still have ALIASFILE    = /etc/profile

Reproducible: Always

Steps to Reproduce:



Expected Results:  
to keep the old way working.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>truedfx@gentoo.org</who>
            <bug_when>2007-05-18 17:58:06 0000</bug_when>
            <thetext>Right, the checks for root&apos;s bashrc use ALIASFILE in one place, and are hardcoded to /root/.bashrc in another. Stephan, would you mind changing that to check ALIASFILE in both places?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xentric@zeelandnet.nl</who>
            <bug_when>2007-05-18 20:23:11 0000</bug_when>
            <thetext>1. The alias_file variable is only used to check if the user still has the alias enabled in the specified file. Because cfg-updat1.8.2 uses hooks, the alias can be disabled!

2. The previous version of cfg-update had an option --on to set up the alias. If the aliasfile was not found, the script would copy a preconfigured .bashrc file to /root. That file contained the alias, but also another important line. The line that sources /etc/profile when you log into your shell as root.

Now there is no need for the alias anymore, and the --on option has been removed. But the script still copies a pre-configured /root/.bashrc, if it&apos;s missing, to properly set up the root account. I never heard users complain about this...

I&apos;ll change the script so it uses the alias_file variable in the check for /root/.bashrc so if you set it to /etc/profile, it will not create a /root/.bashrc anymore.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xentric@zeelandnet.nl</who>
            <bug_when>2007-05-18 21:05:30 0000</bug_when>
            <thetext>uploaded the new 1.8.2-r1 tarball
with fixes for #179026 and #179025</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>truedfx@gentoo.org</who>
            <bug_when>2007-05-18 23:28:00 0000</bug_when>
            <thetext>And fixed, thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>