Merge ~ahasenack/ubuntu/+source/samba:lunar-fix-breaks-replaces-for-kinetic-upgrade into ubuntu/+source/samba:ubuntu/lunar-devel

Proposed by Andreas Hasenack
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 2a5c2ea6145becd546bb61b851455f9746c91309
Proposed branch: ~ahasenack/ubuntu/+source/samba:lunar-fix-breaks-replaces-for-kinetic-upgrade
Merge into: ubuntu/+source/samba:ubuntu/lunar-devel
Diff against target: 33 lines (+12/-2)
2 files modified
debian/changelog (+9/-0)
debian/control (+3/-2)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Review via email: mp+449278@code.launchpad.net

Description of the change

PPA: https://launchpad.net/~ahasenack/+archive/ubuntu/samba-fix-breaks-replaces/

Adjust the breaks/replaces originally on version 4.16.6+dfsg-5~ to 2:4.17.7+dfsg-1ubuntu1~, which was the first version of the ubuntu packaging that included the debian change that moved some files between packages.

As explained in https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2024663/comments/7, the scenarios where this file conflict could occur are less likely nowadays, but could still happen, therefore I'll propose to fix this bug and add the block-proposed tag for the remaining stable release (lunar).

To test:
- deploy kinetic
- install packages:

  $ sudo apt install samba samba-libs winbind -y

To reproduce the bug:
- upgrade to lunar: sudo do-release-upgrade
- Verify the bug happened by inspecting the apt-terminal.log file:

  $ grep "trying to overwrite" /var/log/dist-upgrade/apt-term.log
  dpkg: warning: trying to overwrite '/usr/share/man/man8/idmap_rfc2307.8.gz', which is also in package samba-libs:amd64 2:4.16.8+dfsg-0ubuntu1.2
  dpkg: warning: trying to overwrite '/usr/share/man/man8/idmap_script.8.gz', which is also in package samba 2:4.16.8+dfsg-0ubuntu1.2

To verify the fix:
- add the ppa (note it will complain there are no kinetic packages in the ppa, that's ok):

  $ sudo add-apt-repository ppa:ahasenack/samba-fix-breaks-replaces -y -u

- upgrade do lunar, but preserving the ppa:

  $ sudo do-release-upgrade --allow-third-party

- verify apt-terminal.log has no "trying to overwrite" lines:

  $ grep "trying to overwrite" /var/log/dist-upgrade/apt-term.log
  $

- to be sure, check that winbind was unpacked without errors in the log:

  $ grep "Unpacking winbind" /var/log/dist-upgrade/apt-term.log -4
  Unpacking samba (2:4.17.7+dfsg-1ubuntu2.1~ppa1) over (2:4.16.8+dfsg-0ubuntu1.2) ...
  Preparing to unpack .../18-samba-libs_2%3a4.17.7+dfsg-1ubuntu2.1~ppa1_amd64.deb ...
  Unpacking samba-libs:amd64 (2:4.17.7+dfsg-1ubuntu2.1~ppa1) over (2:4.16.8+dfsg-0ubuntu1.2) ...
  Preparing to unpack .../19-winbind_2%3a4.17.7+dfsg-1ubuntu2.1~ppa1_amd64.deb ...
  Unpacking winbind (2:4.17.7+dfsg-1ubuntu2.1~ppa1) over (2:4.16.8+dfsg-0ubuntu1.2) ...
  Preparing to unpack .../20-samba-common-bin_2%3a4.17.7+dfsg-1ubuntu2.1~ppa1_amd64.deb ...
  Unpacking samba-common-bin (2:4.17.7+dfsg-1ubuntu2.1~ppa1) over (2:4.16.8+dfsg-0ubuntu1.2) ...
  Preparing to unpack .../21-samba-vfs-modules_2%3a4.17.7+dfsg-1ubuntu2.1~ppa1_amd64.deb ...
  Unpacking samba-vfs-modules:amd64 (2:4.17.7+dfsg-1ubuntu2.1~ppa1) over (2:4.16.8+dfsg-0ubuntu1.2) ...

To post a comment you must log in.
Revision history for this message
Michał Małoszewski (michal-maloszewski99) wrote :

I cannot do anything more than say - it LGTM :)

Revision history for this message
Bryce Harrington (bryce) wrote :

Based on Michal's comment, setting to Approved.

I also did a review of LP: #2024663 and did a cursory check of the packaging changes and all LGTM as well. Notably I agree this seems low risk since it's addressing a potential corner cases for kinetic users which is unlikely to be hit, but worth cleanup in case jammy or focal get backports of this.

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, bryce
Uploaders: ahasenack, bryce
MP auto-approved

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, uploaded with rich history, and I added the block-proposed-lunar tag to the bug:

Uploading samba_4.17.7+dfsg-1ubuntu2.1.dsc
Uploading samba_4.17.7+dfsg-1ubuntu2.1.debian.tar.xz
Uploading samba_4.17.7+dfsg-1ubuntu2.1_source.buildinfo
Uploading samba_4.17.7+dfsg-1ubuntu2.1_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 0df6f08..17631d3 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+samba (2:4.17.7+dfsg-1ubuntu2.1) lunar; urgency=medium
7+
8+ * d/control: adjust breaks/replaces for file move that Debian did in
9+ 4.16.6+dfsg-5, and Ubuntu only did in 4.17.7+dfsg-1ubuntu1, to avoid
10+ file conflict in a dist-upgrade from earlier Ubuntu releases, like
11+ Kinetic (LP: #2024663)
12+
13+ -- Andreas Hasenack <andreas@canonical.com> Tue, 01 Aug 2023 18:30:42 -0300
14+
15 samba (2:4.17.7+dfsg-1ubuntu2) lunar; urgency=medium
16
17 * d/p/secure-channel-faulty-kb5028166.patch: fix domain membership
18diff --git a/debian/control b/debian/control
19index d5d994e..588ebaa 100644
20--- a/debian/control
21+++ b/debian/control
22@@ -395,8 +395,9 @@ Depends: samba-common (= ${source:Version}),
23 Enhances: libkrb5-26-heimdal <!pkg.samba.mitkrb5>
24 Suggests: libnss-winbind, libpam-winbind
25 # 4.16.6+dfsg-5 idmap_{script,rfc2307}.8 moved samba{,-libs} => winbind
26-Breaks: samba (<< 2:4.16.6+dfsg-5~), samba-libs (<< 2:4.16.6+dfsg-5~),
27-Replaces: samba (<< 2:4.16.6+dfsg-5~), samba-libs (<< 2:4.16.6+dfsg-5~),
28+# In Ubuntu, this was first done in 2:4.17.7+dfsg-1ubuntu1. See LP: #2024663
29+Breaks: samba (<< 2:4.17.7+dfsg-1ubuntu1~), samba-libs (<< 2:4.17.7+dfsg-1ubuntu1~),
30+Replaces: samba (<< 2:4.17.7+dfsg-1ubuntu1~), samba-libs (<< 2:4.17.7+dfsg-1ubuntu1~),
31 Description: service to resolve user and group information from Windows NT servers
32 Samba is an implementation of the SMB/CIFS protocol for Unix systems,
33 providing support for cross-platform file sharing with Microsoft Windows, OS X,

Subscribers

People subscribed via source and target branches