* [Buildroot] [PATCH 1/1] package/smcroute: bump version to v2.5.0
@ 2021-08-20 5:44 Joachim Wiberg
2021-08-20 21:32 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Joachim Wiberg @ 2021-08-20 5:44 UTC (permalink / raw)
To: buildroot; +Cc: Joachim Wiberg, Matt Weber
- Upstream has changed to tar.gz
- Drop _SOURCE, fixes check-package warning
- setpgrp not used anymore, no need to override configure cache
- Makefile no longer uses CC?=, drop comment
- Set -std=gnu99 to work around upstream issue #165 on older
toolchains, which still have gnu90 as default (sourcery-arm)
- Enable MRDISC build option, needs to be enabled per phyint in
smcroute.conf to activate, so safe to has default build flag
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
---
package/smcroute/smcroute.hash | 6 +++---
package/smcroute/smcroute.mk | 7 ++-----
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/package/smcroute/smcroute.hash b/package/smcroute/smcroute.hash
index f79ce167ed..01d5eafd59 100644
--- a/package/smcroute/smcroute.hash
+++ b/package/smcroute/smcroute.hash
@@ -1,5 +1,5 @@
# Locally generated
-sha256 431be94c46646767f69c85fee445277b7e765a55177d3ee29522416cfe2cc067 smcroute-2.4.4.tar.xz
+sha256 fa0a496ee4258c286814b789e1dc4d0be2cc4788adba23e8484ff5d0a65f6cc5 smcroute-2.5.0.tar.gz
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
-# From https://github.com/troglobit/smcroute/releases/download/2.4.4/smcroute-2.4.4.tar.xz.md5
-md5 a1dc8c54c684e8c8de139444f73a0ba3 smcroute-2.4.4.tar.xz
+# From https://github.com/troglobit/smcroute/releases/download/2.5.0/smcroute-2.5.0.tar.gz.md5
+md5 285a2765a4366e7d5ba07139a9f56bd5 smcroute-2.5.0.tar.gz
diff --git a/package/smcroute/smcroute.mk b/package/smcroute/smcroute.mk
index 0db0e084f6..16197e6f68 100644
--- a/package/smcroute/smcroute.mk
+++ b/package/smcroute/smcroute.mk
@@ -4,16 +4,13 @@
#
################################################################################
-SMCROUTE_VERSION = 2.4.4
-SMCROUTE_SOURCE = smcroute-$(SMCROUTE_VERSION).tar.xz
+SMCROUTE_VERSION = 2.5.0
SMCROUTE_SITE = https://github.com/troglobit/smcroute/releases/download/$(SMCROUTE_VERSION)
SMCROUTE_LICENSE = GPL-2.0+
SMCROUTE_LICENSE_FILES = COPYING
SMCROUTE_CPE_ID_VENDOR = troglobit
-SMCROUTE_CONF_OPTS = ac_cv_func_setpgrp_void=yes
-#BUG:The package Makefile uses CC?= even though the package is autotools based
-SMCROUTE_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
+SMCROUTE_CONF_OPTS = --enable-mrdisc CFLAGS=-std=gnu99
ifeq ($(BR2_PACKAGE_LIBCAP),y)
SMCROUTE_DEPENDENCIES = libcap
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/smcroute: bump version to v2.5.0
2021-08-20 5:44 [Buildroot] [PATCH 1/1] package/smcroute: bump version to v2.5.0 Joachim Wiberg
@ 2021-08-20 21:32 ` Thomas Petazzoni
2021-08-21 17:30 ` Joachim Wiberg
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2021-08-20 21:32 UTC (permalink / raw)
To: Joachim Wiberg; +Cc: Matt Weber, buildroot
Hello Joachim,
On Fri, 20 Aug 2021 07:44:19 +0200
Joachim Wiberg <troglobit@gmail.com> wrote:
> diff --git a/package/smcroute/smcroute.hash b/package/smcroute/smcroute.hash
> index f79ce167ed..01d5eafd59 100644
> --- a/package/smcroute/smcroute.hash
> +++ b/package/smcroute/smcroute.hash
> @@ -1,5 +1,5 @@
> # Locally generated
> -sha256 431be94c46646767f69c85fee445277b7e765a55177d3ee29522416cfe2cc067 smcroute-2.4.4.tar.xz
> +sha256 fa0a496ee4258c286814b789e1dc4d0be2cc4788adba23e8484ff5d0a65f6cc5 smcroute-2.5.0.tar.gz
> sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
> -# From https://github.com/troglobit/smcroute/releases/download/2.4.4/smcroute-2.4.4.tar.xz.md5
> -md5 a1dc8c54c684e8c8de139444f73a0ba3 smcroute-2.4.4.tar.xz
> +# From https://github.com/troglobit/smcroute/releases/download/2.5.0/smcroute-2.5.0.tar.gz.md5
> +md5 285a2765a4366e7d5ba07139a9f56bd5 smcroute-2.5.0.tar.gz
> diff --git a/package/smcroute/smcroute.mk b/package/smcroute/smcroute.mk
> index 0db0e084f6..16197e6f68 100644
> --- a/package/smcroute/smcroute.mk
> +++ b/package/smcroute/smcroute.mk
> @@ -4,16 +4,13 @@
> #
> ################################################################################
>
> -SMCROUTE_VERSION = 2.4.4
> -SMCROUTE_SOURCE = smcroute-$(SMCROUTE_VERSION).tar.xz
> +SMCROUTE_VERSION = 2.5.0
> SMCROUTE_SITE = https://github.com/troglobit/smcroute/releases/download/$(SMCROUTE_VERSION)
> SMCROUTE_LICENSE = GPL-2.0+
> SMCROUTE_LICENSE_FILES = COPYING
> SMCROUTE_CPE_ID_VENDOR = troglobit
>
> -SMCROUTE_CONF_OPTS = ac_cv_func_setpgrp_void=yes
> -#BUG:The package Makefile uses CC?= even though the package is autotools based
> -SMCROUTE_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
> +SMCROUTE_CONF_OPTS = --enable-mrdisc CFLAGS=-std=gnu99
Thanks for the update. However, passing CFLAGS=-std=gnu99 is not
correct, as it means other Buildroot CFLAGS are no longer passed.
Instead, it should be:
SMCROUTE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS -std=gnu99"
could you see if that works for you, and send an updated version?
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/smcroute: bump version to v2.5.0
2021-08-20 21:32 ` Thomas Petazzoni
@ 2021-08-21 17:30 ` Joachim Wiberg
2021-08-21 19:38 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Joachim Wiberg @ 2021-08-21 17:30 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: Matt Weber, buildroot
Hi Thomas!
On Fri, Aug 20, 2021 at 23:32, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> On Fri, 20 Aug 2021 07:44:19 +0200 Joachim Wiberg <troglobit@gmail.com> wrote:
>> -SMCROUTE_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
>> +SMCROUTE_CONF_OPTS = --enable-mrdisc CFLAGS=-std=gnu99
> Thanks for the update. However, passing CFLAGS=-std=gnu99 is not
> correct, as it means other Buildroot CFLAGS are no longer passed.
Ouch, that's obviously not what I intended. Sorry about that,
and thank you for taking the time to review!
> Instead, it should be:
> SMCROUTE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS -std=gnu99"
> could you see if that works for you, and send an updated version?
Thanks, it was a dirty hack. I'm going to do a new release upstream
instead, but I'll keep this for next time I run into something simiar.
Also, do you think it would be OK to add an init start script and add
the systemd unit file shipped with SMCRoute? I belive most users would
appreciate an easy way to start the daemon. They don't need any .conf
file set up, and we can have everything passive by default.
Best regards
/Joachim
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/smcroute: bump version to v2.5.0
2021-08-21 17:30 ` Joachim Wiberg
@ 2021-08-21 19:38 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-08-21 19:38 UTC (permalink / raw)
To: Joachim Wiberg; +Cc: Matt Weber, buildroot
On Sat, 21 Aug 2021 19:30:46 +0200
Joachim Wiberg <troglobit@gmail.com> wrote:
> Also, do you think it would be OK to add an init start script and add
> the systemd unit file shipped with SMCRoute? I belive most users would
> appreciate an easy way to start the daemon. They don't need any .conf
> file set up, and we can have everything passive by default.
Sure, it would certainly be fine to have an init script and systemd
unit file!
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-21 19:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20 5:44 [Buildroot] [PATCH 1/1] package/smcroute: bump version to v2.5.0 Joachim Wiberg
2021-08-20 21:32 ` Thomas Petazzoni
2021-08-21 17:30 ` Joachim Wiberg
2021-08-21 19:38 ` Thomas Petazzoni
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.