[Pkg-samba-maint] [samba] 01/02: Add a "selftest" build profile

Mathieu Parent sathieu at moszumanska.debian.org
Sat Sep 10 18:34:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch wip-selftest
in repository samba.

commit c3a16f3005f5776d42afe31caa38f5a7028d886f
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Mon Apr 4 15:40:50 2016 +0200

    Add a "selftest" build profile
---
 debian/README.source |  8 +++++++-
 debian/rules         | 10 ++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/README.source b/debian/README.source
index 1d181b6..1703e72 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -1,4 +1,3 @@
-
 The packaging is kept in git://git.debian.org/git/pkg-samba/samba.git (web
 interface: http://git.debian.org/?p=pkg-samba/samba.git).
 
@@ -29,6 +28,13 @@ git-import-orig --upstream-version=4.0.6+dfsg --upstream-vcs-tag=samba-4.0.6 \
 Please note that there are some files that are not dfsg-free and they need to
 be filtered. The settings in the gpb.conf should take care of that.
 
+'selftest' build profile
+========================
 
+Selftest is not enabled by default because it affects performance, but a
+'selftest' build profile is available for this purpose.
 
+You'll need the additional build-dependencies: ldb-tools, libnss-wrapper,
+libuid-wrapper, libsocket-wrapper and python-crypto
 
+See also: https://wiki.debian.org/BuildProfileSpec
diff --git a/debian/rules b/debian/rules
index bd05bcb..e478a1a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,6 +67,13 @@ conf_args = \
 		--with-socketpath=/var/run/ctdb/ctdbd.socket \
 		--with-logdir=/var/log/ctdb
 
+# selftest build profile
+ifneq ($(filter selftest,$(DEB_BUILD_PROFILES)),)
+    # resolv_wrapper is not packaged yet (RFP #819986)
+    conf_args += \
+		--bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile,resolv_wrapper \
+        --enable-selftest
+endif
 %:
 	dh $* --with python2 --with systemd
 
@@ -90,6 +97,9 @@ override_dh_auto_build:
 override_dh_auto_test:
 	# Running make test requires configuration with --enable-selftest, which
 	# we don't want to do for production systems.
+ifneq ($(filter selftest,$(DEB_BUILD_PROFILES)),)
+	dh_auto_test
+endif
 
 override_dh_systemd_start:
 	dh_systemd_start -pctdb --no-start --no-restart-on-upgrade

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list