Re: More 'make release' problems

From: John Hay <jhay_at_icomtek.csir.co.za>
Date: Thu, 1 Sep 2005 09:42:07 +0200
> 
> Looks like the tz problem is fixed. Now I have a new problem. After updating 
> cvs and building today's -current it now fails here:
> 
> if [ -d /usr/src/release/../../ports/distfiles/ ]; then  cp 
> -rp /usr/src/release/../../ports/distfiles /bak/release/usr/ports/distfiles;  
> else  mkdir -p /bak/release/usr/ports/distfiles;  fi
> cd: can't cd to /bak/release/usr/ports/lang/perl5.8
> *** Error code 2
> 
> It did a full checkout of the ports cvs, but didn't populate anything.
> 
> Hopefully someone will shed some light on the problems. Has anyone been 
> successful at building a release lately? 

My nightly build finished without a problem. I use this patch. Only the
first part, removal of -DNO_INFO, is needed. The rest is a leftover from
earlier stuff. It is only applied to my /usr/src tree and not to the
chroot area.

My nightly script define a few things that might make a difference:
NOPORTS=YES WORLD_FLAGS=-DNO_WERROR KERNEL_FLAGS=-DNO_WERROR
DOC_LANG=en_US.ISO8859-1

The NO_WERROR ones I can probably remove, but there was a stage where
warnings broke the release so often that I added that. The DOC_LANG
one I added recently because some of the other languages was broken
and that was the easy way out of that.

My script also do a prefetch of all the distfiles that will be needed
for the doc ports.

John
-- 
John Hay -- John.Hay_at_meraka.csir.co.za / jhay_at_FreeBSD.org


Index: release/Makefile
===================================================================
RCS file: /home/ncvs/src/release/Makefile,v
retrieving revision 1.888
diff -u -r1.888 Makefile
--- release/Makefile	11 Jul 2005 15:50:29 -0000	1.888
+++ release/Makefile	31 Aug 2005 10:57:15 -0000
_at__at_ -354,7 +354,7 _at__at_
 .endif
 	mkdir -p ${CHROOTDIR}
 	_at_echo ">>> make release for ${TARGET} started on `LC_ALL=C TZ=GMT date`"
-	cd ${WORLDDIR} && ${NATIVEMAKE} -DNO_GAMES -DNO_HTML -DNO_INFO \
+	cd ${WORLDDIR} && ${NATIVEMAKE} -DNO_GAMES -DNO_HTML \
 	    -DNO_LIB32 -DNO_MAN -DNO_NLS -DNO_PROFILE installworld \
 	    DESTDIR=${CHROOTDIR}
 	cd ${WORLDDIR} && ${NATIVEMAKE} distribution DESTDIR=${CHROOTDIR}
_at__at_ -379,10 +379,6 _at__at_
 	patch -d ${CHROOTDIR}/usr/${RELEASESRCMODULE} ${PATCH_FLAGS} < ${p}
 .endfor
 .endif
-.if defined(LOCAL_SCRIPT)
-	cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} \
-	    RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}
-.endif
 	rm -rf ${CHROOTDIR}/usr/ports
 .if !defined(NOPORTSATALL)
 	cd ${CHROOTDIR}/usr && ${CVSPREFIX} cvs -R ${CVSARGS} -d ${CVSROOT} \
_at__at_ -405,6 +401,10 _at__at_
 	_at_cd ${.CURDIR} && ${MAKE} fetch-distfiles
 .endif
 .endif
+.if defined(LOCAL_SCRIPT) && exists(${LOCAL_SCRIPT})
+	cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} \
+	    RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}
+.endif
 .endif
 .if make(rerelease)
 .if !defined(RELEASENOUPDATE)
Received on Thu Sep 01 2005 - 05:42:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC