<?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>145285</bug_id>
          
          <creation_ts>2006-08-27 13:42 0000</creation_ts>
          <short_desc>app-portage/getdelta-0.7.2 doesn&apos;t work when userfetch feature is enabled</short_desc>
          <delta_ts>2006-09-09 06:59:51 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>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P5</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>andyreif@studcs.uni-sb.de</reporter>
          <assigned_to>nlissne@linux01.gwdg.de</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>andyreif@studcs.uni-sb.de</who>
            <bug_when>2006-08-27 13:42:05 0000</bug_when>
            <thetext>The userfetch feature causes portage to drop root privileges (and use portage user instead) to avoid being &quot;owned&quot; even if the fetch program is vulnerable.

1. The getdelta script currently writes its config files on first use.
   Thus the config cannot be written and fetch fails.
 Workaround: remove userfetch, let getdelta write its config files
             and add it again
 Possible solution: add config files creation to the ebuild.
2. Writing log fails:
   tee: /var/log/getdelta.log: Permission denied
 Possible solution:
   Let getdelta default to writing to a subdirectory which is
   writable by the portage user, so the log file e.g. becomes
   /var/log/[portage/]getdelta/getdelta.log
   Similar to elog directory in /var/log/portage the getdelta directory
   must be writable by portage user and should probably be created on emerge
   of getdelta.

Steps to reproduce:
1. Add userfetch to FEATURES variable in /etc/make.conf
2. Follow http://gentoo-wiki.com/HOWTO_Install_Deltup to install deltup.
3. Try to emerge something

Results:
mkdir: cannot create directory `/etc/deltup&apos;: Permission denied
grep: /etc/deltup/getdelta.rc: No such file or directory
/usr/bin/getdelta.sh: line 292: /etc/deltup/getdelta.rc: No such file or directory
Added new variable KDE_MIRROR to config file /etc/deltup/getdelta.rc

please check if it fits your needs
[...]</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-09-09 06:59:51 0000</bug_when>
            <thetext>thanks, I fixed this in portage with the new 0.7.4 version</thetext>
          </long_desc>
      
    </bug>

</bugzilla>