freebsd-src/release
John Baldwin 835b1bd404 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

(cherry picked from commit ea2663040d)
2024-04-23 22:04:44 -07:00
..
amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
arm Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
arm64 arm64/RPI: enable powerd by default on arm64-aarch64-RPI images 2024-01-30 14:10:56 -06:00
i386 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
packages Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
pkg_repos Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
powerpc powerpc/generate-hfs.sh: Don't include $FreeBSD$ in prefix to uuencoded image 2023-10-24 11:13:18 -07:00
riscv Increase the size of riscv GENERICSD images to 6 GB 2024-01-15 07:31:43 -06:00
scripts release: Use the ABI of the target release to fetch packages 2024-04-23 22:04:44 -07:00
tools arm64/RPI: enable powerd by default on arm64-aarch64-RPI images 2024-01-30 14:10:56 -06:00
Makefile sys/*/conf/*, docs: fix links to handbook 2024-01-09 22:07:46 -05:00
Makefile.azure release: Support r/o /usr/ports for cloudware 2024-04-23 22:04:06 -07:00
Makefile.ec2 release: Support r/o /usr/ports for cloudware 2024-04-23 22:04:06 -07:00
Makefile.gce release: Support r/o /usr/ports for cloudware 2024-04-23 22:04:06 -07:00
Makefile.inc1 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.mirrors Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.vagrant release: Support r/o /usr/ports for cloudware 2024-04-23 22:04:06 -07:00
Makefile.vm release/Makefile.vm: Support read-only ports tree 2024-04-23 22:02:02 -07:00
rc.local Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
release.conf.sample release/oci: add Oracle Cloud image builder 2023-04-11 09:40:53 -04:00
release.sh release.sh: Don't install git if already present 2024-04-02 13:44:46 -07:00