Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mrp: new package
@ 2020-08-30  8:38 Horatiu Vultur
  2020-08-30 15:52 ` Gilles Talis
  0 siblings, 1 reply; 4+ messages in thread
From: Horatiu Vultur @ 2020-08-30  8:38 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 DEVELOPERS            |  1 +
 package/Config.in     |  1 +
 package/mrp/Config.in | 11 +++++++++++
 package/mrp/mrp.hash  |  3 +++
 package/mrp/mrp.mk    | 13 +++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/mrp/Config.in
 create mode 100644 package/mrp/mrp.hash
 create mode 100644 package/mrp/mrp.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index b86e5f8169..fb09775cc5 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1120,6 +1120,7 @@ F:	package/squeezelite/
 
 N:	Horatiu Vultur <horatiu.vultur@microchip.com>
 F:	package/easyframes/
+F:	package/mrp/
 
 N:	Ian Haylock <haylocki@yahoo.co.uk>
 F:	package/python-rpi-gpio/
diff --git a/package/Config.in b/package/Config.in
index b1df81d7f1..0b9ffbad25 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2129,6 +2129,7 @@ menu "Networking applications"
 	source "package/mosh/Config.in"
 	source "package/mosquitto/Config.in"
 	source "package/mrouted/Config.in"
+	source "package/mrp/Config.in"
 	source "package/mtr/Config.in"
 	source "package/nbd/Config.in"
 	source "package/ncftp/Config.in"
diff --git a/package/mrp/Config.in b/package/mrp/Config.in
new file mode 100644
index 0000000000..a175e42288
--- /dev/null
+++ b/package/mrp/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_MRP
+	bool "Media Redundancy Protocol"
+	select BR2_PACKAGE_LIBEV
+	select BR2_PACKAGE_LIBMNL
+	select BR2_PACKAGE_LIBNL
+	help
+	  This is the userspace application that configures the kernel
+	  to run MRP protocol. The userspace application is made of 2
+	  applications, one deamon and a client.
+
+	  https://github.com/microchip-ung/mrp
diff --git a/package/mrp/mrp.hash b/package/mrp/mrp.hash
new file mode 100644
index 0000000000..8e416feb47
--- /dev/null
+++ b/package/mrp/mrp.hash
@@ -0,0 +1,3 @@
+# locally calculated
+sha256 1a6c76d058bb425a7ec8b69a65de797650961161ec016b51ac8a1965e1ac304f mrp-1.1.tar.gz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
diff --git a/package/mrp/mrp.mk b/package/mrp/mrp.mk
new file mode 100644
index 0000000000..54efe54c55
--- /dev/null
+++ b/package/mrp/mrp.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# mrp
+#
+################################################################################
+
+MRP_VERSION = 1.1
+MRP_SITE = $(call github,microchip-ung,mrp,v$(MRP_VERSION))
+MRP_DEPENDENCIES = libev libmnl libnl
+MRP_LICENSE = GPLv2
+MRP_LICENSE_FILES = LICENSE
+
+$(eval $(cmake-package))
-- 
2.27.0

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

* [Buildroot] [PATCH 1/1] package/mrp: new package
  2020-08-30  8:38 [Buildroot] [PATCH 1/1] package/mrp: new package Horatiu Vultur
@ 2020-08-30 15:52 ` Gilles Talis
  2020-08-30 20:18   ` Thomas Petazzoni
  2020-08-30 20:26   ` Horatiu Vultur
  0 siblings, 2 replies; 4+ messages in thread
From: Gilles Talis @ 2020-08-30 15:52 UTC (permalink / raw)
  To: buildroot

Hello Horatiu,

thanks for your contribution.
Please find a few comments below.

Le dim. 30 ao?t 2020 ? 10:39, Horatiu Vultur via buildroot
<buildroot@busybox.net> a ?crit :
>
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> ---
>  DEVELOPERS            |  1 +
>  package/Config.in     |  1 +
>  package/mrp/Config.in | 11 +++++++++++
>  package/mrp/mrp.hash  |  3 +++
>  package/mrp/mrp.mk    | 13 +++++++++++++
>  5 files changed, 29 insertions(+)
>  create mode 100644 package/mrp/Config.in
>  create mode 100644 package/mrp/mrp.hash
>  create mode 100644 package/mrp/mrp.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index b86e5f8169..fb09775cc5 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1120,6 +1120,7 @@ F:        package/squeezelite/
>
>  N:     Horatiu Vultur <horatiu.vultur@microchip.com>
>  F:     package/easyframes/
> +F:     package/mrp/
This patch will not apply because the easyframes package is not in master yet.
You need to rebase to master before sending your patch.

>
>  N:     Ian Haylock <haylocki@yahoo.co.uk>
>  F:     package/python-rpi-gpio/
> diff --git a/package/Config.in b/package/Config.in
> index b1df81d7f1..0b9ffbad25 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -2129,6 +2129,7 @@ menu "Networking applications"
>         source "package/mosh/Config.in"
>         source "package/mosquitto/Config.in"
>         source "package/mrouted/Config.in"
> +       source "package/mrp/Config.in"
>         source "package/mtr/Config.in"
>         source "package/nbd/Config.in"
>         source "package/ncftp/Config.in"
> diff --git a/package/mrp/Config.in b/package/mrp/Config.in
> new file mode 100644
> index 0000000000..a175e42288
> --- /dev/null
> +++ b/package/mrp/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_MRP
> +       bool "Media Redundancy Protocol"
> +       select BR2_PACKAGE_LIBEV
> +       select BR2_PACKAGE_LIBMNL
> +       select BR2_PACKAGE_LIBNL
libnl needs threads so mrp inherits its dependency (depends on
BR2_TOOLCHAIN_HAS_THREADS)

> +       help
> +         This is the userspace application that configures the kernel
> +         to run MRP protocol. The userspace application is made of 2
> +         applications, one deamon and a client.
> +
> +         https://github.com/microchip-ung/mrp
> diff --git a/package/mrp/mrp.hash b/package/mrp/mrp.hash
> new file mode 100644
> index 0000000000..8e416feb47
> --- /dev/null
> +++ b/package/mrp/mrp.hash
> @@ -0,0 +1,3 @@
> +# locally calculated
> +sha256 1a6c76d058bb425a7ec8b69a65de797650961161ec016b51ac8a1965e1ac304f mrp-1.1.tar.gz
> +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
In the lines above, the three fields need to be separated by two spaces.

> diff --git a/package/mrp/mrp.mk b/package/mrp/mrp.mk
> new file mode 100644
> index 0000000000..54efe54c55
> --- /dev/null
> +++ b/package/mrp/mrp.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# mrp
> +#
> +################################################################################
> +
> +MRP_VERSION = 1.1
> +MRP_SITE = $(call github,microchip-ung,mrp,v$(MRP_VERSION))
> +MRP_DEPENDENCIES = libev libmnl libnl
> +MRP_LICENSE = GPLv2
I would say it is GPLv2+ ("or any later version"), but I can never
tell to be honest

> +MRP_LICENSE_FILES = LICENSE
> +
> +$(eval $(cmake-package))
> --
> 2.27.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Did you run the "test-pkg" script to check for potential issues
revealed by some architectures or build options?

Can you please send a v2 with the fixes mentioned above?
thanks
Gilles.

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

* [Buildroot] [PATCH 1/1] package/mrp: new package
  2020-08-30 15:52 ` Gilles Talis
@ 2020-08-30 20:18   ` Thomas Petazzoni
  2020-08-30 20:26   ` Horatiu Vultur
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-08-30 20:18 UTC (permalink / raw)
  To: buildroot

Hello Gilles,

Thanks for reviewing patches from others! See below for a few comments.

On Sun, 30 Aug 2020 17:52:17 +0200
Gilles Talis <gilles.talis@gmail.com> wrote:

> >  N:     Horatiu Vultur <horatiu.vultur@microchip.com>
> >  F:     package/easyframes/
> > +F:     package/mrp/  
> This patch will not apply because the easyframes package is not in master yet.
> You need to rebase to master before sending your patch.

Actually, when the "next" branch is open (as it is currently), new
packages are going to be applied to the next branch, so it makes sense
to have this patch based on the next branch. And the easyframes package
was merged in the next branch a few days ago.

> > +config BR2_PACKAGE_MRP
> > +       bool "Media Redundancy Protocol"

Should be just:

	bool "mrp"

> > +       select BR2_PACKAGE_LIBEV
> > +       select BR2_PACKAGE_LIBMNL
> > +       select BR2_PACKAGE_LIBNL  
> libnl needs threads so mrp inherits its dependency (depends on
> BR2_TOOLCHAIN_HAS_THREADS)

Absolutely, and therefore, a Config.in comment must be added:

comment "mrp needs a toolchain w/ threads"
	depends on !BR2_TOOLCHAIN_HAS_THREADS

> > +MRP_VERSION = 1.1
> > +MRP_SITE = $(call github,microchip-ung,mrp,v$(MRP_VERSION))
> > +MRP_DEPENDENCIES = libev libmnl libnl
> > +MRP_LICENSE = GPLv2  
> I would say it is GPLv2+ ("or any later version"), but I can never
> tell to be honest

I haven't checked GPLv2 or GPLv2+. However, the proper encoding in
Buildroot is GPL-2.0 or GPL-2.0+.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/1] package/mrp: new package
  2020-08-30 15:52 ` Gilles Talis
  2020-08-30 20:18   ` Thomas Petazzoni
@ 2020-08-30 20:26   ` Horatiu Vultur
  1 sibling, 0 replies; 4+ messages in thread
From: Horatiu Vultur @ 2020-08-30 20:26 UTC (permalink / raw)
  To: buildroot

The 08/30/2020 17:52, Gilles Talis wrote:
> 
> Hello Horatiu,

Hi Gilles,

Thanks for your comments. I have replied to your comments bellow.

> 
> thanks for your contribution.
> Please find a few comments below.
> 
> Le dim. 30 ao?t 2020 ? 10:39, Horatiu Vultur via buildroot
> <buildroot@busybox.net> a ?crit :
> >
> > Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> > ---
> >  DEVELOPERS            |  1 +
> >  package/Config.in     |  1 +
> >  package/mrp/Config.in | 11 +++++++++++
> >  package/mrp/mrp.hash  |  3 +++
> >  package/mrp/mrp.mk    | 13 +++++++++++++
> >  5 files changed, 29 insertions(+)
> >  create mode 100644 package/mrp/Config.in
> >  create mode 100644 package/mrp/mrp.hash
> >  create mode 100644 package/mrp/mrp.mk
> >
> > diff --git a/DEVELOPERS b/DEVELOPERS
> > index b86e5f8169..fb09775cc5 100644
> > --- a/DEVELOPERS
> > +++ b/DEVELOPERS
> > @@ -1120,6 +1120,7 @@ F:        package/squeezelite/
> >
> >  N:     Horatiu Vultur <horatiu.vultur@microchip.com>
> >  F:     package/easyframes/
> > +F:     package/mrp/
> This patch will not apply because the easyframes package is not in master yet.
> You need to rebase to master before sending your patch.

OK, I will rebase to master.

> 
> >
> >  N:     Ian Haylock <haylocki@yahoo.co.uk>
> >  F:     package/python-rpi-gpio/
> > diff --git a/package/Config.in b/package/Config.in
> > index b1df81d7f1..0b9ffbad25 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -2129,6 +2129,7 @@ menu "Networking applications"
> >         source "package/mosh/Config.in"
> >         source "package/mosquitto/Config.in"
> >         source "package/mrouted/Config.in"
> > +       source "package/mrp/Config.in"
> >         source "package/mtr/Config.in"
> >         source "package/nbd/Config.in"
> >         source "package/ncftp/Config.in"
> > diff --git a/package/mrp/Config.in b/package/mrp/Config.in
> > new file mode 100644
> > index 0000000000..a175e42288
> > --- /dev/null
> > +++ b/package/mrp/Config.in
> > @@ -0,0 +1,11 @@
> > +config BR2_PACKAGE_MRP
> > +       bool "Media Redundancy Protocol"
> > +       select BR2_PACKAGE_LIBEV
> > +       select BR2_PACKAGE_LIBMNL
> > +       select BR2_PACKAGE_LIBNL
> libnl needs threads so mrp inherits its dependency (depends on
> BR2_TOOLCHAIN_HAS_THREADS)

Great observation, I will update this.

> 
> > +       help
> > +         This is the userspace application that configures the kernel
> > +         to run MRP protocol. The userspace application is made of 2
> > +         applications, one deamon and a client.
> > +
> > +         https://github.com/microchip-ung/mrp
> > diff --git a/package/mrp/mrp.hash b/package/mrp/mrp.hash
> > new file mode 100644
> > index 0000000000..8e416feb47
> > --- /dev/null
> > +++ b/package/mrp/mrp.hash
> > @@ -0,0 +1,3 @@
> > +# locally calculated
> > +sha256 1a6c76d058bb425a7ec8b69a65de797650961161ec016b51ac8a1965e1ac304f mrp-1.1.tar.gz
> > +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
> In the lines above, the three fields need to be separated by two spaces.

I will update this.

> 
> > diff --git a/package/mrp/mrp.mk b/package/mrp/mrp.mk
> > new file mode 100644
> > index 0000000000..54efe54c55
> > --- /dev/null
> > +++ b/package/mrp/mrp.mk
> > @@ -0,0 +1,13 @@
> > +################################################################################
> > +#
> > +# mrp
> > +#
> > +################################################################################
> > +
> > +MRP_VERSION = 1.1
> > +MRP_SITE = $(call github,microchip-ung,mrp,v$(MRP_VERSION))
> > +MRP_DEPENDENCIES = libev libmnl libnl
> > +MRP_LICENSE = GPLv2
> I would say it is GPLv2+ ("or any later version"), but I can never
> tell to be honest
> 
> > +MRP_LICENSE_FILES = LICENSE
> > +
> > +$(eval $(cmake-package))
> > --
> > 2.27.0
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> Did you run the "test-pkg" script to check for potential issues
> revealed by some architectures or build options?

I have not done that. Now when I prepare v2, I have run it and showed
some issues. I will fix them and then I will send a new version.

> 
> Can you please send a v2 with the fixes mentioned above?
> thanks
> Gilles.

-- 
/Horatiu

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

end of thread, other threads:[~2020-08-30 20:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-30  8:38 [Buildroot] [PATCH 1/1] package/mrp: new package Horatiu Vultur
2020-08-30 15:52 ` Gilles Talis
2020-08-30 20:18   ` Thomas Petazzoni
2020-08-30 20:26   ` Horatiu Vultur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox