Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2006 14:40:26 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 101471 for review
Message-ID:  <200607131440.k6DEeQUI029370@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101471

Change 101471 by gabor@gabor_spitfire on 2006/07/13 14:39:29

	Disallow setting DESTDIR to /, since it doesn't work as intended.
	It would be better to undefine it if it's /, but .undef doesn't
	work in this case, so I haven't found a better solution so far.

Affected files ...

.. //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#22 edit

Differences ...

==== //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#22 (text+ko) ====

@@ -1281,6 +1281,13 @@
 .endif
 DISTNAME?=	${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}
 
+# Disallow setting DESTDIR to /.
+.if defined(DESTDIR) && ${DESTDIR} == "/"
+.BEGIN:
+	@${ECHO_MSG} "You can't set DESTDIR to /. Unset DESTDIR and re-run make."
+	@${FALSE}
+.endif
+
 # These need to be absolute since we don't know how deep in the ports
 # tree we are and thus can't go relative.  They can, of course, be overridden
 # by individual Makefiles or local system make configuration.



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