Merge ~danilogondolfo/ubuntu/+source/icdiff:autopkgtest_fix3 into ubuntu/+source/icdiff:ubuntu/devel

Proposed by Danilo Egea Gondolfo
Status: Merged
Merge reported by: Danilo Egea Gondolfo
Merged at revision: 2854909225bf715b0c7649d4ff6c5d7070bee22a
Proposed branch: ~danilogondolfo/ubuntu/+source/icdiff:autopkgtest_fix3
Merge into: ubuntu/+source/icdiff:ubuntu/devel
Diff against target: 75 lines (+45/-1)
4 files modified
debian/changelog (+10/-0)
debian/control (+2/-1)
debian/patches/0001-Don-t-assume-process-substitution-will-be-fd-63.patch (+32/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Simon Chopin Pending
git-ubuntu import Pending
Review via email: mp+439476@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Simon Chopin (schopin) wrote (last edit ):

Turns out it's been uploaded already: https://launchpad.net/ubuntu/+source/icdiff/2.0.6-1ubuntu1

Closing as merged.

Edit: well, I would have liked to close it as merged, but apparently I lack permissions to do so?

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 d213def..ed7e0d2 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,13 @@
6+icdiff (2.0.6-1ubuntu1) lunar; urgency=medium
7+
8+ * Fix autopkgtests.
9+ - d/p/0001-Don-t-assume-process-substitution-will-be-fd-63.patch:
10+ Fixes autopkgtests on ubuntu. One of the tests rely on getting the
11+ file descriptor 63 from a process substitution to succeed, what is
12+ not happening in the autopkgtest.
13+
14+ -- Danilo Egea Gondolfo <danilo.egea.gondolfo@canonical.com> Thu, 23 Mar 2023 09:57:11 -0300
15+
16 icdiff (2.0.6-1) unstable; urgency=medium
17
18 [ Debian Janitor ]
19diff --git a/debian/control b/debian/control
20index e353fbf..ae4431a 100644
21--- a/debian/control
22+++ b/debian/control
23@@ -1,5 +1,6 @@
24 Source: icdiff
25-Maintainer: Sascha Steinbiss <satta@debian.org>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: Sascha Steinbiss <satta@debian.org>
28 Section: utils
29 Priority: optional
30 Build-Depends: debhelper-compat (= 13),
31diff --git a/debian/patches/0001-Don-t-assume-process-substitution-will-be-fd-63.patch b/debian/patches/0001-Don-t-assume-process-substitution-will-be-fd-63.patch
32new file mode 100644
33index 0000000..06d6962
34--- /dev/null
35+++ b/debian/patches/0001-Don-t-assume-process-substitution-will-be-fd-63.patch
36@@ -0,0 +1,32 @@
37+From: Danilo Egea Gondolfo <danilo.egea.gondolfo@canonical.com>
38+Date: Thu, 23 Mar 2023 09:33:12 -0300
39+Subject: Don't assume process substitution will be fd/63
40+
41+When running tests with autopkgtest, file descriptors 63 and 62 will be
42+found in the process context. One of the tests (gold-exit-process-sub)
43+will rely on getting the descriptor 63 from a process substitution to
44+succeed. It would be the first descriptor provided by bash during a
45+process substitution.
46+
47+Apparently, this test passes on Debian so it might happen due to
48+the test environment.
49+
50+Origin: upstream, https://github.com/jeffkaufman/icdiff/commit/1c2a042a3c2c1041a0ec011c9f33c3ba77c06de0
51+
52+---
53+ test.sh | 2 +-
54+ 1 file changed, 1 insertion(+), 1 deletion(-)
55+
56+--- a/test.sh
57++++ b/test.sh
58+@@ -158,7 +158,9 @@
59+ check_gold 2 gold-bad-encoding.txt tests/input-{1,2}.txt --encoding=nonexistend_encoding
60+ check_gold 0 gold-recursive-with-exclude.txt --recursive -x c tests/{a,b} --cols=80
61+ check_gold 1 gold-recursive-with-exclude2.txt --recursive -x 'excl*' tests/test-with-exclude/{a,b} --cols=80
62+-check_gold 0 gold-exit-process-sub tests/input-1.txt <(cat tests/input-1.txt) --cols=80
63++# tests/gold-exit-process-sub must be empty
64++:> tests/gold-exit-process-sub
65++check_gold 0 gold-exit-process-sub tests/input-1.txt <(cat tests/input-1.txt) --no-headers --cols=80
66+
67+ rm -f tests/permissions-{a,b}
68+ touch tests/permissions-{a,b}
69diff --git a/debian/patches/series b/debian/patches/series
70index ad16a14..709d254 100644
71--- a/debian/patches/series
72+++ b/debian/patches/series
73@@ -1 +1,2 @@
74 no-message-on-rm-nonexistant.patch
75+0001-Don-t-assume-process-substitution-will-be-fd-63.patch

Subscribers

People subscribed via source and target branches