Skip to content

Commit

Permalink
Update tigervnc to xorg-server 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
alarcher committed Oct 2, 2016
1 parent d735d8e commit a11d0db
Show file tree
Hide file tree
Showing 20 changed files with 630 additions and 230 deletions.
42 changes: 33 additions & 9 deletions components/x11/tigervnc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ PATCH_PATTERN = [0-9][0-9]*.patch

XORG_ADDITIONAL_PATCH_1 = $(PATCH_DIR)/tigervnc11-xorg111.patch
XORG_ADDITIONAL_PATCH_2 = $(PATCH_DIR)/tigervnc11-xorg112.patch
XORG_ADDITIONAL_PATCH_3 = $(PATCH_DIR)/tigervnc11-xorg114.patch
XORG_ADDITIONAL_PATCH_3 = $(PATCH_DIR)/tigervnc11-xorg117.patch
XORG_ADDITIONAL_PATCH_4 = $(PATCH_DIR)/tigervnc11-xorg118.patch

XORG_SERVER_VERSION= 1.14.7
XORG_SERVER_VERSION= 1.18.3
XORG_SERVER_PATCH= xserver118.patch

include $(WS_TOP)/make-rules/prep.mk
include $(WS_TOP)/make-rules/configure.mk
Expand All @@ -50,10 +52,11 @@ $(SOURCE_DIR)/.prep: $(ARCHIVE_STAMPS) $(COMPONENT_DIR)/../xorg-server/xorg-serv
$(COMPONENT_PREP_ACTION)
chmod -R u+w $(COMPONENT_SRC)/unix/xserver
cp -r $(COMPONENT_DIR)/../xorg-server/xorg-server-$(XORG_SERVER_VERSION)/* $(COMPONENT_SRC)/unix/xserver
$(GPATCH) -d $(@D)/unix $(GPATCH_FLAGS) < $(SOURCE_DIR)/unix/xserver114.patch
$(GPATCH) -d $(@D)/unix $(GPATCH_FLAGS) < $(SOURCE_DIR)/unix/$(XORG_SERVER_PATCH)
$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $(XORG_ADDITIONAL_PATCH_1)
$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $(XORG_ADDITIONAL_PATCH_2)
$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $(XORG_ADDITIONAL_PATCH_3)
$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $(XORG_ADDITIONAL_PATCH_4)
( cd $(@D)/unix/xserver && \
aclocal -I m4 && \
autoheader && \
Expand All @@ -66,12 +69,13 @@ $(SOURCE_DIR)/.prep: $(ARCHIVE_STAMPS) $(COMPONENT_DIR)/../xorg-server/xorg-serv
$(COMPONENT_DIR)/../xorg-server/xorg-server-$(XORG_SERVER_VERSION)/.prep:
$(GMAKE) -C $(COMPONENT_DIR)/../xorg-server prep

COMPONENT_PREP_ACTION = (cd $(@D) &&\
aclocal -I m4 && \
autoheader && \
libtoolize --automake --copy --force && \
automake -a -f -c &&\
autoconf )
COMPONENT_PREP_ACTION = \
( cd $(@D) && \
aclocal -I m4 && \
autoheader && \
libtoolize --automake --copy --force && \
automake -a -f -c &&\
autoconf )

COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))

Expand All @@ -85,8 +89,10 @@ CONFIGURE_LIBDIR = /usr/lib/vnc
# I don't know why, but it just doesn't work without this
gcc_OPT=

CPPFLAGS += $(CPP_LARGEFILES)
CPPFLAGS += -DSUNSOFT -DTSOL
CPPFLAGS += -I/usr/include/pixman-1
CPPFLAGS += -I/usr/include/mesa
CPPFLAGS += -I/usr/include/xorg

CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
Expand Down Expand Up @@ -174,3 +180,21 @@ $(BUILD_DIR)/.configured_Xvnc: $(BUILD_DIR_32)/.configured
build: $(BUILD_32) $(BUILD_DIR)/.built_jar $(BUILD_DIR)/.built_Xvnc

install: $(INSTALL_32) $(BUILD_DIR)/.installed_jar $(BUILD_DIR)/.installed_Xvnc

REQUIRED_PACKAGES += image/library/libjpeg6
REQUIRED_PACKAGES += image/library/libjpeg6-ijg
REQUIRED_PACKAGES += library/gnutls
REQUIRED_PACKAGES += library/graphics/pixman
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/g++-4-runtime
REQUIRED_PACKAGES += system/library/gcc-4-runtime
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += text/xmlto
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxau
REQUIRED_PACKAGES += x11/library/libxdmcp
REQUIRED_PACKAGES += x11/library/libxext
REQUIRED_PACKAGES += x11/library/libxfont
REQUIRED_PACKAGES += x11/library/libxtst
REQUIRED_PACKAGES += x11/server/xserver-common
46 changes: 46 additions & 0 deletions components/x11/tigervnc/patches/01.no-nasm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
From 9281c763b3617e5a126012ae15f77ab2102448e4 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@sun.com>
Date: Fri, 30 Oct 2009 16:49:10 -0700
Subject: [PATCH 1/2] Don't run configure for unused subdirs

Prevents configure from failing if nasm can't be found when it's
not needed because --with-system-jpeg was passed
---
configure.ac | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)

diff --git configure.ac configure.ac
index 50ebdb6..1f9786e 100644
--- configure.ac
+++ configure.ac
@@ -10,8 +10,6 @@ BUILD=`date +%Y%m%d`
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])

-AC_CONFIG_SUBDIRS([common/jpeg common/zlib])
-
AC_CONFIG_HEADERS([config.h])

dnl Checks for programs.
@@ -192,7 +190,9 @@ AC_ARG_WITH([included-zlib],
[AC_SEARCH_LIBS([inflateEnd], [z], [], [INCLUDED_ZLIB=yes])])

AM_CONDITIONAL([INCLUDED_ZLIB], [ test "x$INCLUDED_ZLIB" = xyes ])
-AC_CONFIG_SUBDIRS([zlib])
+if test "x$INCLUDED_ZLIB" = xyes ; then
+ AC_CONFIG_SUBDIRS([common/zlib])
+fi

dnl Check for libjpeg library
INCLUDED_JPEG=yes
@@ -204,7 +204,9 @@ AC_ARG_WITH([system-jpeg],
[])

AM_CONDITIONAL([INCLUDED_JPEG], [ test "x$INCLUDED_JPEG" = xyes ])
-AC_CONFIG_SUBDIRS([jpeg])
+if test "x$INCLUDED_JPEG" = xyes ; then
+ AC_CONFIG_SUBDIRS([common/jpeg])
+fi

AC_CHECK_FUNCS([vsnprintf snprintf strcasecmp strncasecmp])

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -33,7 +33,7 @@ index 1894871..ad4956e 100644

if HAVE_PAM
librfb_la_SOURCES += UnixPasswordValidator.cxx UnixPasswordValidator.h pam.c pam.h
diff --git a/unix/vncserver b/unix/vncserver
diff --git unix/vncserver unix/vncserver
index f3468ed..b8682f6 100755
--- unix/vncserver
+++ unix/vncserver
Expand Down Expand Up @@ -61,7 +61,7 @@ index f3468ed..b8682f6 100755
"[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
"xsetroot -solid grey\n".
"xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
diff --git a/unix/xserver/hw/vnc/Makefile.am b/unix/xserver/hw/vnc/Makefile.am
diff --git unix/xserver/hw/vnc/Makefile.am unix/xserver/hw/vnc/Makefile.am
index 8c49429..50b03e5 100644
--- unix/xserver/hw/vnc/Makefile.am
+++ unix/xserver/hw/vnc/Makefile.am
Expand All @@ -74,22 +74,17 @@ index 8c49429..50b03e5 100644

bin_PROGRAMS = Xvnc

@@ -33,13 +33,21 @@ Xvnc_CPPFLAGS = $(XVNC_CPPFLAGS) -DTIGERVNC -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS \
@@ -33,13 +33,16 @@ Xvnc_CPPFLAGS = $(XVNC_CPPFLAGS) -DTIGERVNC -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS \
-UHAVE_CONFIG_H \
-DXFree86Server -DVENDOR_RELEASE="$(VENDOR_RELEASE)" \
-DVENDOR_STRING="\"$(VENDOR_STRING)\"" -I$(TIGERVNC_SRCDIR)/common \
- -I$(top_srcdir)/include -I$(includedir)/pixman-1 -I$(includedir)
+ -I$(top_srcdir)/include $(PIXMAN_CFLAGS)
+
+if BUILD_TSOL_MODULE
+TSOL_LIBS = ../../tsol/libxtsol.la
+endif

Xvnc_LDADD = $(XVNC_LIBS) libvnccommon.la $(COMMON_LIBS) \
- $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) $(XVNC_SYS_LIBS) -lX11
+ -ljpeg -lz \
+ ../../IA/libIA.la \
+ $(TSOL_LIBS) \
+ $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) $(XVNC_SYS_LIBS)

Xvnc_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
Expand All @@ -112,7 +107,8 @@ index 8c49429..50b03e5 100644

EXTRA_DIST = Xvnc.man

diff --git a/unix/xserver/hw/vnc/Xvnc.man b/unix/xserver/hw/vnc/Xvnc.man

diff --git unix/xserver/hw/vnc/Xvnc.man unix/xserver/hw/vnc/Xvnc.man
index 356925d..ea9ee56 100644
--- unix/xserver/hw/vnc/Xvnc.man
+++ unix/xserver/hw/vnc/Xvnc.man
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[Subset of upstream patch that applies to TigerVNC 1.1 and is needed to
silence Solaris Studio C++ compiler errors of: "TXWindow.cxx", line 93:
Error: Narrowing conversion of 'int' value to 'char' is not allowed here.]

From a9af1f12466e201fed5a72bbba2607fb55f7e042 Mon Sep 17 00:00:00 2001
From: Pierre Ossman <ossman@cendio.se>
Date: Wed, 17 Jun 2015 10:47:28 +0200
Subject: [PATCH] Fix some bad signed/unsigned mismatches

---
common/rfb/VNCSConnectionST.h | 2 +-
unix/tx/TXWindow.cxx | 8 ++++----
vncviewer/parameters.cxx | 4 ++--
win/rfb_win32/SInput.cxx | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git unix/tx/TXWindow.cxx unix/tx/TXWindow.cxx
index 1f69702..a681917 100644
--- unix/tx/TXWindow.cxx
+++ unix/tx/TXWindow.cxx
@@ -89,11 +89,11 @@ void TXWindow::init(Display* dpy, const char* defaultWindowClass_)
XSetFont(dpy, defaultGC, defaultFont);
XSelectInput(dpy, DefaultRootWindow(dpy), PropertyChangeMask);

- static char dotBits[] = { 0x06, 0x0f, 0x0f, 0x06};
- dot = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), dotBits,
+ static unsigned char dotBits[] = { 0x06, 0x0f, 0x0f, 0x06};
+ dot = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), (char*)dotBits,
dotSize, dotSize);
- static char tickBits[] = { 0x80, 0xc0, 0xe2, 0x76, 0x3e, 0x1c, 0x08, 0x00};
- tick = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), tickBits,
+ static unsigned char tickBits[] = { 0x80, 0xc0, 0xe2, 0x76, 0x3e, 0x1c, 0x08, 0x00};
+ tick = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), (char*)tickBits,
tickSize, tickSize);
defaultWindowClass = rfb::strDup(defaultWindowClass_);
}
141 changes: 0 additions & 141 deletions components/x11/tigervnc/patches/tigervnc11-xorg114.patch

This file was deleted.

Loading

0 comments on commit a11d0db

Please sign in to comment.