[Pkg-samba-maint] [Git][samba-team/samba][master] 4 commits: d/control: drop old versions of versioned dependencies

Michael Tokarev (@mjt) gitlab at salsa.debian.org
Thu May 30 08:31:27 BST 2024



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


Commits:
72d62d0c by Michael Tokarev at 2024-05-26T19:27:30+03:00
d/control: drop old versions of versioned dependencies

- - - - -
5f91afcf by Michael Tokarev at 2024-05-26T19:28:22+03:00
d/control: mark libkeyutils-dev as linux-only [linux-any]

- - - - -
122d6a5f by Helmut Grohne at 2024-05-29T20:29:53+03:00
Mitigate ineffective replaces due to /usr-move (DEP17 P1). (Closes: #1072102)

- - - - -
1c18a66d by Michael Tokarev at 2024-05-29T20:31:51+03:00
update changelog; upload version 4.20.1+dfsg-4 to unstable

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/samba-ad-dc.lintian-overrides
- + debian/samba-ad-dc.postinst
- + debian/samba-ad-dc.preinst


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,15 @@
+samba (2:4.20.1+dfsg-4) unstable; urgency=medium
+
+  [ Helmut Grohne ]
+  * Mitigate ineffective replaces due to /usr-move (DEP17 P1)
+    (Closes: #1072102)
+
+  [ Michael Tokarev ]
+  * d/control: mark libkeyutils-dev as linux-only [linux-any]
+  * d/control: drop old versions of versioned dependencies
+
+ -- Michael Tokarev <mjt at tls.msk.ru>  Wed, 29 May 2024 20:31:41 +0300
+
 samba (2:4.20.1+dfsg-3) unstable; urgency=medium
 
   * d/rules: move samba-common install to d/samba-common.install


=====================================
debian/control
=====================================
@@ -40,7 +40,7 @@ Build-Depends-Arch:
 # the same [arch list] is in rules (with-ceph) and ctdb.install
 	libcephfs-dev [amd64 arm64 mips64el ppc64el riscv64 s390x],
 	librados-dev  [amd64 arm64 mips64el ppc64el riscv64 s390x],
-	libcmocka-dev (>= 1.1.3),
+	libcmocka-dev,
 	libcups2-dev,
 	libdbus-1-dev,
 	libglusterfs-dev [amd64 arm64 ppc64el ppc64 riscv64 mips64el s390x ia64 sparc64],
@@ -48,7 +48,7 @@ Build-Depends-Arch:
 	libgpgme11-dev,
 	libicu-dev,
 	libjansson-dev,
-	libkeyutils-dev,
+	libkeyutils-dev [linux-any],
 	libkrb5-dev (>= 1.21.0~) <pkg.samba.mitkrb5>,
 	libldap2-dev,
 	liblmdb-dev,
@@ -59,11 +59,11 @@ Build-Depends-Arch:
 	libreadline-dev,
 	libtirpc-dev,
 	libsystemd-dev [linux-any],
-	libtasn1-6-dev (>= 3.8),
+	libtasn1-6-dev,
 	libtasn1-bin,
 	liburing-dev [linux-any],
 	xfslibs-dev [linux-any],
-	zlib1g-dev (>= 1:1.2.3),
+	zlib1g-dev,
 # python (+#904999):
 	python3-dev:any | python3-dev, libpython3-dev,
 	python3-dnspython,
@@ -196,15 +196,17 @@ Depends: samba (= ${binary:Version}),
 Recommends: libnss-winbind, libpam-winbind,
 # samba-ad-provision is needed for setup only
 	samba-ad-provision
-Suggests: bind9 (>= 1:9.5.1),
+Suggests: bind9,
 	  bind9utils,
 	  ldb-tools,
-	  ntp | chrony (>= 3.0-1),
+	  ntp | chrony,
 Enhances: bind9, ntp
 Breaks:   samba-ad-provision (<< ${source:Upstream-Version}),
 # files moved from samba & samba-common-bin in 4.20.1-2:
-	  samba (<< 2:4.20.1+dfsg-2~), samba-common-bin (<< 2:4.20.1+dfsg-2~),
-Replaces: samba (<< 2:4.20.1+dfsg-2~), samba-common-bin (<< 2:4.20.1+dfsg-2~),
+	  samba-common-bin (<< 2:4.20.1+dfsg-2~),
+Replaces: samba-common-bin (<< 2:4.20.1+dfsg-2~),
+# Breaks+Replaces upgraded to Conflicts for DEP17 + /usr-move
+Conflicts: samba (<< 2:4.20.1+dfsg-2~),
 Description: Samba control files to run AD Domain Controller
  Samba is an implementation of the SMB/CIFS protocol for Unix systems,
  providing support for cross-platform file and printer sharing with
@@ -283,7 +285,7 @@ Package: samba-dev
 Architecture: any
 Multi-Arch: same
 Depends: libc6-dev,
-         libldb-dev (>= 2:2),
+         libldb-dev,
          libpopt-dev,
          libtalloc-dev,
          libtdb-dev,
@@ -455,8 +457,7 @@ Section: admin
 Architecture: any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
-Depends: libpam-runtime (>= 1.0.1-6),
-         libpam0g (>= 1.1.3-2~),
+Depends: libpam-runtime,
          winbind:any (= ${binary:Version}),
          ${misc:Depends},
          ${shlibs:Depends}


=====================================
debian/samba-ad-dc.lintian-overrides
=====================================
@@ -0,0 +1,3 @@
+# begin-remove-after: trixie
+diversion-for-unknown-file lib/systemd/system/samba-ad-dc.service [preinst:*]
+# end-remove-after


=====================================
debian/samba-ad-dc.postinst
=====================================
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# begin-remove-after: released:trixie
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+	dpkg-divert --package #PACKAGE# --no-rename \
+		--divert /lib/systemd/system/samba-ad-dc.service.usr-is-merged \
+		--remove /lib/systemd/system/samba-ad-dc.service
+fi
+# end-remove-after
+
+#DEBHELPER#
+
+exit 0


=====================================
debian/samba-ad-dc.preinst
=====================================
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# begin-remove-after: released:trixie
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
+	dpkg-divert --package #PACKAGE# --no-rename \
+		--divert /lib/systemd/system/samba-ad-dc.service.usr-is-merged \
+		--add /lib/systemd/system/samba-ad-dc.service
+fi
+# end-remove-after
+
+#DEBHELPER#
+
+exit 0



View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/a3fe36a5e485c9764a9b653a7e99e319c74387e6...1c18a66dd6ef15c41d2a3162a26f532163e2f023

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/a3fe36a5e485c9764a9b653a7e99e319c74387e6...1c18a66dd6ef15c41d2a3162a26f532163e2f023
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/20240530/4dc51b0e/attachment-0001.htm>


More information about the Pkg-samba-maint mailing list