🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.gentoo.user
5 messages
5 total messages Started by Pocket Thu, 12 Nov 2026 14:20
[gentoo-user] Proper way to set MAKEOPTS?
#129
Author: Pocket
Date: Thu, 12 Nov 2026 14:20
23 lines
1600 bytes
In my ebuild for raspberry pi upstream kernel

I have this

src_configure() {
	local _MAKEOPTS="$MAKEOPTS"
	MAKEOPTS+=' --jobs=1'
	emake mrproper
	emake bcm2711_defconfig
	sed -e '/^CONFIG_BTRFS_FS/s|m|y|' -i .config
	emake oldconfig	
	MAKEOPTS="$_MAKEOPTS"
}

Will this work for setting -j1 just for src_configure()

And is this the proper way to set -j1 for just the src_configure 
function and then restore it or is there a better way?

Or did I have a serious brain fart?

-- 
Hindi madali ang maging ako
Re: [gentoo-user] Proper way to set MAKEOPTS?
#130
Author: Eli Schwartz
Date: Thu, 12 Nov 2026 16:00
73 lines
4708 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------axC0MpBoZqhJpJEyyJDdMW0K
Content-Type: multipart/mixed; boundary="------------J1fcXODHflEpTgECYOcskbTu";
 protected-headers="v1"; hp="clear"
Message-ID: <850cdfcf-c281-412f-a989-9a7f37264565@gentoo.org>
Date: Thu, 12 Nov 2026 10:55:42 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] Proper way to set MAKEOPTS?
To: gentoo-user@lists.gentoo.org
References: <f45addad-9983-41bf-a970-3df7c17fc47f@oldfart.online>
Content-Language: en-US
From: Eli Schwartz <eschwartz@gentoo.org>
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
In-Reply-To: <f45addad-9983-41bf-a970-3df7c17fc47f@oldfart.online>

--------------J1fcXODHflEpTgECYOcskbTu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 11/12/26 9:13 AM, Pocket wrote:
> In my ebuild for raspberry pi upstream kernel
>=20
> I have this
>=20
> src_configure() {
> =C2=A0=C2=A0=C2=A0=C2=A0local _MAKEOPTS=3D"$MAKEOPTS"
> =C2=A0=C2=A0=C2=A0=C2=A0MAKEOPTS+=3D' --jobs=3D1'
> =C2=A0=C2=A0=C2=A0=C2=A0emake mrproper
> =C2=A0=C2=A0=C2=A0=C2=A0emake bcm2711_defconfig
> =C2=A0=C2=A0=C2=A0=C2=A0sed -e '/^CONFIG_BTRFS_FS/s|m|y|' -i .config
> =C2=A0=C2=A0=C2=A0=C2=A0emake oldconfig=C2=A0=C2=A0=C2=A0
> =C2=A0=C2=A0=C2=A0=C2=A0MAKEOPTS=3D"$_MAKEOPTS"
> }
>=20
> Will this work for setting -j1 just for src_configure()
>=20
> And is this the proper way to set -j1 for just the src_configure
> function and then restore it or is there a better way?
>=20
> Or did I have a serious brain fart?


Just explicitly run `emake -j1 mrproper` etc.

--=20
Eli Schwartz

--------------J1fcXODHflEpTgECYOcskbTu--

--------------axC0MpBoZqhJpJEyyJDdMW0K
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavXhfgUDAAAAAAAKCRCEp9ErcA0vV9v3
AQDBlHoi2esmSPcIhi2LJ0cS7wa51Lbw8naXYZ1xR2TWrwD/Qwo/1pIwXHuN5a02mqG3P4HutiqW
GupyhhjmFlb10w4=
=AnQa
-----END PGP SIGNATURE-----

--------------axC0MpBoZqhJpJEyyJDdMW0K--
Re: [gentoo-user] Proper way to set MAKEOPTS?
#131
Author: Pocket
Date: Thu, 12 Nov 2026 16:20
37 lines
2169 bytes

On 11/12/26 10:55, Eli Schwartz wrote:
> On 11/12/26 9:13 AM, Pocket wrote:
>> In my ebuild for raspberry pi upstream kernel
>>
>> I have this
>>
>> src_configure() {
>>      local _MAKEOPTS="$MAKEOPTS"
>>      MAKEOPTS+=' --jobs=1'
>>      emake mrproper
>>      emake bcm2711_defconfig
>>      sed -e '/^CONFIG_BTRFS_FS/s|m|y|' -i .config
>>      emake oldconfig
>>      MAKEOPTS="$_MAKEOPTS"
>> }
>>
>> Will this work for setting -j1 just for src_configure()
>>
>> And is this the proper way to set -j1 for just the src_configure
>> function and then restore it or is there a better way?
>>
>> Or did I have a serious brain fart?
> 
> 
> Just explicitly run `emake -j1 mrproper` etc.

I did that first and it gives me
emake -j4 -j1 mrproper etc

I don't know if it does the right thing.
I suppose it does?


-- 
Hindi madali ang maging ako
Re: [gentoo-user] Proper way to set MAKEOPTS?
#132
Author: Eli Schwartz
Date: Thu, 12 Nov 2026 16:30
70 lines
4819 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------FRxppcmUZagBtbblzJz2FR3K
Content-Type: multipart/mixed; boundary="------------7OaVkuwV2xXo9L92nNzkRpww";
 protected-headers="v1"; hp="clear"
Message-ID: <0a007536-63ab-4956-b44d-497f73cc6303@gentoo.org>
Date: Thu, 12 Nov 2026 11:21:20 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] Proper way to set MAKEOPTS?
To: gentoo-user@lists.gentoo.org
References: <f45addad-9983-41bf-a970-3df7c17fc47f@oldfart.online>
 <850cdfcf-c281-412f-a989-9a7f37264565@gentoo.org>
 <46ffb1ce-eadb-41b5-91e5-8ab731bd346f@oldfart.online>
Content-Language: en-US
From: Eli Schwartz <eschwartz@gentoo.org>
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
In-Reply-To: <46ffb1ce-eadb-41b5-91e5-8ab731bd346f@oldfart.online>

--------------7OaVkuwV2xXo9L92nNzkRpww
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 11/12/26 11:12 AM, Pocket wrote:

> I did that first and it gives me
> emake -j4 -j1 mrproper etc
>=20
> I don't know if it does the right thing.
> I suppose it does?


In general, programs usually consider later options to override earlier
options, when the two options say to do opposite things.

e.g. -fbarbaz -fno-barbaz will *disable* "barbaz" since the "no" version
came later.

-j4 -j1 is the same option, with different *values*, so the command-line
parser first sets jobs to 4, then updates it to 1. :) By the time make
starts running commands, all it sees is "1".


--=20
Eli Schwartz

--------------7OaVkuwV2xXo9L92nNzkRpww--

--------------FRxppcmUZagBtbblzJz2FR3K
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavXngAUDAAAAAAAKCRCEp9ErcA0vV7Ot
AQDnI163ezYHvVml5oRGiEgsmKXMG5ahvcjtnRnr1N0+WgD+Ovwm10/J0OSEVe3vvxZbCXQ4OnYM
wd4h1L/67Ai4SgI=
=bno4
-----END PGP SIGNATURE-----

--------------FRxppcmUZagBtbblzJz2FR3K--
Re: [gentoo-user] Proper way to set MAKEOPTS?
#133
Author: Pocket
Date: Thu, 12 Nov 2026 16:50
30 lines
2260 bytes

On 11/12/26 11:21, Eli Schwartz wrote:
> On 11/12/26 11:12 AM, Pocket wrote:
> 
>> I did that first and it gives me
>> emake -j4 -j1 mrproper etc
>>
>> I don't know if it does the right thing.
>> I suppose it does?
> 
> 
> In general, programs usually consider later options to override earlier
> options, when the two options say to do opposite things.
> 
> e.g. -fbarbaz -fno-barbaz will *disable* "barbaz" since the "no" version
> came later.
> 
> -j4 -j1 is the same option, with different *values*, so the command-line
> parser first sets jobs to 4, then updates it to 1. :) By the time make
> starts running commands, all it sees is "1".
> 
> 

I figured it was something like that

Thanks for the info

-- 
Hindi madali ang maging ako
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads