diff mbox series

[meta-networking] unbound: upgrade 1.17.1 -> 1.18.0

Message ID 20230901090433.1770836-1-beniaminsandu@gmail.com
State Under Review
Headers show
Series [meta-networking] unbound: upgrade 1.17.1 -> 1.18.0 | expand

Commit Message

Beniamin Sandu Sept. 1, 2023, 9:04 a.m. UTC
Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
---
 ...rib-add-yocto-compatible-init-script.patch | 80 -------------------
 .../{unbound_1.17.1.bb => unbound_1.18.0.bb}  |  8 +-
 2 files changed, 3 insertions(+), 85 deletions(-)
 delete mode 100644 meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
 rename meta-networking/recipes-support/unbound/{unbound_1.17.1.bb => unbound_1.18.0.bb} (87%)

Comments

Beniamin Sandu Sept. 6, 2023, 5:53 p.m. UTC | #1
Unless there is an issue with my patch, I suggest you take mine in,
instead of this one
http://cgit.openembedded.org/meta-openembedded/commit/meta-networking?h=master-next&id=c7f303796b611700f30833da8b5479272304e610,
as it's also removing the extra patch that we have been keeping for
the init script.

On Fri, 1 Sept 2023 at 12:04, Beniamin Sandu <beniaminsandu@gmail.com> wrote:
>
> Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
> ---
>  ...rib-add-yocto-compatible-init-script.patch | 80 -------------------
>  .../{unbound_1.17.1.bb => unbound_1.18.0.bb}  |  8 +-
>  2 files changed, 3 insertions(+), 85 deletions(-)
>  delete mode 100644 meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
>  rename meta-networking/recipes-support/unbound/{unbound_1.17.1.bb => unbound_1.18.0.bb} (87%)
>
> diff --git a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch b/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
> deleted file mode 100644
> index 7bcf97261..000000000
> --- a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
> +++ /dev/null
> @@ -1,80 +0,0 @@
> -From 26614b6578056ec30b95013592e308bf24d924c2 Mon Sep 17 00:00:00 2001
> -From: Beniamin Sandu <beniaminsandu@gmail.com>
> -Date: Fri, 20 Nov 2020 23:00:20 +0200
> -Subject: [PATCH] contrib: add yocto compatible init script
> -
> -Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
> ----
> -Upstream-Status: Pending
> -
> - contrib/unbound.init | 20 ++++++++++----------
> - 1 file changed, 10 insertions(+), 10 deletions(-)
> -
> -diff --git a/contrib/unbound.init b/contrib/unbound.init
> -index c5bb52bb..4eba752b 100644
> ---- a/contrib/unbound.init
> -+++ b/contrib/unbound.init
> -@@ -19,11 +19,11 @@
> - ### END INIT INFO
> -
> - # Source function library.
> --. /etc/rc.d/init.d/functions
> -+. /etc/init.d/functions
> -
> - exec="/usr/sbin/unbound"
> - prog="unbound"
> --config="/var/unbound/unbound.conf"
> -+config="/etc/unbound/unbound.conf"
> - pidfile="/var/unbound/unbound.pid"
> - rootdir="/var/unbound"
> -
> -@@ -54,14 +54,14 @@ start() {
> -       [ -e ${rootdir}/dev/log ] || touch ${rootdir}/dev/log
> -       mount --bind -n /dev/log ${rootdir}/dev/log >/dev/null 2>&1;
> -     fi;
> --    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then
> -+    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
> -       [ -d ${rootdir}/dev ] || mkdir -p ${rootdir}/dev ;
> --      [ -e ${rootdir}/dev/urandom ] || touch ${rootdir}/dev/urandom
> --      mount --bind -n /dev/urandom ${rootdir}/dev/urandom >/dev/null 2>&1;
> -+      [ -e ${rootdir}/dev/random ] || touch ${rootdir}/dev/random
> -+      mount --bind -n /dev/random ${rootdir}/dev/random >/dev/null 2>&1;
> -     fi;
> -
> -     # if not running, start it up here
> --    daemon $exec
> -+    daemonize $exec
> -     retval=$?
> -     echo
> -     [ $retval -eq 0 ] && touch $lockfile
> -@@ -71,15 +71,15 @@ start() {
> - stop() {
> -     echo -n $"Stopping $prog: "
> -     # stop it here, often "killproc $prog"
> --    killproc -p $pidfile $prog
> -+    killproc $prog
> -     retval=$?
> -     echo
> -     [ $retval -eq 0 ] && rm -f $lockfile
> -     if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/log' /proc/mounts; then
> -       umount ${rootdir}/dev/log >/dev/null 2>&1
> -     fi;
> --    if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then
> --      umount ${rootdir}/dev/urandom >/dev/null 2>&1
> -+    if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
> -+      umount ${rootdir}/dev/random >/dev/null 2>&1
> -     fi;
> -     return $retval
> - }
> -@@ -99,7 +99,7 @@ force_reload() {
> -
> - rh_status() {
> -     # run checks to determine if the service is running or use generic status
> --    status -p $pidfile $prog
> -+    status $prog
> - }
> -
> - rh_status_q() {
> ---
> -2.25.1
> -
> diff --git a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb
> similarity index 87%
> rename from meta-networking/recipes-support/unbound/unbound_1.17.1.bb
> rename to meta-networking/recipes-support/unbound/unbound_1.18.0.bb
> index ff3d879ea..179af8050 100644
> --- a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb
> +++ b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb
> @@ -9,10 +9,8 @@ SECTION = "net"
>  LICENSE = "BSD-3-Clause"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06"
>
> -SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master \
> -       file://0001-contrib-add-yocto-compatible-init-script.patch \
> -"
> -SRCREV = "90831af981221bbce1cd7b15055562336760e484"
> +SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master"
> +SRCREV = "3795e374107ac7a5a977c516e144a3cd9b0da998"
>
>  inherit autotools pkgconfig systemd update-rc.d
>
> @@ -39,7 +37,7 @@ do_install:append() {
>         install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system
>
>         install -d ${D}${sysconfdir}/init.d
> -       install -m 0755 ${S}/contrib/unbound.init ${D}${sysconfdir}/init.d/unbound
> +       install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound
>  }
>
>  SYSTEMD_SERVICE:${PN} = "${BPN}.service"
> --
> 2.25.1
>
Khem Raj Sept. 6, 2023, 8:12 p.m. UTC | #2
On Wed, Sep 6, 2023 at 10:53 AM Beniamin Sandu <beniaminsandu@gmail.com> wrote:
>
> Unless there is an issue with my patch, I suggest you take mine in,
> instead of this one
> http://cgit.openembedded.org/meta-openembedded/commit/meta-networking?h=master-next&id=c7f303796b611700f30833da8b5479272304e610,
> as it's also removing the extra patch that we have been keeping for
> the init script.

Thanks for spotting this. I had it in master-next for a while and then
it got dropped perhaps due to bisecting an error. I have staged this
one now

>
> On Fri, 1 Sept 2023 at 12:04, Beniamin Sandu <beniaminsandu@gmail.com> wrote:
> >
> > Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
> > ---
> >  ...rib-add-yocto-compatible-init-script.patch | 80 -------------------
> >  .../{unbound_1.17.1.bb => unbound_1.18.0.bb}  |  8 +-
> >  2 files changed, 3 insertions(+), 85 deletions(-)
> >  delete mode 100644 meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
> >  rename meta-networking/recipes-support/unbound/{unbound_1.17.1.bb => unbound_1.18.0.bb} (87%)
> >
> > diff --git a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch b/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
> > deleted file mode 100644
> > index 7bcf97261..000000000
> > --- a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
> > +++ /dev/null
> > @@ -1,80 +0,0 @@
> > -From 26614b6578056ec30b95013592e308bf24d924c2 Mon Sep 17 00:00:00 2001
> > -From: Beniamin Sandu <beniaminsandu@gmail.com>
> > -Date: Fri, 20 Nov 2020 23:00:20 +0200
> > -Subject: [PATCH] contrib: add yocto compatible init script
> > -
> > -Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
> > ----
> > -Upstream-Status: Pending
> > -
> > - contrib/unbound.init | 20 ++++++++++----------
> > - 1 file changed, 10 insertions(+), 10 deletions(-)
> > -
> > -diff --git a/contrib/unbound.init b/contrib/unbound.init
> > -index c5bb52bb..4eba752b 100644
> > ---- a/contrib/unbound.init
> > -+++ b/contrib/unbound.init
> > -@@ -19,11 +19,11 @@
> > - ### END INIT INFO
> > -
> > - # Source function library.
> > --. /etc/rc.d/init.d/functions
> > -+. /etc/init.d/functions
> > -
> > - exec="/usr/sbin/unbound"
> > - prog="unbound"
> > --config="/var/unbound/unbound.conf"
> > -+config="/etc/unbound/unbound.conf"
> > - pidfile="/var/unbound/unbound.pid"
> > - rootdir="/var/unbound"
> > -
> > -@@ -54,14 +54,14 @@ start() {
> > -       [ -e ${rootdir}/dev/log ] || touch ${rootdir}/dev/log
> > -       mount --bind -n /dev/log ${rootdir}/dev/log >/dev/null 2>&1;
> > -     fi;
> > --    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then
> > -+    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
> > -       [ -d ${rootdir}/dev ] || mkdir -p ${rootdir}/dev ;
> > --      [ -e ${rootdir}/dev/urandom ] || touch ${rootdir}/dev/urandom
> > --      mount --bind -n /dev/urandom ${rootdir}/dev/urandom >/dev/null 2>&1;
> > -+      [ -e ${rootdir}/dev/random ] || touch ${rootdir}/dev/random
> > -+      mount --bind -n /dev/random ${rootdir}/dev/random >/dev/null 2>&1;
> > -     fi;
> > -
> > -     # if not running, start it up here
> > --    daemon $exec
> > -+    daemonize $exec
> > -     retval=$?
> > -     echo
> > -     [ $retval -eq 0 ] && touch $lockfile
> > -@@ -71,15 +71,15 @@ start() {
> > - stop() {
> > -     echo -n $"Stopping $prog: "
> > -     # stop it here, often "killproc $prog"
> > --    killproc -p $pidfile $prog
> > -+    killproc $prog
> > -     retval=$?
> > -     echo
> > -     [ $retval -eq 0 ] && rm -f $lockfile
> > -     if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/log' /proc/mounts; then
> > -       umount ${rootdir}/dev/log >/dev/null 2>&1
> > -     fi;
> > --    if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then
> > --      umount ${rootdir}/dev/urandom >/dev/null 2>&1
> > -+    if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
> > -+      umount ${rootdir}/dev/random >/dev/null 2>&1
> > -     fi;
> > -     return $retval
> > - }
> > -@@ -99,7 +99,7 @@ force_reload() {
> > -
> > - rh_status() {
> > -     # run checks to determine if the service is running or use generic status
> > --    status -p $pidfile $prog
> > -+    status $prog
> > - }
> > -
> > - rh_status_q() {
> > ---
> > -2.25.1
> > -
> > diff --git a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb
> > similarity index 87%
> > rename from meta-networking/recipes-support/unbound/unbound_1.17.1.bb
> > rename to meta-networking/recipes-support/unbound/unbound_1.18.0.bb
> > index ff3d879ea..179af8050 100644
> > --- a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb
> > +++ b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb
> > @@ -9,10 +9,8 @@ SECTION = "net"
> >  LICENSE = "BSD-3-Clause"
> >  LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06"
> >
> > -SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master \
> > -       file://0001-contrib-add-yocto-compatible-init-script.patch \
> > -"
> > -SRCREV = "90831af981221bbce1cd7b15055562336760e484"
> > +SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master"
> > +SRCREV = "3795e374107ac7a5a977c516e144a3cd9b0da998"
> >
> >  inherit autotools pkgconfig systemd update-rc.d
> >
> > @@ -39,7 +37,7 @@ do_install:append() {
> >         install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system
> >
> >         install -d ${D}${sysconfdir}/init.d
> > -       install -m 0755 ${S}/contrib/unbound.init ${D}${sysconfdir}/init.d/unbound
> > +       install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound
> >  }
> >
> >  SYSTEMD_SERVICE:${PN} = "${BPN}.service"
> > --
> > 2.25.1
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#104783): https://lists.openembedded.org/g/openembedded-devel/message/104783
> Mute This Topic: https://lists.openembedded.org/mt/101090986/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch b/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
deleted file mode 100644
index 7bcf97261..000000000
--- a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch
+++ /dev/null
@@ -1,80 +0,0 @@ 
-From 26614b6578056ec30b95013592e308bf24d924c2 Mon Sep 17 00:00:00 2001
-From: Beniamin Sandu <beniaminsandu@gmail.com>
-Date: Fri, 20 Nov 2020 23:00:20 +0200
-Subject: [PATCH] contrib: add yocto compatible init script
-
-Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
----
-Upstream-Status: Pending
-
- contrib/unbound.init | 20 ++++++++++----------
- 1 file changed, 10 insertions(+), 10 deletions(-)
-
-diff --git a/contrib/unbound.init b/contrib/unbound.init
-index c5bb52bb..4eba752b 100644
---- a/contrib/unbound.init
-+++ b/contrib/unbound.init
-@@ -19,11 +19,11 @@
- ### END INIT INFO
- 
- # Source function library.
--. /etc/rc.d/init.d/functions
-+. /etc/init.d/functions
- 
- exec="/usr/sbin/unbound"
- prog="unbound"
--config="/var/unbound/unbound.conf"
-+config="/etc/unbound/unbound.conf"
- pidfile="/var/unbound/unbound.pid"
- rootdir="/var/unbound"
- 
-@@ -54,14 +54,14 @@ start() {
- 	[ -e ${rootdir}/dev/log ] || touch ${rootdir}/dev/log
- 	mount --bind -n /dev/log ${rootdir}/dev/log >/dev/null 2>&1;
-     fi;
--    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then
-+    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
- 	[ -d ${rootdir}/dev ] || mkdir -p ${rootdir}/dev ;
--	[ -e ${rootdir}/dev/urandom ] || touch ${rootdir}/dev/urandom
--	mount --bind -n /dev/urandom ${rootdir}/dev/urandom >/dev/null 2>&1;
-+	[ -e ${rootdir}/dev/random ] || touch ${rootdir}/dev/random
-+	mount --bind -n /dev/random ${rootdir}/dev/random >/dev/null 2>&1;
-     fi;
- 
-     # if not running, start it up here
--    daemon $exec
-+    daemonize $exec
-     retval=$?
-     echo
-     [ $retval -eq 0 ] && touch $lockfile
-@@ -71,15 +71,15 @@ start() {
- stop() {
-     echo -n $"Stopping $prog: "
-     # stop it here, often "killproc $prog"
--    killproc -p $pidfile $prog
-+    killproc $prog
-     retval=$?
-     echo
-     [ $retval -eq 0 ] && rm -f $lockfile
-     if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/log' /proc/mounts; then
- 	umount ${rootdir}/dev/log >/dev/null 2>&1
-     fi;
--    if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then
--	umount ${rootdir}/dev/urandom >/dev/null 2>&1
-+    if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then
-+	umount ${rootdir}/dev/random >/dev/null 2>&1
-     fi;
-     return $retval
- }
-@@ -99,7 +99,7 @@ force_reload() {
- 
- rh_status() {
-     # run checks to determine if the service is running or use generic status
--    status -p $pidfile $prog
-+    status $prog
- }
- 
- rh_status_q() {
--- 
-2.25.1
-
diff --git a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb
similarity index 87%
rename from meta-networking/recipes-support/unbound/unbound_1.17.1.bb
rename to meta-networking/recipes-support/unbound/unbound_1.18.0.bb
index ff3d879ea..179af8050 100644
--- a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb
+++ b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb
@@ -9,10 +9,8 @@  SECTION = "net"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06"
 
-SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master \
-	file://0001-contrib-add-yocto-compatible-init-script.patch \
-"
-SRCREV = "90831af981221bbce1cd7b15055562336760e484"
+SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master"
+SRCREV = "3795e374107ac7a5a977c516e144a3cd9b0da998"
 
 inherit autotools pkgconfig systemd update-rc.d
 
@@ -39,7 +37,7 @@  do_install:append() {
 	install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system
 
 	install -d ${D}${sysconfdir}/init.d
-	install -m 0755 ${S}/contrib/unbound.init ${D}${sysconfdir}/init.d/unbound
+	install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound
 }
 
 SYSTEMD_SERVICE:${PN} = "${BPN}.service"