All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1
@ 2017-03-05 18:27 Kurt Van Dijck
  2017-03-05 20:34 ` Thomas Petazzoni
  2017-03-06  8:19 ` Thomas Petazzoni
  0 siblings, 2 replies; 9+ messages in thread
From: Kurt Van Dijck @ 2017-03-05 18:27 UTC (permalink / raw)
  To: buildroot

Mosquitto combined with version 2.1.0 of libwebsockets yields a failing
system. Version 2.1.1 restores the websocket interface again.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
--
diff --git a/package/libwebsockets/libwebsockets.hash b/package/libwebsockets/libwebsockets.hash
index cbd1101..df7221e 100644
--- a/package/libwebsockets/libwebsockets.hash
+++ b/package/libwebsockets/libwebsockets.hash
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256  bcc96aaa609daae4d3f7ab1ee480126709ef4f6a8bf9c85de40aae48e38cce66  libwebsockets-v2.1.0.tar.gz
+sha256	96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d  libwebsockets-v2.1.1.tar.gz
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index bf46291..983ffce 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBWEBSOCKETS_VERSION = v2.1.0
+LIBWEBSOCKETS_VERSION = v2.1.1
 LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,$(LIBWEBSOCKETS_VERSION))
 LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
 LIBWEBSOCKETS_LICENSE_FILES = LICENSE

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

* [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1
  2017-03-05 18:27 [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1 Kurt Van Dijck
@ 2017-03-05 20:34 ` Thomas Petazzoni
  2017-03-07 15:24   ` Peter Korsgaard
  2017-03-06  8:19 ` Thomas Petazzoni
  1 sibling, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2017-03-05 20:34 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 5 Mar 2017 19:27:48 +0100, Kurt Van Dijck wrote:
> Mosquitto combined with version 2.1.0 of libwebsockets yields a failing
> system. Version 2.1.1 restores the websocket interface again.
> 
> Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

Applied to master, thanks!

Peter: even though this is a version bump, it seems like this one would
be needed on the LTS branch, since it apparently fixes a runtime issue
with Mosquitto.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1
  2017-03-05 18:27 [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1 Kurt Van Dijck
  2017-03-05 20:34 ` Thomas Petazzoni
@ 2017-03-06  8:19 ` Thomas Petazzoni
  2017-03-06 10:43   ` [Buildroot] [PATCH 1/1] libwebsockets: Fix build for 2.1.1 Kurt Van Dijck
  1 sibling, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2017-03-06  8:19 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 5 Mar 2017 19:27:48 +0100, Kurt Van Dijck wrote:
> Mosquitto combined with version 2.1.0 of libwebsockets yields a failing
> system. Version 2.1.1 restores the websocket interface again.
> 
> Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

This update causes a build failure:

/home/test/autobuild/run/instance-2/output/build/libwebsockets-v2.1.1/lib/libwebsockets.c: In function 'lws_get_addresses':
/home/test/autobuild/run/instance-2/output/build/libwebsockets-v2.1.1/lib/libwebsockets.c:645:4: error: too many arguments for format [-Werror=format-extra-args]
    lwsl_err("inet_ntop", strerror(LWS_ERRNO));
    ^
cc1: all warnings being treated as errors

See http://autobuild.buildroot.net/results/bf0/bf04ea2c63562443dbe62934cd55f9f771fb3b3c/build-end.log

Could you have a look ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] libwebsockets: Fix build for 2.1.1
  2017-03-06  8:19 ` Thomas Petazzoni
@ 2017-03-06 10:43   ` Kurt Van Dijck
  2017-03-06 13:39     ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: Kurt Van Dijck @ 2017-03-06 10:43 UTC (permalink / raw)
  To: buildroot

This patch repairs the build for libwebsockets 2.1.1

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
--
diff --git a/package/libwebsockets/lws211-lib-libwebsockets-format.patch b/package/libwebsockets/lws211-lib-libwebsockets-format.patch
new file mode 100644
index 0000000..a563048
--- /dev/null
+++ b/package/libwebsockets/lws211-lib-libwebsockets-format.patch
@@ -0,0 +1,11 @@
+--- a/lib/libwebsockets.c	2017-03-06 11:37:03.699943521 +0100
++++ b/lib/libwebsockets.c	2017-03-05 07:04:12.989997774 +0100
+@@ -642,7 +642,7 @@
+ #ifdef LWS_USE_IPV6
+ 	if (LWS_IPV6_ENABLED(vh)) {
+ 		if (!lws_plat_inet_ntop(AF_INET6, &((struct sockaddr_in6 *)ads)->sin6_addr, rip, rip_len)) {
+-			lwsl_err("inet_ntop", strerror(LWS_ERRNO));
++			lwsl_err("inet_ntop %s", strerror(LWS_ERRNO));
+ 			return -1;
+ 		}
+ 

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

* [Buildroot] [PATCH 1/1] libwebsockets: Fix build for 2.1.1
  2017-03-06 10:43   ` [Buildroot] [PATCH 1/1] libwebsockets: Fix build for 2.1.1 Kurt Van Dijck
@ 2017-03-06 13:39     ` Thomas Petazzoni
  2017-03-06 14:41       ` [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1 Kurt Van Dijck
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2017-03-06 13:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 6 Mar 2017 11:43:27 +0100, Kurt Van Dijck wrote:
> This patch repairs the build for libwebsockets 2.1.1
> 
> Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

Thanks for this patch.

> --
> diff --git a/package/libwebsockets/lws211-lib-libwebsockets-format.patch b/package/libwebsockets/lws211-lib-libwebsockets-format.patch
> new file mode 100644
> index 0000000..a563048
> --- /dev/null
> +++ b/package/libwebsockets/lws211-lib-libwebsockets-format.patch

However, we require all patches to have a description + Signed-off-by
line. Could you add one?

But in fact, this issue has already been fixed upstream, by commit
https://github.com/warmcat/libwebsockets/commit/f9f5a5760782b68fba190fb46d306f7c08f027c0.

So you could instead do:

LIBWEBSOCKETS_PATCH = https://github.com/warmcat/libwebsockets/commit/f9f5a5760782b68fba190fb46d306f7c08f027c0.patch

(and add an entry in the .hash file) ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1
  2017-03-06 13:39     ` Thomas Petazzoni
@ 2017-03-06 14:41       ` Kurt Van Dijck
  2017-03-06 15:25         ` Thomas Petazzoni
  2017-03-07 15:24         ` Peter Korsgaard
  0 siblings, 2 replies; 9+ messages in thread
From: Kurt Van Dijck @ 2017-03-06 14:41 UTC (permalink / raw)
  To: buildroot

This commit cherry-picks an upstream patch that fixes a compile error
that was introduced in v2.1.1

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

diff --git a/package/libwebsockets/libwebsockets.hash b/package/libwebsockets/libwebsockets.hash
index df7221e..7976a69 100644
--- a/package/libwebsockets/libwebsockets.hash
+++ b/package/libwebsockets/libwebsockets.hash
@@ -1,2 +1,3 @@
 # Locally computed:
 sha256	96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d  libwebsockets-v2.1.1.tar.gz
+sha256	49ae9f959394686d469f960951ece3ad1101655afe64df28ea5b1a61c1d124f0  f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index 983ffce..e2e6bb2 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -12,6 +12,9 @@ LIBWEBSOCKETS_DEPENDENCIES = zlib
 LIBWEBSOCKETS_INSTALL_STAGING = YES
 LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
 
+# patch specific for v2.1.1
+LIBWEBSOCKETS_PATCH = https://github.com/warmcat/libwebsockets/commit/f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
+
 # If LWS_MAX_SMP=1, then there is no code related to pthreads compiled
 # in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
 # amount of pthread mutex code is built into the library.

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

* [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1
  2017-03-06 14:41       ` [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1 Kurt Van Dijck
@ 2017-03-06 15:25         ` Thomas Petazzoni
  2017-03-07 15:24         ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2017-03-06 15:25 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 6 Mar 2017 15:41:39 +0100, Kurt Van Dijck wrote:
> This commit cherry-picks an upstream patch that fixes a compile error
> that was introduced in v2.1.1
> 
> Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

Thanks, I've applied with a minor change, see below.

> +# patch specific for v2.1.1

This comment really isn't needed. A patch is always specific to a
version. And the fact it comes from the upstream Git repository makes
it extra clear that it most likely should be dropped the next time we
bump this package.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1
  2017-03-05 20:34 ` Thomas Petazzoni
@ 2017-03-07 15:24   ` Peter Korsgaard
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2017-03-07 15:24 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Hello,
 > On Sun, 5 Mar 2017 19:27:48 +0100, Kurt Van Dijck wrote:
 >> Mosquitto combined with version 2.1.0 of libwebsockets yields a failing
 >> system. Version 2.1.1 restores the websocket interface again.
 >> 
 >> Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

 > Applied to master, thanks!

 > Peter: even though this is a version bump, it seems like this one would
 > be needed on the LTS branch, since it apparently fixes a runtime issue
 > with Mosquitto.

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1
  2017-03-06 14:41       ` [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1 Kurt Van Dijck
  2017-03-06 15:25         ` Thomas Petazzoni
@ 2017-03-07 15:24         ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2017-03-07 15:24 UTC (permalink / raw)
  To: buildroot

>>>>> "Kurt" == Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be> writes:

 > This commit cherry-picks an upstream patch that fixes a compile error
 > that was introduced in v2.1.1

 > Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>

 > diff --git a/package/libwebsockets/libwebsockets.hash b/package/libwebsockets/libwebsockets.hash
 > index df7221e..7976a69 100644
 > --- a/package/libwebsockets/libwebsockets.hash
 > +++ b/package/libwebsockets/libwebsockets.hash
 > @@ -1,2 +1,3 @@
 >  # Locally computed:
 >  sha256	96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d  libwebsockets-v2.1.1.tar.gz
 > +sha256	49ae9f959394686d469f960951ece3ad1101655afe64df28ea5b1a61c1d124f0  f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
 > diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
 > index 983ffce..e2e6bb2 100644
 > --- a/package/libwebsockets/libwebsockets.mk
 > +++ b/package/libwebsockets/libwebsockets.mk
 > @@ -12,6 +12,9 @@ LIBWEBSOCKETS_DEPENDENCIES = zlib
 >  LIBWEBSOCKETS_INSTALL_STAGING = YES
 >  LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
 
 > +# patch specific for v2.1.1
 > +LIBWEBSOCKETS_PATCH = https://github.com/warmcat/libwebsockets/commit/f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
 > +

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-03-07 15:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-05 18:27 [Buildroot] [PATCH 1/1] libwebsockets: bump to version 2.1.1 Kurt Van Dijck
2017-03-05 20:34 ` Thomas Petazzoni
2017-03-07 15:24   ` Peter Korsgaard
2017-03-06  8:19 ` Thomas Petazzoni
2017-03-06 10:43   ` [Buildroot] [PATCH 1/1] libwebsockets: Fix build for 2.1.1 Kurt Van Dijck
2017-03-06 13:39     ` Thomas Petazzoni
2017-03-06 14:41       ` [Buildroot] [PATCH 1/1] libwebsockets: cherry-pick upstream patch for v2.1.1 Kurt Van Dijck
2017-03-06 15:25         ` Thomas Petazzoni
2017-03-07 15:24         ` Peter Korsgaard

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.