<?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>79655</bug_id>
          
          <creation_ts>2005-01-26 17:15 0000</creation_ts>
          <short_desc>Patch for mail-client/mailx-8.1.2.20040524 to use CFLAGS</short_desc>
          <delta_ts>2005-01-28 13:14:36 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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sbriesen@gentoo.org</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-01-26 17:15:35 0000</bug_when>
            <thetext>litte patch to enforce using CFLAGS from /etc/make.conf and not just -O2.


Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-01-26 17:16:31 0000</bug_when>
            <thetext>Created an attachment (id=49622)
mailx-8.1.2.20040524.ebuild.diff
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferdy@gentoo.org</who>
            <bug_when>2005-01-27 00:02:01 0000</bug_when>
            <thetext>Instead of using sed (thus adding it as a dependancy) I&apos;ve patched the Makefile. To add EXTRAFLAGS that will override prior defined flags.

Cheers,
Ferdy</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-01-27 12:35:56 0000</bug_when>
            <thetext>&apos;sed&apos; is part of the coreutils. So your computer won&apos;t run w/o it. ;-)

using &apos;sed&apos; is sexy for very small patches, because normally you don&apos;t have a version dependency. With your patch-file, you have to re-create a patch every time a new version arrives.

But nonetheless, important is that CFLAGS is used now!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-01-27 12:40:42 0000</bug_when>
            <thetext>You should also remove the &quot;-O2&quot;, because now you have 

gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT &lt;your CFLAGS&gt; -O2 [..]

So just put the $(EXTRAFLAGS) to the place where the -O2 is and you&apos;re doing the same as my &apos;sed&apos;-patch.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-01-27 12:45:10 0000</bug_when>
            <thetext>Created an attachment (id=49685)
mailx-2004-cflags.diff

corrected CFLAGS-patch. Just replace the old one.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferdy@gentoo.org</who>
            <bug_when>2005-01-27 13:44:39 0000</bug_when>
            <thetext>Fixed in CVS, I haven&apos;t bumped the ebuild anyway. I don&apos;t think It worths it.

BTW, sorry for changing to the patch and then reverting back to sed...

Cheers,
Ferdy</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2005-01-28 12:57:13 0000</bug_when>
            <thetext>well, it&apos;s me again ;)

you did this:

  sed -i -e &quot;s: -O2: ${CFLAGS}:g&quot; Makefile
[..]
  make EXTRAFLAGS=&quot;${CFLAGS}&quot;


well, either you remove the &quot;EXTRAFLAGS&quot; stuff, or -BETTER- do this:

  sed -i -e &quot;s: -O2: \$(EXTRAFLAGS):g&quot; Makefile
[..]
  make EXTRAFLAGS=&quot;${CFLAGS}&quot;


I don&apos;t reopen the bug again. But it would be nice, if you would (silently) fix this. No revision bump needed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferdy@gentoo.org</who>
            <bug_when>2005-01-28 13:14:36 0000</bug_when>
            <thetext>You&apos;re damn right. Sorry again I don&apos;t know what I was thinking on... commited to CVS.

Cheers,
Ferdy</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49622</attachid>
            <date>2005-01-26 17:16 0000</date>
            <desc>mailx-8.1.2.20040524.ebuild.diff</desc>
            <filename>mailx-8.1.2.20040524.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG1haWx4LTguMS4yLjIwMDQwNTI0LmVidWlsZC5vcmlnCTIwMDUtMDEtMjYgMTk6MzI6MjQu
MDAwMDAwMDAwICswMTAwCisrKyBtYWlseC04LjEuMi4yMDA0MDUyNC5lYnVpbGQJMjAwNS0wMS0y
NyAwMTozNDowMy4wMDAwMDAwMDAgKzAxMDAKQEAgLTMwLDYgKzMwLDcgQEAKIAl1bnBhY2sgJHtB
fQogCWNkICR7U30KIAllcGF0Y2ggJHtESVNURElSfS8ke1BOfS0yMDA0MDUyNC1jdnMuZGlmZi5i
ejIgfHwgZGllICJlcGF0Y2ggZmFpbGVkIgorCXNlZCAtaSAtZSAiczogLU8yOiAke0NGTEFHU306
ZyIgTWFrZWZpbGUKIH0KIAogc3JjX2NvbXBpbGUoKSB7Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49685</attachid>
            <date>2005-01-27 12:45 0000</date>
            <desc>mailx-2004-cflags.diff</desc>
            <filename>mailx-2004-cflags.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIE1ha2VmaWxlLm9yaWcJMjAwNS0wMS0yNyAyMTo0MjozOC4xNTc2MDE0ODggKzAxMDAKKysr
IE1ha2VmaWxlCTIwMDUtMDEtMjcgMjE6NDM6MDIuMjM3MzYyNDk5ICswMTAwCkBAIC04LDcgKzgs
NyBAQAogaWZuZXEgKCwkKGZpbmRzdHJpbmcgbm9vcHQsJChERUJfQlVJTERfT1BUSU9OUykpKQog
ICBDRkxBR1MgKz0gLU8wCiBlbHNlCi0gIENGTEFHUyArPSAtTzIKKyAgQ0ZMQUdTICs9ICQoRVhU
UkFGTEFHUykKIGVuZGlmCiBpZmVxICgsJChmaW5kc3RyaW5nIG5vc3RyaXAsJChERUJfQlVJTERf
T1BUSU9OUykpKQogICBMREZMQUdTICs9IC1zCg==
</data>        

          </attachment>
    </bug>

</bugzilla>