Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Emerge ignores makeopt for particular package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 370

PostPosted: Mon May 27, 2019 7:03 pm    Post subject: [Solved] Emerge ignores makeopt for particular package Reply with quote

/etc/portage/package.env:
Code:
dev-qt/qtwebkit makeopts.conf


/etc/portage/env/makeopts.conf:
Code:
MAKEOPTS="-j1"


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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Mon May 27, 2019 7:15 pm    Post subject: Reply with quote

Try to set NINJAOPTS="-j1"
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 370

PostPosted: Mon May 27, 2019 7:59 pm    Post subject: Reply with quote

Yes, it works, thank you.
But why MAKEOPTS doesn't work?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31357
Location: here

PostPosted: Mon May 27, 2019 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3977

PostPosted: Tue May 28, 2019 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 370

PostPosted: Tue May 28, 2019 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3977

PostPosted: Tue May 28, 2019 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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