All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH v2] ifupdown-ng: Add recipe
@ 2022-01-03 16:37 Alex Kiernan
  2022-01-04 10:28 ` [oe] " Ross Burton
  2022-01-05 12:14 ` Otavio Salvador
  0 siblings, 2 replies; 9+ messages in thread
From: Alex Kiernan @ 2022-01-03 16:37 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Alex Kiernan, Alex Kiernan

ifupdown-ng is a network device manager that is largely compatible with
Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alex Kiernan <alexk@zuma.ai>
---
Changes in v2:
- drop merged upstream SBINDIR patch

 .../ifupdown-ng/ifupdown-ng_0.11.3.bb         | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb

diff --git a/meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb b/meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb
new file mode 100644
index 000000000000..42bf1c235b61
--- /dev/null
+++ b/meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb
@@ -0,0 +1,45 @@
+SUMMARY = "Flexible ifup/ifdown implementation"
+DESCRIPTION = "ifupdown-ng is a network device manager that is largely \
+compatible with Debian ifupdown, BusyBox ifupdown and Cumulus Networks' \
+ifupdown2."
+LICENSE = "ISC"
+LIC_FILES_CHKSUM = "file://COPYING;md5=451f521abe917914139c9739ea0f2bc5"
+
+DEPENDS = "libbsd"
+
+PV .= "+git${SRCPV}"
+
+SRC_URI = "git://github.com/ifupdown-ng/ifupdown-ng.git;protocol=https;branch=main"
+SRCREV = "553f056ed9fccdf08709ea4d3087df5e7d590ff1"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig update-alternatives
+
+LIBBSD_CFLAGS = "`pkg-config --cflags libbsd-overlay`"
+LIBBSD_LIBS = "`pkg-config --cflags --libs libbsd-overlay`"
+
+EXTRA_OEMAKE = "\
+    CC='${CC} ${CFLAGS} ${LDFLAGS}' \
+    LD='${LD} ${LDFLAGS}' \
+    SBINDIR='${base_sbindir}' \
+    LIBBSD_CFLAGS='${LIBBSD_CFLAGS}' \
+    LIBBSD_LIBS='${LIBBSD_LIBS}' \
+    INTERFACES_FILE='${sysconfdir}/network/interfaces' \
+    CONFIG_FILE='${sysconfdir}/network/ifupdown-ng.conf' \
+    EXECUTOR_PATH='${libexecdir}/${BPN}' \
+"
+
+do_compile () {
+	oe_runmake
+}
+
+do_install () {
+	oe_runmake 'DESTDIR=${D}' install
+}
+
+ALTERNATIVE_PRIORITY = "120"
+ALTERNATIVE:${PN} = "ifup ifdown"
+
+ALTERNATIVE_LINK_NAME[ifup] = "${base_sbindir}/ifup"
+ALTERNATIVE_LINK_NAME[ifdown] = "${base_sbindir}/ifdown"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-03 16:37 [meta-networking][PATCH v2] ifupdown-ng: Add recipe Alex Kiernan
@ 2022-01-04 10:28 ` Ross Burton
  2022-01-05 12:16   ` Otavio Salvador
  2022-01-05 12:14 ` Otavio Salvador
  1 sibling, 1 reply; 9+ messages in thread
From: Ross Burton @ 2022-01-04 10:28 UTC (permalink / raw)
  To: Alex Kiernan; +Cc: openembedded-devel, Alex Kiernan

On Mon, 3 Jan 2022 at 16:40, Alex Kiernan <alex.kiernan@gmail.com> wrote:
> ifupdown-ng is a network device manager that is largely compatible with
> Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.

If this is a superior alternative, should this be merged into oe-core
as the replacement for the existing ifupdown scripts?

Ross


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-03 16:37 [meta-networking][PATCH v2] ifupdown-ng: Add recipe Alex Kiernan
  2022-01-04 10:28 ` [oe] " Ross Burton
@ 2022-01-05 12:14 ` Otavio Salvador
  1 sibling, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2022-01-05 12:14 UTC (permalink / raw)
  To: Alex Kiernan; +Cc: OpenEmbedded Devel List, Alex Kiernan

Em seg., 3 de jan. de 2022 às 13:37, Alex Kiernan
<alex.kiernan@gmail.com> escreveu:
>
> ifupdown-ng is a network device manager that is largely compatible with
> Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.
>
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> Signed-off-by: Alex Kiernan <alexk@zuma.ai>
> ---
> Changes in v2:
> - drop merged upstream SBINDIR patch
>
>  .../ifupdown-ng/ifupdown-ng_0.11.3.bb         | 45 +++++++++++++++++++
>  1 file changed, 45 insertions(+)
>  create mode 100644 meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb
>
> diff --git a/meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb b/meta-networking/recipes-support/ifupdown-ng/ifupdown-ng_0.11.3.bb
> new file mode 100644
...

> +do_compile () {
> +       oe_runmake
> +}
> +
> +do_install () {
> +       oe_runmake 'DESTDIR=${D}' install
> +}

The do_compile and do_install could be dropped as this is the default.


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-04 10:28 ` [oe] " Ross Burton
@ 2022-01-05 12:16   ` Otavio Salvador
  2022-01-05 12:51     ` Alex Kiernan
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2022-01-05 12:16 UTC (permalink / raw)
  To: Ross Burton; +Cc: Alex Kiernan, OpenEmbedded Devel List, Alex Kiernan

Hello Ross,

Em ter., 4 de jan. de 2022 às 07:28, Ross Burton <ross@burtonini.com> escreveu:
> On Mon, 3 Jan 2022 at 16:40, Alex Kiernan <alex.kiernan@gmail.com> wrote:
> > ifupdown-ng is a network device manager that is largely compatible with
> > Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.
>
> If this is a superior alternative, should this be merged into oe-core
> as the replacement for the existing ifupdown scripts?

I think we could consider it but it'd be interesting to check the size
difference between both so we can have a clear idea on the impact of
it.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-05 12:16   ` Otavio Salvador
@ 2022-01-05 12:51     ` Alex Kiernan
  2022-01-05 16:36       ` Ross Burton
  0 siblings, 1 reply; 9+ messages in thread
From: Alex Kiernan @ 2022-01-05 12:51 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: Ross Burton, OpenEmbedded Devel List, Alex Kiernan

On Wed, Jan 5, 2022 at 12:16 PM Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
>
> Hello Ross,
>
> Em ter., 4 de jan. de 2022 às 07:28, Ross Burton <ross@burtonini.com> escreveu:
> > On Mon, 3 Jan 2022 at 16:40, Alex Kiernan <alex.kiernan@gmail.com> wrote:
> > > ifupdown-ng is a network device manager that is largely compatible with
> > > Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.
> >
> > If this is a superior alternative, should this be merged into oe-core
> > as the replacement for the existing ifupdown scripts?
>

I suspect it's too early, though I guess there's already ifupdown in
busybox, so three is possibly excessive.

> I think we could consider it but it'd be interesting to check the size
> difference between both so we can have a clear idea on the impact of
> it.
>

Smaller if anything (though I've just realised I've not dealt the
ALTERNATIVES paths correctly):

-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-05 12:51     ` Alex Kiernan
@ 2022-01-05 16:36       ` Ross Burton
  2022-01-05 16:37         ` Khem Raj
  0 siblings, 1 reply; 9+ messages in thread
From: Ross Burton @ 2022-01-05 16:36 UTC (permalink / raw)
  To: Alex Kiernan; +Cc: Otavio Salvador, OpenEmbedded Devel List, Alex Kiernan

On Wed, 5 Jan 2022 at 12:51, Alex Kiernan <alex.kiernan@gmail.com> wrote:
> Smaller if anything (though I've just realised I've not dealt the
> ALTERNATIVES paths correctly):

There's a case to be made for just conflicting with ifupdown and not
bothering with alternatives.

Ross


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-05 16:36       ` Ross Burton
@ 2022-01-05 16:37         ` Khem Raj
  2022-01-05 19:06           ` Khem Raj
  0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2022-01-05 16:37 UTC (permalink / raw)
  To: Ross Burton, Alex Kiernan
  Cc: Otavio Salvador, OpenEmbedded Devel List, Alex Kiernan



On 1/5/22 8:36 AM, Ross Burton wrote:
> On Wed, 5 Jan 2022 at 12:51, Alex Kiernan <alex.kiernan@gmail.com> wrote:
>> Smaller if anything (though I've just realised I've not dealt the
>> ALTERNATIVES paths correctly):
> 
> There's a case to be made for just conflicting with ifupdown and not
> bothering with alternatives.

thats works for me.

> 
> Ross
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#94662): https://lists.openembedded.org/g/openembedded-devel/message/94662
> Mute This Topic: https://lists.openembedded.org/mt/88115930/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-05 16:37         ` Khem Raj
@ 2022-01-05 19:06           ` Khem Raj
  2022-01-05 20:31             ` Alex Kiernan
  0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2022-01-05 19:06 UTC (permalink / raw)
  To: Ross Burton, Alex Kiernan
  Cc: Otavio Salvador, OpenEmbedded Devel List, Alex Kiernan

btw. it fails to compile with musl

https://errors.yoctoproject.org/Errors/Details/621451/

On Wed, Jan 5, 2022 at 8:37 AM Khem Raj <raj.khem@gmail.com> wrote:
>
>
>
> On 1/5/22 8:36 AM, Ross Burton wrote:
> > On Wed, 5 Jan 2022 at 12:51, Alex Kiernan <alex.kiernan@gmail.com> wrote:
> >> Smaller if anything (though I've just realised I've not dealt the
> >> ALTERNATIVES paths correctly):
> >
> > There's a case to be made for just conflicting with ifupdown and not
> > bothering with alternatives.
>
> thats works for me.
>
> >
> > Ross
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#94662): https://lists.openembedded.org/g/openembedded-devel/message/94662
> > Mute This Topic: https://lists.openembedded.org/mt/88115930/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [oe] [meta-networking][PATCH v2] ifupdown-ng: Add recipe
  2022-01-05 19:06           ` Khem Raj
@ 2022-01-05 20:31             ` Alex Kiernan
  0 siblings, 0 replies; 9+ messages in thread
From: Alex Kiernan @ 2022-01-05 20:31 UTC (permalink / raw)
  To: Khem Raj
  Cc: Ross Burton, Otavio Salvador, OpenEmbedded Devel List, Alex Kiernan

Yeah, I realised that w/ some more testing locally... will pick that
up along with RCONFLICTing on ifupdown

On Wed, Jan 5, 2022 at 7:06 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> btw. it fails to compile with musl
>
> https://errors.yoctoproject.org/Errors/Details/621451/
>
> On Wed, Jan 5, 2022 at 8:37 AM Khem Raj <raj.khem@gmail.com> wrote:
> >
> >
> >
> > On 1/5/22 8:36 AM, Ross Burton wrote:
> > > On Wed, 5 Jan 2022 at 12:51, Alex Kiernan <alex.kiernan@gmail.com> wrote:
> > >> Smaller if anything (though I've just realised I've not dealt the
> > >> ALTERNATIVES paths correctly):
> > >
> > > There's a case to be made for just conflicting with ifupdown and not
> > > bothering with alternatives.
> >
> > thats works for me.
> >
> > >
> > > Ross
> > >
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#94662): https://lists.openembedded.org/g/openembedded-devel/message/94662
> > > Mute This Topic: https://lists.openembedded.org/mt/88115930/1997914
> > > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >



-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-05 20:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 16:37 [meta-networking][PATCH v2] ifupdown-ng: Add recipe Alex Kiernan
2022-01-04 10:28 ` [oe] " Ross Burton
2022-01-05 12:16   ` Otavio Salvador
2022-01-05 12:51     ` Alex Kiernan
2022-01-05 16:36       ` Ross Burton
2022-01-05 16:37         ` Khem Raj
2022-01-05 19:06           ` Khem Raj
2022-01-05 20:31             ` Alex Kiernan
2022-01-05 12:14 ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.