From owner-svn-src-all@freebsd.org Fri May 25 21:16:22 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8A8BEF4AED; Fri, 25 May 2018 21:16:22 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 75A4D74E9B; Fri, 25 May 2018 21:16:22 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AA49621B00; Fri, 25 May 2018 17:16:16 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute5.internal (MEProxy); Fri, 25 May 2018 17:16:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mPF2oW PqsY4/plHqEnStp7M5vZViFsWRFhQVNg4OJv8=; b=SpGJBMBNXPSDq38S9an7VG y6OfPNEC0J/kESskc5/7T1r9tLQxIJ6u0rHDuWVH5FG6ySxiSeMqWAMgK3H8WhXP WjDJim2nEHKxl27V6jgNXej0ioXe6N1G75ZzRCBvDIDRZ0TuKtZG7e+Q2/WtYSlk qCImvcOJJqd9emLIcgXgrYZqZwTfapTnfBCC5oMkXFHZ3RWdZOiIk4CpCFDawEey TjJb88Bh53RmVjtfQtOHsznm73vgh1IioX0p88Ct8WRs250BJFVLYxpKcLeNmVPu e+ohuN//QqVtUWgFjyvMT8HOuCXV1YzTo3fzAkOm7pIrNzocxAJerL+86mv5RdXw == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 571634109; Fri, 25 May 2018 17:16:16 -0400 (EDT) Message-Id: <1527282976.2998202.1385985472.601C2852@webmail.messagingengine.com> From: Brad Davis To: Bryan Drewery , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-29e6b281 Subject: Re: svn commit: r333407 - head/share/mk References: <201805091344.w49Dist5061908@repo.freebsd.org> <88989fda-4d0b-af16-8d08-28b6cdba0d34@FreeBSD.org> In-Reply-To: <88989fda-4d0b-af16-8d08-28b6cdba0d34@FreeBSD.org> Date: Fri, 25 May 2018 15:16:16 -0600 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2018 21:16:23 -0000 On Fri, May 25, 2018, at 3:10 PM, Bryan Drewery wrote: > On 5/9/2018 6:44 AM, Brad Davis wrote: > > Author: brd > > Date: Wed May 9 13:44:54 2018 > > New Revision: 333407 > > URL: https://svnweb.freebsd.org/changeset/base/333407 > > > > Log: > > Enable directory creation with FILESDIR. > > > > This is part of packaging base work. > > > > Reviewed by: will > > Approved by: bapt (mentor), allanjude (mentor) > > Differential Revision: https://reviews.freebsd.org/D15130 > > > > Please update share/mk/bsd.README too. > > I know I haven't been very responsive but it's partly because I'm still > fundamentally against this feature. It's adding a mechanism to replace > mtree without considering the whole picture and only binding it to FILES > rather than a bsd.dirs.mk; It doesn't actually satisfy replacing mtree > files since it only works if there is a FILESGROUP used (FILES must be > non-empty). So what's the point? My major concern is added confusion. > The creation of directories for installing is a pain point at work for > developers but I don't think this is enough. I liked the idea of > `install "-D"` but I know it's not efficient and had some implementation > issues. > > More below... Funny that you mention bsd.dirs.mk because that is coming.. after a reorg to fix a few other issues that will make this a lot easier.. > > Modified: > > head/share/mk/bsd.files.mk > > head/share/mk/bsd.own.mk > > > > Modified: head/share/mk/bsd.files.mk > > ============================================================================== > > --- head/share/mk/bsd.files.mk Wed May 9 12:25:23 2018 (r333406) > > +++ head/share/mk/bsd.files.mk Wed May 9 13:44:54 2018 (r333407) > > @@ -67,7 +67,7 @@ STAGE_AS_${file:T}= ${${group}NAME_${file:T}} > > STAGE_DIR.${file:T}= ${STAGE_OBJTOP}${${group}DIR_${file:T}} > > stage_as.${file:T}: ${file} > > > > -installfiles-${group}: _${group}INS_${file:T} > > +installfiles-${group}: installdirs-${group} _${group}INS_${file:T} > > _${group}INS_${file:T}: ${file} > > ${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN_${.ALLSRC:T}} \ > > -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ > > @@ -77,10 +77,24 @@ _${group}INS_${file:T}: ${file} > > _${group}FILES+= ${file} > > .endif > > .endfor > > + > > + > > +installdirs-${group}: > > + @echo installing dirs ${group}DIR ${${group}DIR} > > +.for dir in ${${group}DIR} > > +.if defined(NO_ROOT) > > + ${INSTALL} ${${group}TAG_ARGS} -d ${DESTDIR}${dir} > > +.else > > + ${INSTALL} ${${group}TAG_ARGS} -d -o ${DIROWN} -g ${DIRGRP} \ > > + -m ${DIRMODE} ${DESTDIR}${dir} > > I missed this before but the OWN/GRP/MODE usage needs to be per group > just like the FILES group ones are above; it needs to be able to modify > the permissions per group rather than only using the globals. This is part of the coming bsd.dirs.mk work. I need to whack the last few bugs and push it for review. Regards, Brad Davis