Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2000 18:02:35 -0500 (EST)
From:      Matt Loschert <loschert@servint.com>
To:        "Michael R. Wayne" <wayne@staff.msen.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Make fails to propagate variables?
Message-ID:  <Pine.BSF.4.21.0002231752490.11813-200000@delft.servint.com>
In-Reply-To: <20000223111907.A55004@manor.msen.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 23 Feb 2000, Michael R. Wayne wrote:

> So, as I understand it, there's no way to build a release from the
> current local copy without doing a CVS to retreive new files?

I actually was looking into this about a week ago.  Applying the attached
patch to /usr/src/release/Makefile replaces the cvs checkout with a
recursive copy from local sources.  Note: I had to use -L with cp since my
/usr/src is a symlink.

If your local cvsup'd repo is in /usr/src/, /usr/ports, and /usr/doc, set
CVSROOT to /usr and the patch should do the trick.

BTW, I still haven't gotten make release to work all the way through.  My
build stops while trying to run makewhatis in the chroot'ed build
environment.  I can't figure out why, so maybe I *am* doing something
wrong.  Anyway, good luck.

--
Matt Loschert
Software Engineer
ServInt Internet Services

[-- Attachment #2 --]
--- Makefile	Wed Dec 15 19:59:58 1999
+++ Makefile.localrepo	Wed Feb 23 17:47:04 2000
@@ -170,13 +170,8 @@
 	for i in ${BOOTSTRAPUTILS} ; do \
 		cp -p ${CHROOTDIR}$$i ${CHROOTDIR}/${BOOTSTRAPDIR} ; \
 	done
-.if !defined(RELEASETAG)
 	cd ${CHROOTDIR}/usr && rm -rf src && \
-		cvs -R -d ${CVSROOT} co -P ${RELEASESRCMODULE}
-.else
-	cd ${CHROOTDIR}/usr && rm -rf src && \
-		cvs -R -d ${CVSROOT} co -P -r ${RELEASETAG} ${RELEASESRCMODULE}
-.endif
+		cp -RL ${CVSROOT}/${RELEASESRCMODULE} ${RELEASESRCMODULE}
 .if defined(LOCAL_PATCHES) && exists(${LOCAL_PATCHES})
 	cd ${CHROOTDIR}/usr/src && patch ${PATCH_FLAGS} < ${LOCAL_PATCHES}
 .endif
@@ -184,7 +179,7 @@
 	cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}
 .endif
 .if !defined(NOPORTS)
-	cd ${CHROOTDIR}/usr && rm -rf ports && cvs -R -d ${CVSROOT} co -P ${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
+	cd ${CHROOTDIR}/usr && rm -rf ports && cp -RL ${CVSROOT}/${RELEASEPORTSMODULE} ${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
 .endif
 .if !defined(NODOC)
 	cd ${CHROOTDIR}/usr && rm -rf doc && cvs -R -d ${CVSROOT} co -P ${RELEASEDOCMODULE}

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0002231752490.11813-200000>