From nobody Sun Feb 8 16:33:17 2026 X-Original-To: freebsd-current@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 4f8D0b0jwhz6RR8p for ; Sun, 08 Feb 2026 16:33:35 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f8D0Z452vz3gCZ for ; Sun, 08 Feb 2026 16:33:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-c6de0527ce1so645750a12.2 for ; Sun, 08 Feb 2026 08:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770568408; cv=none; d=google.com; s=arc-20240605; b=fZ1+Gm6rWoyzXPGNUsvhYmI4JdRsiESc7n/xRw4N5ZP0bNoRwspJ6zv2jZHxAg1rhI ky1GvfH0m5rD4+6VfH34MpkP/ARyBZB4rTph1bt5bvSo8Hy6mzJmveTs4DRN09ltyH7u rz05HFPtBgCI3GJ7rVQ8QVEc2Jy0J5QkZtZIYjY/ydt430tyqnl2Uckv7pjdvQJ5vxT+ 4A7yOIGF+bdf12zUI5FmHdoenwhXKw+TuhXA8hg5oAghEZP9cHuAF4pVOG6d6uqKOnP0 koOuvKZj6lL1c+WG7IZzjZh2LZNIzFurBxrnzPJyTUtS5iBSdkDeQhaLRLlMVU1+59+L 8GOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=9LMVm2pAouT94Fch6rsl98RlTNMe8OPYUenm1epyNUI=; fh=IbbZ02jcreU98I1+OPPjTUAOeJ00a3cyVk+nJRLldA8=; b=i0I6AuCx+v8+pr26GGb0aaZLuS2QF3EUeJSkAHO2YSwuL9AUDKxrxW8IcAbkXpfhWz pNo8l6LyqEWTSSGdqRqI21Hbf3lrM9z7NEWQLMoIcaJ+D1Xql2fggCCSIzfvHB8rUmYw YmCXUYss5YD6rkRsqI1HDzp5lk/dD0hjHR6PTRZPSKIqzOisTXsWN4d79pZ+iqqCHxcY QUp6aZ1vYHNeZY6qlvTUd2IoLBbPdQGX7mk3Ei/9fXLam4ce3g6bL1k//ZRpvdFuzt97 /0O/FmoAZahfp3rO+QThJHivfzBDs4oghqiTfoFpFv6yVr60gTD88zivQZqP+4BfY2iC sNRg==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1770568408; x=1771173208; 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=9LMVm2pAouT94Fch6rsl98RlTNMe8OPYUenm1epyNUI=; b=KQymdge0JPKr3tZA9Q5Px8rSOKCn7Inw1qrYAnAqw4Zb6zYZmp5ESqJgrPW4/gDXr5 mMAXp5DcPSzrUF6CdAA/NecDrMbkr+QlROJH9wbMeBg94CuBzQgjxggHdwmI2YFjhCfL LyrxoJM/Q7wN09+nodk3+9Xax/g4d3ClY16Qz85Os3J4PTV/P9SHI8WR4XDa5MOwaORC k5i1OLB+524A6dEk49B9SqfgeU2V0qqi7MHED0q9xE1ldxl21qbf7sEbxt4K4F5UF/E2 trZGcC1Znp2/1irWZpBO3yhlWNPuHpRQ6k5AWMd0f0Q1l49SQ9evGr5idt8bBVpshMKs O0yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770568408; x=1771173208; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9LMVm2pAouT94Fch6rsl98RlTNMe8OPYUenm1epyNUI=; b=bVnEp6FyNH2LGxITCOD7UH83xXfju4NEdn+/xOiagW9Zzvp68Jeiv/oCDIZssFaMU/ 2zKUrRHxfscj3UB9h1xHvu2TTmKrrk5ZRIdCssAEOnWmdDYGSq0JpxFyHtrk1A7LUk6I 5AwXsAvpEAaOuuZcSLU9rbUucMxolFdD9ouK2pEbXBVYW/az0dYrjHRNdszrvohQ2gtC 3GQSzfAjqF7+NfP28fvDB/gfhx4FC9LJI+CrZH3HaPhrNhqkV4dgjiQwGL7MPqFa1HHz HWb5HC7c+Mp3n6e8en6swJuVtPDRRHBiTa16/AHTpWqydu5A5GhzFdkBZUbo9c3l/S0J E9WQ== X-Forwarded-Encrypted: i=1; AJvYcCX47NFlXMxuinZ20zopFOE8Sfyk/hJmK4preaUkvxFiehZKeQBS0F0ztWOrxGn+U+eXSa9D/A7iIZOE6ATTE4E=@freebsd.org X-Gm-Message-State: AOJu0YzIx80H5VfYiWmcu74yYhGRfhXrSrwHNNfzscky6VSzmqqZvdJl o5Im1uyD7aV2w01ln0bD917JX2iO9xtTdRQYN3msihX3u76ixQZkxcAk/79eN/FLCIaEZiJnBoO +AMw9iB5xo/LODS2wJArdKmyqSnvaVQo8R8/MZ+R2VyTp63QcCUVq8ms= X-Gm-Gg: AZuq6aLi0mxT8uWMI8KzReP88Nbx8B3geqFnGaofV/YnEJibdj3Ko6RMlETsmG8TtgH 9OPaOGwa/gTrPQI4Hu2EkJGQqHIydSXXQRo4rBCs+KaVu0Yf4yn+409zxCARCgu5NguPWT+Fo6q oHfhryn4q0yGEIHSaQv+5wxh50CN0DlFFKJ0b9ywAN45/DjiWTP+lOm4O0g1k1uJpn+EulQTUlA QI2Jps21knveMaDXsuE0ZktZrNantt5fDfp1Usk2wrMpMcbiFSfqzH7jv4Vc70VH1GzyqY= X-Received: by 2002:a17:90b:58cb:b0:34e:5aa2:cf61 with SMTP id 98e67ed59e1d1-354b3e45d72mr7039737a91.28.1770568407915; Sun, 08 Feb 2026 08:33:27 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <6961de2e.35403.46e0e7bf@gitrepo.freebsd.org> <6d6f0873-d820-4b04-bd17-d5997f0a9919@gmail.com> <7da2252a-944c-4255-be39-d94ae1d0304e@plan-b.pwste.edu.pl> <10db0de9-1281-42a9-815a-93dc5b2718e4@plan-b.pwste.edu.pl> In-Reply-To: <10db0de9-1281-42a9-815a-93dc5b2718e4@plan-b.pwste.edu.pl> From: Warner Losh Date: Sun, 8 Feb 2026 09:33:17 -0700 X-Gm-Features: AZwV_QhfvTAuaKDpzxxf9t6Y-JJL5QEf_4JbINI6k12RJyGmM4Pdgyn-R0VvalI Message-ID: Subject: Re: git-clone(1) after base 3e8619e535b6 for /usr/ports subdirectories To: Marek Zarychta Cc: Graham Perrin , FreeBSD-CURRENT Content-Type: multipart/alternative; boundary="000000000000012c3b064a529502" 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:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4f8D0Z452vz3gCZ X-Spamd-Bar: ---- --000000000000012c3b064a529502 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 8, 2026 at 5:17=E2=80=AFAM Marek Zarychta wrote: > On 8.02.2026 12:51, Marek Zarychta wrote: > > On 8.02.2026 04:46, Graham Perrin wrote: > >> On 08/02/2026 03:17, Warner Losh wrote: > >> > >>> That only works if don't already have a ports tree. What's there? > >> > >> > >> root@freebsd-16-amd64-qemu:~ # ls -hlR /usr/ports > >> > >> total 1.0 KB > >> drwxr-xr-x 2 root wheel 2B Jan 19 19:37 distfiles > >> drwxr-xr-x 2 root wheel 2B Jan 19 19:37 packages > >> > >> /usr/ports/distfiles: > >> total 0 B > >> > >> /usr/ports/packages: > >> total 0 B > >> root@freebsd-16-amd64-qemu:~ # mount | grep ports > >> > >> zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls) > >> zroot/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, > >> noatime, nosuid, nfsv4acls) > >> zroot/usr/ports/packages on /usr/ports/packages (zfs, local, noatime, > >> nosuid, nfsv4acls) > >> root@freebsd-16-amd64-qemu:~ # > >> > >> > > Hello Graham, > > > > my recommendation is to set WRKDIRPREFIX, DISTDIR, PACKAGES and > > INDEXDIR (if you are using indexes) to the separate subtree as follows: > > > > #zfs destroy zroot/usr/ports/distfiles > > #zfs destroy zroot/usr/ports/packages > > #mkdir -p /var/ports/{distfiles,packages} > > #cat <> /etc/make.conf > > WRKDIRPREFIX=3D /var/ports > > DISTDIR=3D /var/ports/distfiles > > PACKAGES=3D /var/ports/packages > > INDEXDIR=3D /var/ports > > EOF > > > > The above configuration works best and is absolutely required if you > > are using read-only mounts for /usr/ports (NFS, nullfs, etc.) > > > > There is another option, if you don't want to change anything, create > > local ports repo and add remote origin: > > > > #cd /usr/ports > > #git init > > #git remote add origin https://git.freebsd.org/ports.git > > #git fetch > > #git branch -f main origin/main > > #git checkout main > > > > Cheers > > > Perhaps my previous reply was inappropriate or came across as impolite. > Please forgive me, Graham, if I violated netiquette. > > I understand that the intent of the original mailing list thread was to > address a problem that arose after the acceptance of another pull > request [1], submitted by a SUSE Linux engineer who has been > contributing frequently and should certainly be considered a FreeBSD > contributor as well. > Yes. His changes are often high quality. > That said, it might be worth considering whether this particular change > could be reverted and the issue resolved in a different, more > FreeBSD-specific way. > > [1]: https://github.com/freebsd/freebsd-src/pull/1873 I thought it was a good idea. I hadn't stopped to consider the git clone issue. I have it staged to back out. Warner --000000000000012c3b064a529502 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Feb 8, = 2026 at 5:17=E2=80=AFAM Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> wrote:
On 8.02.2026=C2=A012:51, Mare= k Zarychta wrote:
> On 8.02.2026=C2=A004:46, Graham Perrin wrote:
>> On 08/02/2026 03:17, Warner Losh wrote:
>>
>>> That only works if don't already have a ports tree. What&#= 39;s there?
>>
>>
>> root@freebsd-16-amd64-qemu:~ # ls -hlR /usr/ports
>>
>> total 1.0 KB
>> drwxr-xr-x=C2=A0 2 root wheel=C2=A0 =C2=A0 2B Jan 19 19:37 distfil= es
>> drwxr-xr-x=C2=A0 2 root wheel=C2=A0 =C2=A0 2B Jan 19 19:37 package= s
>>
>> /usr/ports/distfiles:
>> total 0 B
>>
>> /usr/ports/packages:
>> total 0 B
>> root@freebsd-16-amd64-qemu:~ # mount | grep ports
>>
>> zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4a= cls)
>> zroot/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, >> noatime, nosuid, nfsv4acls)
>> zroot/usr/ports/packages on /usr/ports/packages (zfs, local, noati= me,
>> nosuid, nfsv4acls)
>> root@freebsd-16-amd64-qemu:~ #
>>
>>
> Hello Graham,
>
> my recommendation is to set WRKDIRPREFIX, DISTDIR, PACKAGES and
> INDEXDIR (if you are using indexes) to the separate subtree as follows= :
>
> #zfs destroy zroot/usr/ports/distfiles
> #zfs destroy zroot/usr/ports/packages
> #mkdir -p /var/ports/{distfiles,packages}
> #cat <<EOF >> /etc/make.conf
> WRKDIRPREFIX=3D /var/ports
> DISTDIR=3D /var/ports/distfiles
> PACKAGES=3D /var/ports/packages
> INDEXDIR=3D /var/ports
> EOF
>
> The above configuration works best and is absolutely required if you <= br> > are using read-only mounts for /usr/ports (NFS, nullfs, etc.)
>
> There is another option, if you don't want to change anything, cre= ate
> local ports repo and add remote origin:
>
> #cd /usr/ports
> #git init
> #git remote add origin https://git.freebsd.org/ports.git > #git fetch
> #git branch -f main origin/main
> #git checkout main
>
> Cheers
>
Perhaps my previous reply was inappropriate or came across as impolite. Please forgive me, Graham, if I violated netiquette.

I understand that the intent of the original mailing list thread was to address a problem that arose after the acceptance of another pull
request [1], submitted by a SUSE Linux engineer who has been
contributing frequently and should certainly be considered a FreeBSD
contributor as well.

Yes. His changes a= re often high quality.
=C2=A0
That said, it might be worth considering whether this particular change could be reverted and the issue resolved in a different, more
FreeBSD-specific way.

[1]: https://github.com/freebsd/freebsd-src/pull/187= 3

I thought it = was a good idea. I hadn't stopped to consider the git clone issue.
I have it staged to back out.

Warner
--000000000000012c3b064a529502--