From owner-svn-src-head@FreeBSD.ORG Tue Jan 27 07:19:37 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 7ED5B3CE; Tue, 27 Jan 2015 07:19:37 +0000 (UTC) Date: Tue, 27 Jan 2015 07:19:37 +0000 From: Alexey Dokuchaev To: Garrett Cooper Subject: Re: svn commit: r277737 - in head: etc/pam.d tools/build/mk Message-ID: <20150127071937.GB77865@FreeBSD.org> References: <201501260850.t0Q8oDna015719@svn.freebsd.org> <86fvax91cy.fsf@nine.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, Dag-Erling Smorgrav , svn-src-all@freebsd.org, src-committers , Garrett Cooper X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2015 07:19:37 -0000 On Mon, Jan 26, 2015 at 06:26:54PM -0800, Garrett Cooper wrote: > On Jan 26, 2015, at 4:23, Dag-Erling Smorgrav wrote: > > Garrett Cooper writes: > >> Log: > >> Honor MK_ACCT with etc/pam.d/atrun > > > > The correct idiom would be > > I disagree for a few reasons: [...] > 2. The likelihood of typos creeping into Makefiles is greater with the > _foo= idiom. > 3. It creates unnecessary local variables - especially when appending is > so easy to do. > 4. It's more difficult when backporting changes to do it with the variable > method - especially if context around the line modified has changed a > great deal. As someone who writes makefile daily I would agree, but there should be a reason why it was always done with _foo. One obvious one is that it shows up front all possible values, including conditional ones, which can also help not to forget something when backporting changes somewhere else. ;-) ./danfe