Merge ~athos-ribeiro/ubuntu/+source/squid:dont-default-to-openssl into ubuntu/+source/squid:ubuntu/devel

Proposed by Athos Ribeiro
Status: Merged
Merged at revision: 85a27808006cc7489739a5d1994838f721dd24f7
Proposed branch: ~athos-ribeiro/ubuntu/+source/squid:dont-default-to-openssl
Merge into: ubuntu/+source/squid:ubuntu/devel
Diff against target: 65 lines (+8/-34)
3 files modified
debian/changelog (+8/-0)
debian/patches/series (+0/-1)
dev/null (+0/-33)
Reviewer Review Type Date Requested Status
Utkarsh Gupta (community) Approve
Bryce Harrington (community) Approve
Review via email: mp+419351@code.launchpad.net

Description of the change

This is a proposal fix for LP: #1968200. It consists of dropping an specific patch in Ubuntu delta which makes --with-openssl a default option during configuration. This was proposed by an upstream review at https://github.com/squid-cache/squid/pull/694/files#r793839271.

A PPA with the proposed changes is available at https://launchpad.net/~athos-ribeiro/+archive/ubuntu/squid-no-openssl-default/+packages

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

This LGTM, after checking the LP bug and upstream bug.
I would suggest in the changelog not just specify "what" changed but also mention "why":
I.e., that --with-openssl is no longer necessary since the build auto-detects openssl, and having this option present causes a build error.
With that changelog addition, this is +1 to go, no need for re-review.

review: Approve
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

+1 with exactly what Bryce said. \o/

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks Bryce, Utkarsh :)

I added a snipped in the changelog (and commit msg) to say that having -with-openssl by default "hinders packaging since we ship squid in two different flavours (gnutls and openssl)".

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Uploaded.

$ dput ubuntu ../squid_5.2-1ubuntu4_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: ../squid_5.2-1ubuntu4_source.changes: Valid signature from 033C4CA276024834
Checking signature on .dsc
gpg: ../squid_5.2-1ubuntu4.dsc: Valid signature from 033C4CA276024834
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading squid_5.2-1ubuntu4.dsc: done.
  Uploading squid_5.2-1ubuntu4.debian.tar.xz: done.
  Uploading squid_5.2-1ubuntu4_source.buildinfo: done.
  Uploading squid_5.2-1ubuntu4_source.changes: done.
Successfully uploaded packages.

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 e321cb3..54ee3af 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+squid (5.2-1ubuntu4) jammy; urgency=medium
7+
8+ * Do not enable openssl as a default. This hinders packaging since we ship
9+ squid in two different flavours (gnutls and openssl). Drop
10+ d/p/openssl3-Detect-and-default-enable-OpenSSL-3.patch. (LP: #1968200)
11+
12+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Tue, 12 Apr 2022 23:41:41 -0300
13+
14 squid (5.2-1ubuntu3) jammy; urgency=medium
15
16 * Fix FTBFS with OpenSSL 3.0 (LP: #1946205). The following new
17diff --git a/debian/patches/openssl3-Detect-and-default-enable-OpenSSL-3.patch b/debian/patches/openssl3-Detect-and-default-enable-OpenSSL-3.patch
18deleted file mode 100644
19index 194e249..0000000
20--- a/debian/patches/openssl3-Detect-and-default-enable-OpenSSL-3.patch
21+++ /dev/null
22@@ -1,33 +0,0 @@
23-From: Amos Jeffries <amosjeffries@squid-cache.org>
24-Date: Fri, 15 Oct 2021 04:34:23 +1300
25-Subject: Detect and default-enable OpenSSL 3+
26-
27----
28- configure.ac | 9 ++++++++-
29- 1 file changed, 8 insertions(+), 1 deletion(-)
30-
31-Forwarded: yes, https://github.com/squid-cache/squid/pull/694
32-Bug: https://bugs.squid-cache.org/show_bug.cgi?id=5133
33-Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/squid/+bug/1946205
34-Last-Updated: 2022-02-08
35-
36-diff --git a/configure.ac b/configure.ac
37-index 4556a9e..14af6be 100644
38---- a/configure.ac
39-+++ b/configure.ac
40-@@ -1326,7 +1326,14 @@ case "$with_openssl" in
41- esac
42- ])
43- AH_TEMPLATE(USE_OPENSSL,[OpenSSL support is available])
44--## OpenSSL is default disable due to licensing issues on some OS
45-+AS_IF([test "x$with_openssl" != "xno"],[
46-+ SQUID_STATE_SAVE(squid_openssl3_state)
47-+ CPPFLAGS="$LIBOPENSSL_CFLAGS $CPPFLAGS"
48-+ LIBS="$LIBS $LIBOPENSSL_PATH"
49-+ PKG_CHECK_MODULES([LIBOPENSSL],[openssl >= 3],[with_openssl="yes"],[:])
50-+ SQUID_STATE_ROLLBACK(squid_openssl3_state)
51-+])
52-+## OpenSSL < 3 is default disable due to licensing issues on some OS
53- if test "x$with_openssl" = "xyes"; then
54- AC_CHECK_HEADERS( \
55- openssl/asn1.h \
56diff --git a/debian/patches/series b/debian/patches/series
57index 6d13126..6097469 100644
58--- a/debian/patches/series
59+++ b/debian/patches/series
60@@ -17,5 +17,4 @@ openssl3-Initial-DH-conversion-to-EVP_PKEY.patch
61 openssl3-Switch-to-BN_rand.patch
62 openssl3-SSL_OP_-macro-definitions-changed-in-3.0.patch
63 openssl3-Update-ECDH-key-settings.patch
64-openssl3-Detect-and-default-enable-OpenSSL-3.patch
65 openssl3-Remove-stale-TODO-and-comment.patch

Subscribers

People subscribed via source and target branches