update to samba 4.7.0
cover update to samba 4.7.0
Currently supported version. Apply the patches in order. You can stop after patch 3. When you apply 4, immediately apply 5 because samba 4.6.7 will generate a library that is also generated by libldb (it refuses to use libldb 1.2.2).
Joe Slater (5):
libtalloc: update to version 2.1.10
libtevent: update to version 0.99.33
libtdb: update to version 1.3.15
libldb: update to version 1.2.2
samba: move to version 4.7.0
.../samba/samba/dnsserver-4.7.0.patch | 19 ++++++
.../samba/samba/iconv-4.7.0.patch | 25 ++++++++
.../samba/samba/smb_conf-4.7.0.patch | 19 ++++++
.../samba/{samba_4.6.7.bb => samba_4.7.0.bb} | 67 +++++++++++++++++-----
.../libldb/{libldb_1.1.29.bb => libldb_1.2.2.bb} | 6 +-
...ons-for-packages.patch => options-2.1.10.patch} | 17 +++---
.../{libtalloc_2.1.9.bb => libtalloc_2.1.10.bb} | 7 ++-
.../libtdb/{libtdb_1.3.14.bb => libtdb_1.3.15.bb} | 4 +-
...ons-for-packages.patch => options-0.9.33.patch} | 28 ++++-----
.../{libtevent_0.9.31.bb => libtevent_0.9.33.bb} | 6 +-
10 files changed, 153 insertions(+), 45 deletions(-)
create mode 100644 meta-networking/recipes-connectivity/samba/samba/dnsserver-4.7.0.patch
create mode 100644 meta-networking/recipes-connectivity/samba/samba/iconv-4.7.0.patch
create mode 100644 meta-networking/recipes-connectivity/samba/samba/smb_conf-4.7.0.patch
rename meta-networking/recipes-connectivity/samba/{samba_4.6.7.bb => samba_4.7.0.bb} (79%)
rename meta-networking/recipes-support/libldb/{libldb_1.1.29.bb => libldb_1.2.2.bb} (92%)
rename meta-networking/recipes-support/libtalloc/libtalloc/{talloc-Add-configure-options-for-packages.patch => options-2.1.10.patch} (95%)
rename meta-networking/recipes-support/libtalloc/{libtalloc_2.1.9.bb => libtalloc_2.1.10.bb} (90%)
rename meta-networking/recipes-support/libtdb/{libtdb_1.3.14.bb => libtdb_1.3.15.bb} (91%)
rename meta-networking/recipes-support/libtevent/libtevent/{tevent-Add-configure-options-for-packages.patch => options-0.9.33.patch} (90%)
rename meta-networking/recipes-support/libtevent/{libtevent_0.9.31.bb => libtevent_0.9.33.bb} (87%)Signature · 1 line
2.7.4
PATCH 1/5 libtalloc: update to version 2.1.10
Version needed to build samba 4.7.0.
---
...-options-for-packages.patch => options-2.1.10.patch} | 17 ++++++++++-------
.../{libtalloc_2.1.9.bb => libtalloc_2.1.10.bb} | 7 ++++---
2 files changed, 14 insertions(+), 10 deletions(-)
rename meta-networking/recipes-support/libtalloc/libtalloc/{talloc-Add-configure-options-for-packages.patch => options-2.1.10.patch} (95%)
rename meta-networking/recipes-support/libtalloc/{libtalloc_2.1.9.bb => libtalloc_2.1.10.bb} (90%)meta-networking/recipes-support/libtalloc/libtalloc/options-2.1.10.patch renamed from meta-networking/recipes-support/libtalloc/libtalloc/talloc-Add-configure-options-for-packages.patch +10 -7
@@ -14,6 +14,11 @@ Add configure options for the following packages: Upstream-Status: Inappropriate [oe deterministic build specific] Signed-off-by: Jackie Huang <[email protected]> + +Modified to apply to version 2.1.10. + +Signed-off-by: Joe Slater <[email protected]> + --- lib/replace/system/wscript_configure | 6 ++- lib/replace/wscript | 85 ++++++++++++++++++++++++++++--------
@@ -154,14 +159,12 @@ index fc43e1a..12d2a70 100644 conf.CHECK_CODE(''' struct ucred cred; -diff --git a/wscript b/wscript -index 41f3be7..556c1c8 100644 --- a/wscript +++ b/wscript -@@ -35,7 +35,12 @@ def set_options(opt): - opt.add_option('--disable-python', - help=("disable the pytalloc module"), - action="store_true", dest='disable_python', default=False) +@@ -32,7 +32,12 @@ def set_options(opt): + opt.add_option('--enable-talloc-compat1', + help=("Build talloc 1.x.x compat library [False]"), + action="store_true", dest='TALLOC_COMPAT1', default=False) - + opt.add_option('--with-valgrind', + help=("enable use of valgrind"),
@@ -169,7 +172,7 @@ index 41f3be7..556c1c8 100644 + opt.add_option('--without-valgrind', + help=("disable use of valgrind"), + action="store_false", dest='enable_valgrind', default=False) - + def configure(conf): conf.RECURSE('lib/replace') --
meta-networking/recipes-support/libtalloc/libtalloc_2.1.10.bb renamed from meta-networking/recipes-support/libtalloc/libtalloc_2.1.9.bb +4 -3
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://talloc.h;beginline=3;endline=27;md5=a301712782cad6dd6 SRC_URI = "https://samba.org/ftp/talloc/talloc-${PV}.tar.gz \ - file://talloc-Add-configure-options-for-packages.patch \ + file://options-2.1.10.patch \ " -SRC_URI[md5sum] = "19ba14eba97d79a169fa92ea824d2b9e" -SRC_URI[sha256sum] = "f0aad4cb88a3322207c82136ddc07bed48a37c2c21f82962d6c5ccb422711062" + +SRC_URI[md5sum] = "48b8822a76797bb143e3e38ed738c320" +SRC_URI[sha256sum] = "c985e94bebd6ec2f6af3d95dcc3fcb192a2ddb7781a021d70ee899e26221f619" inherit waf-samba
Signature · 1 line
2.7.4
PATCH 2/5 libtevent: update to version 0.99.33
In reply to Joe SlaterVersion needed to build samba 4.7.0.
---
...ons-for-packages.patch => options-0.9.33.patch} | 28 +++++++++++-----------
.../{libtevent_0.9.31.bb => libtevent_0.9.33.bb} | 6 ++---
2 files changed, 17 insertions(+), 17 deletions(-)
rename meta-networking/recipes-support/libtevent/libtevent/{tevent-Add-configure-options-for-packages.patch => options-0.9.33.patch} (90%)
rename meta-networking/recipes-support/libtevent/{libtevent_0.9.31.bb => libtevent_0.9.33.bb} (87%)meta-networking/recipes-support/libtevent/libtevent/options-0.9.33.patch renamed from meta-networking/recipes-support/libtevent/libtevent/tevent-Add-configure-options-for-packages.patch +14 -14
@@ -14,6 +14,10 @@ Add configure options for the following packages: Upstream-Status: Inappropriate [oe deterministic build specific] Signed-off-by: Jackie Huang <[email protected]> + +Modified to apply to version 0.9.33. + +Signed-off-by: Joe Slater <[email protected]> --- lib/replace/system/wscript_configure | 6 ++- lib/replace/wscript | 85 ++++++++++++++++++++++++++++--------
@@ -155,23 +159,19 @@ index fc43e1a..12d2a70 100644 conf.CHECK_CODE(''' struct ucred cred; -diff --git a/wscript b/wscript -old mode 100755 -new mode 100644 -index 71b9475..50793db --- a/wscript +++ b/wscript -@@ -26,7 +26,12 @@ def set_options(opt): - opt.add_option('--disable-python', - help=("disable the pytevent module"), - action="store_true", dest='disable_python', default=False) +@@ -22,7 +22,12 @@ def set_options(opt): + opt.PRIVATE_EXTENSION_DEFAULT('tevent', noextension='tevent') + opt.RECURSE('lib/replace') + opt.RECURSE('lib/talloc') - -+ opt.add_option('--with-valgrind', -+ help=("enable use of valgrind"), -+ action="store_true", dest='enable_valgrind') -+ opt.add_option('--without-valgrind', -+ help=("disable use of valgrind"), -+ action="store_false", dest='enable_valgrind', default=False) ++ opt.add_option('--with-valgrind', ++ help=("enable use of valgrind"), ++ action="store_true", dest='enable_valgrind') ++ opt.add_option('--without-valgrind', ++ help=("disable use of valgrind"), ++ action="store_false", dest='enable_valgrind', default=False) def configure(conf): conf.RECURSE('lib/replace')
meta-networking/recipes-support/libtevent/libtevent_0.9.33.bb renamed from meta-networking/recipes-support/libtevent/libtevent_0.9.31.bb +3 -3
@@ -7,12 +7,12 @@ DEPENDS += "libtalloc" RDEPENDS_python-tevent = "python" SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ - file://tevent-Add-configure-options-for-packages.patch \ + file://options-0.9.33.patch \ " LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=4e458d658cb25e21efc16f720e78b85a" -SRC_URI[md5sum] = "5453847664ae6bc4ec0153e59ac635b9" -SRC_URI[sha256sum] = "4a13f2256ad804c860e84068258bd0f8be31cf0c79aa8f3019fa32f6928c2bfc" +SRC_URI[md5sum] = "527a43f35b4251e46f28921342895223" +SRC_URI[sha256sum] = "22712ee981fd4298fcd5f3afb27d87a72257cebad37812cfbd3da5d968ed1bdc" inherit waf-samba
Signature · 1 line
2.7.4
PATCH 3/5 libtdb: update to version 1.3.15
In reply to Joe SlaterVersion needed to build samba 4.7.0.
---
.../recipes-support/libtdb/{libtdb_1.3.14.bb => libtdb_1.3.15.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-networking/recipes-support/libtdb/{libtdb_1.3.14.bb => libtdb_1.3.15.bb} (91%)meta-networking/recipes-support/libtdb/libtdb_1.3.15.bb renamed from meta-networking/recipes-support/libtdb/libtdb_1.3.14.bb +2 -2
@@ -11,8 +11,8 @@ SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ file://tdb-Add-configure-options-for-packages.patch \ " -SRC_URI[md5sum] = "dd23f2ba8ca2bfdcb833bc79d5b5ac6f" -SRC_URI[sha256sum] = "3a7d4bb79229460df530c7e1c7067ba9fb9d370aa61fff537fdc2bdf918acbe9" +SRC_URI[md5sum] = "60ece3996acc8d85b6f713199da971a6" +SRC_URI[sha256sum] = "b4a1bf3833601bd9f10aff363cb750860aef9ce5b4617989239923192f946728" PACKAGECONFIG ??= "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
Signature · 1 line
2.7.4
PATCH 4/5 libldb: update to version 1.2.2
In reply to Joe SlaterVersion needed to build samba 4.7.0.
---
.../recipes-support/libldb/{libldb_1.1.29.bb => libldb_1.2.2.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-networking/recipes-support/libldb/{libldb_1.1.29.bb => libldb_1.2.2.bb} (92%)meta-networking/recipes-support/libldb/libldb_1.2.2.bb renamed from meta-networking/recipes-support/libldb/libldb_1.1.29.bb +3 -3
@@ -29,8 +29,8 @@ LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9ada file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" -SRC_URI[md5sum] = "9c90abfb94c1e2a693399392cf4cddb9" -SRC_URI[sha256sum] = "59d84f9a5b799f519ba7b2685bb46f5a26f1bbf05b7a144b2f5e017d01d80f97" +SRC_URI[md5sum] = "91284a12423def99a6592e393e3b7fbb" +SRC_URI[sha256sum] = "0cedeadb75de401c9735127f654dbc1a391c4327a2b83be54078be286fed1113" inherit waf-samba
@@ -38,7 +38,7 @@ S = "${WORKDIR}/ldb-${PV}" EXTRA_OECONF += "--disable-rpath \ --disable-rpath-install \ - --bundled-libraries=NONE \ + --bundled-libraries=cmocka \ --builtin-libraries=replace \ --with-modulesdir=${libdir}/ldb/modules \ --with-privatelibdir=${libdir}/ldb \
Signature · 1 line
2.7.4
PATCH 5/5 samba: move to version 4.7.0
In reply to Joe Slaterad-dc code is built and krb5 is used. If booting using systemd, 'nmb' and 'smb' are started. 'samba' is not.
---
.../samba/samba/dnsserver-4.7.0.patch | 19 ++++++
.../samba/samba/iconv-4.7.0.patch | 25 ++++++++
.../samba/samba/smb_conf-4.7.0.patch | 19 ++++++
.../samba/{samba_4.6.7.bb => samba_4.7.0.bb} | 67 +++++++++++++++++-----
4 files changed, 117 insertions(+), 13 deletions(-)
create mode 100644 meta-networking/recipes-connectivity/samba/samba/dnsserver-4.7.0.patch
create mode 100644 meta-networking/recipes-connectivity/samba/samba/iconv-4.7.0.patch
create mode 100644 meta-networking/recipes-connectivity/samba/samba/smb_conf-4.7.0.patch
rename meta-networking/recipes-connectivity/samba/{samba_4.6.7.bb => samba_4.7.0.bb} (79%)meta-networking/recipes-connectivity/samba/samba/dnsserver-4.7.0.patch new file +19 -0
@@ -0,0 +1,19 @@ +samba: build dnsserver_common code + +Just 'install' does not seem to do it. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]> + +--- a/source4/dns_server/wscript_build ++++ b/source4/dns_server/wscript_build +@@ -4,7 +4,7 @@ bld.SAMBA_LIBRARY('dnsserver_common', + source='dnsserver_common.c', + deps='samba-util samba-errors ldbsamba clidns', + private_library=True, +- install=bld.AD_DC_BUILD_IS_ENABLED() ++ enabled=bld.AD_DC_BUILD_IS_ENABLED() + ) + + bld.SAMBA_MODULE('service_dns',
meta-networking/recipes-connectivity/samba/samba/iconv-4.7.0.patch new file +25 -0
@@ -0,0 +1,25 @@ +samba: defeat iconv test + +A test was added when configuring samba which requires target code +to be executed. In general, this will not work, so we eliminate it. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]> + +--- a/lib/util/charset/wscript_configure ++++ b/lib/util/charset/wscript_configure +@@ -17,6 +17,8 @@ if (conf.CHECK_FUNCS_IN('iconv_open', 'i + + conf.DEFINE('HAVE_NATIVE_ICONV', 1) + ++""" ++[added for 4.7.0, but breaks cross-compilation] + conf.CHECK_CODE(''' + uint8_t inbuf[2] = { 0x30, 0xdf }; + uint8_t outbuf[4] = { 0 }; +@@ -36,3 +38,4 @@ conf.CHECK_CODE(''' + msg='Checking errno of iconv for illegal multibyte sequence', + lib='iconv', + headers='errno.h iconv.h') ++"""
meta-networking/recipes-connectivity/samba/samba/smb_conf-4.7.0.patch new file +19 -0
@@ -0,0 +1,19 @@ +samba: correct log files location + +We use /var/log/samba. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]> + +--- a/packaging/RHEL/setup/smb.conf ++++ b/packaging/RHEL/setup/smb.conf +@@ -63,7 +63,7 @@ + + # this tells Samba to use a separate log file for each machine + # that connects +- log file = /usr/local/samba/var/log.%m ++ log file = /var/log/samba/log.%m + + # Put a capping on the size of the log files (in Kb). + max log size = 50
meta-networking/recipes-connectivity/samba/samba_4.7.0.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.6.7.bb +54 -13
147 lines not on this page · raw message
Signature · 1 line
2.7.4