Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15
@ 2025-12-03 19:56 Bernd Kuhls
  2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 2/4] package/libvncserver: enable websocket server Bernd Kuhls
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Bernd Kuhls @ 2025-12-03 19:56 UTC (permalink / raw)
  To: buildroot; +Cc: Christian Hitz

From: Christian Hitz <christian.hitz@bbv.ch>

Fixes building with OpenSSL >= 3.0.0.

For more details on the version bump, see the release notes:
  - https://github.com/LibVNC/libvncserver/releases/tag/LibVNCServer-0.9.15

Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: no changes

 package/libvncserver/libvncserver.hash | 2 +-
 package/libvncserver/libvncserver.mk   | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/package/libvncserver/libvncserver.hash b/package/libvncserver/libvncserver.hash
index 225c42e46a..127a163fe2 100644
--- a/package/libvncserver/libvncserver.hash
+++ b/package/libvncserver/libvncserver.hash
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  83104e4f7e28b02f8bf6b010d69b626fae591f887e949816305daebae527c9a5  LibVNCServer-0.9.14.tar.gz
+sha256  62352c7795e231dfce044beb96156065a05a05c974e5de9e023d688d8ff675d7  libvncserver-0.9.15.tar.gz
 sha256  4d23c8c814e5baf007d854f01d8502e77dc56a41144934e003fb32c4e052d20f  COPYING
diff --git a/package/libvncserver/libvncserver.mk b/package/libvncserver/libvncserver.mk
index 082f838f12..c6cbc834f6 100644
--- a/package/libvncserver/libvncserver.mk
+++ b/package/libvncserver/libvncserver.mk
@@ -4,9 +4,8 @@
 #
 ################################################################################
 
-LIBVNCSERVER_VERSION = 0.9.14
-LIBVNCSERVER_SOURCE = LibVNCServer-$(LIBVNCSERVER_VERSION).tar.gz
-LIBVNCSERVER_SITE = https://github.com/LibVNC/libvncserver/archive
+LIBVNCSERVER_VERSION = 0.9.15
+LIBVNCSERVER_SITE = $(call github,LibVNC,libvncserver,LibVNCServer-$(LIBVNCSERVER_VERSION))
 LIBVNCSERVER_LICENSE = GPL-2.0+
 LIBVNCSERVER_LICENSE_FILES = COPYING
 LIBVNCSERVER_CPE_ID_VALID = YES
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH/next v2 2/4] package/libvncserver: enable websocket server
  2025-12-03 19:56 [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Bernd Kuhls
@ 2025-12-03 19:56 ` Bernd Kuhls
  2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 3/4] package/libvncserver: install storepasswd tool Bernd Kuhls
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Bernd Kuhls @ 2025-12-03 19:56 UTC (permalink / raw)
  To: buildroot; +Cc: Christian Hitz

From: Christian Hitz <christian.hitz@bbv.ch>

Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: no changes

 package/libvncserver/Config.in       |  5 +++++
 package/libvncserver/libvncserver.mk | 13 +++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/package/libvncserver/Config.in b/package/libvncserver/Config.in
index a3dce57271..904c805404 100644
--- a/package/libvncserver/Config.in
+++ b/package/libvncserver/Config.in
@@ -21,6 +21,11 @@ config BR2_PACKAGE_LIBVNCSERVER_TIGHTPNG
 
 	  http://wiki.qemu.org/VNC_Tight_PNG
 
+config BR2_PACKAGE_LIBVNCSERVER_WEBSOCKETS
+	bool "WebSockets support"
+	help
+	  Enable WebSocket support (e.g. for noVNC)
+
 endif
 
 comment "libvncserver needs a toolchain w/ dynamic library"
diff --git a/package/libvncserver/libvncserver.mk b/package/libvncserver/libvncserver.mk
index c6cbc834f6..9935a32dda 100644
--- a/package/libvncserver/libvncserver.mk
+++ b/package/libvncserver/libvncserver.mk
@@ -77,4 +77,17 @@ else
 LIBVNCSERVER_CONF_OPTS += -DWITH_ZLIB=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBVNCSERVER_WEBSOCKETS),y)
+HBT_LIBVNCSERVER_CONF_OPTS += -DWITH_WEBSOCKETS=ON
+
+define LIBVNCSERVER_INSTALL_VNC
+	$(INSTALL) -D -m 644 $(@D)/webclients/index.vnc \
+		$(TARGET_DIR)/usr/share/vnc/index.vnc
+endef
+
+LIBVNCSERVER_POST_INSTALL_TARGET_HOOKS += LIBVNCSERVER_INSTALL_VNC
+else
+LIBVNCSERVER_CONF_OPTS += -DWITH_WEBSOCKETS=OFF
+endif
+
 $(eval $(cmake-package))
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH/next v2 3/4] package/libvncserver: install storepasswd tool
  2025-12-03 19:56 [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Bernd Kuhls
  2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 2/4] package/libvncserver: enable websocket server Bernd Kuhls
@ 2025-12-03 19:56 ` Bernd Kuhls
  2025-12-03 19:56 ` [Buildroot] [PATCH/next 4/4] package/libvncserver: fix cmake 4 compatibility Bernd Kuhls
  2025-12-07 14:27 ` [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Thomas Petazzoni via buildroot
  3 siblings, 0 replies; 7+ messages in thread
From: Bernd Kuhls @ 2025-12-03 19:56 UTC (permalink / raw)
  To: buildroot; +Cc: Christian Hitz

From: Christian Hitz <christian.hitz@bbv.ch>

storepasswd is used to dynamically create a VNC password on target

Signed-off-by: Christian Hitz <christian.hitz@bbv.ch>
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: no changes

 package/libvncserver/Config.in       |  5 +++++
 package/libvncserver/libvncserver.mk | 13 ++++++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/package/libvncserver/Config.in b/package/libvncserver/Config.in
index 904c805404..4ea9697168 100644
--- a/package/libvncserver/Config.in
+++ b/package/libvncserver/Config.in
@@ -26,6 +26,11 @@ config BR2_PACKAGE_LIBVNCSERVER_WEBSOCKETS
 	help
 	  Enable WebSocket support (e.g. for noVNC)
 
+config BR2_PACKAGE_LIBVNCSERVER_INSTALL_STOREPASSSWD
+	bool "storepasswd tool"
+	help
+	  Install storepasswd tool used to create VNC passwords
+
 endif
 
 comment "libvncserver needs a toolchain w/ dynamic library"
diff --git a/package/libvncserver/libvncserver.mk b/package/libvncserver/libvncserver.mk
index 9935a32dda..1180fc8dc7 100644
--- a/package/libvncserver/libvncserver.mk
+++ b/package/libvncserver/libvncserver.mk
@@ -15,7 +15,6 @@ LIBVNCSERVER_CONF_OPTS = -DWITH_LZO=ON
 
 # only used for examples
 LIBVNCSERVER_CONF_OPTS += \
-	-DWITH_EXAMPLES=OFF \
 	-DWITH_FFMPEG=OFF \
 	-DWITH_GTK=OFF \
 	-DWITH_SDL=OFF \
@@ -90,4 +89,16 @@ else
 LIBVNCSERVER_CONF_OPTS += -DWITH_WEBSOCKETS=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBVNCSERVER_INSTALL_STOREPASSSWD),y)
+LIBVNCSERVER_CONF_OPTS += -DWITH_EXAMPLES=ON
+define LIBVNCSERVER_INSTALL_STOREPASSWD
+	$(INSTALL) -D -m 0755 $(@D)/examples/server/storepasswd \
+		$(TARGET_DIR)/usr/bin/storepasswd
+endef
+
+LIBVNCSERVER_POST_INSTALL_TARGET_HOOKS += LIBVNCSERVER_INSTALL_STOREPASSWD
+else
+LIBVNCSERVER_CONF_OPTS += -DWITH_EXAMPLES=OFF
+endif
+
 $(eval $(cmake-package))
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH/next 4/4] package/libvncserver: fix cmake 4 compatibility
  2025-12-03 19:56 [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Bernd Kuhls
  2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 2/4] package/libvncserver: enable websocket server Bernd Kuhls
  2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 3/4] package/libvncserver: install storepasswd tool Bernd Kuhls
@ 2025-12-03 19:56 ` Bernd Kuhls
  2025-12-07 14:28   ` Thomas Petazzoni via buildroot
  2025-12-07 14:27 ` [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Thomas Petazzoni via buildroot
  3 siblings, 1 reply; 7+ messages in thread
From: Bernd Kuhls @ 2025-12-03 19:56 UTC (permalink / raw)
  To: buildroot; +Cc: Christian Hitz

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
New patch in the series to bump libvncserver.

 ...001-CMake-require-at-least-CMake-3.5.patch | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch

diff --git a/package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch b/package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch
new file mode 100644
index 0000000000..e7b30e3db6
--- /dev/null
+++ b/package/libvncserver/0001-CMake-require-at-least-CMake-3.5.patch
@@ -0,0 +1,26 @@
+From e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= <matti.lehtimaki@jolla.com>
+Date: Tue, 13 May 2025 08:37:07 +0300
+Subject: [PATCH] CMake: require at least CMake 3.5
+
+CMake 4 dropped support for version requirements < 3.5.
+
+Fixes building with CMake >= 4.
+
+Upstream: https://github.com/LibVNC/libvncserver/commit/e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 205f3928..9b8118c8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.4)
++cmake_minimum_required(VERSION 3.5)
+ 
+ set(PROJECT_LANGUAGES C)
+ 
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15
  2025-12-03 19:56 [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Bernd Kuhls
                   ` (2 preceding siblings ...)
  2025-12-03 19:56 ` [Buildroot] [PATCH/next 4/4] package/libvncserver: fix cmake 4 compatibility Bernd Kuhls
@ 2025-12-07 14:27 ` Thomas Petazzoni via buildroot
  2025-12-08  7:13   ` Christian Hitz via buildroot
  3 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-12-07 14:27 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot, Christian Hitz

Hello Bernd, Hello Christian,

Thanks for the patch!

On Wed,  3 Dec 2025 20:56:37 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> From: Christian Hitz <christian.hitz@bbv.ch>
> 
> Fixes building with OpenSSL >= 3.0.0.

We have been using OpenSSL >= 3.0.0 in Buildroot for a while, but I
don't seem to see any (recent) libvncserver build issue in our
autobuilders.

Could you clarify this? Is this fixing an actual build issue we are
facing? If not, why?

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH/next 4/4] package/libvncserver: fix cmake 4 compatibility
  2025-12-03 19:56 ` [Buildroot] [PATCH/next 4/4] package/libvncserver: fix cmake 4 compatibility Bernd Kuhls
@ 2025-12-07 14:28   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-12-07 14:28 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot, Christian Hitz

Hello Bernd,

On Wed,  3 Dec 2025 20:56:40 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> New patch in the series to bump libvncserver.

Thanks for the patch. Please use the same patch prefix for all patches
in the series. I.e [PATCH/next v2 ...] for all patches, including this
one patch, even if it's new in v2. The version number of for the
*series* not for the individual patches.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15
  2025-12-07 14:27 ` [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Thomas Petazzoni via buildroot
@ 2025-12-08  7:13   ` Christian Hitz via buildroot
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Hitz via buildroot @ 2025-12-08  7:13 UTC (permalink / raw)
  To: Thomas Petazzoni via buildroot
  Cc: Christian Hitz, Bernd Kuhls, Christian Hitz

Hi Thomas

On Sun, 7 Dec 2025 15:27:21 +0100 Thomas Petazzoni via buildroot <buildroot@buildroot.org> wrote:

> On Wed,  3 Dec 2025 20:56:37 +0100
> Bernd Kuhls <bernd@kuhls.net> wrote:
> 
> > From: Christian Hitz <christian.hitz@bbv.ch>
> > 
> > Fixes building with OpenSSL >= 3.0.0.
> 
> We have been using OpenSSL >= 3.0.0 in Buildroot for a while, but I
> don't seem to see any (recent) libvncserver build issue in our
> autobuilders.
> 
> Could you clarify this? Is this fixing an actual build issue we are
> facing? If not, why?

It's not an actual builing issue, but a runtime issue when built with
OpenSSL >= 3 [1].

The comment should therefore be "Fixes VNC authentication with OpenSSL >= 3.0.0."

[1] https://github.com/LibVNC/libvncserver/commit/f135856fc3ce515afd16dbf91c44b89bab332726

Regards
Christian

> 
> Thanks!
> 
> Thomas
> -- 
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

Sent using hkml (https://github.com/sjp38/hackermail)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2025-12-08  7:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03 19:56 [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Bernd Kuhls
2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 2/4] package/libvncserver: enable websocket server Bernd Kuhls
2025-12-03 19:56 ` [Buildroot] [PATCH/next v2 3/4] package/libvncserver: install storepasswd tool Bernd Kuhls
2025-12-03 19:56 ` [Buildroot] [PATCH/next 4/4] package/libvncserver: fix cmake 4 compatibility Bernd Kuhls
2025-12-07 14:28   ` Thomas Petazzoni via buildroot
2025-12-07 14:27 ` [Buildroot] [PATCH/next v2 1/4] package/libvncserver: bump to version 0.9.15 Thomas Petazzoni via buildroot
2025-12-08  7:13   ` Christian Hitz via buildroot

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