freebsd-src/release/scripts
John Baldwin ea2663040d release: Use the ABI of the target release to fetch packages
- Point --rootdir at the installed destdir in the dvd tree.  This
  causes pkg to determine the ABI from the installed destdir instead
  of the host's binaries.  Previously the result was that packages
  for the host's ABI were always downloaded breaking cross-releases
  (e.g. arm64 releases built on an amd64 host included amd64
  packages on the DVD ISO image rather than arm64 packages).  This
  also handles version mismatches, and I tested this by cross-building
  a 15.x arm64 release on a 14.x amd64 host.

- As a result, pkg now does a chdir(3) to the rootdir before running,
  so the -o argument to fetch needs to be updated to be relative to
  rootdir instead of the CWD as make runs.

- Add a new ROOTDIR variable to limit references to "dvd" to one
  place.  Ideally ROOTDIR would be an argument to this script so
  that it didn't really know about the dvd layout at all.

- While here, simplify creation of symlinks by just using a longer
  path to the link name instead of using 'cd' in the shell before
  invoking ln(1).  Also use ln -sf to create the pkg.pkg symlink
  rather than rm + ln.

PR:		278273
Reported by:	gatekeeper <tiago.gasiba@gmail.com>
Reviewed by:	imp, delphij
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D44749
2024-04-14 16:45:40 -07:00
..
atlas-upload.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
box.ovf Add support for building VirtualBox Vagrant images. 2015-07-20 16:27:44 +00:00
FreeBSD_install_cdrom.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
list-new-changesets.py Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
make-manifest.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
make-pkg-package.sh pkgbase: propagate SRCRELDATE to the packages correctly 2023-12-04 22:27:57 +01:00
mk-vmimage.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mm-mtree.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mtree-to-plist.awk Reapply "pkgbase: Create a FreeBSD-dtb package" 2024-02-03 09:49:12 +01:00
pkg-stage.sh release: Use the ABI of the target release to fetch packages 2024-04-14 16:45:40 -07:00
vagrant.vmx release: Move the vagrant.vmx config out to its own file to match vbox 2021-03-12 09:44:42 -07:00