More 'make release' problems
John Hay
jhay at icomtek.csir.co.za
Thu Sep 1 07:42:44 GMT 2005
>
> 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
@@ -354,7 +354,7 @@
.endif
mkdir -p ${CHROOTDIR}
@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}
@@ -379,10 +379,6 @@
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} \
@@ -405,6 +401,10 @@
@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)
More information about the freebsd-current
mailing list