Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Update debian/libsmbclient.symbols
· ff516b16
Mathieu Parent
authored
Mar 16, 2018
ff516b16
Add a pkg.samba.selftest build profile
· 63da1151
Mathieu Parent
authored
Mar 15, 2018
63da1151
Hide whitespace changes
Inline
Side-by-side
debian/README.source.md
View file @
63da1151
...
...
@@ -25,6 +25,14 @@ Each time:
gbp pull
gbp buildpackage --git-pbuilder --git-dist=sid --git-arch=amd64
Building with selftest
======================
DEB_BUILD_PROFILES=pkg.samba.selftest
\
gbp buildpackage --git-pbuilder --git-dist=sid --git-arch=amd64
:warning: DO NOT UPLOAD THE RESULTING PACKAGES! :warning:
Merging minor upstream releases
===============================
...
...
debian/control
View file @
63da1151
...
...
@@ -16,6 +16,7 @@ Build-Depends: bison,
docbook-xsl,
flex,
glusterfs-common [linux-any],
ldb-tools <pkg.samba.selftest>,
libacl1-dev,
libarchive-dev,
libattr1-dev,
...
...
@@ -34,19 +35,25 @@ Build-Depends: bison,
libldap2-dev,
libldb-dev (>= 2:1.3.2~),
libncurses5-dev,
libnss-wrapper (>= 1.1.3) <pkg.samba.selftest>,
libpam-wrapper (>= 1.0.4) <pkg.samba.selftest>,
libpam0g-dev,
libparse-yapp-perl,
libpcap-dev [hurd-i386 kfreebsd-any],
libpopt-dev,
libreadline-dev,
libresolv-wrapper (>= 1.1.4) <pkg.samba.selftest>,
libsocket-wrapper (>= 1.1.9) <pkg.samba.selftest>,
libsystemd-dev [linux-any],
libtalloc-dev (>= 2.1.11~),
libtdb-dev (>= 1.3.15~),
libtevent-dev (>= 0.9.36~),
libuid-wrapper (>= 1.2.4) <pkg.samba.selftest>,
perl,
pkg-config,
po-debconf,
python-all-dev (>= 2.6.6-3),
python-crypto <pkg.samba.selftest>,
python-dnspython,
python-ldb (>= 2:1.3.2~),
python-ldb-dev (>= 2:1.3.2~),
...
...
debian/libsmbclient.symbols
View file @
63da1151
...
...
@@ -4,6 +4,8 @@ libsmbclient.so.0 libsmbclient #MINVER#
SMBCLIENT_0.2.1@SMBCLIENT_0.2.1 2:4.1.1
SMBCLIENT_0.2.2@SMBCLIENT_0.2.2 2:4.3.0+dfsg
SMBCLIENT_0.2.3@SMBCLIENT_0.2.3 2:4.3.0+dfsg
SMBCLIENT_0.3.0@SMBCLIENT_0.3.0 2:4.8.0+dfsg
SMBCLIENT_0.3.1@SMBCLIENT_0.3.1 2:4.8.0+dfsg
smbc_chmod@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_close@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_closedir@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
...
...
@@ -148,6 +150,7 @@ libsmbclient.so.0 libsmbclient #MINVER#
smbc_setFunctionUnlinkPrintJob@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_setFunctionUtimes@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_setFunctionWrite@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_setLogCallback@SMBCLIENT_0.3.1 2:4.8.0+dfsg
smbc_setNetbiosName@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_setOptionBrowseMaxLmbCount@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
smbc_setOptionCaseSensitive@SMBCLIENT_0.1.0 2:4.0.3+dfsg1
...
...
debian/rules
View file @
63da1151
...
...
@@ -68,6 +68,11 @@ conf_args = \
--with-socketpath=/var/run/ctdb/ctdbd.socket \
--with-logdir=/var/log/ctdb
ifneq ($(filter pkg.samba.selftest,$(DEB_BUILD_PROFILES)),)
conf_args += \
--selftest
endif
ifeq ($(DEB_HOST_ARCH_OS), linux)
conf_args += \
--with-systemd \
...
...
@@ -88,8 +93,19 @@ override_dh_auto_build:
DESTDIR="$(DESTDIR)" $(WAF)
override_dh_auto_test:
# Running make test requires configuration with --enable-selftest, which
# we don't want to do for production systems.
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
ifneq ($(filter pkg.samba.selftest,$(DEB_BUILD_PROFILES)),)
make quicktest
else
# Running make test requires "waf configure" with --enable-selftest, which
# requires --with-ntvfs-fileserver which we don't want on production systems
@echo "** tests skipped **"
@echo " use DEB_BUILD_PROFILES=pkg.samba.selftest to enable"
@echo " but DO NOT UPLOAD!"
endif
else
@echo "** tests disabled **"
endif
override_dh_auto_install:
DESTDIR="$(DESTDIR)" $(WAF) install
...
...
@@ -156,6 +172,12 @@ override_dh_auto_install:
$(DESTDIR)/lib/systemd/system/winbind.service
mkdir -p $(DESTDIR)/usr/lib/tmpfiles.d
echo "d /run/samba 0755 root root -" > $(DESTDIR)/usr/lib/tmpfiles.d/samba.conf
ifneq ($(filter pkg.samba.selftest,$(DEB_BUILD_PROFILES)),)
# Triggers package-contains-ancient-file Lintian Reject
# See https://ftp-master.debian.org/#lintianrejects
# RIP Duke Ellington
touch -d 1974-05-24 $(DESTDIR)/usr/share/samba
endif
override_dh_installdocs-arch:
cp ctdb/config/events.d/README ctdb/README.eventscripts
...
...