Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2024 20:09:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 269884] [nanoBSD] cust_pkgng() fetches ports-mgmt/pkg from remote regardless of required package
Message-ID:  <bug-269884-227-9thHtSju6Y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269884-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269884-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269884

--- Comment #4 from Jose Luis Duran <jlduran@FreeBSD.org> ---
Thank you for the bug reports! Please, keep them coming.

If I understand correctly, this can be divided in three issues:

1. cust_pkgng() always fetches ports-mgmt/pkg.
2. NANO_PACKAGEDIR cannot be a symbolic link.
3. If TARGET is not the same machine/architecture as the host, because of i=
tem
(1), it will fail.

Let's start with the easy one, number (2):

The way I see it, after 9af130ae8c03, cust_pkgng() uses a nullfs mount to s=
hare
the contents of NANO_PACKAGEDIR inside the chroot (NANO_WORLDDIR). It is mo=
re
robust, indeed, but it has the drawback that if NANO_PACKAGEDIR is a symlin=
k,
it will fail.
My proposed fix is simply to use the realpath of NANO_PACKAGEDIR.

I will also update fill_pkg.sh accordingly.

Number (1) and (3) are closely related. From what I can read in the guide
"Introduction to NanoBSD", you are supposed to already take care of the
differences in architectures, etc. by providing a suitable Pkg directory, b=
ut
maybe it is not explicit.
I do have however experimenting cross-building, and may have a small additi=
on
to the scripts, but this is outside the scope of this PR.

The code reviews take place on GitHub or Phabricator, so I will post my
proposed fixes there. If you do not have a Phabricator account, please post
your suggestions here, and I will forward them accordingly. The project is
aware of this annoyance, and I apologize for the inconvenience.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269884-227-9thHtSju6Y>