View previous topic :: View next topic |
Author |
Message |
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 370
|
Posted: Mon May 27, 2019 7:03 pm Post subject: [Solved] Emerge ignores makeopt for particular package |
|
|
/etc/portage/package.env:
Code: | dev-qt/qtwebkit makeopts.conf |
/etc/portage/env/makeopts.conf:
qtwebkit fails when compiling with MAKEOPTS="-j5" like other packages, but I can't instruct emerge to build it with single thread.
Emerge just ignores these options from /etc/portage/package.env and /etc/portage/env/makeopts.conf and fails with such a message:
Code: | ERROR: dev-qt/qtwebkit-5.212.0_pre20180120::gentoo failed (compile phase):
ninja -v -j5 -l0 failed |
What's wrong with these files? Why emerge still uses -j5 option?
Last edited by Blind_Sniper on Tue May 28, 2019 8:43 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31357 Location: here
|
Posted: Mon May 27, 2019 7:15 pm Post subject: |
|
|
Try to set NINJAOPTS="-j1" _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 370
|
Posted: Mon May 27, 2019 7:59 pm Post subject: |
|
|
Yes, it works, thank you.
But why MAKEOPTS doesn't work? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31357 Location: here
|
Posted: Mon May 27, 2019 8:14 pm Post subject: |
|
|
Blind_Sniper wrote: | Yes, it works, thank you.
But why MAKEOPTS doesn't work? |
By default if NINJAOPTS isn't set ninja-utils eclass set to same value as MAKEOPTS in make.conf.
https://devmanual.gentoo.org/eclass-reference/ninja-utils.eclass/index.html wrote: | NINJAOPTS
The default set of options to pass to Ninja. Similar to MAKEOPTS, supposed to be set in make.conf. If unset, eninja() will convert MAKEOPTS instead. |
Probably, but I'm not sure, this not work if you use an env file _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3977
|
Posted: Tue May 28, 2019 5:57 am Post subject: |
|
|
Blind_Sniper wrote: | But why MAKEOPTS doesn't work? | Hi! As a workaround Code: | MAKEOPTS="-j1" emerge -1 qtwebkit | might do the trick.
Beware MAKEOPTS value will propagate to any consequent emerge. So Code: | NINJAOPTS="-j1" emerge -1 qtwebkit | should allow to maintain MAKEOPTS settings as in make.conf.
Thks 4 ur attention. |
|
Back to top |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 370
|
Posted: Tue May 28, 2019 8:42 am Post subject: |
|
|
Seems eninja() searchs for NINJAOPTS everywhere, but for CaptainBlood only in make.conf
@CaptainBlood
I'm aware that I can put MAKEOPTS before emerge, but it will affect all the packages incurrent emerge session, not qtwebkit only and not suitable when updating the world. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3977
|
Posted: Tue May 28, 2019 8:04 pm Post subject: |
|
|
Blind_Sniper wrote: | Seems eninja() searchs for NINJAOPTS everywhere, but for CaptainBlood only in make.conf | I guess i'm missing something there...
What about my second proposal?
It would be interesting for others to know if it helps...
Thks 4 ur attention. |
|
Back to top |
|
|
|