diff options
author | marcel <marcel@FreeBSD.org> | 2003-03-08 08:51:25 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-03-08 08:51:25 +0000 |
commit | 070a5de70b6575de8713078bfde3805a34f1c31c (patch) | |
tree | 300c8685f7b58df3adec57944fda9a2c330ad452 | |
parent | e01fc931cfd9bda87619e5079027111673291cd0 (diff) | |
download | FreeBSD-src-070a5de70b6575de8713078bfde3805a34f1c31c.zip FreeBSD-src-070a5de70b6575de8713078bfde3805a34f1c31c.tar.gz |
o Run make readmes (ports) from within CHROOTDIR to avoid pollution
and/or breakages due to /etc/make.conf on the host. Move it after
make world and put it in an if-block so that we can include the
commands in the script even if we're not going to make the readmes.
o When building docproj, make sure we propagate the setting of the
FTP_PASSIVE_MODE environment variable. Not propagating the envvar
may cause fetch failures. This increases the number of cases for
which one does not have to prefetch the packages.
-rw-r--r-- | release/Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/release/Makefile b/release/Makefile index 8e6bdab..44d2113 100644 --- a/release/Makefile +++ b/release/Makefile @@ -290,12 +290,6 @@ BOOTABLE="-b" DOCREL= doc.1 doc.2 .endif -.if !defined(NOPORTREADMES) -MAKEREADMES= make readmes PORTSDIR=${CHROOTDIR}/usr/ports -.else -MAKEREADMES= true -.endif - TMAKE!= echo MAKEFLAGS=\"-m ${.CURDIR}/../share/mk\"; \ cd ${.CURDIR}/..; ${MAKE} -f Makefile.inc1 -V TMAKE WMAKEENV!= echo MAKEFLAGS=\"-m ${.CURDIR}/../share/mk\"; \ @@ -366,9 +360,6 @@ release rerelease: .if !defined(NOPORTSATALL) cd ${CHROOTDIR}/usr && ${CVSPREFIX} cvs -R ${CVSARGS} -d ${CVSROOT} co ${CVSCMDARGS} ${CVS_PORTSARGS} ${RELEASEPORTSMODULE} .endif -.if !defined(NOPORTS) - cd ${CHROOTDIR}/usr/ports && ${MAKEREADMES} -.endif .if !defined(NODOC) rm -rf ${CHROOTDIR}/usr/doc .if defined(EXTDOCDIR) @@ -472,6 +463,16 @@ release rerelease: echo " ${CROSSMAKE} ${WORLD_FLAGS} -DNOCLEAN buildworld && \\" >> ${CHROOTDIR}/mk echo " touch /tmp/.world_done" >> ${CHROOTDIR}/mk echo "fi" >> ${CHROOTDIR}/mk +.if !defined(NOPORTS) && !defined(NOPORTREADMES) + echo "if true; then" >> ${CHROOTDIR}/mk +.else + echo "if false; then" >> ${CHROOTDIR}/mk +.endif + echo " echo \">>> make readmes started on \`LC_ALL=C TZ=GMT date\`\"" >> ${CHROOTDIR}/mk + echo " cd /usr/ports" >> ${CHROOTDIR}/mk + echo " make readmes" >> ${CHROOTDIR}/mk + echo " echo \">>> make readmes finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${CHROOTDIR}/mk + echo "fi" >> ${CHROOTDIR}/mk echo "cd /usr/src/release" >> ${CHROOTDIR}/mk echo "make obj" >> ${CHROOTDIR}/mk echo "make \$${_RELTARGET}" >> ${CHROOTDIR}/mk @@ -944,9 +945,9 @@ doc.1: @echo "Making docs..." @for i in ${DOCPORTS}; do \ cd /usr/ports/$$i && \ - env -i PATH=$${PATH} make all install clean \ - BATCH=yes WITHOUT_X11=yes JADETEX=no WITHOUT_PYTHON=yes \ - FORCE_PKG_REGISTER=yes; \ + env -i FTP_PASSIVE_MODE=$${FTP_PASSIVE_MODE:-no} PATH=$${PATH} \ + make all install clean BATCH=yes WITHOUT_X11=yes JADETEX=no \ + WITHOUT_PYTHON=yes FORCE_PKG_REGISTER=yes; \ done @cd /usr/doc && make all install 'FORMATS=html html-split txt' INSTALL_COMPRESSED='' DOCDIR=${RD}/trees/base/usr/share/doc touch doc.1 |