From owner-svn-ports-head@FreeBSD.ORG Wed Dec 17 14:33:00 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C654A954; Wed, 17 Dec 2014 14:33:00 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2C4C651; Wed, 17 Dec 2014 14:33:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sBHEX0A2017415; Wed, 17 Dec 2014 14:33:00 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sBHEX0Au017411; Wed, 17 Dec 2014 14:33:00 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201412171433.sBHEX0Au017411@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Wed, 17 Dec 2014 14:33:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374849 - in head/Mk: . Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2014 14:33:00 -0000 Author: bapt Date: Wed Dec 17 14:32:59 2014 New Revision: 374849 URL: https://svnweb.freebsd.org/changeset/ports/374849 QAT: https://qat.redports.org/buildarchive/r374849/ Log: Add USES=fakeroot to allow packaging ports that are not stageable as a user It uses debian's fakeroot, like NEED_ROOT (which it is supposed to replace) it is preferred to fix the port to properly stage without those hacks Added: head/Mk/Uses/fakeroot.mk (contents, props changed) Modified: head/Mk/bsd.port.mk Added: head/Mk/Uses/fakeroot.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/fakeroot.mk Wed Dec 17 14:32:59 2014 (r374849) @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# Changes some default behaviour of build systems to allow installing as user. +# +# Feature: fakeroot +# Usage: USES=fakeroot +# Valid ARGS: none +# +# MAINTAINER: bapt@FreeBSD.org + +.if !defined(_INCLUDE_USES_FAKEROOT_MK) +_INCLUDE_USES_FAKEROOT_MK= yes +.if ${UID} != 0 +BUILD_DEPENDS+= fakeroot:${PORTSDIR}/security/fakeroot +FAKEROOT?= fakeroot +.endif +.endif Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Wed Dec 17 13:31:42 2014 (r374848) +++ head/Mk/bsd.port.mk Wed Dec 17 14:32:59 2014 (r374849) @@ -3557,7 +3557,7 @@ check-install-conflicts: .if !target(do-install) && !defined(NO_INSTALL) do-install: - @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) + @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) .endif # Package