Subject: Re: Selectively DISabling bin-install ?
To: Todd Vierling <tv@pobox.com>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: tech-pkg
Date: 04/26/2006 20:08:24
In article <f13ed07b0604260559g4b0ebbafj2735960d3a28d7ea@mail.gmail.com> Todd wrote:
: On 4/25/06, Chapman Flack <nblists@anastigmatix.net> wrote:
: > Perhaps this is a way
: > the framework should behave by default when the target is
: > bin-install but the PKG_OPTIONS are nonempty.
: I would tend to agree with this: if PKG_OPTIONS.<name> is nonempty,
: build from source; otherwise use a binpkg.
Which kind of users do you want to help out with this? Users that
use binary repositories on ftp.NetBSD.org? If so, the logic should be
build from source if the computed PKG_OPTIONS differs from
PKG_SUGGESTED_OPTIONS.
: Note that <name> is
: defined by the package Makefile and doesn't come from PKGNAME, so it
: may be best to have bsd.options.mk contain the logic to force source
: building when the variable is nonempty.
If you use PKG_OPTIONS != PKG_SUGGESTED_OPTIONS, the logic is simple
enough to put it in (or near) bin-install.
: Now, it's arguable as to whether this change in behavior should be
: switchable on/off. :)
Yes, please, make it switchable off! Users that build binary
package repository with custom options should still be able to use
them with bin-install. Yes, they will have to take care about
rebuilding packages with changed options themselves.
yours,
dillo