<?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>230273</bug_id>
          
          <creation_ts>2008-06-30 21:57 0000</creation_ts>
          <short_desc>x11-drivers/nvidia-drivers-173.14.09 does not respect use flag &quot;custom-cflags&quot;</short_desc>
          <delta_ts>2008-12-18 20: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 Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>genzilla@boris64.net</reporter>
          <assigned_to>ricmm@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>genzilla@boris64.net</who>
            <bug_when>2008-06-30 21:57:39 0000</bug_when>
            <thetext>x11-drivers/nvidia-drivers-173.14.09 does not respect custom cflags,
because there&apos;s a correct path to a Makefile missing in that ebuild.

emerge output (i used version 177.13, but this error seems to be in every ebuild that has &quot;custom-cflags&quot; as use flag:
------------------
...
 * Checking for MTRR support ...                                                                                                                     [ ok ]
 * Checking for Paravirtualized guest support ...
&gt;&gt;&gt; Unpacking source...
Creating directory NVIDIA-Linux-x86_64-177.13-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 177.13...........................................................................................................................................
 * Applying NVIDIA_glx-defines.patch ...                                                                                                             [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                                                                                            [ ok ]
 * Applying NVIDIA_i2c-hwmon.patch ...                                                                                                               [ ok ]
sed: can&apos;t read Makefile.*: Datei oder Verzeichnis nicht gefunden
 * Converting NVIDIA-Linux-x86_64-177.13-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...                                           [ ok ]
&gt;&gt;&gt; Source unpacked.
...
------------------

As you see, the ebuild tries to patch Makefile.* in ${S}, which doesn&apos;t exist.
As an easy workaround it should be enough to use &quot;${NV_SRC}&quot;/Makefile.* here.

I&apos;ll attach a patch.

thx in advance ;)

Reproducible: Always

Steps to Reproduce:
1. emerge nvidia-drivers</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genzilla@boris64.net</who>
            <bug_when>2008-06-30 21:59:28 0000</bug_when>
            <thetext>Created an attachment (id=159027)
nvidia-drivers-173.14.09-r1-ebuild.patch

nvidia-drivers-173.14.09-r1-ebuild.patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2008-12-18 20:53:50 0000</bug_when>
            <thetext>This has been fixed. Thank you for the report.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>159027</attachid>
            <date>2008-06-30 21:59 0000</date>
            <desc>nvidia-drivers-173.14.09-r1-ebuild.patch</desc>
            <filename>nvidia-drivers-173.14.09-r1-ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG52aWRpYS1kcml2ZXJzLTE3My4xNC4wOS5lYnVpbGQJMjAwOC0wNi0xNyAyMzo0MDowNS4w
MDAwMDAwMDAgKzAyMDAKKysrIG52aWRpYS1kcml2ZXJzLTE3My4xNC4wOS1yMS5lYnVpbGQJMjAw
OC0wNi0zMCAyMzo1NDozOC4wMDAwMDAwMDAgKzAyMDAKQEAgLTIxNiw3ICsyMTYsOSBAQAogCQkJ
IiR7TlZfU1JDfSIvTWFrZWZpbGUua2J1aWxkCiAKIAkJIyBJZiB5b3Ugc2V0IHRoaXMgdGhlbiBp
dCdzIHlvdXIgb3duIGZhdWx0IHdoZW4gc3R1ZmYgYnJlYWtzIDopCi0JCXVzZSBjdXN0b20tY2Zs
YWdzICYmIHNlZCAtaSAiczotTzoke0NGTEFHU306IiBNYWtlZmlsZS4qCisJCXVzZSBjdXN0b20t
Y2ZsYWdzIFwKKwkJICAgICYmIGVpbmZvICJQYXRjaGluZyAke05WX1NSQ30vTWFrZWZpbGUqIHRv
IHJlc3BlY3QgY3VzdG9tIGNmbGFncyIgXAorCQkgICAgJiYgc2VkIC1pICJzOi1POiR7Q0ZMQUdT
fToiICIke05WX1NSQ30iL01ha2VmaWxlLioKIAogCQkjIElmIGdyZWF0ZXIgdGhhbiAyLjYuNSB1
c2UgTT0gaW5zdGVhZCBvZiBTVUJESVI9CiAJCWNvbnZlcnRfdG9fbSAiJHtOVl9TUkN9Ii9NYWtl
ZmlsZS5rYnVpbGQK
</data>        

          </attachment>
    </bug>

</bugzilla>