From nobody Thu Dec 8 03:28:26 2022 X-Original-To: stable@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 4NSKPG0xtBz4jQRv for ; Thu, 8 Dec 2022 03:28:34 +0000 (UTC) (envelope-from jon@xyinn.org) Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NSKPF2ZPwz3D3b for ; Thu, 8 Dec 2022 03:28:33 +0000 (UTC) (envelope-from jon@xyinn.org) Authentication-Results: mx1.freebsd.org; none Date: Thu, 08 Dec 2022 03:28:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xyinn.org; s=protonmail3; t=1670470110; x=1670729310; bh=5kMuei6Gqch326dZWTWdkO2Zr5MplP4DHv2szyJtqcA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LElQo5VC+3Cj0w1fVc6GTB2vfO8tohBtr8e9IZT7PFkfmeE/PVsK1Sf56cJeNUhyW 3kB9eS504qdtnV9hajd3LyP7xk5pXyP4YR928dmhZHd3mgGoyxslUMEi97sLbU14UY IhwrmZBRdAqZsEDG9myYbNDsfGWfFPnRs+hQf/CzL8nFKpmqVdcoAmUJM6v8NLCwDl rMlh6xCtkVF8ZQn/lrGM6IO7a2aWvfh+fuIi3yVBhryohVDxLCp8uOZr3aIiyqZe2K YDDWyjxrxanTfyhz1V24ZSUOsX9Yx0kAH5OU/IfDUd6jHB92zjh0LVm/q/z4O3m2vA w7aACNKb5x1KA== To: Tomoaki AOKI From: Jonathan Vasquez Cc: stable@freebsd.org Subject: Re: PORTSDIR not being read from /etc/make.conf when build /usr/src Message-ID: <1zFLqrvQu2H3eipmH1_IhokYkhtAK42USFfEdm1qRUiznYb8fXftNjiLjEDSSU1dE88fCYMrjU6HeL_plk71RvbXahOsC_E6ax0znBoTdsw=@xyinn.org> In-Reply-To: <20221208091317.0b681a03003417b26002fa71@dec.sakura.ne.jp> References: <20221208091317.0b681a03003417b26002fa71@dec.sakura.ne.jp> Feedback-ID: 12351801:user:proton List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4NSKPF2ZPwz3D3b X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hey Tomoaki, Thanks for the suggestion. Yup, there are definitely many different workaro= unds we could go with, but I'm definitely interested in knowing if this is = a bug or intended behavior. If anything, I can open up a bug report. Jonathan Vasquez PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279 Sent with ProtonMail Secure Email ------- Original Message ------- On Wednesday, December 7th, 2022 at 19:13, Tomoaki AOKI wrote: > Hi. > How about using /usr/ports for poudriere? > You can do it with >=20 > `poudriere ports -c -f none -M /usr/ports -m null` >=20 > As I've just started testing poudriere, I'm not 100% sure it's correct. > But it seems working as intended (automatically null [loopback] > mounted /usr/ports on build and unmounted when done). >=20 > Also, I've added "-m src=3D/usr/src" on creating poudriere jail, > as I only build ports for the specific environment only and need > keeping in sync. For that, updating poudriere jail on every base > updating. >=20 > Or setting your configuration from /etc/make.conf to /etc/src.conf > (or /etc/src-env.conf)? > Possibly configuration on /etc/make.conf is somehow overridden by src > build defaults. >=20 >=20 > HTH. >=20 > On Wed, 07 Dec 2022 22:18:54 +0000 > Jonathan Vasquez jon@xyinn.org wrote: >=20 > > Hey all, > >=20 > > I'm currently trying to centralize my poudriere ports directory and my = normal /usr/ports dir so that I can reduce the load on the central freebsd = servers, and also to clean it up on my end. > >=20 > > Since I have PORTS_MODULES defined in my /etc/make.conf, building my ke= rnel will properly automatically rebuild the modules listed properly. This = requires your ports directory to exist and working (obviously). Since my po= rts dir was in the default location: /usr/ports, it was working properly. A= t the moment I have my poudriere ports directory and distfiles defined at: > >=20 > > /usr/local/poudriere/ports/default (The standard path for poudriere). > > /usr/local/poudriere/distfiles > >=20 > > I went ahead and added the following to /etc/make.conf: > >=20 > > PORTSDIR=3D/usr/local/poudriere/ports/default > > DISTDIR=3D/usr/local/poudriere/distfiles > >=20 > > However, when running a "make -j32 buildkernel", the PORTSDIR variable = doesn't get read in properly and will default to /usr/ports. I tried placin= g in another variable (that I saw in the module rebuilding phase of buildke= rnel) in /etc/make.conf to see if that was working properly, I picked SRC_B= ASE as an example (I also wanted to test if variable substitution was worki= ng properly as well): > >=20 > > /etc/make.conf: > >=20 > > _TEST=3D"/omega" > > SRC_BASE=3D"${_TEST}/lol" > >=20 > > Running make -j32 buildkernel again properly displayed the "/omega/lol"= path for SRC_BASE, but the PORTSDIR still was ignored. I then tried inlini= ng the variable to see if that worked: > >=20 > > make -j32 buildkernel PORTSDIR=3D"/some/path" > >=20 > > and that worked. There was one or two times that I was able to non-dete= rministically get the PORTSDIR to be read in from /etc/make.conf, but for t= he most part, it was ignored 99% of the time. Running "make buildkernel" wi= thout any parallelization didn't help either. > >=20 > > So ultimately the question is, is it intended behavior for PORTSDIR to = be ignored by the make for buildkernel when it's defined in /etc/make.conf?= From what man ports says, /etc/make.conf is suppose to be used for all asp= ects of building doc, src, and ports.. or is this a bug? > >=20 > > If it helps, I'm running on stable/13-n253245-209ebfa26ec4/GENERIC amd6= 4) > >=20 > > Thank you, > >=20 > > Jonathan Vasquez > > PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279 > > Sent with ProtonMail Secure Email >=20 >=20 > -- > Tomoaki AOKI junchoon@dec.sakura.ne.jp