litte patch to enforce using CFLAGS from /etc/make.conf and not just -O2. Reproducible: Always Steps to Reproduce:
Created attachment 49622 [details, diff] mailx-8.1.2.20040524.ebuild.diff
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
'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!
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.
Created attachment 49685 [details, diff] mailx-2004-cflags.diff corrected CFLAGS-patch. Just replace the old one.
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
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.
You're damn right. Sorry again I don't know what I was thinking on... commited to CVS. Cheers, Ferdy