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

Proposed by Miriam España Acebal
Status: Merged
Merged at revision: 7f0da64a695af9f14c15b87928bb10100b897801
Proposed branch: ~mirespace/ubuntu/+source/squid-deb-proxy:sru-focal-squid-deb-proxy-lp1505670-apt-avahi-discover
Merge into: ubuntu/+source/squid-deb-proxy:ubuntu/focal-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+410287@code.launchpad.net

Description of the change

Hello team,

PPA with the package is here: https://launchpad.net/~mirespace/+archive/ubuntu/sru-focal-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 -focalppa1 suffix.

Thanks in advance!

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

Hi Miriam,

Thanks for following up on this :-). I've tested the new package/approach and it works as expected indeed. Upon reading more of the discussion on the bug and thinking about our conversation earlier, I came to the conclusion that I personally wouldn't mind to backport the original patch which sends the message to syslog, but oh well, now you've already done all the work so that's totally fine :-).

I only found a very small nit in the d/changelog entry that I think should be fixed (I'm leaving an inline comment), but otherwise the MP LGTM and is ready to be sponsored. Please, let me know when you address the nit below (which applies to the other MPs as well, by the way) and I will be happy to upload the package for you.

Thanks again!

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

Ah, sorry, I forgot to mention: I have a few comments about the SRU template, specifically the Test Plan section.

I was following it in order to set everything up and try to reproduce the bug & verify the fix, and I noticed that there are a few things missing:

1) After setting up the test-bug1505670-focal VM, it's not clear which packages the user needs to install in order to fully reproduce the issue. ISTR that this information was available before. Would you mind adding it back, please? You need to put it after the "sudo apt update" command.

2) I think the text could also be clearer regarding which commands need to be executed on the host vs. inside the VM. For example, the "apt install apt-cacher-ng" needs to be done on the host.

I think with these improvements the text will look better. Thanks.

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

Hi Sergio!

Changes are done... all good proposals from you :). Crossing fingers I don't miss anything.

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

Thanks, Miriam :-). It's looking really great now, so I will sponsor the upload.

Just a very minor detail: we almost always refer to bugs between parentheses in the changelog entry. So in this case, it would be:

  * apt-avahi-discover: write errors to stderr instead
    of stdout so that stdout can be captured correctly.
    Thanks to <email address hidden>. Note that this is
    being fixed differently (stderr and not syslog)
    in the stable releases. (LP: #1505670)

But that's OK and you don't need to worry about it this time :-).

Thanks again.

Uploaded:

$ dput squid-deb-proxy_0.8.15ubuntu0.20.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.20.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.20.04.1.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading squid-deb-proxy_0.8.15ubuntu0.20.04.1.dsc: done.
  Uploading squid-deb-proxy_0.8.15ubuntu0.20.04.1.tar.xz: done.
  Uploading squid-deb-proxy_0.8.15ubuntu0.20.04.1_source.buildinfo: done.
  Uploading squid-deb-proxy_0.8.15ubuntu0.20.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 6072002..3656008 100644
19--- a/debian/changelog
20+++ b/debian/changelog
21@@ -1,3 +1,13 @@
22+squid-deb-proxy (0.8.15ubuntu0.20.04.1) focal; 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> Thu, 14 Oct 2021 13:41:22 +0200
31+
32 squid-deb-proxy (0.8.15) unstable; urgency=medium
33
34 [ Graham Cantin ]
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