From owner-freebsd-ports Mon Apr 10 7:30:14 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 01EC337BACD for ; Mon, 10 Apr 2000 07:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA73344; Mon, 10 Apr 2000 07:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id 1688037BA8B for ; Mon, 10 Apr 2000 07:28:58 -0700 (PDT) (envelope-from root@thehousleys.net) Received: (from root@localhost) by thehousleys.net (8.9.3/8.9.3) id KAA50026; Mon, 10 Apr 2000 10:28:57 -0400 (EDT) Message-Id: <200004101428.KAA50026@thehousleys.net> Date: Mon, 10 Apr 2000 10:28:57 -0400 (EDT) From: jim@thehousleys.net Reply-To: jim@thehousleys.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/17903: Allow CVS_UPDATE to be used with SUP_UPDATE w/o PORTSSUPFILE Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17903 >Category: ports >Synopsis: Allow CVS_UPDATE to be used with SUP_UPDATE w/o PORTSSUPFILE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 10 07:30:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: James Housley >Release: FreeBSD 3.4-STABLE i386 >Organization: The Housleys dot Net >Environment: >Description: The src/Makefile allows update to use both SUP_UPDATE and CVS_UPDATE at the same time, ie. SUP to update the secure & crypto tree and CVS to update from the local cvs tree. ports/Makefile won't use CVS_UPDATE if SUP_UPDATE is defined. Not only that but there is an error because PORTSSUPFILE is not defined. The attached patch: Uses SUP if SUP_UPDATE & PORTSSUPFILE are both defined else uses CVS_UPDATE if defined else produces an error (like before) if SUP_UPDATE is defined but PORTSSUPFILE is not defined else produces and error SUP_UPDATE or CVS_UPDATE must be defined >How-To-Repeat: >Fix: --- Makefile Mon Apr 10 10:21:28 2000 +++ Makefile.new Mon Apr 10 10:20:48 2000 @@ -78,11 +86,7 @@ CVS?= cvs update: -.if defined(SUP_UPDATE) -.if !defined(PORTSSUPFILE) - @${ECHO_MSG} "Error: Please define PORTSSUPFILE before doing make update." - @exit 1 -.endif +.if defined(SUP_UPDATE) && defined(PORTSSUPFILE) @echo "--------------------------------------------------------------" @echo ">>> Running ${SUP}" @echo "--------------------------------------------------------------" @@ -92,6 +96,9 @@ @echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT} @echo "--------------------------------------------------------------" cd ${.CURDIR}; ${CVS} -q update -P -d +.elif defined(SUP_UPDATE) && !defined(PORTSSUPFILE) + @${ECHO_MSG} "Error: Please define PORTSSUPFILE before doing make update." + @exit 1 .else @${ECHO_MSG} "Error: Please define either SUP_UPDATE or CVS_UPDATE first." .endif >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message