From patchwork Wed Dec 2 13:06:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 106970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.35543.1796216790060224147 for ; Wed, 02 Dec 2026 05:06:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=lYY2W3ll; spf=pass (domain: konsulko.com, ip: 209.85.128.46, mailfrom: leon.anavi@konsulko.com) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4bb64c99d2fso114755475e9.3 for ; Wed, 02 Dec 2026 05:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796216788; x=1796821588; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=zbB7AqIGrfF1/RtQbyKxU+k6QVLl4eZ+MgElJJf5Wj4=; b=lYY2W3ll/V3ToIlvS2X4JtcS4cttCUN7JmreQUzFAVNbr0XTkHplnjbNz1vrki/FnA XzMDlCWXpc65pWGVEHaCHtSHvCPshMd6hPAifSTDX3BWDPhBGgd+oKDPGScCx/vXNW28 3sISWsmBBoj7rR8vGxrKD58sOtvkuBVZa5bgs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796216788; x=1796821588; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zbB7AqIGrfF1/RtQbyKxU+k6QVLl4eZ+MgElJJf5Wj4=; b=m8Z8/CZHGzm2ZivdOdobes2B2iUvGcf2D+BPl4xfxvt3hX1B6A67HXub+xS3gpYepL ZJ3dQT78u3Y8GXWKfSmlAOMI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7ikjM qL9+nOaC3dKMXe06dnbsMuCy/4xMyJf2u5ed2rptYpS8zSUBz3VAHiA== X-Received: by 2002:a05:600c:8884:b0:4bb:c9f8:adc with SMTP id 5b1f17b1804b1-4bbc9f80be9mr131036265e9.1.1796216788389; Wed, 02 Dec 2026 05:06:28 -0800 (PST) Return-Path: Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88442995sm1158834075e9.2.2026.12.02.05.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 05:06:27 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-oe][PATCH] x11vnc: Upgrade 0.9.16 -> 0.9.17 Date: Wed, 2 Dec 2026 15:06:25 +0200 Message-ID: <20261202130625.437225-1-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 13:06:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133835 Upgrade to release 0.9.17: New Features: - Added option for sending multi-touch commands in uinput. - Introduced mousewheel support in uinput. - Support for up to 8 mouse buttons and XK_Super_L/R mapping to Meta keys during pipeinput/uinput. - Experimental support for double-buffered framebuffer and rawfb DRM/shm key options. - Support for OpenBSD in shm_clear. Bug Fixes: - Fixed TLS handshake errors with OpenSSL 1.1.x and LibreSSL compatibility issues. - Addressed snprintf null destination pointer issue and xfc NULL pointer dereference in cursor. - Resolved various allocation and multiplication overflow bugs. - Fixed format string issues with size_t arguments and corrected acute accents in man pages. - Limited access to shared memory segments to the current user and addressed overly long Unix socket names (CVE-2020-29074). Documentation & Maintenance: - Refactored and updated README with clearer notes on maintainership, Intel quirks, and FAQs about driver lags. - Removed executable bit from text files, fixed typos, and clarified password limit/error messages. - Updated issue templates and added FUNDING.yml for community contributions. - Keywords added to x11vnc.desktop file. Other Changes: - Fixed build issues on 32-bit architectures with 64-bit time_t and support for builds using -fno-common. - Addressed gcc -no-common build compatibility. Signed-off-by: Leon Anavi --- ...e.ac-use-pkg-config-to-detect-libdrm.patch | 45 +++++++++++++++++++ .../x11vnc/files/CVE-2020-29074.patch | 27 ----------- .../{x11vnc_0.9.16.bb => x11vnc_0.9.17.bb} | 6 ++- 3 files changed, 49 insertions(+), 29 deletions(-) create mode 100644 meta-oe/recipes-graphics/x11vnc/files/0001-configure.ac-use-pkg-config-to-detect-libdrm.patch delete mode 100644 meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch rename meta-oe/recipes-graphics/x11vnc/{x11vnc_0.9.16.bb => x11vnc_0.9.17.bb} (85%) diff --git a/meta-oe/recipes-graphics/x11vnc/files/0001-configure.ac-use-pkg-config-to-detect-libdrm.patch b/meta-oe/recipes-graphics/x11vnc/files/0001-configure.ac-use-pkg-config-to-detect-libdrm.patch new file mode 100644 index 0000000000..44131e5e9d --- /dev/null +++ b/meta-oe/recipes-graphics/x11vnc/files/0001-configure.ac-use-pkg-config-to-detect-libdrm.patch @@ -0,0 +1,45 @@ +From 69d60935e8b8f6880c02168963c99c10963480f1 Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Wed, 2 Dec 2026 14:23:28 +0200 +Subject: [PATCH] configure.ac: use pkg-config to detect libdrm + +Do not hardcode the host include path /usr/include/drm/ in CPPFLAGS. +The correct include directory for libdrm is ${includedir}/libdrm, which +is what pkg-config reports, so use PKG_CHECK_MODULES to obtain both the +cflags and the libs. + +Fixes the following issue when cross-compiling caused because the build +host headers are used instead of these for the the target build: + + C preprocessor "...gcc -E ..." fails sanity check + +Upstream-Status: Submitted [https://github.com/LibVNC/x11vnc/pull/297] + +Signed-off-by: Leon Anavi +--- + configure.ac | 9 +++------ + 1 file changed, 3 insertions(+), 6 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2fd443a..2fab01d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -71,12 +71,9 @@ AC_ARG_WITH(drm, + if test "x$with_drm" != "xno"; then + AC_CHECK_FUNCS([drm], HAVE_LIBC_DRM="true") + if test -z "$HAVE_LIBC_DRM"; then +- AC_CHECK_LIB(drm, drmModeGetResources, +- DRM_LIBS="-ldrm" +- [AC_DEFINE(HAVE_LIBDRM) HAVE_LIBDRM="true"], ,) +- +- +- CPPFLAGS="$saved_CPPFLAGS -I/usr/include/drm/" ++ PKG_CHECK_MODULES(DRM, [libdrm], ++ [AC_DEFINE(HAVE_LIBDRM) HAVE_LIBDRM="true" ++ CPPFLAGS="$CPPFLAGS $DRM_CFLAGS"], [:]) + fi + fi + AC_SUBST(DRM_LIBS) +-- +2.53.0 + diff --git a/meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch b/meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch deleted file mode 100644 index fbdb9123cc..0000000000 --- a/meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch +++ /dev/null @@ -1,27 +0,0 @@ -CVE: CVE-2020-29074 -Upstream-Status: Backport [https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa14ca03b16c9de821f9876def7a36a ] -Signed-off-by: Lee Chee Yang - - -From 69eeb9f7baa14ca03b16c9de821f9876def7a36a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Gu=C3=A9nal=20DAVALAN?= -Date: Wed, 18 Nov 2020 08:40:45 +0100 -Subject: [PATCH] scan: limit access to shared memory segments to current user - ---- - src/scan.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/scan.c b/src/scan.c -index 43e00d20..12994d52 100644 ---- a/src/scan.c -+++ b/src/scan.c -@@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h, - - #if HAVE_XSHM - shm->shmid = shmget(IPC_PRIVATE, -- xim->bytes_per_line * xim->height, IPC_CREAT | 0777); -+ xim->bytes_per_line * xim->height, IPC_CREAT | 0600); - - if (shm->shmid == -1) { - rfbErr("shmget(%s) failed.\n", name); diff --git a/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb b/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.17.bb similarity index 85% rename from meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb rename to meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.17.bb index 1493eed7af..64be41ddcc 100644 --- a/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb +++ b/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.17.bb @@ -6,12 +6,12 @@ LICENSE = "GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://src/x11vnc.h;endline=31;md5=e871a2ad004776794b616822dcab6314" -SRCREV = "87cd0530f438372dda3c70bb491a6fd19f09acc2" +SRCREV = "e2b726a8c0464051afda01648072af6835aaa5f7" PV .= "+git" SRC_URI = "git://github.com/LibVNC/x11vnc;branch=master;protocol=https \ file://starting-fix.patch \ - file://CVE-2020-29074.patch \ + file://0001-configure.ac-use-pkg-config-to-detect-libdrm.patch \ " DEPENDS = "\ @@ -28,10 +28,12 @@ inherit pkgconfig autotools features_check ANY_OF_DISTRO_FEATURES = "x11 fbdev" PACKAGECONFIG ??= "\ + drm \ ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \ " +PACKAGECONFIG[drm] = "--with-drm,--without-drm,libdrm" PACKAGECONFIG[avahi] = "--with-avahi,--without-avahi,avahi" PACKAGECONFIG[xinerama] = "--with-xinerama,--without-xinerama,libxinerama" PACKAGECONFIG[x11] = "--with-x,--without-x, libxdamage libxext libxfixes libxrandr libxtst virtual/libx11"