<?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>145941</bug_id>
          
          <creation_ts>2006-09-01 20:40 0000</creation_ts>
          <short_desc>portage_overlay leaves behind overlay directory in squashfs and PORTDIR_OVERLAY in make.conf</short_desc>
          <delta_ts>2007-02-06 22:53:50 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>2006-09-01 20:40:10 0000</bug_when>
            <thetext>I just booted up the x86 2006.1 LiveCD, and I&apos;ve got the overlay for the updated gentoo-sources in /root. On my local system, the overlay path was /root/catalyst/overlays/portage. This is the exact path (contents included) on the LiveCD. The PORTDIR_OVERLAY line is also in the LiveCD&apos;s /etc/make.conf.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2006-09-01 20:48:09 0000</bug_when>
            <thetext>In modules/generic_stage_target.py, it looks like the portage_overlay directory is copied over with full path into the chroot. PORTDIR_OVERLAY is also added directly to make.conf. At no point in this file is the PORTDIR_OVERLAY line removed from make.conf or the copied overlay removed from the chroot.

I recommend setting PORTDIR_OVERLAY in the env instead of in make.conf. Also, use a known temp dir for the overlay, so you can just remove the whole dir tree when done without fear of killing something important. rsync the overlay to /tmp/portage_overlay or some other known directory. Even if it&apos;s left around, it won&apos;t be so obvious.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-09-03 13:38:54 0000</bug_when>
            <thetext>Actually, I&apos;m trying to move away from doing things in the environment only.  Instead, we&apos;ll likely be copying the &quot;hosts&quot; idea and making a backup of make.conf, then making changes to make.conf, then restoring the backup when we&apos;re done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-09-13 03:56:40 0000</bug_when>
            <thetext>*** Bug 147430 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-11-22 08:43:28 0000</bug_when>
            <thetext>OK.  I lied.  The &quot;best&quot; solution that I can come up with here is to create a new function to remove the overlay from make.conf and the directory.  I still like the idea of putting it into a known location, though.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-01-09 14:53:07 0000</bug_when>
            <thetext>This should be fixed in subversion now...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-02-06 22:53:50 0000</bug_when>
            <thetext>Fixed in 2.0.2</thetext>
          </long_desc>
      
    </bug>

</bugzilla>