From nobody Tue Oct 03 14:08:36 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S0KS41mmsz4wHgk for ; Tue, 3 Oct 2023 14:08:52 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S0KS373bzz3FV4 for ; Tue, 3 Oct 2023 14:08:51 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9936b3d0286so177624466b.0 for ; Tue, 03 Oct 2023 07:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696342130; x=1696946930; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DDXx0L02rgpQX/zR4idtO9NycfrbC4iMHTJ5jBt2SH4=; b=axYEAgh3zpX9OZgKhD3hC6xLQbeW/ko/nhOuYBhq7k6BhN4B5emWU8xR68aQj4hF/V KSxFmfl4a8n39QcQLUsgShNlGhZ/5nX2pfV6yohLP0c8io1JyYamMQ0Yk34j9QrfQOT7 mhuxWJSu/zXxUZhwnAP3dDio+rEQCobHWP5n1yVe6cn9ndcL4bsm0VpKmIZ7zn6YM3b6 DswaC4q0TEFL8kQ3kP/rSg73F0ruE865LbZCY7E/14z4JFaFkC+DxL+HB+1ioyypeyA4 yrvp4BA/FSPT8103TZ6sO4fwUb+TpOBrHWnEva+oJGxA5yrZW9asJISmtNRBv2kviy53 eEeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696342130; x=1696946930; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DDXx0L02rgpQX/zR4idtO9NycfrbC4iMHTJ5jBt2SH4=; b=N48caN/NbLzHziD1Civ7nAbb2YWNR1hf2FVYeDRldEv88PZfPwZXCAcRITuZoWNM9/ CL63eCkTdUWfmH92CoacSr9ftN6bAtPSQU2QDR9sRYqAYDAESTc2vVyaUmjjTkNmTEqY kwXfx85tjY5oh7kNKsgKP0K+pSUr2Jx8ql+UE22FT7rSh2pIPTxuLQx6j7OMZmUJNiSa q+Ay9fU+ZwlGEOv9TaeEd1YtOAAqp+UBMQQbhYTUS9TE7rc7J4MpazY4NrEWy/KmuguO rHIniwiuiuaSn2/VIWwQMo3Y+G7OM3FZ4P7Hj4hZ1izn9+OlBuL++gt2ziK+zw3Qcvwb IQtg== X-Gm-Message-State: AOJu0YwUQuPJqfAfMA5BuoGp4F6MYbli/nOo5vTiSOpS16QAKJmQ++dl FNbO5xtfQbK+NpEaIJfv9QoW9eVvU0vb6JBWqfhw7K619A== X-Google-Smtp-Source: AGHT+IHV9J5tTmJR0sjt3Lq4aB5cWzycUi8g67y2sWwRfiqdJ/7Dkvhkig80FvSvZw9Dljs/6afl6w8+mA5ytaCwaUE= X-Received: by 2002:a17:906:5190:b0:9b2:d554:da15 with SMTP id y16-20020a170906519000b009b2d554da15mr9973165ejk.38.1696342129570; Tue, 03 Oct 2023 07:08:49 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <4249ee95-5081-4d4d-943c-3a6948ba4af7@nebelschwaden.de> In-Reply-To: <4249ee95-5081-4d4d-943c-3a6948ba4af7@nebelschwaden.de> From: Paul Procacci Date: Tue, 3 Oct 2023 10:08:36 -0400 Message-ID: Subject: Re: buildworld: specifying an alternate make.conf To: listac@nebelschwaden.de Cc: Freebsd-questions@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000cf9b30606d06e5c" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4S0KS373bzz3FV4 --0000000000000cf9b30606d06e5c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 3, 2023 at 10:05=E2=80=AFAM Ede Wolf = wrote: > Hello, > > to my understanding of man make and make.conf, which admittedly is very > limited, I should be able to specify an alternate make.conf with this > syntax: > > # make -D __MAKE_CONF=3D/make.conf buildworld > > Now, since this looks somewhat strage - nowhere else I have found make > variables with double underscores - and before wasting hours of > compiling, I am wondering, is above correct? Or did I miss[understand] > anything? > > Thanks > > Ede > > That syntax is the correct syntax. Here's a partial shell script I use for compiling stripped FBSD images which uses other variables besides __MAKE_CONF should you need examples of them too: SRC=3D/usr/src POOL=3Dtank DESTDIR=3D/jails/templates/13.1-RELEASE THRDS=3D`sysctl -n hw.ncpu` SRCCONF=3D`pwd`/src.conf SRC_ENV_CONF=3D`pwd`/src-env.conf __MAKE_CONF=3D`pwd`/make.conf zfs create -o compression=3Dgzip-9 -o dedup=3Don -o mountpoint=3D${DESTDIR} ${POOL}${DESTDIR} env SRCCONF=3D$SRCCONF SRC_ENV_CONF=3D$SRC_ENV_CONF __MAKE_CONF=3D$__MAKE_C= ONF make -C $SRC -j$THRDS world DESTDIR=3D$DESTDIR env SRCCONF=3D$SRCCONF SRC_ENV_CONF=3D$SRC_ENV_CONF __MAKE_CONF=3D$__MAKE_C= ONF make -C $SRC distribution DESTDIR=3D$DESTDIR cp /etc/resolv.conf $DESTDIR/etc/ zfs snapshot ${POOL}${DESTDIR}@initial ~Paul --=20 __________________ :(){ :|:& };: --0000000000000cf9b30606d06e5c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Oct 3, 2023 at 10:05=E2= =80=AFAM Ede Wolf <listac@neb= elschwaden.de> wrote:
Hello,

to my understanding of man make and make.conf, which admittedly is very limited, I should be able to specify an alternate make.conf with this
syntax:

# make -D __MAKE_CONF=3D<PATH>/make.conf buildworld

Now, since this looks somewhat strage - nowhere else I have found make
variables with double underscores - and before wasting hours of
compiling, I am wondering, is above correct? Or did I miss[understand]
anything?

Thanks

Ede


That syntax is the correct = syntax.
Here's a partial shell script I use for compiling str= ipped FBSD images which uses other variables besides __MAKE_CONF should you= need examples of them too:

SRC=3D/usr/src
POOL=3Dtank
DESTDIR= =3D/jails/templates/13.1-RELEASE
THRDS=3D`sysctl -n hw.ncpu`
SRCCONF= =3D`pwd`/src.conf
SRC_ENV_CONF=3D`pwd`/src-env.conf
__MAKE_CONF=3D`pw= d`/make.conf

zfs create -o compression=3Dgzip-9 -o dedup=3Don -o mou= ntpoint=3D${DESTDIR} ${POOL}${DESTDIR}
env SRCCONF=3D$SRCCONF SRC_ENV_CO= NF=3D$SRC_ENV_CONF __MAKE_CONF=3D$__MAKE_CONF make -C $SRC -j$THRDS world D= ESTDIR=3D$DESTDIR
env SRCCONF=3D$SRCCONF SRC_ENV_CONF=3D$SRC_ENV_CONF __= MAKE_CONF=3D$__MAKE_CONF make -C $SRC distribution DESTDIR=3D$DESTDIR
cp= /etc/resolv.conf $DESTDIR/etc/
zfs snapshot ${POOL}${DESTDIR}@initial
~Paul

--
_____________= _____

:(){ :|:& };:
--0000000000000cf9b30606d06e5c--