All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04
@ 2019-05-04 13:55 Pierre-Jean Texier
  2019-05-05 10:05 ` Peter Korsgaard
  2019-06-09 22:51 ` James Hilliard
  0 siblings, 2 replies; 5+ messages in thread
From: Pierre-Jean Texier @ 2019-05-04 13:55 UTC (permalink / raw)
  To: buildroot

New features in this release:

- Improved documentation
- delta updates based on rdiff library
- support for libubootenv
- dry-run option
- CA certificates for signed images
- Fix security leak in parser

This commit also drop upstreamed patch.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
 .../swupdate/0001-Makefile-fix-static-build.patch  | 62 ----------------------
 package/swupdate/swupdate.hash                     |  2 +-
 package/swupdate/swupdate.mk                       |  2 +-
 3 files changed, 2 insertions(+), 64 deletions(-)
 delete mode 100644 package/swupdate/0001-Makefile-fix-static-build.patch

diff --git a/package/swupdate/0001-Makefile-fix-static-build.patch b/package/swupdate/0001-Makefile-fix-static-build.patch
deleted file mode 100644
index 56901f9..0000000
--- a/package/swupdate/0001-Makefile-fix-static-build.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From 15a324f8c67548f219256a5a75ba8123cc5bdac6 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Mon, 4 Mar 2019 21:51:36 +0100
-Subject: [PATCH] Makefile: fix static build
-
-Don't build and install lua_swupdate.so if HAVE_LUA isn't set to y
-otherwise build will fail if the toolchain only suports building static
-libraries
-
-Fixes:
- - http://autobuild.buildroot.org/results/c11c4d26983e0347d96f3dda62e6d72b031967bb
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/sbabic/swupdate/pull/49]
----
- Makefile | 12 +++++++++---
- 1 file changed, 9 insertions(+), 3 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index cfeb9a6..cac99b5 100644
---- a/Makefile
-+++ b/Makefile
-@@ -369,11 +369,15 @@ tools-bins	:= $(patsubst $(tools-y)/%.c,$(tools-y)/%,$(wildcard $(tools-y)/*.c))
- tools-bins-unstr:= $(patsubst %,%_unstripped,$(tools-bins))
- tools-all	:= $(tools-objs)
- 
-+ifeq ($(HAVE_LUA),y)
-+lua_swupdate	:= lua_swupdate.so
-+endif
-+
- shared-dirs	:= $(shareds-y)
- shared-libs	:= $(patsubst %,%/built-in.o, $(shareds-y))
- shared-all	:= $(shared-libs)
- 
--all: swupdate ${tools-bins} lua_swupdate.so
-+all: swupdate ${tools-bins} ${lua_swupdate}
- 
- # Do modpost on a prelinked vmlinux. The finally linked vmlinux has
- # relevant sections renamed as per the linker script.
-@@ -434,7 +438,6 @@ install: all
- 	install -d ${DESTDIR}/usr/bin
- 	install -d ${DESTDIR}/usr/include
- 	install -d ${DESTDIR}/usr/lib
--	install -d ${DESTDIR}/usr/lib/lua/$(LUAVER)
- 	install -m 755 swupdate ${DESTDIR}/usr/bin
- 	for i in ${tools-bins};do \
- 		install -m 755 $$i ${DESTDIR}/usr/bin; \
-@@ -443,7 +446,10 @@ install: all
- 	install -m 0644 include/swupdate_status.h ${DESTDIR}/usr/include
- 	install -m 0644 include/progress_ipc.h ${DESTDIR}/usr/include
- 	install -m 0755 ipc/lib.a ${DESTDIR}/usr/lib/libswupdate.a
--	install -m 0755 lua_swupdate.so $(DESTDIR)/usr/lib/lua/$(LUAVER)
-+	if [ $(HAVE_LUA) = y ]; then \
-+		install -d ${DESTDIR}/usr/lib/lua/$(LUAVER); \
-+		install -m 0755 ${lua_swupdate} $(DESTDIR)/usr/lib/lua/$(LUAVER); \
-+	fi
- 
- PHONY += run-tests
- tests: \
--- 
-2.14.1
-
diff --git a/package/swupdate/swupdate.hash b/package/swupdate/swupdate.hash
index 138bd6d..8194de6 100644
--- a/package/swupdate/swupdate.hash
+++ b/package/swupdate/swupdate.hash
@@ -1,5 +1,5 @@
 # Locally calculated
-sha256  a65884ca18523cde1b0744d952d6f91462dbd4ad07941305f5684c6d4ec833dc  swupdate-2018.11.tar.gz
+sha256  96b2c59558e847ddb7c23b666c1bbe61e03ab90a64c30d233bd5e9029df8519b  swupdate-2019.04.tar.gz
 sha256  43492b377cf2fb67942d1dd231146bd4e6578646ad13ef289297c9dd75cbc478  Licenses/Exceptions
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  Licenses/gpl-2.0.txt
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  Licenses/lgpl-2.1.txt
diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk
index 78f23ec..4626a16 100644
--- a/package/swupdate/swupdate.mk
+++ b/package/swupdate/swupdate.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SWUPDATE_VERSION = 2018.11
+SWUPDATE_VERSION = 2019.04
 SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
 SWUPDATE_LICENSE = GPL-2.0+ with OpenSSL exception, LGPL-2.1+, MIT
 SWUPDATE_LICENSE_FILES = Licenses/Exceptions Licenses/gpl-2.0.txt \
-- 
2.7.4

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

* [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04
  2019-05-04 13:55 [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04 Pierre-Jean Texier
@ 2019-05-05 10:05 ` Peter Korsgaard
  2019-05-05 10:51   ` Pierre-Jean Texier
  2019-06-09 22:51 ` James Hilliard
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2019-05-05 10:05 UTC (permalink / raw)
  To: buildroot

>>>>> "Pierre-Jean" == Pierre-Jean Texier <pjtexier@koncepto.io> writes:

 > New features in this release:
 > - Improved documentation
 > - delta updates based on rdiff library

Looking at https://sbabic.github.io/swupdate/swupdate.html, this seems
to rely on librsync, but I don't see any change to _DEPENDENCIES?

 > - support for libubootenv

Is that something that would be worthwhile to package?

 > - dry-run option
 > - CA certificates for signed images
 > - Fix security leak in parser

What does this mean exactly? Does this mean that this should be applied
to 2019.02.x as well?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04
  2019-05-05 10:05 ` Peter Korsgaard
@ 2019-05-05 10:51   ` Pierre-Jean Texier
  0 siblings, 0 replies; 5+ messages in thread
From: Pierre-Jean Texier @ 2019-05-05 10:51 UTC (permalink / raw)
  To: buildroot

Hi Peter,

Le 05/05/2019 ? 12:05, Peter Korsgaard a ?crit?:
>>>>>> "Pierre-Jean" == Pierre-Jean Texier <pjtexier@koncepto.io> writes:
>   > New features in this release:
>   > - Improved documentation
>   > - delta updates based on rdiff library
>
> Looking at https://sbabic.github.io/swupdate/swupdate.html, this seems
> to rely on librsync, but I don't see any change to _DEPENDENCIES?

Indeed, I will do in v2.

>
>   > - support for libubootenv
>
> Is that something that would be worthwhile to package?

Sure, I am working on it [1] :).
I'll try to send this package as soon as possible.
And I'll send the v2 after.

>
>   > - dry-run option
>   > - CA certificates for signed images
>   > - Fix security leak in parser
>
> What does this mean exactly? Does this mean that this should be applied
> to 2019.02.x as well?
Yes, I think so.


[1] 
https://github.com/texierp/buildroot/commit/6f1ea3cb62560996ba3669cf760dc527ed1a9ec9


Thanks

Pierre-Jean

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

* [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04
  2019-05-04 13:55 [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04 Pierre-Jean Texier
  2019-05-05 10:05 ` Peter Korsgaard
@ 2019-06-09 22:51 ` James Hilliard
  2019-06-10  9:36   ` Pierre-Jean Texier
  1 sibling, 1 reply; 5+ messages in thread
From: James Hilliard @ 2019-06-09 22:51 UTC (permalink / raw)
  To: buildroot

On Sat, May 4, 2019 at 7:57 AM Pierre-Jean Texier <pjtexier@koncepto.io> wrote:
>
> New features in this release:
>
> - Improved documentation
> - delta updates based on rdiff library
> - support for libubootenv
> - dry-run option
> - CA certificates for signed images
> - Fix security leak in parser
>
> This commit also drop upstreamed patch.
I'd recommend you backport the following 2 patches which were
committed after 2019.04:
https://github.com/sbabic/swupdate/commit/95a2b9961119aac80aea1eeabbc1cd52b72d876a
https://github.com/sbabic/swupdate/commit/ee17493d470ae7fd7b34241f263cfa6d790ce1b3
>
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> ---
>  .../swupdate/0001-Makefile-fix-static-build.patch  | 62 ----------------------
>  package/swupdate/swupdate.hash                     |  2 +-
>  package/swupdate/swupdate.mk                       |  2 +-
>  3 files changed, 2 insertions(+), 64 deletions(-)
>  delete mode 100644 package/swupdate/0001-Makefile-fix-static-build.patch
>
> diff --git a/package/swupdate/0001-Makefile-fix-static-build.patch b/package/swupdate/0001-Makefile-fix-static-build.patch
> deleted file mode 100644
> index 56901f9..0000000
> --- a/package/swupdate/0001-Makefile-fix-static-build.patch
> +++ /dev/null
> @@ -1,62 +0,0 @@
> -From 15a324f8c67548f219256a5a75ba8123cc5bdac6 Mon Sep 17 00:00:00 2001
> -From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> -Date: Mon, 4 Mar 2019 21:51:36 +0100
> -Subject: [PATCH] Makefile: fix static build
> -
> -Don't build and install lua_swupdate.so if HAVE_LUA isn't set to y
> -otherwise build will fail if the toolchain only suports building static
> -libraries
> -
> -Fixes:
> - - http://autobuild.buildroot.org/results/c11c4d26983e0347d96f3dda62e6d72b031967bb
> -
> -Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> -[Upstream status: https://github.com/sbabic/swupdate/pull/49]
> ----
> - Makefile | 12 +++++++++---
> - 1 file changed, 9 insertions(+), 3 deletions(-)
> -
> -diff --git a/Makefile b/Makefile
> -index cfeb9a6..cac99b5 100644
> ---- a/Makefile
> -+++ b/Makefile
> -@@ -369,11 +369,15 @@ tools-bins       := $(patsubst $(tools-y)/%.c,$(tools-y)/%,$(wildcard $(tools-y)/*.c))
> - tools-bins-unstr:= $(patsubst %,%_unstripped,$(tools-bins))
> - tools-all     := $(tools-objs)
> -
> -+ifeq ($(HAVE_LUA),y)
> -+lua_swupdate  := lua_swupdate.so
> -+endif
> -+
> - shared-dirs   := $(shareds-y)
> - shared-libs   := $(patsubst %,%/built-in.o, $(shareds-y))
> - shared-all    := $(shared-libs)
> -
> --all: swupdate ${tools-bins} lua_swupdate.so
> -+all: swupdate ${tools-bins} ${lua_swupdate}
> -
> - # Do modpost on a prelinked vmlinux. The finally linked vmlinux has
> - # relevant sections renamed as per the linker script.
> -@@ -434,7 +438,6 @@ install: all
> -       install -d ${DESTDIR}/usr/bin
> -       install -d ${DESTDIR}/usr/include
> -       install -d ${DESTDIR}/usr/lib
> --      install -d ${DESTDIR}/usr/lib/lua/$(LUAVER)
> -       install -m 755 swupdate ${DESTDIR}/usr/bin
> -       for i in ${tools-bins};do \
> -               install -m 755 $$i ${DESTDIR}/usr/bin; \
> -@@ -443,7 +446,10 @@ install: all
> -       install -m 0644 include/swupdate_status.h ${DESTDIR}/usr/include
> -       install -m 0644 include/progress_ipc.h ${DESTDIR}/usr/include
> -       install -m 0755 ipc/lib.a ${DESTDIR}/usr/lib/libswupdate.a
> --      install -m 0755 lua_swupdate.so $(DESTDIR)/usr/lib/lua/$(LUAVER)
> -+      if [ $(HAVE_LUA) = y ]; then \
> -+              install -d ${DESTDIR}/usr/lib/lua/$(LUAVER); \
> -+              install -m 0755 ${lua_swupdate} $(DESTDIR)/usr/lib/lua/$(LUAVER); \
> -+      fi
> -
> - PHONY += run-tests
> - tests: \
> ---
> -2.14.1
> -
> diff --git a/package/swupdate/swupdate.hash b/package/swupdate/swupdate.hash
> index 138bd6d..8194de6 100644
> --- a/package/swupdate/swupdate.hash
> +++ b/package/swupdate/swupdate.hash
> @@ -1,5 +1,5 @@
>  # Locally calculated
> -sha256  a65884ca18523cde1b0744d952d6f91462dbd4ad07941305f5684c6d4ec833dc  swupdate-2018.11.tar.gz
> +sha256  96b2c59558e847ddb7c23b666c1bbe61e03ab90a64c30d233bd5e9029df8519b  swupdate-2019.04.tar.gz
>  sha256  43492b377cf2fb67942d1dd231146bd4e6578646ad13ef289297c9dd75cbc478  Licenses/Exceptions
>  sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  Licenses/gpl-2.0.txt
>  sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  Licenses/lgpl-2.1.txt
> diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk
> index 78f23ec..4626a16 100644
> --- a/package/swupdate/swupdate.mk
> +++ b/package/swupdate/swupdate.mk
> @@ -4,7 +4,7 @@
>  #
>  ################################################################################
>
> -SWUPDATE_VERSION = 2018.11
> +SWUPDATE_VERSION = 2019.04
>  SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
>  SWUPDATE_LICENSE = GPL-2.0+ with OpenSSL exception, LGPL-2.1+, MIT
>  SWUPDATE_LICENSE_FILES = Licenses/Exceptions Licenses/gpl-2.0.txt \
> --
> 2.7.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04
  2019-06-09 22:51 ` James Hilliard
@ 2019-06-10  9:36   ` Pierre-Jean Texier
  0 siblings, 0 replies; 5+ messages in thread
From: Pierre-Jean Texier @ 2019-06-10  9:36 UTC (permalink / raw)
  To: buildroot

Hi James,

Le 10/06/2019 ? 00:51, James Hilliard a ?crit?:
> I'd recommend you backport the following 2 patches which were
> committed after 2019.04:
> https://github.com/sbabic/swupdate/commit/95a2b9961119aac80aea1eeabbc1cd52b72d876a
> https://github.com/sbabic/swupdate/commit/ee17493d470ae7fd7b34241f263cfa6d790ce1b3

Sure, you are right, I will backport these commits in v2.

Thanks !

-- 
Best regards,
Pierre-Jean Texier

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

end of thread, other threads:[~2019-06-10  9:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-04 13:55 [Buildroot] [PATCH 1/1] package/swupdate: bump to version 2019.04 Pierre-Jean Texier
2019-05-05 10:05 ` Peter Korsgaard
2019-05-05 10:51   ` Pierre-Jean Texier
2019-06-09 22:51 ` James Hilliard
2019-06-10  9:36   ` Pierre-Jean Texier

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.