aboutsummaryrefslogtreecommitdiff
path: root/release/scripts
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-04-26 17:55:27 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-04-26 17:55:27 +0000
commit6bde859f40f5bcb38ea48b207faf7c31e461a0f5 (patch)
tree5e727666c21a8e673dedcd5adfb9a89712365fbb /release/scripts
parent975d4a76cc407cabf61c504bbdc220d72b8407b0 (diff)
downloadsrc-6bde859f40f5bcb38ea48b207faf7c31e461a0f5.tar.gz
src-6bde859f40f5bcb38ea48b207faf7c31e461a0f5.zip
Milestone #1 in cross-arch make releases.
Do not install games and profiled libraries to the ${CHROOTDIR} with the initial installworld. Eliminate the need in the second installworld. For that, make sure _everything_ is built in the "world" environment, using the right tool chain. Added SUBDIR_OVERRIDE helper stuff to Makefile.inc1. Split the buildworld process into stages, and skip some stages when SUBDIR_OVERRIDE is set (used to build crypto, krb4, and krb5 dists). Added NO_MAKEDB_RUN knob to Makefile.inc1 to avoid running makewhatis(1) at the end of installworld (used when making crypto, krb4, and krb5 dists). In release/scripts/doFS.sh, ensure that the correct boot blocks are used. Moved the creation of the "crypto" dist from release.5 to release.2. In release.3 and doMFSKERN, build kernels in the "world" environment. KERNELS now means "additional" kernels, GENERIC is always built. Ensure we build crunched binaries in the "world" environment. Obfuscate release/Makefile some more (WMAKEENV) to achieve this. Inline createBOOTMFS target. Use already built GENERIC kernel modules to augment mfsfd's /stand/modules. GC doMODULES as such. Assorted fixes: Get rid of the "afterdistribute" target by moving the single use of it from sys/Makefile to etc/Makefile's "distribute". Makefile.inc1: apparently "etc" no longer needs to be last for "distribute" to succeed. gnu/usr.bin/perl/library/Makefile.inc: do not override the "install" and "distribute" targets, do it the "canonical" way. release/scripts/{man,cat}pages-make.sh: make sure Perl manpages and catpages appear in the right dists. Note that because Perl does not respect the MANBUILDCAT (and NOMAN), this results in a loss of /usr/share/perl/man/cat* empty directories. This will be fixed soon. Turn MAKE_KERBEROS4 into a plain boolean variable (if it is set it means "make KerberosIV"), as documented in the make.conf(5) manpage. Most of the userland makefiles did not test it for "YES" anyway. XXX Should specialized kerberized libpam versions be included into the krb4 and krb5 dists? (libpam.a would be incorrect anyway if both krb4 and krb5 dists were choosen.) Make sure "games" dist is made before "catpages", otherwise games catpages settle in the wrong dist. Fast build machine provided by: Igor Kucherenko <kivvy@sunbay.com>
Notes
Notes: svn path=/head/; revision=95509
Diffstat (limited to 'release/scripts')
-rwxr-xr-xrelease/scripts/catpages-make.sh5
-rw-r--r--release/scripts/doFS.sh7
-rwxr-xr-xrelease/scripts/manpages-make.sh5
3 files changed, 15 insertions, 2 deletions
diff --git a/release/scripts/catpages-make.sh b/release/scripts/catpages-make.sh
index 755057d40ccb..042d1048f183 100755
--- a/release/scripts/catpages-make.sh
+++ b/release/scripts/catpages-make.sh
@@ -10,3 +10,8 @@ if [ -d ${RD}/trees/base/usr/share/man ]; then
find cat* whatis | cpio -dumpl ${RD}/trees/catpages/usr/share/man > /dev/null 2>&1) &&
rm -rf ${RD}/trees/base/usr/share/man/cat*;
fi
+if [ -d ${RD}/trees/base/usr/share/perl/man ]; then
+ ( cd ${RD}/trees/base/usr/share/perl/man;
+ find cat* whatis | cpio -dumpl ${RD}/trees/catpages/usr/share/perl/man > /dev/null 2>&1) &&
+ rm -rf ${RD}/trees/base/usr/share/perl/man/cat*;
+fi
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index 12aceaa9cd7b..985f7ed96d59 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -21,6 +21,9 @@ FSPROTO=$1 ; shift
FSINODE=$1 ; shift
FSLABEL=$1 ; shift
+BOOT1=${RD}/trees/base/boot/boot1
+BOOT2=${RD}/trees/base/boot/boot2
+
deadlock=20
dofs_vn () {
@@ -47,7 +50,7 @@ dofs_vn () {
dd of=${FSIMG} if=/dev/zero count=${FSSIZE} bs=1k 2>/dev/null
vnconfig -s labels -c /dev/r${VNDEVICE} ${FSIMG}
- disklabel -Brw ${VNDEVICE} ${FSLABEL}
+ disklabel -w -B -b ${BOOT1} -s ${BOOT2} ${VNDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 1 /dev/r${VNDEVICE}c
mount /dev/${VNDEVICE}c ${MNT}
@@ -98,7 +101,7 @@ dofs_md () {
exit 1
fi
fi
- disklabel -Brw ${MDDEVICE} ${FSLABEL}
+ disklabel -w -B -b ${BOOT1} -s ${BOOT2} ${MDDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c
mount /dev/${MDDEVICE}c ${MNT}
diff --git a/release/scripts/manpages-make.sh b/release/scripts/manpages-make.sh
index bb1326f3d506..0f13d3c97475 100755
--- a/release/scripts/manpages-make.sh
+++ b/release/scripts/manpages-make.sh
@@ -10,3 +10,8 @@ if [ -d ${RD}/trees/base/usr/share/man ]; then
find . | cpio -dumpl ${RD}/trees/manpages/usr/share/man > /dev/null 2>&1) &&
rm -rf ${RD}/trees/base/usr/share/man;
fi
+if [ -d ${RD}/trees/base/usr/share/perl/man ]; then
+ ( cd ${RD}/trees/base/usr/share/perl/man;
+ find . | cpio -dumpl ${RD}/trees/manpages/usr/share/perl/man > /dev/null 2>&1) &&
+ rm -rf ${RD}/trees/base/usr/share/perl/man;
+fi