[Pkg-samba-maint] [Git][samba-team/samba][master] move 3 python-related files from samba-libs to python3-samba (#1006875)

Michael Tokarev (@mjt) gitlab at salsa.debian.org
Thu Mar 31 22:12:11 BST 2022



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


Commits:
e4b8f520 by Michael Tokarev at 2022-04-01T00:07:58+03:00
move 3 python-related files from samba-libs to python3-samba (#1006875)

Add only Replaces: to the control file: make new python3-samba
replace samba-libs. Since two packages must be of the same
binary versions, we can't have one of them from one build and
another of them from another build so the moved files are
either in one package or in another. The only case where the
Replaces: is actually needed is at the moment dpkg unpacks the
new files, to allow new python3-samba to have the same files
as currently installed samba-libs has.

Theoretically we might need to add some Breaks: to samba-libs
for software which uses the said python module (the one which
is being moved) since other packages expect this module to be
in samba-libs and it is not anymore. But we don't have such
packages in debian, besides python3-samba itself.

There is one extra dependency on libsamba-net.cpython-*.so
library, - smbtorture from samba-testsuite package links to
it. With this change, new samba-testsuite receives one more
dependency on phyton3-samba, due to this library.

- - - - -


4 changed files:

- debian/changelog
- debian/control
- debian/python3-samba.install
- debian/samba-libs.install


Changes:

=====================================
debian/changelog
=====================================
@@ -44,6 +44,10 @@ samba (2:4.16.0+dfsg-1) UNRELEASED; urgency=medium
     samba binaries (Closes: #953530)
   * in the salsa git repository of samba, stop keeping debian patches in
     applied form, keep them in d/patches/ only as most other packages do.
+  * move single python (helper) module, libsamba-policy, together with
+    2 internal libraries used by it, from samba-libs package to python3-samba.
+    This makes samba-libs to be free from python-related files, and makes
+    python3-samba to be the only python-providing package. Closes: #1006875
 
  -- Michael Tokarev <mjt at tls.msk.ru>  Thu, 24 Mar 2022 13:54:07 +0300
 


=====================================
debian/control
=====================================
@@ -255,6 +255,9 @@ Depends: python3-ldb,
          ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends}
+Replaces:
+# libsamba-policy & helpers python libs moved from samba-libs to python3-samba
+ samba-libs (<< 2:4.16.0+dfsg-1~),
 Recommends: python3-gpg
 Description: Python 3 bindings for Samba
  Samba is an implementation of the SMB/CIFS protocol for Unix systems,


=====================================
debian/python3-samba.install
=====================================
@@ -1 +1,4 @@
 usr/lib/python3*/*-packages/samba
+usr/lib/*/libsamba-policy.cpython-*.so.*
+usr/lib/*/samba/libsamba-net.cpython-*.so.*
+usr/lib/*/samba/libsamba-python.cpython-*.so.0


=====================================
debian/samba-libs.install
=====================================
@@ -13,7 +13,6 @@ usr/lib/*/libsamba-errors.so.*
 usr/lib/*/libsamba-hostconfig.so.*
 usr/lib/*/libsamba-passdb.so.0
 usr/lib/*/libsamba-passdb.so.0.28.0
-usr/lib/*/libsamba-policy.cpython-*.so.*
 usr/lib/*/libsamdb.so.*
 usr/lib/*/libsmbconf.so.0
 usr/lib/*/libsmbldap.so.2*
@@ -92,8 +91,6 @@ usr/lib/*/samba/libregistry-samba4.so.0
 usr/lib/*/samba/libroken-samba4.so.0
 usr/lib/*/samba/libsamba-cluster-support-samba4.so.0
 usr/lib/*/samba/libsamba-modules-samba4.so.0
-usr/lib/*/samba/libsamba-net.cpython-*.so.*
-usr/lib/*/samba/libsamba-python.cpython-*.so.0
 usr/lib/*/samba/libsamba-security-samba4.so.0
 usr/lib/*/samba/libsamba-sockets-samba4.so.0
 usr/lib/*/samba/libsamba3-util-samba4.so.0



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

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/commit/e4b8f52090d61f03c27907331da254f3a333a774
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/20220331/242c5532/attachment-0001.htm>


More information about the Pkg-samba-maint mailing list