NetBSD Problem Report #59052
From www@netbsd.org Fri Feb 7 12:21:07 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C31C91A923A
for <gnats-bugs@gnats.NetBSD.org>; Fri, 7 Feb 2025 12:21:07 +0000 (UTC)
Message-Id: <20250207122106.ABF491A923C@mollari.NetBSD.org>
Date: Fri, 7 Feb 2025 12:21:06 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: bootstrap: --make-jobs should be passed into mk.conf MAKE_JOBS
X-Send-Pr-Version: www-1.0
>Number: 59052
>Category: pkg
>Synopsis: bootstrap: --make-jobs should be passed into mk.conf MAKE_JOBS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 07 12:25:01 +0000 2025
>Originator: Taylor R Campbell
>Release: current
>Organization:
NetBSD Bootstrap Jobs LLC
>Environment:
>Description:
Currently, if you bootstrap pkgsrc with `./bootstrap --make-jobs 4', the _bootstrap_ build will be parallelized four ways, but when you later build packages in pkgsrc with the resulting bmake, it won't be parallelized.
This is confusing, and not written down obviously: users expect that if you do `./bootstrap --make-jobs 4' then pkgsrc builds will be parallelized fourways.
There may be a good reason for it -- e.g., maybe you're building a bootstrap kit on highly parallel machine but you're going to install it on a single-core machine later -- but perhaps if so, we should have two options, one for mk.conf MAKE_JOBS and one for the bootstrap parallelism (defaults to the mk.conf MAKE_JOBS).
>How-To-Repeat:
./bootstrap --make-jobs 4
cd cat/pkg && bmake
observe no parallelism
>Fix:
Either:
(a) Set MAKE_JOBS in the resulting mk.conf when `--make-jobs N' is specified.
or
(b) 1. Set MAKE_JOBS in the resulting mk.conf when `--make-jobs N' is specified.
2. Add another `--boot-make-jobs N' or something to override it just for the bootstrap.
or
(c) Make it clear somehow that the `--make-jobs' option does not affect future pkgsrc builds, and obvious that you need to put it in the mk.conf fragment or your mk.conf later.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.