freebsd-src/release
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
..
amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
arm release: remove arm/armv6 RPI-B configuration file 2023-08-31 19:24:38 -04:00
arm64 arm64/RPI: enable powerd by default on arm64-aarch64-RPI images 2024-01-05 13:41:24 -06:00
i386 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
packages pkgbase: remove post-install script for kernel 2024-03-27 09:08:39 +01:00
pkg_repos Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
powerpc release: Fix powerpc boot block uudecoding 2024-04-12 17:52:28 -07:00
riscv riscv: add firmware partitions to GENERICSD.conf 2024-02-14 11:16:54 -04:00
scripts release: Use the ABI of the target release to fetch packages 2024-04-14 16:45:40 -07:00
tools ec2: homedir bug fixed in 24.1.4 2024-04-11 14:12:16 -07:00
Makefile release: Don't reuse disc1/bootonly directories 2024-04-09 20:29:16 -07:00
Makefile.azure release: Support r/o /usr/ports for cloudware 2024-04-12 10:58:09 -07:00
Makefile.ec2 release: Support r/o /usr/ports for cloudware 2024-04-12 10:58:09 -07:00
Makefile.firecracker Firecracker: Make root disk configurable 2023-08-07 09:21:08 -07:00
Makefile.gce release: Support r/o /usr/ports for cloudware 2024-04-12 10:58:09 -07:00
Makefile.inc1 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.mirrors Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.vagrant release: Support r/o /usr/ports for cloudware 2024-04-12 10:58:09 -07:00
Makefile.vm cloudware: allow disk format to be a list 2024-04-14 16:45:40 -07:00
rc.local
release.conf.sample release/oci: add Oracle Cloud image builder 2022-11-27 11:12:02 +00:00
release.sh Reapply "release.sh: Add -jN to make release" 2024-04-09 20:29:16 -07:00