Merge ~danilogondolfo/ubuntu/+source/netcat-openbsd:merge-lp2042431-noble into ubuntu/+source/netcat-openbsd:debian/sid

Proposed by Danilo Egea Gondolfo
Status: Needs review
Proposed branch: ~danilogondolfo/ubuntu/+source/netcat-openbsd:merge-lp2042431-noble
Merge into: ubuntu/+source/netcat-openbsd:debian/sid
Diff against target: 189 lines (+99/-2)
2 files modified
debian/changelog (+96/-0)
debian/control (+3/-2)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
git-ubuntu import Pending
Review via email: mp+454972@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the MP, Danilo.

I have a question about your last commit. I see that you've changed the following changelog entry:

@@ -14,7 +14,7 @@ netcat-openbsd (1.226-1) unstable; urgency=medium

 netcat-openbsd (1.225-1ubuntu1) mantic; urgency=medium

- * Merge from Debian unstable (LP: #2025666). Remaining changes:
+ * Merge from Debian unstable. Remaining changes:
     - Don't build-depend on strace on i386 where it's unavailable.

but I couldn't find a reason for this change. I always frown upon changes to previous changelog entries, so I decided to ask :-).

review: Needs Information
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Hi Sergio, thanks for looking at it. Another coredev who sponsored some of my merges some time ago suggested I should drop this kind of LP bug references from the previous changelog entry. I honestly don't have any opinion on that, and being new to deb packaging I adopted the suggestion (they never said it should be removed, just that they use to do that). That's the sole reason :)

Again, I don't have an opinion on that and I can put it back if you say otherwise ;)

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Ah, got it.

Let me explain it to you, then. When you generate the .changes file, dpkg-buildpackage will scan the last changelog entry, look for strings like "LP: #nnnnnn", and add the proper header to the .changes file (called "Launchpad-Bugs-Fixed") which will contain a list of bugs to be closed when this release is accepted.

When you're doing merges with git-ubuntu, sometimes you end up with entries in the changelog for changes that are being dropped, but that were previously added to fix a bug. Say, for example, you have a changelog entry like the following:

foo (1.1-1ubuntu1) noble; urgency=medium

  * d/p/0001-fix.patch: Fix bug XYZ (LP: #nnnn).

 -- ....

and then, when you prepare a new merge, you can drop the fix. You'd end up with something like:

foo (1.2-1ubuntu1) noble; urgency=medium

  * Merge ... Remaining changes:
    - ....
  * Drop changes:
    - d/p/0001-fix.patch: Fix bug XYZ (LP: #nnnn).
      [ Fixed upstream. ]

 -- ....

However, if we were to upload this package as is, dpkg-buildpackage would *still* consider #nnnn to be fixed by this new upload, which would be wrong. On the other reason, it's a good practice to mention the bug that was fixed before, so what can we do? The answer is to remove the colon between "LP" and "#nnnn". This way, dpkg-buildpackage won't match the line and the bug won't be listed in the .changes file.

git-ubuntu implements a mechanism to do that for you automatically, and it works most of the time, but there are a few situations when it might miss and "forget" to remove the colon. In this case, you have to do it by hand, which is probably what that other Core Dev told you to do.

Now, remember when I said that dpkg-buildpackage only scans the last changelog entry? For that reason, you don't actually need to care about removing LP bug references from previous entries. They won't be considered anyway.

I hope this makes things clearer, and explains why I asked the question (and why you can actually revert part of the commit).

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Hi Sergio, thanks for the explanation. That makes sense. I reverted that part of the commit. Thanks! :)

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks, Danilo.

Uploaded:

$ dput ssh-ubuntu netcat-openbsd_1.226-1ubuntu1_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: /home/sergio/work/netcat-openbsd/netcat-openbsd_1.226-1ubuntu1_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/netcat-openbsd/netcat-openbsd_1.226-1ubuntu1.dsc: Valid signature from 106DA1C8C3CBBF14
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to ssh-ubuntu (via sftp to upload.ubuntu.com):
  Uploading netcat-openbsd_1.226-1ubuntu1.dsc: done.
  Uploading netcat-openbsd_1.226.orig.tar.gz: done.
  Uploading netcat-openbsd_1.226-1ubuntu1.debian.tar.xz: done.
  Uploading netcat-openbsd_1.226-1ubuntu1_source.buildinfo: done.
  Uploading netcat-openbsd_1.226-1ubuntu1_source.changes: done.
Successfully uploaded packages.

review: Approve

Unmerged commits

8ba7ada... by Danilo Egea Gondolfo

changelog

70634e3... by Danilo Egea Gondolfo

update-maintainer

db68e1c... by Danilo Egea Gondolfo

reconstruct-changelog

14510a1... by Danilo Egea Gondolfo

merge-changelogs

55f4b14... by Danilo Egea Gondolfo

Don't build-depend on strace on i386 where it's unavailable.

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 638911a..33904d9 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+netcat-openbsd (1.226-1ubuntu1) noble; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #2042431). Remaining changes:
9+ - Don't build-depend on strace on i386 where it's unavailable.
10+
11+ -- Danilo Egea Gondolfo <danilo.egea.gondolfo@canonical.com> Wed, 01 Nov 2023 10:27:32 +0000
12+
13 netcat-openbsd (1.226-1) unstable; urgency=medium
14
15 [ Guilhem Moulin ]
16@@ -5,6 +12,13 @@ netcat-openbsd (1.226-1) unstable; urgency=medium
17
18 -- Guilhem Moulin <guilhem@debian.org> Mon, 16 Oct 2023 19:31:08 +0200
19
20+netcat-openbsd (1.225-1ubuntu1) mantic; urgency=medium
21+
22+ * Merge from Debian unstable (LP: #2025666). Remaining changes:
23+ - Don't build-depend on strace on i386 where it's unavailable.
24+
25+ -- Danilo Egea Gondolfo <danilo.egea.gondolfo@canonical.com> Mon, 03 Jul 2023 17:30:27 +0100
26+
27 netcat-openbsd (1.225-1) unstable; urgency=medium
28
29 [ Debian Janitor ]
30@@ -30,6 +44,13 @@ netcat-openbsd (1.225-1) unstable; urgency=medium
31
32 -- Guilhem Moulin <guilhem@debian.org> Sat, 10 Jun 2023 22:43:37 +0200
33
34+netcat-openbsd (1.219-1ubuntu1) lunar; urgency=medium
35+
36+ * Merge from Debian unstable. Remaining changes:
37+ - Don't build-depend on strace on i386 where it's unavailable.
38+
39+ -- Benjamin Drung <bdrung@ubuntu.com> Mon, 20 Feb 2023 11:16:40 +0100
40+
41 netcat-openbsd (1.219-1) unstable; urgency=medium
42
43 * New upstream release (from OpenBSD 7.2).
44@@ -39,6 +60,14 @@ netcat-openbsd (1.219-1) unstable; urgency=medium
45
46 -- Guilhem Moulin <guilhem@debian.org> Thu, 20 Oct 2022 23:19:17 +0200
47
48+netcat-openbsd (1.218-5ubuntu1) kinetic; urgency=medium
49+
50+ * Merge from Debian unstable. Remaining changes:
51+ - Don't build-depend on strace on i386 where it's unavailable.
52+ * Drop netcat transitional package, because netcat 1.10-47 dropped it
53+
54+ -- Benjamin Drung <bdrung@ubuntu.com> Tue, 17 May 2022 18:27:43 +0200
55+
56 netcat-openbsd (1.218-5) unstable; urgency=low
57
58 [ Dirk Jagdmann ]
59@@ -91,6 +120,16 @@ netcat-openbsd (1.218-5) unstable; urgency=low
60
61 -- Guilhem Moulin <guilhem@debian.org> Fri, 11 Mar 2022 21:54:15 +0100
62
63+netcat-openbsd (1.218-4ubuntu1) jammy; urgency=medium
64+
65+ * Merge from Debian unstable. Remaining changes (LP: #1961983):
66+ - Move the netcat transitional package here and have it depend on the
67+ preferred netcat-openbsd implementation of netcat, not
68+ netcat-traditional.
69+ - Don't build-depend on strace on i386 where it's unavailable.
70+
71+ -- Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Wed, 23 Feb 2022 12:09:43 +0100
72+
73 netcat-openbsd (1.218-4) unstable; urgency=medium
74
75 * d/checks/*: Allow test suite to fail due to the high rate of false
76@@ -98,6 +137,16 @@ netcat-openbsd (1.218-4) unstable; urgency=medium
77
78 -- Guilhem Moulin <guilhem@debian.org> Sat, 19 Feb 2022 11:33:57 +0100
79
80+netcat-openbsd (1.218-3ubuntu1) jammy; urgency=low
81+
82+ * Merge from Debian unstable. Remaining changes:
83+ - Move the netcat transitional package here and have it depend on the
84+ preferred netcat-openbsd implementation of netcat, not
85+ netcat-traditional.
86+ - Don't build-depend on strace on i386 where it's unavailable.
87+
88+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 13 Dec 2021 23:37:43 -0800
89+
90 netcat-openbsd (1.218-3) unstable; urgency=medium
91
92 * Upload to unstable.
93@@ -157,6 +206,21 @@ netcat-openbsd (1.218-2+exp1) experimental; urgency=low
94
95 -- Guilhem Moulin <guilhem@debian.org> Sun, 14 Nov 2021 17:17:26 +0100
96
97+netcat-openbsd (1.218-2ubuntu2) jammy; urgency=medium
98+
99+ * Don't build-depend on strace on i386 where it's unavailable.
100+
101+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 08 Dec 2021 00:17:56 +0000
102+
103+netcat-openbsd (1.218-2ubuntu1) jammy; urgency=low
104+
105+ * Merge from Debian unstable (LP: #1950985). Remaining changes:
106+ - Move the netcat transitional package here and have it depend on the
107+ peferred netcat-openbsd implementation of netcat, not
108+ netcat-traditional.
109+
110+ -- Dave Jones <dave.jones@canonical.com> Sun, 14 Nov 2021 09:42:30 +0000
111+
112 netcat-openbsd (1.218-2) unstable; urgency=low
113
114 * d/checks: Fix FTBS on some platforms:
115@@ -202,6 +266,21 @@ netcat-openbsd (1.217.1-1) unstable; urgency=medium
116
117 -- Guilhem Moulin <guilhem@debian.org> Mon, 16 Aug 2021 03:14:05 +0200
118
119+netcat-openbsd (1.217-3ubuntu2) impish; urgency=medium
120+
121+ * No-change rebuild to build packages with zstd compression.
122+
123+ -- Matthias Klose <doko@ubuntu.com> Thu, 07 Oct 2021 12:21:24 +0200
124+
125+netcat-openbsd (1.217-3ubuntu1) hirsute; urgency=low
126+
127+ * Merge from Debian unstable. Remaining changes:
128+ - Move the netcat transitional package here and have it depend on the
129+ peferred netcat-openbsd implementation of netcat, not
130+ netcat-traditional.
131+
132+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 06 Jan 2021 14:06:46 -0800
133+
134 netcat-openbsd (1.217-3) unstable; urgency=low
135
136 [ Debian Janitor ]
137@@ -215,6 +294,15 @@ netcat-openbsd (1.217-3) unstable; urgency=low
138
139 -- Guilhem Moulin <guilhem@debian.org> Sat, 19 Dec 2020 00:11:23 +0100
140
141+netcat-openbsd (1.217-2ubuntu1) groovy; urgency=low
142+
143+ * Merge from Debian unstable. Remaining changes:
144+ - Move the netcat transitional package here and have it depend on the
145+ peferred netcat-openbsd implementation of netcat, not
146+ netcat-traditional.
147+
148+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 09 Jun 2020 13:21:58 -0700
149+
150 netcat-openbsd (1.217-2) unstable; urgency=low
151
152 * d/patches: Make getnameinfo(3) errors non-fatal in report_sock():
153@@ -247,6 +335,14 @@ netcat-openbsd (1.217-1) unstable; urgency=medium
154
155 -- Guilhem Moulin <guilhem@debian.org> Sat, 23 May 2020 02:04:39 +0200
156
157+netcat-openbsd (1.206-1ubuntu1) focal; urgency=medium
158+
159+ * Move the netcat transitional package here and have it depend on the
160+ preferred netcat-openbsd implementation of netcat, not
161+ netcat-traditional. LP: #1780316.
162+
163+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 09 Mar 2020 11:50:15 -0700
164+
165 netcat-openbsd (1.206-1) unstable; urgency=medium
166
167 * New upstream release (from OpenBSD 6.6)
168diff --git a/debian/control b/debian/control
169index 3570bb1..4ce9c66 100644
170--- a/debian/control
171+++ b/debian/control
172@@ -1,7 +1,8 @@
173 Source: netcat-openbsd
174 Section: net
175 Priority: important
176-Maintainer: Guilhem Moulin <guilhem@debian.org>
177+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
178+XSBC-Original-Maintainer: Guilhem Moulin <guilhem@debian.org>
179 Standards-Version: 4.6.2
180 Rules-Requires-Root: no
181 Build-Depends: debhelper-compat (= 13),
182@@ -9,7 +10,7 @@ Build-Depends: debhelper-compat (= 13),
183 libbsd-dev,
184 pkg-config,
185 procps [linux-any] <!nocheck>,
186- strace [linux-any] <!nocheck>
187+ strace [!i386] <!nocheck>
188 Vcs-Git: https://salsa.debian.org/debian/netcat-openbsd.git -b debian/latest
189 Vcs-Browser: https://salsa.debian.org/debian/netcat-openbsd
190

Subscribers

People subscribed via source and target branches