Merge ~adrien/ubuntu/+source/gnupg2:plucky-broken into ubuntu/+source/gnupg2:ubuntu/devel

Proposed by Adrien Nader
Status: Needs review
Proposed branch: ~adrien/ubuntu/+source/gnupg2:plucky-broken
Merge into: ubuntu/+source/gnupg2:ubuntu/devel
Diff against target: 135 lines (+6/-79)
4 files modified
debian/changelog (+6/-0)
debian/control (+0/-27)
debian/rules (+0/-18)
dev/null (+0/-34)
Reviewer Review Type Date Requested Status
Erich Eickmeyer (community) Approve
Simon Quigley (community) Approve
git-ubuntu import Pending
Review via email: mp+477839@code.launchpad.net

Commit message

Remove the logic in d/rules that builds gpgv-win32.exe which a) needs a
mingw-w64 toolchain, and b) is only used by debian-installer.
It seems to cause more failures than should be warranted because it's
custom build logic in d/rules. Since we don't need it, we can just drop
it.

Description of the change

Please review this merge request. In addition to the git commits, a
debdiff will be posted in the comments.

# ๐Ÿ“Š PPA
A PPA is available at:
 https://launchpad.net/~adrien/+archive/ubuntu/plucky-gnupg2-broken

# ๐Ÿงช Autopkgtest results
- โœ… gnupg2 on plucky for arm64 @ 10.01.25 15:05:41
      โ€ข Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-adrien-plucky-gnupg2-broken/plucky/arm64/g/gnupg2/20250110_150541_9ed87@/log.gz
- โœ… gnupg2 on plucky for armhf @ 10.01.25 15:08:09
      โ€ข Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-adrien-plucky-gnupg2-broken/plucky/armhf/g/gnupg2/20250110_150809_8f6ca@/log.gz
- โœ… gnupg2 on plucky for ppc64el @ 10.01.25 15:04:27
      โ€ข Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-adrien-plucky-gnupg2-broken/plucky/ppc64el/g/gnupg2/20250110_150427_45643@/log.gz

Waiting for results on other arches. My -20 version was passing and this was a simple rebase. At the moment, amd64 and i386 are stuck so there won't be results for them probably, only for s390x.

# ๐Ÿ” Lintian diff from most recent published package
No change

To post a comment you must log in.
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Comments inline

review: Needs Fixing
Revision history for this message
Adrien Nader (adrien) :
21a0980... by Adrien Nader

reconstruct-changelog

Revision history for this message
Adrien Nader (adrien) wrote :

I've rebased the branch on top of the latest gnupg2 version and all the diff markers in LP's diff preview have indeed vanished. :)

Revision history for this message
Simon Quigley (tsimonq2) :
review: Approve
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

LGTM

review: Approve

Unmerged commits

21a0980... by Adrien Nader

reconstruct-changelog

6d8230d... by Adrien Nader

  * Don't build the gpgv-win32 package which only debian-installer uses

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 02b2490..8d526d7 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+gnupg2 (2.4.4-2ubuntu22) plucky; urgency=medium
7+
8+ * Don't build the gpgv-win32 package which only debian-installer uses
9+
10+ -- Adrien Nader <adrien.nader@canonical.com> Fri, 10 Jan 2025 14:24:01 +0100
11+
12 gnupg2 (2.4.4-2ubuntu21) plucky; urgency=medium
13
14 * revert-rfc4880bis.patch: Revert the "LibrePGP" changes that introduce
15diff --git a/debian/control b/debian/control
16index 704833d..0bcf4e7 100644
17--- a/debian/control
18+++ b/debian/control
19@@ -29,15 +29,6 @@ Build-Depends:
20 pkg-config,
21 texinfo,
22 zlib1g-dev | libz-dev,
23-Build-Depends-Indep:
24- binutils-multiarch [!amd64 !i386],
25- libassuan-mingw-w64-dev (>= 2.5.0),
26- libgcrypt-mingw-w64-dev (>= 1.9.1),
27- libgpg-error-mingw-w64-dev (>= 1.46),
28- libksba-mingw-w64-dev (>= 1.6.3),
29- libnpth-mingw-w64-dev (>= 1.2),
30- libz-mingw-w64-dev,
31- mingw-w64,
32 Vcs-Git: https://salsa.debian.org/debian/gnupg2.git -b debian/main
33 Vcs-Browser: https://salsa.debian.org/debian/gnupg2
34 Homepage: https://www.gnupg.org/
35@@ -423,24 +414,6 @@ Description: minimal signature verification tool (static build)
36 installs on these platforms by using the full Debian signature
37 verification that is present in all official Debian mirrors.
38
39-Package: gpgv-win32
40-Architecture: all
41-Multi-Arch: foreign
42-Depends:
43- ${misc:Depends},
44-Suggests:
45- wine,
46-Description: GNU privacy guard - signature verification tool (win32 build)
47- GnuPG is GNU's tool for secure communication and data storage.
48- .
49- gpgv is a stripped-down version of gnupg which is only able to check
50- signatures. It is smaller than the full-blown gnupg and uses a
51- different (and simpler) way to check that the public keys used to
52- make the signature are trustworthy.
53- .
54- This is a win32 version of gpgv. It's meant to be used by the win32-loader
55- component of Debian-Installer.
56-
57 Package: gnupg-l10n
58 Section: localization
59 Architecture: all
60diff --git a/debian/gpgv-win32.install b/debian/gpgv-win32.install
61deleted file mode 100644
62index cf3cd8c..0000000
63--- a/debian/gpgv-win32.install
64+++ /dev/null
65@@ -1 +0,0 @@
66-build-gpgv-win32/g10/gpgv.exe usr/share/win32
67diff --git a/debian/rules b/debian/rules
68index 81590a1..b9e0d31 100755
69--- a/debian/rules
70+++ b/debian/rules
71@@ -64,24 +64,6 @@ override_dh_auto_build-arch:
72 cd build-gpgv-static/g10 && $(MAKE) LDFLAGS="$$LDFLAGS $(GPGV_STATIC_HARDENING) -static" gpgv
73 mv build-gpgv-static/g10/gpgv build-gpgv-static/g10/gpgv-static
74
75-override_dh_auto_build-indep:
76- mkdir -p build-gpgv-win32
77- cd build-gpgv-win32 && $(WIN32_FLAGS) ../configure \
78- $(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x)) \
79- $(foreach x, libgpg-error libgcrypt libassuan ksba npth, --with-$x-prefix=/usr/i686-w64-mingw32) \
80- --enable-gpg2-is-gpg \
81- --with-zlib=/usr/i686-w64-mingw \
82- --prefix=/usr/i686-w64-mingw32 \
83- --host i686-w64-mingw32
84- cd build-gpgv-win32/common && $(WIN32_FLAGS) $(MAKE) libgpgrl.a
85- cd build-gpgv-win32/common && $(WIN32_FLAGS) $(MAKE) libsimple-pwquery.a
86- cd build-gpgv-win32/common && $(WIN32_FLAGS) $(MAKE) libcommonpth.a
87- cd build-gpgv-win32/kbx && $(WIN32_FLAGS) $(MAKE) libkeybox.a
88- cd build-gpgv-win32/regexp && $(WIN32_FLAGS) $(MAKE) libregexp.a
89- cd build-gpgv-win32/g10 && $(WIN32_FLAGS) $(MAKE) gpgv.exe
90- strip build-gpgv-win32/g10/gpgv.exe
91-
92-
93 override_dh_auto_test:
94 dh_auto_test --builddirectory=build -- verbose=3 TESTFLAGS=$(AUTOTEST_FLAGS)
95
96diff --git a/debian/tests/gpgv-win32 b/debian/tests/gpgv-win32
97deleted file mode 100755
98index 035c060..0000000
99--- a/debian/tests/gpgv-win32
100+++ /dev/null
101@@ -1,34 +0,0 @@
102-#!/bin/bash
103-
104-set -e
105-
106-export GNUPGHOME=$(mktemp -d)
107-gpgargs=(--batch --quiet --pinentry-mode=loopback --passphrase '' --with-colons)
108-
109-# Generate a minimal signing key:
110-gpg "${gpgargs[@]}" --quick-gen-key 'Test key for gpgv-win32 <test-key@example.com>'
111-
112-gpg "${gpgargs[@]}" -o "$GNUPGHOME/key.gpg" --export test-key@example.com
113-
114-# Sign this very script
115-rm -f "${0}.gpg"
116-gpg "${gpgargs[@]}" --output "${0}.gpg" --detach-sign "${0}"
117-
118-# Verify using gpgv
119-gpgv --quiet --status-fd 3 3> native.status --keyring "$GNUPGHOME/key.gpg" "${0}.gpg" "${0}"
120-
121-WINE=/usr/lib/wine/wine
122-export WINESERVER=/usr/lib/wine/wineserver32
123-
124-# Verify using gpgv.exe (using --status-fd 1 because i don't know how
125-# to pass a non-standard file descriptor into wine)
126-"$WINE" /usr/share/win32/gpgv.exe --quiet --status-fd 1 > win32.status --keyring "Z://${GNUPGHOME}/key.gpg" "${0}.gpg" "${0}"
127-
128-# convert to unix newlines if necessary:
129-sed -i 's/\r$//' win32.status
130-
131-diff -u native.status win32.status
132-
133-head -v win32.status
134-
135-rm -rf "$GNUPGHOME"

Subscribers

People subscribed via source and target branches