tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: patch: parallelized pkg_chk



Tobias Nygren <tnn%NetBSD.org@localhost> writes:

> What do you propose instead of MAKE_JOBS? In an earlier revision I did:
>
> numjobs() {
>   case "$(uname -s)" in
>     NetBSD) /sbin/sysctl hw.nprocsonline ;;
>     *) echo 1 ;;
>   esac
> }
>
> ... but I removed that for similar reasons as cited by Greg. We can do
> command line -j option as well, or a combination of sysctl and/or
> MAKE_JOBS with command line override.

I don't think we shoudl parallize by #cpus by default, unless we make a
conscious choice as a global strategy.

It seems reasonable to have pkg_chk take -jN, and pass that in from
whowever wants to, just like we pass it to make.


Home | Main Index | Thread Index | Old Index