pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PKG_DEFAULT_OPTIONS
Le 05/05/16 07:24, Robert Elz a écrit :
> Date: Mon, 2 May 2016 10:50:25 +0200
> From: Thomas Klausner <wiz%NetBSD.org@localhost>
> Message-ID: <20160502085025.GA6373%danbala.tuwien.ac.at@localhost>
>
> | That includes gnutls/bl3.mk if ucommon was built with the gnutls
> | option.
>
> Actually, it doesn't - it includes it if a build of ucommon made now
> would use the gnutls option, it tells nothing at all about the state of
> the universe when ucommon was last actually built.
>
> I know one of my fairly common practices is to notice when building a
> package that I forgot an option I would have preferred on, but rather
> than going back and changing things, and rebuilding, I just say "oh well,
> next time" - but I also know my memory is crap, so rather than assuming
> I will remember next time, I change /etc/mk.conf now to include the option
> ready for next time, whenever that happens.
>
> In that situation, if some package that depended upon the one whose options
> have no changed is to be built, and it used the method suggested to discover
> how it should be built, it will use incorrect options, and fail.
>
> The only solutions to this would be to forbig changing mk.conf anytime
> after the first package is built, until everything is removed and we start
> again (and that is just no practical) or to actually query the package
> database, and see what options the package we depend upon was actually
> built with.
>
> lre
>
>
Not sure, but perhaps the potential problem of the dependency not having been made
with recently modified options is something that pkg_chk should deal with, but
that's a different (albeit related) problem (keeping packages up to date).
'pkg_info -Q PKG_OPTIONS libsoup' for me returns 'gssapi'.
Not saying, though, that 'pkg_chk -u' uses this info in conjunction with mk.conf when considering updates, but perhaps it could/should.
There does seem to be a note in pkg_rolling-replace/files/TODO to this effect.
--
Richard PALO
Home |
Main Index |
Thread Index |
Old Index