PERFORCE change 101471 for review

Gabor Kovesdan gabor at FreeBSD.org
Thu Jul 13 14:40:34 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101471

Change 101471 by gabor at 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.


More information about the p4-projects mailing list