Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Override configuration options per package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 92

PostPosted: Mon May 01, 2023 12:10 pm    Post subject: Override configuration options per package Reply with quote

Hello folks!


I was wondering where to find a pointer on how to put additional/custom configuration options per package for the ./configure script?
I checked on the variable "EXTRA_CONF" but it doesn't seem to work, I must apologize for not reading all the dev manuals, I read them on per need basis, but I don't seem to find it there either.

On a side note, in the package testing article: https://wiki.gentoo.org/wiki/Package_testing, the LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0" line creates false errors. Is it just me, or the article needs updating?
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1569
Location: South America

PostPosted: Mon May 01, 2023 1:47 pm    Post subject: Re: Override configuration options per package Reply with quote

Demo wrote:
I checked on the variable "EXTRA_CONF" but it doesn't seem to work, [...]

EXTRA_CONF works, can you post an example of when it doesn't?

Demo wrote:
On a side note, in the package testing article: https://wiki.gentoo.org/wiki/Package_testing, the LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0" line creates false errors.

Which errors?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Mon May 01, 2023 1:54 pm    Post subject: Reply with quote

Demo,

EXTRA_CONF does not work by design.
You have an 'E' missing.

Try EXTRA_ECONF. I keep getting that wrong too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1569
Location: South America

PostPosted: Mon May 01, 2023 2:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Try EXTRA_ECONF.

I'm blind...
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 92

PostPosted: Mon May 01, 2023 2:23 pm    Post subject: Reply with quote

Quote:
Try EXTRA_ECONF

Thank you NeddySeagoon, it worked for me ...
I wonder if you could help with disabling strip-cflags as well?

Quote:
Which errors?

GDH-gentoo, I'll get you the error message once I get my gcc working :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Mon May 01, 2023 3:19 pm    Post subject: Reply with quote

Demo,

strip-cflags is an ebuild thing, done to protect you from yourself. :)

Copy the ebuild to your overlay and edit it there.
However, the stripping may be in an eclass, in which case copy the eclass to your overlay and edit that instead.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 92

PostPosted: Mon May 01, 2023 5:29 pm    Post subject: Reply with quote

I already know about adding the functions in the environment files, but I was wondering about a more generalized way to avoid the extra work ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum