Skip to contentSkip to conversation

package/openresolv: bump to version 3.9.2

PATCH New Einar Jon Gunnarssson 3 participants 6 messages Oct 15, 2019 – Nov 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openresolv: bump to version 3.9.2

From: Einar Jon Gunnarsson <[email protected]>

Version 3.9.2 strips the trailing comments generated by udhcpc LICENSE copyright updated to 2019

---
 package/openresolv/openresolv.hash | 4 ++--
 package/openresolv/openresolv.mk   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
package/openresolv/openresolv.hash +2 -2
index e1a1fb5..b8eb434 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 96b3f84435a183426c622db7097a930fb0d48a99e82cd87ce83bd343b8c20574 openresolv-fe4e1ec4e2be2adfc1530ade94ebb30aa6f51540.tar.gz
-sha256 d1f9dcd2dac4e095b14caab517cfe791a6e0785346164b7d0cafc13c714f8aa5 LICENSE
+sha256 0024df7c4568a157db1c3511a55d37d442629d586c575d9e0f9c2004df8297bd openresolv-3.9.2.tar.gz
+sha256 f78b2c2bfb333e66e935c81510580d002b6e2009a5b8132b3b5be8ed8f8f3fa7 LICENSE
package/openresolv/openresolv.mk +2 -2
index 3f9d603..3a64446 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-OPENRESOLV_VERSION = fe4e1ec4e2be2adfc1530ade94ebb30aa6f51540
-OPENRESOLV_SITE = $(call github,rsmarples,openresolv,$(OPENRESOLV_VERSION))
+OPENRESOLV_VERSION = 3.9.2
+OPENRESOLV_SITE = $(call github,rsmarples,openresolv,openresolv-$(OPENRESOLV_VERSION))
 OPENRESOLV_LICENSE = BSD-2-Clause
 OPENRESOLV_LICENSE_FILES = LICENSE
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/openresolv: bump to version 3.9.2

Quoted 10 lines · On Tue, 15 Oct 2019 09:20:33 +0200 Einar Jon Gunnarssson…

From: Einar Jon Gunnarsson <[email protected]>

Version 3.9.2 strips the trailing comments generated by udhcpc LICENSE copyright updated to 2019

---
 package/openresolv/openresolv.hash | 4 ++--
 package/openresolv/openresolv.mk   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/openresolv: bump to version 3.9.2

In reply to Einar Jon Gunnarssson
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Einar" == Einar Jon Gunnarssson <[email protected]> writes:

From: Einar Jon Gunnarsson <[email protected]> Version 3.9.2 strips the trailing comments generated by udhcpc

What does this mean exactly? I take it you refer to the '# ethX' we add to /etc/resolv.conf so we can remove the lines once the interface is again down.

Did older openresolv versions not work correctly with this? E.G. is this something that should be backported to 2019.02.x / 2019.08.x or is it just the new version of openresolv that removes the commit? If so, how are those lines cleaned up again?

Signature · 1 line
Bye, Peter Korsgaard
author
#3 lore raw

PATCH 1/1 package/openresolv: bump to version 3.9.2

Hello Peter

Quoted 9 lines · Peter Korsgaard
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Einar" == Einar Jon Gunnarssson <[email protected]> writes:

From: Einar Jon Gunnarsson <[email protected]> Version 3.9.2 strips the trailing comments generated by udhcpc

What does this mean exactly? I take it you refer to the '# ethX' we add to /etc/resolv.conf so we can remove the lines once the interface is again down.

Exactly those, and similar lines (if any) in head/tail files.

Quoted 1 line

Did older openresolv versions not work correctly with this?

Openresolv 3.9.0 and older turned "nameserver 1.2.3.4 # ethX" to nameserver 1.2.3.4
nameserver #
nameserver ethX
See this email (and the rest of that thread):
https://roy.marples.name/archives/openresolv-discuss/0000041.html

Quoted 3 lines

E.G. is this
something that should be backported to 2019.02.x / 2019.08.x

If this was broken until July this year I don't think many people are using a
combo of udhcpc+openresolv, so I doubt that backporting is very urgent. We need it because we have to use NetworkManager for the modem, but we don't want NetworkManager for ethX and the rest of the system. That's probably a pretty unique use-case.

Quoted 2 lines

or is it
just the new version of openresolv that removes the commit?

See above. The linked mail explains in detail. The new version removes trailing commits, and plays more nice with udhcpc.
It's just that the older versions would have extra garbage like "nameserver #" and "nameserver ethX". Not harmful, but not useful,

Quoted 1 line

If so, how are those lines cleaned up again?

All versions of openresolv are pretty good at cleaning up what is added. There is a folder in /var/run that stores all the entries by $interface.$type,
and those are deleted when the interface goes down. So that is fine in all versions.
Run "resolvconf -l" to see a breakdown of all entries by origin.

Best regards,
Einar J?n

Quoted 3 lines

--
Bye, Peter Korsgaard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20191031/e12cb4c3/attachment.html>

#4 lore raw

PATCH 1/1 package/openresolv: bump to version 3.9.2

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Einar" == Einar J?n <[email protected]> writes:

Hi,

Quoted 5 lines
Quoted 3 lines

What does this mean exactly? I take it you refer to the '# ethX' we add to /etc/resolv.conf so we can remove the lines once the interface is again down.

Exactly those, and similar lines (if any) in head/tail files.

Ok, does the logic in /usr/share/udhcpc/default.script to remove name servers again when an interface is brought down then still work?

Quoted 8 lines
Quoted 1 line

Did older openresolv versions not work correctly with this?

Openresolv 3.9.0 and older turned "nameserver 1.2.3.4 # ethX" to nameserver 1.2.3.4
nameserver #
nameserver ethX
See this email (and the rest of that thread):
https://roy.marples.name/archives/openresolv-discuss/0000041.html

Thanks.

Quoted 9 lines
Quoted 2 lines

E.G. is this
something that should be backported to 2019.02.x / 2019.08.x

If this was broken until July this year I don't think many people are using a
combo of udhcpc+openresolv, so I doubt that backporting is very urgent. We need it because we have to use NetworkManager for the modem, but we don't want NetworkManager for ethX and the rest of the system. That's probably a pretty unique use-case.

I indeed guess not.

Thanks.

Signature · 1 line
Bye, Peter Korsgaard
author
#5 lore raw

PATCH 1/1 package/openresolv: bump to version 3.9.2

Hi

Quoted 4 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Einar" == Einar J?n <[email protected]> writes:

Hi,

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

What does this mean exactly? I take it you refer to the '# ethX' we add to /etc/resolv.conf so we can remove the lines once the interface is again down.

Exactly those, and similar lines (if any) in head/tail files.

Ok, does the logic in /usr/share/udhcpc/default.script to remove name servers again when an interface is brought down then still work?

Openresolv removes the comments from /etc/resolv.conf which breaks the logic in /usr/share/udhcpc/default.script. But openresolv takes care of that
if you add this section to a /usr/share/udhcpc/default.script.d/whatever
deconfig)
[ "$METHOD" = dhcp ] && /sbin/resolvconf -f -d "$interface" /sbin/resolvconf -f -d "$interface.$ADDRFAM"

Best regards
Einar J?n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20191101/9e1a9d80/attachment.html>