forked from buildroot/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/x11vnc: add and rework compile patches
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. Signed-off-by: Thomas Devoogdt <[email protected]>
- Loading branch information
1 parent
aa1d088
commit 45c64ab
Showing
4 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
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 | ||
|