aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2013-11-04 16:28:29 +0000
committerGlen Barber <gjb@FreeBSD.org>2013-11-04 16:28:29 +0000
commit1997c2ef26f54cac5da49ec264cf712445b9172d (patch)
treef6248158840dae71e8300930aadc43adb63e55eb /release/release.sh
parent2b3f8f22e173e33dcb571ebf8838946db1a8f1a3 (diff)
downloadsrc-1997c2ef26f54cac5da49ec264cf712445b9172d.tar.gz
src-1997c2ef26f54cac5da49ec264cf712445b9172d.zip
When building the textproc/docproj port, the ports-mgmt/pkg port
needs /var/run/ld-elf*.so.hints, which is not automatically created. Fix reldoc build by running the ldconfig(8) startup script in the chroot directory before starting the port build phase. MFC after: 3 days Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=257641
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/release.sh b/release/release.sh
index fbab2a8f2e74..a7bfc8e5aee6 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -167,6 +167,10 @@ mount -t devfs devfs ${CHROOTDIR}/dev
trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit
build_doc_ports() {
+ # Run ldconfig(8) in the chroot directory so /var/run/ld-elf*.so.hints
+ # is created. This is needed by ports-mgmt/pkg.
+ chroot ${CHROOTDIR} /etc/rc.d/ldconfig forcerestart
+
## Trick the ports 'run-autotools-fixup' target to do the right thing.
_OSVERSION=$(sysctl -n kern.osreldate)
if [ -d ${CHROOTDIR}/usr/doc ] && [ "x${NODOC}" = "x" ]; then