View previous topic :: View next topic |
Author |
Message |
Demo Tux's lil' helper
Joined: 25 Nov 2022 Posts: 92
|
Posted: Mon May 01, 2023 12:10 pm Post subject: Override configuration options per package |
|
|
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 |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1569 Location: South America
|
Posted: Mon May 01, 2023 1:47 pm Post subject: Re: Override configuration options per package |
|
|
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?
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Mon May 01, 2023 1:54 pm Post subject: |
|
|
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 |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1569 Location: South America
|
Posted: Mon May 01, 2023 2:00 pm Post subject: |
|
|
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 |
|
|
Demo Tux's lil' helper
Joined: 25 Nov 2022 Posts: 92
|
Posted: Mon May 01, 2023 2:23 pm Post subject: |
|
|
Thank you NeddySeagoon, it worked for me ...
I wonder if you could help with disabling strip-cflags as well?
GDH-gentoo, I'll get you the error message once I get my gcc working |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Mon May 01, 2023 3:19 pm Post subject: |
|
|
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 |
|
|
Demo Tux's lil' helper
Joined: 25 Nov 2022 Posts: 92
|
Posted: Mon May 01, 2023 5:29 pm Post subject: |
|
|
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 |
|
|
|