Merge lp:~javier-lopez/ubuntu/trusty/wicd/fix-1132529 into lp:ubuntu/trusty/wicd

Proposed by Javier López
Status: Merged
Merge reported by: Iain Lane
Merged at revision: not available
Proposed branch: lp:~javier-lopez/ubuntu/trusty/wicd/fix-1132529
Merge into: lp:ubuntu/trusty/wicd
Diff against target: 44 lines (+24/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/34-fix-resolv.conf_backup-restore-broken-link.patch (+15/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~javier-lopez/ubuntu/trusty/wicd/fix-1132529
Reviewer Review Type Date Requested Status
Robie Basak Needs Information
Ubuntu branches Pending
Review via email: mp+197998@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Javier López (javier-lopez) wrote :

The proposed change allow wicd-daemon to start when /etc/resolv is a broken link (which happens by default in Ubuntu 13.04 and 14.04 at least). It's distantly related to debian report #691973. Credits go to mesilliac which provided the original patch at:

https://bugs.launchpad.net/wicd/+bug/1193856

Revision history for this message
Robie Basak (racb) wrote :

Thank you for bringing this patch forward. A couple of things stop me from being able to conclude whether this patch should be uploaded or not:

1. No dep3 headers in the quilt patch, which might have given me this information: http://dep.debian.net/deps/dep3/

2.

resolvconf is in Debian too, so this issue probably also affects Debian, right? And upstream? We prefers bugs to be fixed as far upstream as possible so that we don't have to maintain a delta. Is there any particular reason this is not appropriate here?

We can add a delta if we have to in order to make a release, of course, but it would be preferable for the patch to also have been sent upstream for later inclusion, so that we can at least drop the delta later.

If you just want the bug fixed eventually, then sending the patch further upstream would be appropriate, and then Ubuntu will autosync a more future package release from Debian.

Please could you clarify what the situation is with this here?

review: Needs Information
Revision history for this message
Javier López (javier-lopez) wrote :

Hi, thanks for your reply

1.- Yeah, I know of dep3, however the edit-patch I used (featured in the ubuntu developer guide, packaging.ubuntu.com) doesn't add dep3 headers and I didn't think such minimalist patch would require one. If it's required I'll add it =)

2.- Yep, probably, although I've not test it (I don't have a debian machine nearby), not sure if I should open a bug there without testing first =/ , I've previous bad experience in debian (basically everything I report|request there use to be ignored, so I'm not sure if I should report yet another bug). I however could open an issue on lp:wicd and see if authors reply anything. The fix could go eventually from upstream -> debian -> ubuntu deleting the delta.

Revision history for this message
Robie Basak (racb) wrote :

> If it's required I'll add it =)

We would prefer that you did. In this case, the value of your "Forwarded" field would have helped me :)

I don't think it's reasonable to land a patch in Ubuntu without somebody testing it.

> I've previous bad experience in debian

Remember that in Debian each package has its own maintainer or sets of maintainers. Unless you have had a bad experience with the wicd maintainers specifically, you shouldn't take your experience to mean much in this case.

We can be pragmatic about this. If the (tested) fix gets ignored upstream, then we can link to the bug from our bug, and make the change ahead of it being looked at upstream to help Ubuntu users. But we should, at the minimum, have offered the patch upstream and documented this reason for introducing an Ubuntu delta in the bug.

Revision history for this message
Javier López (javier-lopez) wrote :

Actually the issue in lp:wicd has already been opened:

https://bugs.launchpad.net/wicd/+bug/1193856

I've requested the merge: https://code.launchpad.net/~chilicuil/wicd/wicd/+merge/198057

In the meantime, as it gets accepted|rejected or ignored I've set up a ppa:

https://launchpad.net/~chilicuil/+archive/proposed-fixes

31. By Javier López

Add dep3 headers for patches/34-fix-resolv.conf_backup-restore-broken-link.patch

Revision history for this message
Javier López (javier-lopez) wrote :

> > If it's required I'll add it =)
>
> We would prefer that you did. In this case, the value of your "Forwarded"
> field would have helped me :)
>
> I don't think it's reasonable to land a patch in Ubuntu without somebody
> testing it.

I've tested it on Ubuntu trusty, I've not test it on Debian, that's what I was referring me to =)

>
> > I've previous bad experience in debian
>
> Remember that in Debian each package has its own maintainer or sets of
> maintainers. Unless you have had a bad experience with the wicd maintainers
> specifically, you shouldn't take your experience to mean much in this case.
>
> We can be pragmatic about this. If the (tested) fix gets ignored upstream,
> then we can link to the bug from our bug, and make the change ahead of it
> being looked at upstream to help Ubuntu users. But we should, at the minimum,
> have offered the patch upstream and documented this reason for introducing an
> Ubuntu delta in the bug.

Yes, it sounds reasonable, I've forwarded the patch to upstream:

https://code.launchpad.net/~chilicuil/wicd/wicd/+merge/198057

Thanks again for your comments

Revision history for this message
Iain Lane (laney) wrote :

I see Debian has some related patches in this area

  http://anonscm.debian.org/gitweb/?p=collab-maint/wicd.git;a=blob;f=debian/patches/04-fix_resolv.conf_backup-restore.patch;h=25903d6cfdeee3dced21608c451272dfcfb65ce6;hb=HEAD

It'd be really great if you could forward your patch to the maintainer as this patch indicates to me that he's interested in this kind of issue.

If you reply on this bug once you've done that I'll get emailed and then can upload for you.

Revision history for this message
Javier López (javier-lopez) wrote :

Hi Iain, thanks for replying,

I've forwarded the patch to Debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732739

Best regards

Revision history for this message
Iain Lane (laney) wrote :

Thanks for doing that! I've uploaded to trusty now. :-)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-06-07 18:42:23 +0000
3+++ debian/changelog 2013-12-06 14:09:27 +0000
4@@ -1,3 +1,11 @@
5+wicd (1.7.2.4-4.1ubuntu1) trusty; urgency=low
6+
7+ * debian/patches/34-fix-resolv.conf_backup-restore-broken-link.patch:
8+ allow wicd-daemon to start when /etc/resolv.conf is a broken link
9+ (LP: #1132529)
10+
11+ -- Javier P.L. <chilicuil@ubuntu.com> Fri, 06 Dec 2013 01:02:49 -0600
12+
13 wicd (1.7.2.4-4.1) unstable; urgency=low
14
15 * Non-maintainer upload
16
17=== added file 'debian/patches/34-fix-resolv.conf_backup-restore-broken-link.patch'
18--- debian/patches/34-fix-resolv.conf_backup-restore-broken-link.patch 1970-01-01 00:00:00 +0000
19+++ debian/patches/34-fix-resolv.conf_backup-restore-broken-link.patch 2013-12-06 14:09:27 +0000
20@@ -0,0 +1,15 @@
21+## Description: fix /etc/resolv.conf resolution when it's a relative sysmlink
22+## Forwarded: yes https://code.launchpad.net/~chilicuil/ubuntu/trusty/wicd/fix-1132529/+merge/197998
23+## Bug: https://bugs.launchpad.net/wicd/+bug/1193856
24+## Author: Tommy (mesilliac)
25+--- a/wicd/wicd-daemon.py
26++++ b/wicd/wicd-daemon.py
27+@@ -1702,7 +1702,7 @@ def main(argv):
28+ backup_location = wpath.varlib + 'resolv.conf.orig'
29+ # don't back up if .orig exists, probably there cause
30+ # wicd exploded
31+- if not os.path.exists(backup_location):
32++ if not os.path.exists(backup_location) and not os.path.islink(backup_location):
33+ if os.path.islink('/etc/resolv.conf'):
34+ dest = os.readlink('/etc/resolv.conf')
35+ os.symlink(dest, backup_location)
36
37=== modified file 'debian/patches/series'
38--- debian/patches/series 2013-06-07 18:42:23 +0000
39+++ debian/patches/series 2013-12-06 14:09:27 +0000
40@@ -5,3 +5,4 @@
41 26-support_etc-network_scripts.patch
42 32-prefer_gksu.patch
43 33-focus_property.patch
44+34-fix-resolv.conf_backup-restore-broken-link.patch

Subscribers

People subscribed via source and target branches

to all changes: