[Pkg-samba-maint] [Git][samba-team/samba][master] d/rules: use ${LDB_PACKAGES} to hold ldb packages list

Michael Tokarev (@mjt) gitlab at salsa.debian.org
Sun Apr 24 18:08:02 BST 2022



Michael Tokarev pushed to branch master at Debian Samba Team / samba


Commits:
c1f462a4 by Michael Tokarev at 2022-04-24T20:01:41+03:00
d/rules: use ${LDB_PACKAGES} to hold ldb packages list

So there's no need to repeat the list several times

- - - - -


1 changed file:

- debian/rules


Changes:

=====================================
debian/rules
=====================================
@@ -26,6 +26,7 @@ $(error update LDB version number expression below:)
 endif
 LDB_DEB_VERSION := ${LDB_EPOCH}${LDB_VERSION}+smb-${DEB_REVISION}
 LDB_DEPENDS := libldb2 (= ${LDB_DEB_VERSION})
+LDB_PACKAGES := libldb2 libldb-dev ldb-tools python3-ldb python3-ldb-dev
 
 V = 1
 WAF := PYTHONHASHSEED=1 ${PYTHON} ./buildtools/bin/waf \
@@ -282,7 +283,7 @@ override_dh_makeshlibs:
 
 	# create symbols and shlibs files in separate wrapper script
 	# to deal with private libraries
-	debian/make_shlibs "${LDB_DEB_VERSION}|libldb2|ldb-tools|libldb-dev|python3-ldb|python3-ldb-dev"
+	debian/make_shlibs "${LDB_DEB_VERSION}|$(subst  ,|,${LDB_PACKAGES})"
 
 	rm -f debian/python3-ldb.symbols
 
@@ -316,8 +317,7 @@ endif
 	then echo "E: libwbclient0 should not depend on samba libs" >&2; exit 1; fi
 
 override_dh_gencontrol:
-	dh_gencontrol -plibldb2 -pldb-tools -plibldb-dev -ppython3-ldb -ppython3-ldb-dev \
-	  -- -v${LDB_DEB_VERSION}
+	dh_gencontrol $(addprefix -p,${LDB_PACKAGES}) -- -v${LDB_DEB_VERSION}
 	dh_gencontrol --remaining-packages -- -Vldb:Depends="${LDB_DEPENDS}"
 
 clean:



View it on GitLab: https://salsa.debian.org/samba-team/samba/-/commit/c1f462a49c2c4b5224be55f4f8b4f0ea1ea7e0f3

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/commit/c1f462a49c2c4b5224be55f4f8b4f0ea1ea7e0f3
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20220424/ad180faa/attachment-0001.htm>


More information about the Pkg-samba-maint mailing list