resolvconf: Install missing normalize-resolvconf file

Message ID 20220620131338.160501-1-qorin.wu@gmail.com
State New
Headers show
Series resolvconf: Install missing normalize-resolvconf file | expand

Commit Message

Qorin Wu June 20, 2022, 1:13 p.m. UTC
From: Qorin <qorin.qorinna@nl.abb.com>

It was moved to a separate file in version 1.90
---
 meta/recipes-connectivity/resolvconf/resolvconf_1.91.bb | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Luca Ceresoli June 21, 2022, 8:24 a.m. UTC | #1
Hi Qorin,

On Mon, 20 Jun 2022 15:13:38 +0200
"Qorin Wu" <qorin.wu@gmail.com> wrote:

> From: Qorin <qorin.qorinna@nl.abb.com>
> 
> It was moved to a separate file in version 1.90

When sending a new version of a patch, please mark it as "v2", "v3"
etc. This is very easy to do with 'git format-patch' and 'git
send-email' by adding the '-v<NUMBER>' option.

Another thing you are required to do is to sign off your patches. Git
makes also this simple to do by adding '-s' to 'git commit'.

Thank you!
Qorin Wu June 21, 2022, 8:55 a.m. UTC | #2
Hi Luca,

done!

On Tue, Jun 21, 2022 at 10:24 AM Luca Ceresoli <luca.ceresoli@bootlin.com>
wrote:

> Hi Qorin,
>
> On Mon, 20 Jun 2022 15:13:38 +0200
> "Qorin Wu" <qorin.wu@gmail.com> wrote:
>
> > From: Qorin <qorin.qorinna@nl.abb.com>
> >
> > It was moved to a separate file in version 1.90
>
> When sending a new version of a patch, please mark it as "v2", "v3"
> etc. This is very easy to do with 'git format-patch' and 'git
> send-email' by adding the '-v<NUMBER>' option.
>
> Another thing you are required to do is to sign off your patches. Git
> makes also this simple to do by adding '-s' to 'git commit'.
>
> Thank you!
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>

Patch

diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.91.bb b/meta/recipes-connectivity/resolvconf/resolvconf_1.91.bb
index 94fd2c1a70..dba58ad2d6 100644
--- a/meta/recipes-connectivity/resolvconf/resolvconf_1.91.bb
+++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.91.bb
@@ -25,6 +25,10 @@  UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/r/resolvconf/"
 
 inherit allarch
 
+# The normalize-resolvconf sed script uses /bin/sed on the shebang line.
+# Ignore the file-rdeps test to avoid having to add a runtime dependency on sed.
+INSANE_SKIP:${PN} += "file-rdeps"
+
 do_compile () {
 	:
 }
@@ -46,6 +50,7 @@  do_install () {
 	chown -R root:root ${D}${sysconfdir}/
 	install -m 0755 bin/resolvconf ${D}${base_sbindir}/
 	install -m 0755 bin/list-records ${D}${base_libdir}/${BPN}
+	install -m 0755 bin/normalize-resolvconf ${D}${base_libdir}/${BPN}
 	install -d ${D}/${sysconfdir}/network/if-up.d
 	install -m 0755 debian/resolvconf.000resolvconf.if-up ${D}/${sysconfdir}/network/if-up.d/000resolvconf
 	install -d ${D}/${sysconfdir}/network/if-down.d