Date: Mon, 16 Jun 2014 18:51:06 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: Michelle Sullivan <michelle@sorbs.net> Cc: ports@freebsd.org 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? Message-ID: <454305065.20140616185106@serebryakov.spb.ru> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?454305065.20140616185106>