From owner-freebsd-hackers@freebsd.org Fri Jan 20 15:30:18 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44A48CB9D13 for ; Fri, 20 Jan 2017 15:30:18 +0000 (UTC) (envelope-from sudakov+freebsd@sibptus.tomsk.ru) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id A7CAD1EB1 for ; Fri, 20 Jan 2017 15:30:16 +0000 (UTC) (envelope-from sudakov+freebsd@sibptus.tomsk.ru) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39581433 for freebsd-hackers@freebsd.org; Fri, 20 Jan 2017 21:25:48 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.14.9/8.14.9) with ESMTP id v0KFUF5S077924 for ; Fri, 20 Jan 2017 22:30:15 +0700 (KRAT) (envelope-from sudakov+freebsd@sibptus.tomsk.ru) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.14.9/8.14.9/Submit) id v0KFUCVH077923 for freebsd-hackers@freebsd.org; Fri, 20 Jan 2017 22:30:12 +0700 (KRAT) (envelope-from sudakov+freebsd@sibptus.tomsk.ru) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to sudakov+freebsd@sibptus.tomsk.ru using -f Date: Fri, 20 Jan 2017 22:30:12 +0700 From: Victor Sudakov To: freebsd-hackers@freebsd.org Subject: Re: make.conf options and poudriere Message-ID: <20170120153012.GA77842@admin.sibptus.transneft.ru> References: <20170120095008.GA75122@admin.sibptus.transneft.ru> <1a270201-74ff-0e9b-7eb6-0af7c9846a12@FreeBSD.org> <20170120124731.GA75275@admin.sibptus.transneft.ru> <554f6171-cb2e-596b-595c-9cde36cf3f6f@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <554f6171-cb2e-596b-595c-9cde36cf3f6f@FreeBSD.org> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.7.1 (2016-10-04) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 15:30:18 -0000 Matthew Seaman wrote: > On 2017/01/20 12:47, sudakov+freebsd@sibptus.tomsk.ru wrote: > > The question is not about this particular option but in fact any arbitrary > > Makefile variable. Maybe FLOW_CAPTURE_SPOOL= just for example. > > > > How do I redefine or unset such variables depending on the port, > > without actually editing the port's Makefile itself? I would prefer to > > do it from /usr/local/etc/poudriere.d/foo-bar-make.conf > > Ah -- then you need to set variables conditionally on what the current > working directory is. > > .if $(.CURDIR:M*/net-mgmt/flow-tools) > FLOW_CAPTURE_SPOOL= something > .endif And to unset the variable altogether? > > You may need to use ?= rather than = for the assignment. Unfortunately > this cannot be guaranteed to work, but mostly it does. I thought there was a FreeBSD ports specific mechanism, but there seems to be none. Generic makefile syntax should be used. Thank you for clarification. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859