From owner-p4-projects@FreeBSD.ORG Thu Jul 13 14:40:34 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3D58F16A4E8; Thu, 13 Jul 2006 14:40:34 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 191A416A4E6 for ; Thu, 13 Jul 2006 14:40:34 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4F9F43D5A for ; Thu, 13 Jul 2006 14:40:26 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6DEeQbK029373 for ; Thu, 13 Jul 2006 14:40:26 GMT (envelope-from gabor@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6DEeQUI029370 for perforce@freebsd.org; Thu, 13 Jul 2006 14:40:26 GMT (envelope-from gabor@FreeBSD.org) Date: Thu, 13 Jul 2006 14:40:26 GMT Message-Id: <200607131440.k6DEeQUI029370@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gabor@FreeBSD.org using -f From: Gabor Kovesdan To: Perforce Change Reviews Cc: Subject: PERFORCE change 101471 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 14:40:34 -0000 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.