Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79655 - Patch for mail-client/mailx-8.1.2.20040524 to use CFLAGS
Summary: Patch for mail-client/mailx-8.1.2.20040524 to use CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-26 17:15 UTC by Stefan Briesenick (RETIRED)
Modified: 2005-01-28 13:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mailx-8.1.2.20040524.ebuild.diff (mailx-8.1.2.20040524.ebuild.diff,319 bytes, patch)
2005-01-26 17:16 UTC, Stefan Briesenick (RETIRED)
Details | Diff
mailx-2004-cflags.diff (mailx-2004-cflags.diff,313 bytes, patch)
2005-01-27 12:45 UTC, Stefan Briesenick (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Briesenick (RETIRED) gentoo-dev 2005-01-26 17:15:35 UTC
litte patch to enforce using CFLAGS from /etc/make.conf and not just -O2.


Reproducible: Always
Steps to Reproduce:
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2005-01-26 17:16:31 UTC
Created attachment 49622 [details, diff]
mailx-8.1.2.20040524.ebuild.diff
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2005-01-27 00:02:01 UTC
Instead of using sed (thus adding it as a dependancy) I've patched the Makefile. To add EXTRAFLAGS that will override prior defined flags.

Cheers,
Ferdy
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2005-01-27 12:35:56 UTC
'sed' is part of the coreutils. So your computer won't run w/o it. ;-)

using 'sed' is sexy for very small patches, because normally you don'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!
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2005-01-27 12:40:42 UTC
You should also remove the "-O2", because now you have 

gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT <your CFLAGS> -O2 [..]

So just put the $(EXTRAFLAGS) to the place where the -O2 is and you're doing the same as my 'sed'-patch.
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2005-01-27 12:45:10 UTC
Created attachment 49685 [details, diff]
mailx-2004-cflags.diff

corrected CFLAGS-patch. Just replace the old one.
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2005-01-27 13:44:39 UTC
Fixed in CVS, I haven't bumped the ebuild anyway. I don't think It worths it.

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

Cheers,
Ferdy
Comment 7 Stefan Briesenick (RETIRED) gentoo-dev 2005-01-28 12:57:13 UTC
well, it's me again ;)

you did this:

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


well, either you remove the "EXTRAFLAGS" stuff, or -BETTER- do this:

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


I don't reopen the bug again. But it would be nice, if you would (silently) fix this. No revision bump needed.
Comment 8 Fernando J. Pereda (RETIRED) gentoo-dev 2005-01-28 13:14:36 UTC
You're damn right. Sorry again I don't know what I was thinking on... commited to CVS.

Cheers,
Ferdy