Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2002 08:34:27 +0200
From:      Udo Schweigert <Udo.Schweigert@siemens.com>
To:        Kris Kennaway <kris@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: ports/Mk bsd.port.mk
Message-ID:  <20020920063427.GA4769@alaska.cert.siemens.de>
In-Reply-To: <200209190016.g8J0Get3023050@freefall.freebsd.org>
References:  <200209190016.g8J0Get3023050@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 18, 2002 at 17:16:39 -0700, Kris Kennaway wrote:
>    .....
>
>   Revision  Changes    Path
>   1.424     +72 -39    ports/Mk/bsd.port.mk
> 

I found another problem with that. If /usr/ports/distfiles does not exist 
you get the error message that it isn't writable and the mkdir won't be
executed. A patch like the following solves that:

--- bsd.port.mk.orig	Fri Sep 20 06:07:11 2002
+++ bsd.port.mk	Fri Sep 20 08:28:03 2002
@@ -2066,7 +2066,7 @@
 
 .if !target(do-fetch)
 do-fetch:
-	@if [ ! -w ${DISTDIR} ]; then \
+	@if [ -e ${DISTDIR} -a ! -w ${DISTDIR} ]; then \
 	   ${ECHO_MSG} ">> ${DISTDIR} is not writable; cannot fetch."; \
 	   exit 1; \
 	fi

Best regards

--
Udo Schweigert, Siemens AG   | Voice      : +49 89 636 42170
CT IC CERT, Siemens CERT     | Fax        : +49 89 636 41166
D-81730 Muenchen / Germany   | email      : udo.schweigert@siemens.com

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?20020920063427.GA4769>