From owner-freebsd-ports@FreeBSD.ORG Mon Jun 16 14:51:11 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1CEA9D2 for ; Mon, 16 Jun 2014 14:51:11 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6E51928BA for ; Mon, 16 Jun 2014 14:51:11 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:1c4b:cac4:59c6:f7d9]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 630C14AC0A; Mon, 16 Jun 2014 18:51:09 +0400 (MSK) Date: Mon, 16 Jun 2014 18:51:06 +0400 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <454305065.20140616185106@serebryakov.spb.ru> To: Michelle Sullivan Subject: Re: How to pick up options from another ("master") port, but don't show "config" dialog at all and have defaults in case of absence of "master" port options file? In-Reply-To: <539F00BC.8050604@sorbs.net> References: <661714484.20140616162734@serebryakov.spb.ru> <539EF3E6.4050502@sorbs.net> <1011094695.20140616183233@serebryakov.spb.ru> <539F00BC.8050604@sorbs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 14:51:11 -0000 Hello, Michelle. You wrote 16 =D0=B8=D1=8E=D0=BD=D1=8F 2014 =D0=B3., 18:35:40: >>>> I want some "dependant" ports to pick-up options set in "main" port,= but >>>> never ever show "config" dialog/UI. I've tried to set >>>> OPTIONS_NAME=3Dcat_port, and it set OPTIONS_FILE_SET and OPTIONS_FILE= _UNSET >>>> variables, but not PORT_OPTIONS variable, as this exact ("dependant")= port >>>> doesn't have OPTIONS_DEFINE (of course). >>>> >>>> What is proper way to use options in this situation? OPTIONS_SLAVE d= oesn't >>>> look right, as it override options file. I need something like >>>> OPTIONS_SLAVE_DEFAULT, which will work as OPTIONS_SLAVE if here is no >>>> ${OPTIONS_FILE} and could be overridden by ${OPTIONS_FILE}, if it is >>>> present. >>>> >>>> =20 >>>> =20 >> MS> Have a look at editors/pico-alpine and mail/alpine that does exactly >> MS> what you're asking I think. >> Nope. "make config" in "editoris/pico-alpine" shows dialog. I don't want >> it at all. >> >> >> =20 MS> Yes but that option set is different from that in alpine ... OPTIONS=3D MS> will clear any options (or just remove the options in that port) I don't need to CLEAR options. As soon as I set "OPTIONS_DEFINE=3D", ${POR= T_OPTIONS} will be empty too (because it is filtered according to OPTIONS_DEFINE), not set according to master port's OPTIONS_DEFAULT, OPTIONS_FILE_SET and OPTIONS_FILE_UNSET. I need to properly load master port's saved options (including default ones, if options were not saved for master port yet) and have properly populated PORT_OPTIONS, but don't show any UI at all in any circumstances. OPTIONS_EXCLUDE/OPTIONS_SLAVE do wrong thing too: they override state ofd options from master port, not inherit them. Now workaround is to check OPTIONS_FILE_SET/OPTIONS_FILE_UNSET directly (after loading master port's OPTIONSFILE), but it looks like dirty hack. --=20 // Black Lion AKA Lev Serebryakov