From owner-freebsd-hackers@freebsd.org Fri Jan 20 12:47:47 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 81247CB723C for ; Fri, 20 Jan 2017 12:47:47 +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 E33F41646 for ; Fri, 20 Jan 2017 12:47:45 +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 39581306 for freebsd-hackers@freebsd.org; Fri, 20 Jan 2017 18:43:07 +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 v0KClY2a076774 for ; Fri, 20 Jan 2017 19:47:34 +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 v0KClV5S076773 for freebsd-hackers@freebsd.org; Fri, 20 Jan 2017 19:47:31 +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 19:47:31 +0700 From: sudakov+freebsd@sibptus.tomsk.ru To: freebsd-hackers@freebsd.org Subject: Re: make.conf options and poudriere Message-ID: <20170120124731.GA75275@admin.sibptus.transneft.ru> References: <20170120095008.GA75122@admin.sibptus.transneft.ru> <1a270201-74ff-0e9b-7eb6-0af7c9846a12@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a270201-74ff-0e9b-7eb6-0af7c9846a12@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 12:47:47 -0000 Matthew Seaman wrote: > > I'm trying to set per-port specific options as written in > > https://forums.freebsd.org/threads/52871/ > > > > For example, I have tried: > > "net-mgmt_flow-tools_UNSET= GCC" > > and > > "net-mgmt_flow-tools_UNSET= USE_GCC" > > > > but the port still requires lang/gcc. However, if I comment out > > "USE_GCC" directly in the net-mgmt/flow-tools/Makefile, it works for me. > > > > What am I doing wrong? I would like to be able to set/unset this > > variable for different sets in poudriere, without editing the ports's > > Makefile itself. > > Settings like 'net-mgmt_flow-tools_UNSET= GCC' only apply to the options > defined by the port, and net-mgmt/flow-tools doesn't define a 'GCC' option. > > Where the port Makefile says: > > USE_GCC=any 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 > > However, if you find that net-mgmt/flow-tools will compile and run > successfully with the system Clang, please submit a PR to have the > 'USE_GCC' line deleted. Yes, I have patched it to compile with the system Clang, and am going to submit a PR about it, but that's another matter. My question is more generic. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859