<?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>237667</bug_id>
          
          <creation_ts>2008-09-14 23:05 0000</creation_ts>
          <short_desc>epatch should skip -p0 for patchs with absolute paths in them - fix made multiple patches fail</short_desc>
          <delta_ts>2008-12-07 18:26: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>Eclasses and Profiles</component>
          <version>2008.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>238346</blocked>
    
    <blocked>238685</blocked>
    
    <blocked>238713</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>art-gt@broomstick.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>
    
    <cc>java@gentoo.org</cc>
    
    <cc>jer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>art-gt@broomstick.com</who>
            <bug_when>2008-09-14 23:05:29 0000</bug_when>
            <thetext>The patch 42_all_012_check_ldrunpath_length.patch for sys-devel/binutils-2.18-r3 (and probably some other versions) references a user home directory on lines 27 and 28:

@DPATCH@
diff -urNad /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em binutils-2.15/ld/emultempl/elf32.em
--- /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em2004-05-21 23:12:58.000000000 +0100
+++ binutils-2.15/ld/emultempl/elf32.em	2004-05-21 23:12:59.000000000 +0100

On systems with /home being on autofs, building binutils then causes a mount request and a system error log entry unless one by sheer luck happens to have a user named &quot;james&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-09-20 18:55:13 0000</bug_when>
            <thetext>this isnt only a problem with binutils, so ive implemented a check in epatch:
http://sources.gentoo.org/eclass/eutils.eclass?r1=1.304&amp;r2=1.305</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-09-20 19:00:36 0000</bug_when>
            <thetext>actually even better, skip -p0 for such patches ... no need for people to change their patches then</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-09-20 19:03:30 0000</bug_when>
            <thetext>fixed here:
http://sources.gentoo.org/eclass/eutils.eclass?r1=1.306&amp;r2=1.307</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gnu_andrew@member.fsf.org</who>
            <bug_when>2008-09-25 20:35:45 0000</bug_when>
            <thetext>This fix seems to have broken a number of working patches where both paths aren&apos;t absolute.  I saw this happen in the kde ebuilds and it also made icedtea6-1.2 fail, taking me ages to figure out why.

Please fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2008-09-25 21:18:55 0000</bug_when>
            <thetext>Reopening.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>serkan@gentoo.org</who>
            <bug_when>2008-09-26 20:26:53 0000</bug_when>
            <thetext>Can we make this a QA warning or something for a while?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-10-26 06:04:27 0000</bug_when>
            <thetext>post real information rather than vague &quot;this breaks things&quot;.  i have yet to see this change break any real code.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>serkan@gentoo.org</who>
            <bug_when>2008-10-26 06:44:05 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; post real information rather than vague &quot;this breaks things&quot;.  i have yet to
&gt; see this change break any real code.
&gt; 

I provided enough information in -dev post. Please see http://archives.gentoo.org/gentoo-dev/msg_777d416bb082a45b0e4848d8db5bfec8.xml And there are a few more that I fixed that I can&apos;t track right now.


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-11-20 16:17:16 0000</bug_when>
            <thetext>three whole bugs ?  and they&apos;ve been fixed ?  i still see no grounds for revert.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2008-11-21 12:29:24 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; three whole bugs ?  and they&apos;ve been fixed ?  i still see no grounds for
&gt; revert.
&gt; 

Yeah not any more as Flameeyes fixed the broken patches in the tree. 

betelgeuse@aria ~/irclogs/freenode $ tail -n 10000 \#gentoo-commits.log | grep flameeyes -A 3 | grep &quot;Fix patch with absolute paths&quot; | wc -l
94

I think this should have easily qualified as something to revert before the patches were fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-12-07 08:58:14 0000</bug_when>
            <thetext>yes, that number indicates the change should have been temporary.  such info should have been posted with the original request rather than what was.  but the real thanks goes to the guy who did the real work: Diego.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>art-gt@broomstick.com</who>
            <bug_when>2008-12-07 18:26:00 0000</bug_when>
            <thetext>Indeed, thanks to both flameeyes and vapier.

However, one minor niggle:  The description says it&apos;s only a problem if sandbox is disabled.  That&apos;s not strictly true.  The original report in this bug occurs with sandbox enabled -- autofs knows nothing about the sandbox, and will happily mount (and hopefully fail).
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>