Merge ~mirespace/ubuntu/+source/squid-deb-proxy:sru-hirsute-squid-deb-proxy-lp1505670-apt-avahi-discover into ubuntu/+source/squid-deb-proxy:ubuntu/hirsute-devel

Proposed by Miriam España Acebal
Status: Merged
Merged at revision: e278643bdfd325844f56e23743e15cc8194e79f6
Proposed branch: ~mirespace/ubuntu/+source/squid-deb-proxy:sru-hirsute-squid-deb-proxy-lp1505670-apt-avahi-discover
Merge into: ubuntu/+source/squid-deb-proxy:ubuntu/hirsute-devel
Diff against target: 48 lines (+17/-1)
3 files modified
apt-avahi-discover (+5/-0)
debian/changelog (+10/-0)
debian/control (+2/-1)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
Canonical Server MOTU reviewers Pending
Review via email: mp+410286@code.launchpad.net

Description of the change

Hello team,

PPA with the package is here: https://launchpad.net/~mirespace/+archive/ubuntu/sru-hirsute-squid-deb-proxy-lp1505670-apt-avahi-discover.

This fix for LP#1505670 is cherry-picked from upstream (https://github.com/mvo5/squid-deb-proxy/commit/604ba3f98beff25a8fd51783d3ffc4db5e987dab by @mvo).

Steps for reproducing were set by Christian (paelzer) in the Bug's description and you can find them as well in the SRU template (with the bad and the good case -the good case without extra ifaces is easy to test-).

The build was ok, only lintian warnings:

W: squid-deb-proxy: missing-systemd-service-for-init.d-script squid-deb-proxy
W: squid-deb-proxy changes: unknown-architecture amd64_translations

I: Lintian run was successful.

No tests in the package are included.

Thanks a lot for your time here... ready to review.

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for the MP, Miriam.

Marking it as Needs Information as per https://code.launchpad.net/~mirespace/ubuntu/+source/squid-deb-proxy/+git/squid-deb-proxy/+merge/410288/comments/1083557. Those comments also apply to this MP.

review: Needs Information
Revision history for this message
Miriam España Acebal (mirespace) wrote :

Hi Sergio!

Thank you for your review :).

In fact, I was thinking that those lintian errors were there because it's a sync for now, but I thought about the "boy scout rule" (Always leave the code better than you found it) and more in this case that it's a SRU (and for the older one, Bionic). But better know for sure with your comment that is not strictly necessary.

Definitely yes to the PPA thing. Indeed, I see it when testing an open-vm-tools for Christian and I realized that "it was the way" (great point for the versions conflict hint), but I had the impish ppa for this already and the one for hirsute, so I continued for these bugs with the separates ppa.

After the talk on MM and your steps to reproduce (thanks!):
 - I mixed them with the ones for Christian and I think is now better and clearer I think (I'm afraid, not shorter).
 - On how far to go with the SRUs: I think is related to (or derived better said) the nuance that the conversation took on. Your point looks like very sensate, but I don't see myself in the position to make that decision.

Thanks a lot Sergio!

Revision history for this message
Miriam España Acebal (mirespace) wrote :

Hi again!

I changed the error's output as per Robie's suggestion (using now stderr). Updated changelog as well to reflect that the solution it's different from the one in the stable release.

I checked that the package's behaviour (fix) is the same with this new change but, please, take a look at it just in case.

New package uploaded to the ppa with -hirsuteppa1 suffix.

Thanks in advance!

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

Thanks, Miriam.

Uploaded:

$ dput squid-deb-proxy_0.8.15ubuntu0.21.04.1_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/squid-deb-proxy/squid-deb-proxy_0.8.15ubuntu0.21.04.1_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/squid-deb-proxy/squid-deb-proxy_0.8.15ubuntu0.21.04.1.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading squid-deb-proxy_0.8.15ubuntu0.21.04.1.dsc: done.
  Uploading squid-deb-proxy_0.8.15ubuntu0.21.04.1.tar.xz: done.
  Uploading squid-deb-proxy_0.8.15ubuntu0.21.04.1_source.buildinfo: done.
  Uploading squid-deb-proxy_0.8.15ubuntu0.21.04.1_source.changes: done.
Successfully uploaded packages.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/apt-avahi-discover b/apt-avahi-discover
2index dfd579b..65388d6 100755
3--- a/apt-avahi-discover
4+++ b/apt-avahi-discover
5@@ -58,6 +58,11 @@ class AptAvahiClient(asyncore.dispatcher):
6 def __repr__(self):
7 return "<{}> {}: {}".format(
8 self.__class__.__name__, self.addr, self.time_to_connect)
9+ def log(self, message):
10+ sys.stderr.write('log: %s\n' % str(message))
11+ def log_info(self, message, type='info'):
12+ if type not in self.ignore_log_types:
13+ self.log('%s: %s' % (type, message))
14
15
16 def is_ipv6(a):
17diff --git a/debian/changelog b/debian/changelog
18index 4deff9e..7581b14 100644
19--- a/debian/changelog
20+++ b/debian/changelog
21@@ -1,3 +1,13 @@
22+squid-deb-proxy (0.8.15ubuntu0.21.04.1) hirsute; urgency=medium
23+
24+ * apt-avahi-discover: write errors to stderr instead
25+ of stdout so that stdout can be captured correctly.
26+ Thanks to <jasonpepas@gmail.com>. Note that this is
27+ being fixed differently (stderr and not syslog)
28+ in the stable releases. LP: #1505670.
29+
30+ -- Miriam España Acebal <miriam.espana@canonical.com> Tue, 05 Oct 2021 13:23:08 +0200
31+
32 squid-deb-proxy (0.8.15build1) hirsute; urgency=medium
33
34 * No-change rebuild to drop the udeb package.
35diff --git a/debian/control b/debian/control
36index d7c877a..abdd386 100644
37--- a/debian/control
38+++ b/debian/control
39@@ -1,7 +1,8 @@
40 Source: squid-deb-proxy
41 Section: net
42 Priority: optional
43-Maintainer: Michael Vogt <mvo@debian.org>
44+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
45+XSBC-Original-Maintainer: Michael Vogt <mvo@debian.org>
46 Build-Depends: debhelper (>= 12),
47 gettext,
48 intltool,

Subscribers

People subscribed via source and target branches