package/x11vnc: add and rework compile patches
PATCH 1/1 package/x11vnc: add and rework compile patches
From: Thomas Devoogdt <[email protected]>
Add the "Upstream" field to the patch message for:
- 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch
- 0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch
Add a compile patch for GCC >= 10 which enables -fno-common by default.
Fixes:
- https://autobuild.buildroot.org/results/b22/b2231fe06fe56036a5ddbe61cb8556b046e3a7b7/build-end.log
- https://autobuild.buildroot.org/results/8af/8afbcc63818d3e1586731e178f16635e773d5600/build-end.log
- ...
---
.checkpackageignore | 2 -
...ld-on-32bit-arches-with-64bit-time_t.patch | 8 ++--
...-to-shared-memory-segments-to-curre.patch} | 8 ++--
.../0003-Fix-build-with-fno-common.patch | 48 +++++++++++++++++++
4 files changed, 58 insertions(+), 8 deletions(-)
rename package/x11vnc/{0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch => 0002-scan-limit-access-to-shared-memory-segments-to-curre.patch} (81%)
create mode 100644 package/x11vnc/0003-Fix-build-with-fno-common.patch.checkpackageignore +0 -2
@@ -1364,8 +1364,6 @@ package/x11r7/xdriver_xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-ser package/x11r7/xdriver_xf86-video-tdfx/0001-cross.patch lib_patch.Upstream package/x11r7/xserver_xorg-server/0001-include-misc.h-fix-uClibc-build.patch lib_patch.Upstream package/x11r7/xserver_xorg-server/S40xorg Shellcheck lib_sysv.Variables -package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch lib_patch.Upstream -package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch lib_patch.Upstream package/xen/0001-9pfs-include-linux-limits.h-for-XATTR_SIZE_MAX.patch lib_patch.Upstream package/xen/0002-Fix-build-with-64-bits-time_t.patch lib_patch.Upstream package/xen/0003-libs-light-fix-tv_sec-printf-format.patch lib_patch.Upstream
package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch +5 -3
@@ -1,4 +1,4 @@ -From daecf59cc8b294265666482a4766aaa3148c308b Mon Sep 17 00:00:00 2001 +From 8ca0465fda181bd20e5d30c36fb2aea56ed27b6b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 30 Nov 2019 11:43:32 -0800 Subject: [PATCH] Fix build on 32bit arches with 64bit time_t
@@ -8,8 +8,7 @@ input.h [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f -[Retrieved from: -https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b] +Upstream: https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b Signed-off-by: Fabrice Fontaine <[email protected]> --- src/uinput.c | 25 +++++++++++++++++++++----
@@ -107,3 +106,6 @@ index 28fbad3..d71bcde 100644 ev.type = EV_KEY; ev.code = (unsigned char) scancode; ev.value = down; +-- +2.43.0 +
package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-curre.patch renamed from package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch +5 -3
@@ -1,10 +1,9 @@ -From 69eeb9f7baa14ca03b16c9de821f9876def7a36a Mon Sep 17 00:00:00 2001 +From 3870280eca9c10a3607440209e9caf6d7749e379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=A9nal=20DAVALAN?= <[email protected]> Date: Wed, 18 Nov 2020 08:40:45 +0100 Subject: [PATCH] scan: limit access to shared memory segments to current user -[Retrieved from: -https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa14ca03b16c9de821f9876def7a36a] +Upstream: https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa14ca03b16c9de821f9876def7a36a Signed-off-by: Fabrice Fontaine <[email protected]> --- src/scan.c | 2 +-
@@ -23,3 +22,6 @@ index 43e00d2..12994d5 100644 if (shm->shmid == -1) { rfbErr("shmget(%s) failed.\n", name); +-- +2.43.0 +
package/x11vnc/0003-Fix-build-with-fno-common.patch new file +48 -0
48 lines not on this page · raw message
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain
AppliedQuoted 9 lines · Thomas Devoogdt
From: Thomas Devoogdt <[email protected]>
Add the "Upstream" field to the patch message for:
- 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch
-
0002-scan-limit-access-to-shared-memory-segments-to-current-user.patchAdd a compile patch for GCC >= 10 which enables -fno-common by default.
Quoted 8 lines
Fixes:
-
https://autobuild.buildroot.org/results/b22/b2231fe06fe56036a5ddbe61cb8556b046e3a7b7/build-end.log
-
https://autobuild.buildroot.org/results/8af/8afbcc63818d3e1586731e178f16635e773d5600/build-end.log
- ...Signed-off-by Thomas Devoogdt <[email protected]>
Applied to master, thanks.
Quoted 152 lines
--- .checkpackageignore | 2 - ...ld-on-32bit-arches-with-64bit-time_t.patch | 8 ++-- ...-to-shared-memory-segments-to-curre.patch} | 8 ++-- .../0003-Fix-build-with-fno-common.patch | 48 +++++++++++++++++++ 4 files changed, 58 insertions(+), 8 deletions(-) rename package/x11vnc/{0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch => 0002-scan-limit-access-to-shared-memory-segments-to-curre.patch} (81%) create mode 100644 package/x11vnc/0003-Fix-build-with-fno-common.patch.checkpackageignore +0
-0@@ -1364,8 +1364,6 @@package/x11r7/xdriver_xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-ser
package/x11r7/xdriver_xf86-video-tdfx/0001-cross.patch
lib_patch.Upstream
package/x11r7/xserver_xorg-server/0001-include-misc.h-fix-uClibc-build.patchlib_patch.Upstream
package/x11r7/xserver_xorg-server/S40xorg Shellcheck
lib_sysv.Variables-package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patchlib_patch.Upstream-package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patchlib_patch.Upstream
package/xen/0001-9pfs-include-linux-limits.h-for-XATTR_SIZE_MAX.patch
lib_patch.Upstream
package/xen/0002-Fix-build-with-64-bits-time_t.patch
lib_patch.Upstream
package/xen/0003-libs-light-fix-tv_sec-printf-format.patch
lib_patch.Upstreampackage/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch +0
-1---
a/package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch
+++b/package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patchpackage/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch +1
-1@@ -1,4 +1,4 @@ -From daecf59cc8b294265666482a4766aaa3148c308b Mon Sep 17 00:00:00 2001 +From 8ca0465fda181bd20e5d30c36fb2aea56ed27b6b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 30 Nov 2019 11:43:32 -0800 Subject: [PATCH] Fix build on 32bit arches with 64bit time_t@@ -8,8 +8,7 @@ input.h [1] [1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f
-[Retrieved from:
package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch +1
-1-https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b] +Upstream:https://github.com/LibVNC/x11vnc/commit/daecf59cc8b294265666482a4766aaa3148c308b
Signed-off-by Fabrice Fontaine <[email protected]>---
src/uinput.c | 25 +++++++++++++++++++++----package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch +3
-0@@ -107,3 +106,6 @@ index 28fbad3..d71bcde 100644 ev.type = EV_KEY; ev.code = (unsigned char) scancode; ev.value = down; +-- +2.43.0 +package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-curre.patch renamed from package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch +0
-1---
a/package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch
+++b/package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-curre.patchpackage/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-curre.patch renamed from package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch +1
-1@@ -1,10 +1,9 @@ -From 69eeb9f7baa14ca03b16c9de821f9876def7a36a Mon Sep 17 00:00:00 2001 +From 3870280eca9c10a3607440209e9caf6d7749e379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=A9nal=20DAVALAN?= <[email protected]> Date: Wed, 18 Nov 2020 08:40:45 +0100 Subject: [PATCH] scan: limit access to shared memory segments tocurrent user
-[Retrieved from:
package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-curre.patch renamed from package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch +1
-1-https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa14ca03b16c9de821f9876def7a36a] +Upstream:https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa14ca03b16c9de821f9876def7a36a
Signed-off-by Fabrice Fontaine <[email protected]>---
src/scan.c | 2 +-package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-curre.patch renamed from package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch +3
-0@@ -23,3 +22,6 @@ index 43e00d2..12994d5 100644 if (shm->shmid == -1) { rfbErr("shmget(%s) failed.\n", name); +-- +2.43.0 +package/x11vnc/0003-Fix-build-with-fno-common.patch new file +8
-0@@ -0,0 +1,48 @@ +From 08d57adf499264fcd32461a4092cd799c474d669 Mon Sep 17 00:00:00 2001 +From: Alexander Tsoy <[email protected]> +Date: Tue, 28 Jan 2020 22:21:01 +0300 +Subject: [PATCH] Fix build with -fno-common + +GCC 10 defaults to -fno-common + +Upstream:https://github.com/LibVNC/x11vnc/commit/a48b0b1cd887d7f3ae67f525d7d334bd2feffe60
package/x11vnc/0003-Fix-build-with-fno-common.patch new file +40
-1+Signed-off-by: Thomas Devoogdt <[email protected]> +--- + src/util.c | 3 +++ + src/util.h | 6 +++--- + 2 files changed, 6 insertions(+), 3 deletions(-) + +diff --git a/src/util.c b/src/util.c +index a82a1a4..6a52ebf 100644 +--- a/src/util.c ++++ b/src/util.c +@@ -47,6 +47,9 @@ int hxl = 0; + #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD + MUTEX(x11Mutex); + MUTEX(scrollMutex); ++MUTEX(clientMutex); ++MUTEX(inputMutex); ++MUTEX(pointerMutex); + #endif + + int nfix(int i, int n); +diff --git a/src/util.h b/src/util.h +index 35c1afd..99b5dd1 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -102,9 +102,9 @@ extern struct timeval _mysleep; + #ifdef LIBVNCSERVER_HAVE_LIBPTHREAD + extern MUTEX(x11Mutex); + extern MUTEX(scrollMutex); +-MUTEX(clientMutex); +-MUTEX(inputMutex); +-MUTEX(pointerMutex); ++extern MUTEX(clientMutex); ++extern MUTEX(inputMutex); ++extern MUTEX(pointerMutex); + #endif + + #define X_INIT INIT_MUTEX(x11Mutex) +-- +2.43.0 + --2.43.0
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Julien" == Julien Olivain <[email protected]> writes:
Quoted 13 lines · Thomas Devoogdt
From: Thomas Devoogdt <[email protected]>
Add the "Upstream" field to the patch message for:
- 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch
- 0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch Add a compile patch for GCC >= 10 which enables -fno-common by default.
Fixes:
-
https://autobuild.buildroot.org/results/b22/b2231fe06fe56036a5ddbe61cb8556b046e3a7b7/build-end.log
-
https://autobuild.buildroot.org/results/8af/8afbcc63818d3e1586731e178f16635e773d5600/build-end.log
- ...Quoted 1 line
Signed-off-by Thomas Devoogdt <[email protected]>Applied to master, thanks.
Committed to 2024.02.x and 2024.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot