diff options
-rw-r--r-- | meta/recipes-graphics/x11vnc/files/endian-fix.patch | 22 | ||||
-rw-r--r-- | meta/recipes-graphics/x11vnc/x11vnc_0.9.12.bb | 5 |
2 files changed, 26 insertions, 1 deletions
diff --git a/meta/recipes-graphics/x11vnc/files/endian-fix.patch b/meta/recipes-graphics/x11vnc/files/endian-fix.patch new file mode 100644 index 0000000000..0b5e4709f5 --- /dev/null +++ b/meta/recipes-graphics/x11vnc/files/endian-fix.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | libvncserver: replace LIBVNCSERVER_WORDS_BIGENDIAN with WORDS_BIGENDIAN | ||
2 | |||
3 | since macro AC_C_BIGENDIAN is used in autoconf and WORDS_BIGENDIAN is | ||
4 | automatically set for different arch, it is better to use WORDS_BIGENDIAN | ||
5 | instead of LIBVNCSERVER_WORDS_BIGENDIAN, which cuase issue in mips. | ||
6 | |||
7 | Signed-off-by: Yu Ke <ke.yu@intel.com> | ||
8 | |||
9 | diff --git a/libvncserver/main.c b/libvncserver/main.c | ||
10 | index b6bd930..8bbb7bf 100644 | ||
11 | --- a/libvncserver/main.c | ||
12 | +++ b/libvncserver/main.c | ||
13 | @@ -47,7 +47,7 @@ static MUTEX(extMutex); | ||
14 | |||
15 | static int rfbEnableLogging=1; | ||
16 | |||
17 | -#ifdef LIBVNCSERVER_WORDS_BIGENDIAN | ||
18 | +#ifdef WORDS_BIGENDIAN | ||
19 | char rfbEndianTest = (1==0); | ||
20 | #else | ||
21 | char rfbEndianTest = (1==1); | ||
22 | |||
diff --git a/meta/recipes-graphics/x11vnc/x11vnc_0.9.12.bb b/meta/recipes-graphics/x11vnc/x11vnc_0.9.12.bb index f5a6662660..f92eb49a8c 100644 --- a/meta/recipes-graphics/x11vnc/x11vnc_0.9.12.bb +++ b/meta/recipes-graphics/x11vnc/x11vnc_0.9.12.bb | |||
@@ -9,8 +9,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f \ | |||
9 | 9 | ||
10 | DEPENDS = "openssl virtual/libx11 libxext avahi jpeg zlib" | 10 | DEPENDS = "openssl virtual/libx11 libxext avahi jpeg zlib" |
11 | 11 | ||
12 | PR = "r1" | ||
13 | |||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/libvncserver/x11vnc-${PV}.tar.gz\ | 14 | SRC_URI = "${SOURCEFORGE_MIRROR}/libvncserver/x11vnc-${PV}.tar.gz\ |
13 | file://starting-fix.patch" | 15 | file://starting-fix.patch \ |
16 | file://endian-fix.patch " | ||
14 | 17 | ||
15 | SRC_URI[md5sum] = "1498a68d02aa7b6c97bf746c073c8d00" | 18 | SRC_URI[md5sum] = "1498a68d02aa7b6c97bf746c073c8d00" |
16 | SRC_URI[sha256sum] = "60a7cceee2c9a5f1c854340b2bae13f975ac55906237042f81f795b28a154a79" | 19 | SRC_URI[sha256sum] = "60a7cceee2c9a5f1c854340b2bae13f975ac55906237042f81f795b28a154a79" |