<?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>8185</bug_id>
          
          <creation_ts>2002-09-21 09:21 0000</creation_ts>
          <short_desc>ladspa-cmt ebuild include path replace problem</short_desc>
          <delta_ts>2003-02-04 19:42:18 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>1.4_rc1</version>
          <rep_platform>x86</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pruhland@rochester.rr.com</reporter>
          <assigned_to>rphillips@gentoo.org</assigned_to>
          <cc>pruhland@rochester.rr.com</cc>

      

      
          <long_desc isprivate="0">
            <who>pruhland@rochester.rr.com</who>
            <bug_when>2002-09-21 09:21:25 0000</bug_when>
            <thetext>The search/replace of CFLAGS in the toplevel Makefile by the    
media-libs/ladspa-cmt-1.14.ebuild causes the ebuild to fail (complaining    
about &apos;/usr/include&apos; already being in the include path):    
    
src_unpack() {    
	unpack &quot;${A}&quot;    
	cd &quot;${S}&quot;    
	sed -e &quot;/^CFLAGS/ s/-O3/${CFLAGS}/&quot; \    
		-e &apos;s|/usr/local/include|/usr/include|g&apos; \    
		-e &apos;s|/usr/local/lib|/usr/lib|g&apos; \    
		makefile &gt; makefile.new    
		mv makefile.new makefile    
    
}    
    
Since both the replacement include and lib paths are the defaults it isn&apos;t    
necessary to specify them at all, and doing so causes the build to fail.    
    
I suggest the following replacement:    
    
src_unpack() {    
	unpack &quot;${A}&quot;    
	cd &quot;${S}&quot;    
	sed -e &quot;/^CFLAGS/ s/-O3/${CFLAGS}/&quot; \    
		-e &apos;s|/usr/local/include||g&apos; \    
		-e &apos;s|/usr/local/lib||g&apos; \    
		makefile &gt; makefile.new    
		mv makefile.new makefile    
    
}    
    
Of course, you could just remove the whole search/replace and it would still    
work. 
 
I&apos;m not sure if the failure is specific to gcc-3.2 so Im posting this as 
1.4_rc1 only.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pruhland@rochester.rr.com</who>
            <bug_when>2002-09-21 09:24:48 0000</bug_when>
            <thetext>Created an attachment (id=4050)
ladspa-cmt-1.14.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rphillips@gentoo.org</who>
            <bug_when>2002-09-24 00:34:29 0000</bug_when>
            <thetext>committed</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4050</attachid>
            <date>2002-09-21 09:24 0000</date>
            <desc>ladspa-cmt-1.14.ebuild</desc>
            <filename>ladspa-cmt-1.14.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGxhZHNwYS1jbXQtMS4xNC5lYnVpbGQuT1JJRwlTdW4gQXVnIDE4IDIwOjIxOjM5IDIwMDIK
KysrIGxhZHNwYS1jbXQtMS4xNC5lYnVpbGQJU2F0IFNlcCAyMSAxMDoyMjo0OCAyMDAyCkBAIC0x
OSw4ICsxOSw4IEBACiAJdW5wYWNrICIke0F9IgogCWNkICIke1N9IgogCXNlZCAtZSAiL15DRkxB
R1MvIHMvLU8zLyR7Q0ZMQUdTfS8iIFwKLQkJLWUgJ3N8L3Vzci9sb2NhbC9pbmNsdWRlfC91c3Iv
aW5jbHVkZXxnJyBcCi0JCS1lICdzfC91c3IvbG9jYWwvbGlifC91c3IvbGlifGcnIFwKKwkJLWUg
J3N8L3Vzci9sb2NhbC9pbmNsdWRlfHxnJyBcCisJCS1lICdzfC91c3IvbG9jYWwvbGlifHxnJyBc
CiAJCW1ha2VmaWxlID4gbWFrZWZpbGUubmV3CiAJCW12IG1ha2VmaWxlLm5ldyBtYWtlZmlsZQog
Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>