tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

make question



Hi,

I would like to build a package from a Makefile with a changing set of 
build options, like so:

build-with-changing-opts:
.for _opt_ in ${PKG_SUPPORTED_OPTIONS}
        @echo "=> Building without option ${_opt_} 
(${PKG_SUPPORTED_OPTIONS})"
        ${MAKE} clean
        ${MAKE} ${PKG_OPTIONS_VAR}=${PKG_SUPPORTED_OPTIONS:N${_opt_}:Q}
		[...]
.endfor

but while (e.g.) ${PKG_OPTIONS.samba4} shows the intended subset of 
options, the build dialog "Currently selected..." shows  the full set 
for ${PKG_OPTIONS}, and that apparently is the set that is used for the 
build.

An example:

[...]
=> Building without option ads (ads avahi fam ldap pam winbind acl)
/usr/bin/make clean
===> Cleaning for samba-4.13.9
/usr/bin/make PKG_OPTIONS.samba4=avahi\ fam\ ldap\ pam\ winbind\ acl
[...]
===> Installing dependencies for samba-4.13.9
==========================================================================
The supported build options for samba are:

        acl ads avahi fam ldap pam winbind

The currently selected options are:

        acl ads avahi fam ldap pam winbind

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.samba4 = avahi fam ldap pam winbind acl
[...]

What am I missing?

Cheerio,
Hauke

-- 
Hauke Fath                        <hauke%Espresso.Rhein-Neckar.DE@localhost>
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


Home | Main Index | Thread Index | Old Index