diff options
| author | Jens Rehsack <rehsack@gmail.com> | 2015-11-19 20:46:55 +0100 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-01-04 12:58:10 -0500 |
| commit | 6b17037edf4288daa22291e61064970ca5619f60 (patch) | |
| tree | 5bbb9f36c8f91aa2fb1103681062faf7175f7433 /meta-networking | |
| parent | 418d59459148621d593054dc397335d24165a655 (diff) | |
| download | meta-openembedded-6b17037edf4288daa22291e61064970ca5619f60.tar.gz | |
samba: make cyrus-sasl optional
Since waf doesn't allow override check results via environment, a patch
is needed to remove the bad check when an optional feature is unwanted.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch | 10 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.1.12.bb | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch b/meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch new file mode 100644 index 0000000000..4254e1158f --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | --- ./source4/auth/wscript_configure.orig 2015-11-19 19:53:11.022212181 +0100 | ||
| 2 | +++ ./source4/auth/wscript_configure 2015-11-19 19:53:17.466212205 +0100 | ||
| 3 | @@ -2,7 +2,3 @@ | ||
| 4 | |||
| 5 | conf.CHECK_HEADERS('security/pam_appl.h') | ||
| 6 | conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True) | ||
| 7 | - | ||
| 8 | -if (conf.CHECK_HEADERS('sasl/sasl.h') and | ||
| 9 | - conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')): | ||
| 10 | - conf.DEFINE('HAVE_SASL', 1) | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb b/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb index a2d3a2c494..75cf5d2281 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb | |||
| @@ -40,8 +40,7 @@ SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274f | |||
| 40 | 40 | ||
| 41 | inherit systemd waf-samba cpan-base perlnative | 41 | inherit systemd waf-samba cpan-base perlnative |
| 42 | 42 | ||
| 43 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd cyrus-sasl" | 43 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd" |
| 44 | |||
| 45 | 44 | ||
| 46 | SYSVINITTYPE_linuxstdbase = "lsb" | 45 | SYSVINITTYPE_linuxstdbase = "lsb" |
| 47 | SYSVINITTYPE = "sysv" | 46 | SYSVINITTYPE = "sysv" |
| @@ -62,10 +61,13 @@ PACKAGECONFIG[pam] = "--with-pam --with-pam_smbpass --with-pammodulesdir=${base_ | |||
| 62 | PACKAGECONFIG[lsb] = ",,lsb" | 61 | PACKAGECONFIG[lsb] = ",,lsb" |
| 63 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" | 62 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" |
| 64 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | 63 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" |
| 64 | PACKAGECONFIG[sasl] = ",,cyrus-sasl" | ||
| 65 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" | 65 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" |
| 66 | PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" | 66 | PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" |
| 67 | PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" | 67 | PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" |
| 68 | 68 | ||
| 69 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'sasl', '', 'file://21-avoid-sasl-unless-wanted.patch', d)}" | ||
| 70 | |||
| 69 | SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" | 71 | SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" |
| 70 | SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4" | 72 | SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4" |
| 71 | SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" | 73 | SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" |
