Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 15:49:04 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Mark Murray <mark@grondar.za>, "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/gnu/usr.bin/perl Makefile Makefile.inc src/gnu/usr.bin/perl/utils Makefile.inc
Message-ID:  <20010925154904.E97142@sunbay.com>
In-Reply-To: <20010924172640.B79120@sunbay.com>; from ru@FreeBSD.org on Mon, Sep 24, 2001 at 05:26:40PM %2B0300
References:  <20010922120750.F76391@sunbay.com> <200109221317.f8MDHhV14512@grimreaper.grondar.za> <20010924172640.B79120@sunbay.com>

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

--ftEhullJWpWg/VHq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Sep 24, 2001 at 05:26:40PM +0300, Ruslan Ermilov wrote:
> Here, with a slightly updated patch (attached),
> 
> > o make release
> > 
> Will test it tonight, though it doesn't differ from the usual
> "buildworld" in this case.  But just because you asked, I'll
> just do it.  :-)
> 
OK, this has just passed the "release" test.  ("make release"
failed at release.8 when attempting to cpio(1) on the boot
floppy due to the BOOTMFS kernel being oversized these days
to fit on a standard 1.44MB floppy.)

This showed the need for a minor tweak to Makefile.inc1, to
add -DWORLD to IMAKE, to avoid installing miniperl during
"installworld".

The attached patch thus passed all your tests.
Hope to hear soon from you!  :-)

> > o make buildworld 
> > 
> --------------------------------------------------------------
> >>> elf make world completed on Mon Sep 24 17:05:39 EEST 2001
>                         (started Mon Sep 24 15:55:20 EEST 2001)
> --------------------------------------------------------------
> 
> This was a -CURRENT "make world" run on -STABLE box with DESTDIR=/CURRENT.
> 
> > o the usual combinations of "make obj && make depend && make" run in
> >   src/gnu/usr/bin/perl
> > 
> Works as expected, with and without "make obj".
> 
> > All on both STABLE and CURRENT boxes, in all the currently working
> > architectures (i386 and alpha).
> > 
> There are no cross-platform issues to require this to be tested on
> Alpha.  To convince you it should work, I can only say that miniperl
> is built only once in "buildworld" now, at the "cross-tools" stage,
> for the "host" platform, and MINIPERL make(1) variable is "miniperl"
> during the "all" stage of "buildworld".
> 
> The standalong and "buildworld" cases can be easily tested quickly
> with "make -V MINIPERL" executed in different subdirs of perl.


-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--ftEhullJWpWg/VHq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=p

Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.218
diff -u -r1.218 Makefile.inc1
--- Makefile.inc1	2001/09/25 12:17:52	1.218
+++ Makefile.inc1	2001/09/25 12:45:51
@@ -200,12 +200,12 @@
 		DESTDIR=${WORLDTMP} \
 		INSTALL="sh ${.CURDIR}/tools/install.sh" \
 		PATH=${TMPPATH}
-WMAKE=		${WMAKEENV} ${MAKE} -f Makefile.inc1
+WMAKE=		${WMAKEENV} ${MAKE} -f Makefile.inc1 -DWORLD
 
 # install stage
 IMAKEENV=	${CROSSENV} \
 		PATH=${STRICTTMPPATH}:${INSTALLTMP}
-IMAKE=		${IMAKEENV} ${MAKE} -f Makefile.inc1
+IMAKE=		${IMAKEENV} ${MAKE} -f Makefile.inc1 -DWORLD
 
 # kernel stage
 KMAKEENV=	${WMAKEENV} \
@@ -324,7 +324,7 @@
 	mkdir -p ${INSTALLTMP}
 	for prog in [ awk cat chflags chmod chown date echo egrep find grep \
 	    ln make makewhatis mkdir mtree mv perl rm sed sh sysctl \
-	    test true uname wc which zic; do \
+	    test true uname wc zic; do \
 		cp `which $$prog` ${INSTALLTMP}; \
 	done
 	cd ${.CURDIR}; ${IMAKE} reinstall
Index: gnu/usr.bin/perl/Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- gnu/usr.bin/perl/Makefile	2001/09/21 13:50:30	1.16
+++ gnu/usr.bin/perl/Makefile	2001/09/25 12:45:52
@@ -1,23 +1,11 @@
 # $FreeBSD: src/gnu/usr.bin/perl/Makefile,v 1.16 2001/09/21 13:50:30 markm Exp $
 
-.ifmake !install && !distribute
-_MINI=	miniperl
+SUBDIR=		libperl
+.if !defined(WORLD)
+SUBDIR+=	miniperl
 .endif
+SUBDIR+=	perl suidperl library pod utils x2p BSDPAN
 
-SUBDIR= libperl ${_MINI} perl suidperl library pod utils x2p BSDPAN
-
 MAINTAINER=markm@freebsd.org
-
-.BEGIN:
-.ifmake depend || all
-	if [ \! -f ${.OBJDIR}/build-tools ] ; then \
-		cd ${.CURDIR}/libperl && ${MAKE} depend && ${MAKE} all ; \
-		cd ${.CURDIR}/miniperl && ${MAKE} depend && ${MAKE} all ; \
-		touch ${.OBJDIR}/build-tools ; \
-	fi
-.endif
-.ifmake cleandir || clean
-	@rm -f ${.OBJDIR}/build-tools
-.endif
 
 .include <bsd.subdir.mk>
Index: gnu/usr.bin/perl/Makefile.inc
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/Makefile.inc,v
retrieving revision 1.25
diff -u -r1.25 Makefile.inc
--- gnu/usr.bin/perl/Makefile.inc	2001/09/21 13:50:31	1.25
+++ gnu/usr.bin/perl/Makefile.inc	2001/09/25 12:45:52
@@ -2,7 +2,15 @@
 
 PERL5SRC?= ${.CURDIR}/../../../../contrib/perl5
 PERL5LIBSRC?= ${.CURDIR}/../libperl
-MINIPERL!=	echo `PATH=$$PATH:${.OBJDIR}/../miniperl:${.OBJDIR}/../../miniperl which miniperl`
+
+.if !defined(WORLD)
+.if exists(${.OBJDIR}/../miniperl/miniperl)
+MINIPERL?=	${.OBJDIR}/../miniperl/miniperl
+.elif exists(${.OBJDIR}/../../miniperl/miniperl)
+MINIPERL?=	${.OBJDIR}/../../miniperl/miniperl
+.endif
+.endif
+MINIPERL?=	miniperl
 
 BINDIR?=	/usr/bin
 
Index: gnu/usr.bin/perl/library/Makefile.inc
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/library/Makefile.inc,v
retrieving revision 1.7
diff -u -r1.7 Makefile.inc
--- gnu/usr.bin/perl/library/Makefile.inc	2001/05/26 17:40:09	1.7
+++ gnu/usr.bin/perl/library/Makefile.inc	2001/09/25 12:45:52
@@ -2,7 +2,6 @@
 
 PERL5SRC?=	${.CURDIR}/../../../../../contrib/perl5
 PERL5LIBSRC?=	${.CURDIR}/../../libperl
-MINIPERL=	miniperl
 
 MODULEDIR?=	${MODULE}
 
Index: gnu/usr.bin/perl/miniperl/Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/miniperl/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- gnu/usr.bin/perl/miniperl/Makefile	2001/02/13 05:19:56	1.18
+++ gnu/usr.bin/perl/miniperl/Makefile	2001/09/25 12:45:54
@@ -19,6 +19,10 @@
 
 NO_PERL_SCRIPT_MAKE=	true
 
+.if !defined(BOOTSTRAPPING)
+install:
+.endif
+
 .include <bsd.prog.mk>
 
 .PATH:	${PERL5SRC}
Index: gnu/usr.bin/perl/pod/Makefile.inc
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/pod/Makefile.inc,v
retrieving revision 1.4
diff -u -r1.4 Makefile.inc
--- gnu/usr.bin/perl/pod/Makefile.inc	2000/11/20 02:17:33	1.4
+++ gnu/usr.bin/perl/pod/Makefile.inc	2001/09/25 12:45:54
@@ -4,7 +4,6 @@
 
 PERL5SRC?=	${.CURDIR}/../../../../../contrib/perl5
 MINIPERLOPT?=	-I${.OBJDIR}/../../perl/lib -I${.OBJDIR}/../../perl
-MINIPERL=	miniperl
 
 CLEANFILES+=	${PROG}.1 ${PROG}.PL
 
Index: gnu/usr.bin/perl/x2p/Makefile.inc
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/x2p/Makefile.inc,v
retrieving revision 1.7
diff -u -r1.7 Makefile.inc
--- gnu/usr.bin/perl/x2p/Makefile.inc	2000/11/20 02:17:34	1.7
+++ gnu/usr.bin/perl/x2p/Makefile.inc	2001/09/25 12:45:58
@@ -5,7 +5,6 @@
 PERL5SRC=	${.CURDIR}/../../../../../contrib/perl5
 PERL5LIBSRC=	${.CURDIR}/../../libperl
 MINIPERLOPT?=	-I${.OBJDIR}/../../perl/lib -I${.OBJDIR}/../../perl
-MINIPERL=	miniperl
 
 LDFLAGS+=	-L${.OBJDIR}/../../libperl
 

--ftEhullJWpWg/VHq--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010925154904.E97142>