Re: [gentoo-user] CFLAGs change but no filter/strip/replace in ebuild

2017-12-09 Thread Adam Carter
>
> I would strongly advise against that, just on principle.
>
> yasm is an assembler, and as such it's right at the bottom of the stack.
> It's not unreasonable for such a package to use different FLAGS etc as
> it's not a userland app. It's an app that builds things you use to build
> a userland.
>
> I would recommend you touch base with the package maintainer for answers.
>
> btw, why is this situation a problem? Is something wrong with the yasm
> portage builds you?
>

I'm trying to avoid a reinstall. With profile 17, i found many packages
required -fPIC to build (probably due to some mucking around i've done with
hardened, and/or gentoo devs earlier force on of PIE in gcc that they later
backed out.). yasm build is failing and saying try -fPIC.


Re: [gentoo-user] CFLAGs change but no filter/strip/replace in ebuild

2017-12-09 Thread Alan McKinnon
On 09/12/2017 11:37, Adam Carter wrote:
> On Sat, Dec 9, 2017 at 8:10 PM, Alan McKinnon  > wrote:
> 
> On 09/12/2017 11:10, Adam Carter wrote:
> > # grep -ic flags yasm-1.3.0.ebuild
> > 0
> >
> > However, emerge --info yasm shows me that only -march -O2 -pipe
> make it
> > through. Where is the code that strips the others?
> >
> 
> Have you checked yasm's Makefile?
> 
> 
> There's mentions of CFLAGS in there but I don't have the knowledge to
> understand it. Is there a way I can tweak what the makefiles have done?
> I tried adding;
> 
> append-flags 
> 
> in the src_configure() section, but  doesnt get added, according
> to emerge --info


I would strongly advise against that, just on principle.

yasm is an assembler, and as such it's right at the bottom of the stack.
It's not unreasonable for such a package to use different FLAGS etc as
it's not a userland app. It's an app that builds things you use to build
a userland.

I would recommend you touch base with the package maintainer for answers.

btw, why is this situation a problem? Is something wrong with the yasm
portage builds you?

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] CFLAGs change but no filter/strip/replace in ebuild

2017-12-09 Thread Adam Carter
On Sat, Dec 9, 2017 at 8:10 PM, Alan McKinnon 
wrote:

> On 09/12/2017 11:10, Adam Carter wrote:
> > # grep -ic flags yasm-1.3.0.ebuild
> > 0
> >
> > However, emerge --info yasm shows me that only -march -O2 -pipe make it
> > through. Where is the code that strips the others?
> >
>
> Have you checked yasm's Makefile?
>

There's mentions of CFLAGS in there but I don't have the knowledge to
understand it. Is there a way I can tweak what the makefiles have done? I
tried adding;

append-flags 

in the src_configure() section, but  doesnt get added, according to
emerge --info


Re: [gentoo-user] CFLAGs change but no filter/strip/replace in ebuild

2017-12-09 Thread Alan McKinnon
On 09/12/2017 11:10, Adam Carter wrote:
> # grep -ic flags yasm-1.3.0.ebuild
> 0
> 
> However, emerge --info yasm shows me that only -march -O2 -pipe make it
> through. Where is the code that strips the others?
> 

Have you checked yasm's Makefile?


-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] CFLAGs change but no filter/strip/replace in ebuild

2017-12-09 Thread Adam Carter
# grep -ic flags yasm-1.3.0.ebuild
0

However, emerge --info yasm shows me that only -march -O2 -pipe make it
through. Where is the code that strips the others?