[Pkg-samba-maint] [Git][samba-team/samba][debian_4.21] 7 commits: d/control: stop depending on exact same version of samba-common

Michael Tokarev (@mjt) gitlab at salsa.debian.org
Mon Sep 15 20:18:32 BST 2025



Michael Tokarev pushed to branch debian_4.21 at Debian Samba Team / samba


Commits:
84665dfe by Michael Tokarev at 2025-09-15T16:51:05+03:00
d/control: stop depending on exact same version of samba-common

samba-common package contains a few files/dirs common for several
samba packages.  Its contents hasn't changed for quite some time.
There's definitely no need to depend on exact version of this
package - eg, 4.17 (from bookworm) will work just fine with samba
version 4.22.

Drop version requirement for samba-common dep entirely.  If/when
we have real change in samba-common which is needed by other
packages, we can specify particular version there.

This helps switching versions of samba manually.

- - - - -
30809da1 by Michael Tokarev at 2025-09-15T16:51:31+03:00
Revert "d/control,d/rules: ensure we use the most recent libtalloc/libtevent/libtdb"

This reverts commit 4e271b30392d4b9e311f6f02d2564b680301b31f.

There's no need for samba-libs to depend on exact versions of support libs
anymore, since 4.21.3+dfsg-5 (where the mistake has been made) is long gone.

- - - - -
9c13cd32 by Michael Tokarev at 2025-09-15T16:51:48+03:00
Revert "d/control: add conflicts/breaks for libtevent0t64 on mjt repo"

This reverts two commits -- 25d38c4a068aa57118e86c4388530932465fbd2a
and 00d3f1bba6c4e0534d2ebae33adbf2fb44173e6f.

This Breaks was special and temporary, and not useful for debian
archive at all (it was only needed for mjt's own repository where
the wrong package name slipped out once).  Remove this cruft for
trixie.

- - - - -
2f886b77 by Michael Tokarev at 2025-09-15T16:51:55+03:00
python3-talloc: generate the long-forgotten symbols file

the python bindings for libtalloc provides a cython library (.so)
with symbols. Add (dynamic, due to cython suffix being dependent
on python version and architecture) symbols file to provide less
strict versioned dependencies on python3-talloc, to smooth upgrades.

- - - - -
c704184d by Michael Tokarev at 2025-09-15T16:52:08+03:00
d/python3-talloc.symbols.in: add epoch number for recent versions

- - - - -
6873e01c by Michael Tokarev at 2025-09-15T17:10:15+03:00
d/rules: fix python3-talloc.symbols generation to avoid full debian version string in the symbols file

The resulting version is everything up to the first "-" or "+"
char, which is +dfsg or -debian_revision.  The result is a more
correct .symbols file, with no other changes.

Also simplify this place a little bit.

- - - - -
44d16a6d by Michael Tokarev at 2025-09-15T17:10:25+03:00
update changelog; upload version 4.21.8+dfsg-2 to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/python3-talloc.symbols.in
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,28 @@
+samba (2:4.21.8+dfsg-2) unstable; urgency=medium
+
+  * pick up some changes from subsequent debian samba series
+  * d/control: stop depending on exact same version of samba-common
+    Package samba-common contains a few files/dirs common for several samba
+    packages.  Its contents hasn't changed for quite some time.  There's
+    definitely no need to depend on exact version of this package - eg, 4.17
+    (from bookworm) will work just fine with samba version 4.22.  Drop version
+    requirement for samba-common dep entirely.  If/when we have real change in
+    samba-common which is needed by other packages, we can specify particular
+    version there.  For smoother upgrades
+  * Revert "d/control,d/rules: ensure we use the most recent
+    libtalloc/libtevent/libtdb"
+    There's no need for samba-libs to depend on exact versions of support libs
+    anymore, since 4.21.3+dfsg-5 (where the mistake has been made) is long gone
+  * Revert "d/control: add conflicts/breaks for libtevent0t64 on mjt repo"
+    This Breaks was special and temporary, and not useful for debian archive at
+    all (it was only needed for mjt's own repository where the wrong package
+    name slipped out once).  Remove this cruft for trixie
+  * python3-talloc.symbols[.in] -- provide long-forgotten symbols file, so that
+    versioned dependency on python3-talloc (mostly for python3-samba) will be
+    less strict.  For smoother upgrades
+
+ -- Michael Tokarev <mjt at tls.msk.ru>  Mon, 15 Sep 2025 17:08:02 +0300
+
 samba (2:4.21.8+dfsg-1) unstable; urgency=medium
 
   * new upstream stable/bugfix release:


=====================================
debian/control
=====================================
@@ -84,7 +84,7 @@ Architecture: any
 Pre-Depends: ${misc:Pre-Depends}
 Depends: passwd,
          procps,
-         samba-common (= ${source:Version}),
+         samba-common,
          samba-common-bin (=${binary:Version}),
          ${misc:Depends},
          ${python3:Depends},
@@ -133,12 +133,6 @@ Depends: ${misc:Depends}, ${shlibs:Depends},
 # just require libldb version of the same build
 # https://lists.samba.org/archive/samba-technical/2023-September/138422.html
  libldb2 (= ${ldb:Version}),
-# other libs built from samba sources (it'd be nice to have dpkg-shlibdeps generate these).
-# this helps to overcome the wrong version mishap (4.21.3+dfsg-5), can be dropped for trixie
- libtalloc2 (>= ${talloc:Version}),
- libtevent0t64 (>= ${tevent:Version}) <!pkg.samba.before-trixie>,
- libtevent0    (>= ${tevent:Version}) < pkg.samba.before-trixie>,
- libtdb1 (>= ${tdb:Version}),
 Replaces:
 # libsamba-util.so &deps moved from libwbclient0 to samba-libs in 4.16.1+dfsg-7
  libwbclient0 (<< 2:4.16.1+dfsg-7~),
@@ -173,7 +167,7 @@ Description: common files used by both the Samba server and client
 
 Package: samba-common-bin
 Architecture: any
-Depends: samba-common (= ${source:Version}),
+Depends: samba-common,
          ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends}
@@ -255,7 +249,7 @@ Description: Samba files needed for AD domain provision
 
 Package: smbclient
 Architecture: any
-Depends: samba-common (= ${source:Version}),
+Depends: samba-common,
          samba-libs (= ${binary:Version}),
          ${misc:Depends},
          ${shlibs:Depends}
@@ -473,7 +467,7 @@ Package: winbind
 Pre-Depends: ${misc:Pre-Depends}
 Architecture: any
 Multi-Arch: allowed
-Depends: samba-common (= ${source:Version}),
+Depends: samba-common,
          samba-common-bin (=${binary:Version}),
 # wbinfo (linked with libwbclient) which should use the same protocol
          libwbclient0 (=${binary:Version}),
@@ -750,9 +744,6 @@ Architecture: any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Section: libs
-# libtevent0t64 slipped out into mjt repository (for a short while). Drop this for trixie
-Replaces: libtevent0t64 (<< 2:0.16.1) <pkg.samba.before-trixie>
-Breaks:   libtevent0t64 (<< 2:0.16.1) <pkg.samba.before-trixie>
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Description: talloc-based event loop library - shared library
  tevent is a simple library that can handle the main event loop for an


=====================================
debian/python3-talloc.symbols.in
=====================================
@@ -0,0 +1,49 @@
+#libpyldb-util${DEB_PY3_EXTENSION_SUFFIX}.2 #PACKAGE# #MINVER#
+# PYTALLOC_UTIL${DEB_PY3_EXTENSION_UPCASE}_2.4.3 at PYTALLOC_UTIL${DEB_PY3_EXTENSION_UPCASE}_2.4.3 2:2.4.3
+ PYTALLOC_UTIL_2.0.6 at PYTALLOC_UTIL_2.0.6 2.0.6
+ PYTALLOC_UTIL_2.0.7 at PYTALLOC_UTIL_2.0.7 2.0.7
+ PYTALLOC_UTIL_2.0.8 at PYTALLOC_UTIL_2.0.8 2.0.8
+ PYTALLOC_UTIL_2.1.0 at PYTALLOC_UTIL_2.1.0 2.1.0
+ PYTALLOC_UTIL_2.1.1 at PYTALLOC_UTIL_2.1.1 2.1.1
+ PYTALLOC_UTIL_2.1.2 at PYTALLOC_UTIL_2.1.2 2.1.2
+ PYTALLOC_UTIL_2.1.3 at PYTALLOC_UTIL_2.1.3 2.1.3
+ PYTALLOC_UTIL_2.1.4 at PYTALLOC_UTIL_2.1.4 2.1.4
+ PYTALLOC_UTIL_2.1.5 at PYTALLOC_UTIL_2.1.5 2.1.5
+ PYTALLOC_UTIL_2.1.6 at PYTALLOC_UTIL_2.1.6 2.1.6
+ PYTALLOC_UTIL_2.1.7 at PYTALLOC_UTIL_2.1.7 2.1.7
+ PYTALLOC_UTIL_2.1.8 at PYTALLOC_UTIL_2.1.8 2.1.8
+ PYTALLOC_UTIL_2.1.9 at PYTALLOC_UTIL_2.1.9 2.1.9
+ PYTALLOC_UTIL_2.1.10 at PYTALLOC_UTIL_2.1.10 2.1.10
+ PYTALLOC_UTIL_2.1.11 at PYTALLOC_UTIL_2.1.11 2.1.11
+ PYTALLOC_UTIL_2.1.12 at PYTALLOC_UTIL_2.1.12 2.1.12
+ PYTALLOC_UTIL_2.1.13 at PYTALLOC_UTIL_2.1.13 2.1.13
+ PYTALLOC_UTIL_2.1.14 at PYTALLOC_UTIL_2.1.14 2.1.14
+ PYTALLOC_UTIL_2.1.15 at PYTALLOC_UTIL_2.1.15 2.1.15
+ PYTALLOC_UTIL_2.1.16 at PYTALLOC_UTIL_2.1.16 2.1.16
+ PYTALLOC_UTIL_2.2.0 at PYTALLOC_UTIL_2.2.0 2.2.0
+ PYTALLOC_UTIL_2.3.0 at PYTALLOC_UTIL_2.3.0 2.3.0
+ PYTALLOC_UTIL_2.3.1 at PYTALLOC_UTIL_2.3.1 2.3.1
+ PYTALLOC_UTIL_2.3.2 at PYTALLOC_UTIL_2.3.2 2.3.2
+ PYTALLOC_UTIL_2.3.3 at PYTALLOC_UTIL_2.3.3 2.3.3
+ PYTALLOC_UTIL_2.3.4 at PYTALLOC_UTIL_2.3.4 2.3.4
+ PYTALLOC_UTIL_2.3.5 at PYTALLOC_UTIL_2.3.5 2.3.5
+ PYTALLOC_UTIL_2.4.0 at PYTALLOC_UTIL_2.4.0 2.4.0
+ PYTALLOC_UTIL_2.4.1 at PYTALLOC_UTIL_2.4.1 2.4.1
+ PYTALLOC_UTIL_2.4.2 at PYTALLOC_UTIL_2.4.2 2:2.4.2
+ PYTALLOC_UTIL_2.4.3 at PYTALLOC_UTIL_2.4.3 2:2.4.3
+ _pytalloc_check_type at PYTALLOC_UTIL_2.1.9 2.1.9
+ _pytalloc_get_mem_ctx at PYTALLOC_UTIL_2.1.6 2.1.6
+ _pytalloc_get_name at PYTALLOC_UTIL_2.3.0 2.3.0
+ _pytalloc_get_ptr at PYTALLOC_UTIL_2.1.6 2.1.6
+ _pytalloc_get_type at PYTALLOC_UTIL_2.1.6 2.1.6
+ pytalloc_BaseObject_PyType_Ready at PYTALLOC_UTIL_2.1.6 2.1.6
+ pytalloc_BaseObject_check at PYTALLOC_UTIL_2.1.6 2.1.6
+ pytalloc_BaseObject_size at PYTALLOC_UTIL_2.1.6 2.1.6
+ pytalloc_Check at PYTALLOC_UTIL_2.0.6 2.0.6
+ pytalloc_GenericObject_reference_ex at PYTALLOC_UTIL_2.1.9 2.1.9
+ pytalloc_GenericObject_steal_ex at PYTALLOC_UTIL_2.1.9 2.1.9
+ pytalloc_GetBaseObjectType at PYTALLOC_UTIL_2.1.6 2.1.6
+ pytalloc_GetObjectType at PYTALLOC_UTIL_2.0.6 2.0.6
+ pytalloc_reference_ex at PYTALLOC_UTIL_2.0.6 2.0.6
+ pytalloc_steal at PYTALLOC_UTIL_2.0.6 2.0.6
+ pytalloc_steal_ex at PYTALLOC_UTIL_2.0.6 2.0.6


=====================================
debian/rules
=====================================
@@ -80,9 +80,6 @@ tdb-packages := libtdb1 tdb-tools libtdb-dev python3-tdb
 
 extra-version-vars = \
 	-Vldb:Version=${ldb-version} \
-	-Vtalloc:Version=${talloc-version} \
-	-Vtevent:Version=${tevent-version} \
-	-Vtdb:Version=${tdb-version} \
 
 omit-pkgs =
 
@@ -369,6 +366,17 @@ execute_after_dh_fixperms-arch:
 	$(call ifpkg, smbclient, chmod 0700 debian/smbclient/usr/libexec/samba/smbspool_krb5_wrapper)
 
 override_dh_makeshlibs:
+	# generate symbols file with correct cpython suffix in there
+	{ \
+	   suff=$$(${DEB_HOST_MULTIARCH}-python3-config --extension-suffix | tr _ -); \
+	   SUFF=$$(echo "$${suff%.so}" | tr a-z- A-Z_); \
+	   SYM="PYTALLOC_UTIL$${SUFF}_${talloc-upstream-version}"; \
+	   deb_ver="${talloc-version}"; \
+	   echo "libpytalloc-util$${suff}.2 #PACKAGE# #MINVER#"; \
+	   echo " $${SYM}@$${SYM} $${deb_ver%%[-+]*}"; \
+	   cat debian/python3-talloc.symbols.in; \
+	} > debian/python3-talloc.symbols
+
 	# create symbols and shlibs files in separate wrapper script
 	# to deal with private libraries
 	debian/genshlibs \
@@ -378,6 +386,8 @@ override_dh_makeshlibs:
 		$(addsuffix =${tdb-version},${tdb-packages}) \
 		$(addsuffix =${mitkrb5-samba-ver}, ${mitkrb5-dep-pkgs})
 
+	rm -f debian/python3-talloc.symbols
+
 # depcheck package, dep1|dep2... -- dependencies which should NOT be there
 depcheck = if egrep '^shlibs.Depends=.* ($(strip $2)) ' debian/$(strip $1).substvars; \
 	then echo 'E: $(strip $1) should not depend on $(strip $2)' >&2; exit 1; fi



View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/2a0302c9eafce4a60818d51adb5e6f52899b7950...44d16a6d7df2c09ae220567574257c5584077175

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/2a0302c9eafce4a60818d51adb5e6f52899b7950...44d16a6d7df2c09ae220567574257c5584077175
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/20250915/3cbd1738/attachment-0001.htm>


More information about the Pkg-samba-maint mailing list