cvs commit: ports/dns/c-ares Makefile distinfo pkg-plist
ports/dns/c-ares/files ares-config-info.patch patch-Makefile.in
Stanislav Sedov
stas at FreeBSD.org
Mon Mar 29 08:21:32 UTC 2010
On Mon, 29 Mar 2010 10:46:34 +0300
Peter Pentchev <roam at ringlet.net> mentioned:
> Hmmm, apologies if I'm missing something here - and it would not be
> a big surprise to me if I was, even about such an important thing
> about the package building cluster :\ However, IMHO the need to
> check for WITHOUT_* in the case of "default to on" is somewhat
> a thing of the past - I think that the current options handling code
> will define the WITH_* symbol if there is no options file and this is
> an automated build.
>
> [roam at straylight /usr/ports/dns/c-ares]$ make -V OPTIONSFILE
> /var/db/ports/c-ares/options
> [roam at straylight /usr/ports/dns/c-ares]$ ls -l "`make -V OPTIONSFILE`"
> ls: /var/db/ports/c-ares/options: No such file or directory
> [roam at straylight /usr/ports/dns/c-ares]$ make -V WITH_HIDE_SYMBOLS
> true
> [roam at straylight /usr/ports/dns/c-ares]$ make BATCH=yes -V WITH_HIDE_SYMBOLS
> true
> [roam at straylight /usr/ports/dns/c-ares]$ make PACKAGE_BUILDING=yes -V WITH_HIDE_SYMBOLS
> true
> [roam at straylight /usr/ports/dns/c-ares]$ make BATCH=yes PACKAGE_BUILDING=yes -V WITH_HIDE_SYMBOLS
> true
> [roam at straylight /usr/ports/dns/c-ares]$ make BATCH=yes PACKAGE_BUILDING=yes -V WITH_HIDE_SYMBOLS -V CONFIGURE_ARGS:M'*symbol*'
> true
> --enable-symbol-hiding
> [roam at straylight /usr/ports/dns/c-ares]$
>
> Am I wrong in assuming that any automatically-built packages would
> have BATCH and/or PACKAGE_BUILDING defined at build time, and that
> the code in bsd.port(.pre).mk would use the default value for all
> options in that case? Or is there some defined symbol - or some other
> combination of symbols - that would result in WITH_HIDE_SYMBOLS
> *not* being defined, even though the option's default is "yes"?
>
> Of course, I could be missing something, in which case I'd be thankful
> for a correction in my worldview :)
>
Sorry, my bad.
It seems you're right and it works fine
here. Sorry for the noise.
However, I noticed it doesn't work
universally. If you take a look at
the security/openconnect port, for example,
that has the same problem (and apparently
was not tested at all), and try to look
what LIB_DEPENDS contains (make -V LIB_DEPENDS)
you will notice it always pulls gtk into depends
regardless of the GUI option value. It appears
that we should be careful with options checking
even in this century :-)
Again, sorry for the noise. :-)
--
Stanislav Sedov
ST4096-RIPE
More information about the cvs-ports
mailing list