Patchwork Fwd: [PATCH] Install list-records with resolvconf package

login
register
mail settings
Submitter Jate S
Date June 23, 2014, 3:07 p.m.
Message ID <CAPphmgbm851LepCazfd6mjYQZdOgAgqo=6jCxt5xP1-2Vrz-Ag@mail.gmail.com>
Download mbox | patch
Permalink /patch/74259/
State New
Headers show

Comments

Jate S - June 23, 2014, 3:07 p.m.
I had sent this to the wrong list.

---------- Forwarded message ----------
From: Jate Sujjavanich <jatedev@gmail.com>
Date: Mon, Jun 23, 2014 at 10:16 AM
Subject: [PATCH] Install list-records with resolvconf package
To: openembedded-devel@lists.openembedded.org, sgw@linux.intel.com
Cc: Jate Sujjavanich <jatedev@gmail.com>


The resolvconf script uses /lib/resolvconf/list-records, but the recipe
does not install it. This causes an error when /etc/resolvconf/update.d
runs.

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
---
 .../resolvconf/resolvconf_1.75.bb                  |    6 ++++++
 1 file changed, 6 insertions(+)

--
1.7.9.5
Jate S - Aug. 11, 2014, 12:39 a.m.
I am following up on this patch.

On Mon, Jun 23, 2014 at 11:07 AM, Jate S <jatedev@gmail.com> wrote:
> From: Jate Sujjavanich <jatedev@gmail.com>
> Date: Mon, Jun 23, 2014 at 10:16 AM
> Subject: [PATCH] Install list-records with resolvconf package
> To: openembedded-devel@lists.openembedded.org, sgw@linux.intel.com
> Cc: Jate Sujjavanich <jatedev@gmail.com>
>
>
> The resolvconf script uses /lib/resolvconf/list-records, but the recipe
> does not install it. This causes an error when /etc/resolvconf/update.d
> runs.
>
> Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
> ---
>  .../resolvconf/resolvconf_1.75.bb                  |    6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
> b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
> index 7310c83..77eac7a 100644
> --- a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
> +++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
> @@ -40,8 +40,14 @@ do_install () {
>         install -m 0755 bin/resolvconf ${D}${base_sbindir}/
>         install -m 0644 README ${D}${docdir}/${P}/
>         install -m 0644 man/resolvconf.8 ${D}${mandir}/man8/
> +
> +       # resolvconf requires /lib/resolvconf/list-records
> +       install -d ${D}${base_libdir}/${BPN}
> +       install -m 0755 ${S}/bin/list-records ${D}${base_libdir}/${BPN}
>  }
>
> +FILES_${PN} += "/lib/resolvconf/"
> +
>  pkg_postinst_${PN} () {
>         if [ -z "$D" ]; then
>                 if command -v systemd-tmpfiles >/dev/null; then
> --
> 1.7.9.5

Patch

diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
index 7310c83..77eac7a 100644
--- a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
+++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
@@ -40,8 +40,14 @@  do_install () {
        install -m 0755 bin/resolvconf ${D}${base_sbindir}/
        install -m 0644 README ${D}${docdir}/${P}/
        install -m 0644 man/resolvconf.8 ${D}${mandir}/man8/
+
+       # resolvconf requires /lib/resolvconf/list-records
+       install -d ${D}${base_libdir}/${BPN}
+       install -m 0755 ${S}/bin/list-records ${D}${base_libdir}/${BPN}
 }

+FILES_${PN} += "/lib/resolvconf/"
+
 pkg_postinst_${PN} () {
        if [ -z "$D" ]; then
                if command -v systemd-tmpfiles >/dev/null; then