[Buildroot] [PATCH] use nproc

Peter Korsgaard peter at korsgaard.com
Sun Jan 1 09:46:29 UTC 2017


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > Hello,
 > On Fri, 30 Dec 2016 21:46:43 +0100, Peter Korsgaard wrote:

 >> > My rule of thumb is that once a change is 7 years old, you can rely on
 >> > the installed base to have it. With that in mind, would you like to use
 >> > nproc to check how many processors are available?  
 >> 
 >> > http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f  
 >> 
 >> Why? What is the advantage? Purely cosmetical? Are there any well known
 >> distributions providing nproc and not getconf?

 > Well, the simplification provided by Rob looks useful to me. It's
 > purely cosmetic, but we also do tons of other cosmetic changes.

True, but for stuff depending on the details of the host OS we need to
be careful, so it is interesting to know if this change is NEEDED
somewhere, or just a nice-to-have cleanup thing.

 > The big question is whether nconf is available even in the really old
 > RHEL distros that some of our users have.

Indeed, this was the kind of details I was missing in the commit
description.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list