Rebuild to fix broken deps and build against xorg 1.18 prerelease
This commit is contained in:
parent
c38da640b0
commit
df29ea27c1
12
tigervnc-xorg118-QueueKeyboardEvents.patch
Normal file
12
tigervnc-xorg118-QueueKeyboardEvents.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Nur tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e.orig/unix/xserver/hw/vnc/Input.cc tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e/unix/xserver/hw/vnc/Input.cc
|
||||
--- tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e.orig/unix/xserver/hw/vnc/Input.cc 2015-03-01 12:58:35.000000000 -0700
|
||||
+++ tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e/unix/xserver/hw/vnc/Input.cc 2015-08-04 10:02:26.234604801 -0600
|
||||
@@ -378,7 +378,7 @@
|
||||
n = GetKeyboardEvents(eventq, dev, action, kc);
|
||||
enqueueEvents(dev, n);
|
||||
#else
|
||||
- QueueKeyboardEvents(dev, action, kc, NULL);
|
||||
+ QueueKeyboardEvents(dev, action, kc);
|
||||
#endif
|
||||
}
|
||||
|
46
tigervnc-xserver118.patch
Normal file
46
tigervnc-xserver118.patch
Normal file
@ -0,0 +1,46 @@
|
||||
diff -Nur tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e.orig/unix/xserver/hw/vnc/xorg-version.h tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e/unix/xserver/hw/vnc/xorg-version.h
|
||||
--- tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e.orig/unix/xserver/hw/vnc/xorg-version.h 2015-03-01 12:58:35.000000000 -0700
|
||||
+++ tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e/unix/xserver/hw/vnc/xorg-version.h 2015-08-04 09:46:14.796336147 -0600
|
||||
@@ -48,8 +48,12 @@
|
||||
#define XORG 115
|
||||
#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (16 * 100000) + (99 * 1000))
|
||||
#define XORG 116
|
||||
+#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (17 * 100000) + (99 * 1000))
|
||||
+#define XORG 117
|
||||
+#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (18 * 100000) + (99 * 1000))
|
||||
+#define XORG 118
|
||||
#else
|
||||
-#error "X.Org newer than 1.16 is not supported"
|
||||
+#error "X.Org newer than 1.18 is not supported"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
diff -Nur tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e.orig/unix/xserver/hw/vnc/xvnc.cc tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e/unix/xserver/hw/vnc/xvnc.cc
|
||||
--- tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e.orig/unix/xserver/hw/vnc/xvnc.cc 2015-03-01 12:58:35.000000000 -0700
|
||||
+++ tigervnc-49d0629dd87c0eb695d72dec7481e9169f55ae9e/unix/xserver/hw/vnc/xvnc.cc 2015-08-04 09:48:07.632507101 -0600
|
||||
@@ -717,9 +717,9 @@
|
||||
entries = pmap->pVisual->ColormapEntries;
|
||||
pVisual = pmap->pVisual;
|
||||
|
||||
- ppix = (Pixel *)xalloc(entries * sizeof(Pixel));
|
||||
- prgb = (xrgb *)xalloc(entries * sizeof(xrgb));
|
||||
- defs = (xColorItem *)xalloc(entries * sizeof(xColorItem));
|
||||
+ ppix = (Pixel *)calloc(entries, sizeof(Pixel));
|
||||
+ prgb = (xrgb *)calloc(entries, sizeof(xrgb));
|
||||
+ defs = (xColorItem *)calloc(entries, sizeof(xColorItem));
|
||||
|
||||
for (i = 0; i < entries; i++) ppix[i] = i;
|
||||
/* XXX truecolor */
|
||||
@@ -738,9 +738,9 @@
|
||||
}
|
||||
(*pmap->pScreen->StoreColors)(pmap, entries, defs);
|
||||
|
||||
- xfree(ppix);
|
||||
- xfree(prgb);
|
||||
- xfree(defs);
|
||||
+ free(ppix);
|
||||
+ free(prgb);
|
||||
+ free(defs);
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name: tigervnc
|
||||
Version: 1.4.3
|
||||
Release: 11%{?dist}
|
||||
Release: 12%{?dist}
|
||||
Summary: A TigerVNC remote display system
|
||||
|
||||
%global _hardened_build 1
|
||||
@ -60,10 +60,11 @@ Patch8: tigervnc-getmaster.patch
|
||||
Patch9: tigervnc-shebang.patch
|
||||
Patch11: tigervnc-format-security.patch
|
||||
Patch14: tigervnc-xstartup.patch
|
||||
Patch15: tigervnc-xserver117.patch
|
||||
Patch15: tigervnc-xserver118.patch
|
||||
Patch16: tigervnc-gnutls-3.4.patch
|
||||
Patch17: tigervnc-xorg118-QueueKeyboardEvents.patch
|
||||
|
||||
# This is tigervnc-%{version}/unix/xserver116.patch rebased on the latest xorg
|
||||
# This is tigervnc-%%{version}/unix/xserver116.patch rebased on the latest xorg
|
||||
Patch100: tigervnc-xserver116-rebased.patch
|
||||
|
||||
%description
|
||||
@ -191,11 +192,12 @@ popd
|
||||
# Clearer xstartup file (bug #923655).
|
||||
%patch14 -p1 -b .xstartup
|
||||
|
||||
# Allow build against xorg-x11-server-1.17.
|
||||
%patch15 -p1 -b .xserver117
|
||||
# Allow build against xorg-x11-server-1.18.
|
||||
%patch15 -p1 -b .xserver118
|
||||
|
||||
# Fix the build with gnutls 3.4 (bug #1218518).
|
||||
%patch16 -p1 -b .gnutls-3.4
|
||||
%patch17 -p1
|
||||
|
||||
%build
|
||||
%ifarch sparcv9 sparc64 s390 s390x
|
||||
@ -364,6 +366,9 @@ fi
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 04 2015 Kevin Fenzi <kevin@scrye.com> 1.4.3-12
|
||||
- Rebuild to fix broken deps and build against xorg 1.18 prerelease
|
||||
|
||||
* Thu Jun 25 2015 Tim Waugh <twaugh@redhat.com> - 1.4.3-11
|
||||
- Rebuilt (bug #1235603).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user