]> source.dussan.org Git - tigervnc.git/commitdiff
Use Xorg source from distribution
authorPierre Ossman <ossman@cendio.se>
Fri, 18 Jan 2019 14:42:46 +0000 (15:42 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 21 Jan 2019 15:33:22 +0000 (16:33 +0100)
contrib/packages/deb/ubuntu-trusty/debian/changelog
contrib/packages/deb/ubuntu-trusty/debian/control
contrib/packages/deb/ubuntu-trusty/debian/get-orig-source.sh
contrib/packages/deb/ubuntu-trusty/debian/patches/100_rethrow_signals.patch [deleted file]
contrib/packages/deb/ubuntu-trusty/debian/patches/516_tigervnc-xorg-manpages.patch [deleted file]
contrib/packages/deb/ubuntu-trusty/debian/patches/debian_libtool.patch [deleted file]
contrib/packages/deb/ubuntu-trusty/debian/patches/series [deleted file]
contrib/packages/deb/ubuntu-trusty/debian/rules
contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/100_rethrow_signals.patch [new file with mode: 0644]
contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/516_tigervnc-xorg-manpages.patch [new file with mode: 0644]
contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/debian_libtool.patch [new file with mode: 0644]

index 28fc3c92494acf04009fcaa14183900ea781bf7b..9d37a27ae9cf5137e42a911e4f92cfee070e8469 100644 (file)
@@ -1,3 +1,9 @@
+tigervnc (1.9.80-1) trusty; urgency=low
+
+  * Build Xvnc against distro xorg sources.
+
+ -- Pierre Ossman <ossman@cendio.se>  Fri, 18 Jan 2019 15:42:46 +0100
+
 tigervnc (1.3.0-3ubuntu1) precise; urgency=low
 
   * Build Xvnc against native upstream xorg sources, using native config
index f1cf906a4de6b36470f2771981c2d4937241c73b..480a3ca51a1150b0da050d789b42f7295a240f0e 100644 (file)
@@ -3,7 +3,7 @@ Section: x11
 Priority: optional
 Maintainer: Brian P. Hinz <bphinz@users.sourceforge.net>
 Standards-Version: 3.8.4
-Build-Depends: debhelper (>> 7.1), zlib1g-dev, libjpeg-turbo8-dev, libxaw7-dev (>> 4.1.0), perl-modules, xfonts-base, xutils-dev, libx11-dev, libxau-dev, libxext-dev, libxi-dev, libxkbfile-dev, libxmu-dev, libxt-dev, x11proto-core-dev, cmake (>> 2.8), libgnutls28-dev, libpam0g-dev, libpng-dev, automake, autoconf, libtool, pkg-config, libpixman-1-dev, x11proto-bigreqs-dev, x11proto-composite-dev, x11proto-damage-dev, x11proto-dri2-dev, x11proto-fixes-dev, x11proto-fonts-dev, x11proto-gl-dev, x11proto-input-dev, x11proto-kb-dev, x11proto-randr-dev, x11proto-render-dev, x11proto-resource-dev, x11proto-scrnsaver-dev, x11proto-video-dev, x11proto-xext-dev, x11proto-xf86bigfont-dev, x11proto-xf86dga-dev, x11proto-xf86dri-dev, x11proto-xf86vidmode-dev, x11proto-xinerama-dev, libosmesa6-dev, libgl1-mesa-dev, libgl1-mesa-dri, libgl1-mesa-glx, libxfont-dev, x11proto-record-dev, default-jdk, libxtst-dev, libxft-dev, libexpat1-dev, libfontconfig1-dev, libxrender-dev, libt1-dev, libpciaccess-dev, curl, bzip2, quilt, libglu1-mesa-dev, libxcursor-dev, libxinerama-dev, libxfixes-dev, libcairo2-dev, x11proto-dri3-dev, libgcrypt20-dev, x11proto-xcmisc-dev, x11proto-present-dev, libtasn1-dev
+Build-Depends: debhelper (>> 7.1), zlib1g-dev, libjpeg-turbo8-dev, libxaw7-dev (>> 4.1.0), perl-modules, xfonts-base, xutils-dev, libx11-dev, libxau-dev, libxext-dev, libxi-dev, libxkbfile-dev, libxmu-dev, libxt-dev, x11proto-core-dev, cmake (>> 2.8), libgnutls28-dev, libpam0g-dev, libpng-dev, automake, autoconf, libtool, pkg-config, libpixman-1-dev, x11proto-bigreqs-dev, x11proto-composite-dev, x11proto-damage-dev, x11proto-dri2-dev, x11proto-fixes-dev, x11proto-fonts-dev, x11proto-gl-dev, x11proto-input-dev, x11proto-kb-dev, x11proto-randr-dev, x11proto-render-dev, x11proto-resource-dev, x11proto-scrnsaver-dev, x11proto-video-dev, x11proto-xext-dev, x11proto-xf86bigfont-dev, x11proto-xf86dga-dev, x11proto-xf86dri-dev, x11proto-xf86vidmode-dev, x11proto-xinerama-dev, libosmesa6-dev, libgl1-mesa-dev, libgl1-mesa-dri, libgl1-mesa-glx, libxfont-dev, x11proto-record-dev, default-jdk, libxtst-dev, libxft-dev, libexpat1-dev, libfontconfig1-dev, libxrender-dev, libt1-dev, libpciaccess-dev, curl, bzip2, quilt, libglu1-mesa-dev, libxcursor-dev, libxinerama-dev, libxfixes-dev, libcairo2-dev, x11proto-dri3-dev, libgcrypt20-dev, x11proto-xcmisc-dev, x11proto-present-dev, libtasn1-dev, xorg-server-source
 Homepage: http://www.tigervnc.com
 
 Package: tigervncserver
index 64b261552c5df48024e2799ceee599a16d7e57de..d79a7242b5cc4fad5f17d364ecc01e9b147fe13e 100755 (executable)
@@ -16,20 +16,6 @@ pushd fltk-*
 sh ../../debian/patch_fltk.sh
 find . -name "*.orig" -exec rm {} \;
 popd
-curl -L -o xorg-server-1.11.4-0ubuntu10.3.tar.gz 'http://anonscm.debian.org/gitweb/?p=pkg-xorg/xserver/xorg-server.git;a=snapshot;h=cbf435a091906484112f5c4cf35b17738e779ce9;sf=tgz'
-tar xzf xorg-server-*.tar.gz
-rm xorg-server-*.tar.gz
-pushd xorg-server-*
-QUILT_PATCHES=debian/patches quilt push -a
-popd
-cp -r xorg-server-*/* unix/xserver 
-rm -rf xorg-server-*
-pushd unix/xserver
-for all in `find . -type f -perm -001`; do
-        chmod -x "$all"
-done
-patch -p1 -b --suffix .vnc < ../xserver111.patch
-popd
 popd
 if [ -e tigervnc_1.3.80.orig.tar.gz ] ; then
        rm tigervnc_1.3.80.orig.tar.gz
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/patches/100_rethrow_signals.patch b/contrib/packages/deb/ubuntu-trusty/debian/patches/100_rethrow_signals.patch
deleted file mode 100644 (file)
index b40b148..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
---- a/unix/xserver/hw/vnc/xvnc.c       2013-07-14 14:05:29.963390223 -0400
-+++ b/unix/xserver/hw/vnc/xvnc.c       2013-07-14 14:04:12.840357191 -0400
-@@ -250,7 +250,7 @@
- #if XORG < 111
- AbortDDX()
- #else
--AbortDDX(enum ExitCode error)
-+SigAbortDDX(int signo, enum ExitCode error)
- #endif
- {
- #if XORG < 111
-@@ -260,6 +260,14 @@
- #endif
- }
-+#if XORG >= 111
-+void
-+AbortDDX(enum ExitCode error)
-+{
-+    SigAbortDDX(0, error);
-+}
-+#endif
-+
- #ifdef __DARWIN__
- void
- DarwinHandleGUI(int argc, char *argv[])
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/patches/516_tigervnc-xorg-manpages.patch b/contrib/packages/deb/ubuntu-trusty/debian/patches/516_tigervnc-xorg-manpages.patch
deleted file mode 100644 (file)
index 4575f6a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/unix/xserver/man/Makefile.am     2013-03-30 17:51:01.707258746 -0400
-+++ b/unix/xserver/man/Makefile.am     2013-03-30 17:51:47.606569692 -0400
-@@ -2,5 +2,7 @@
- # (i.e. those handled in the os/utils.c options processing instead of in
- #  the DDX-level options processing)
-+if ENABLE_DOCS
- include $(top_srcdir)/manpages.am
- appman_PRE = Xserver.man
-+endif ENABLE_DOCS 
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/patches/debian_libtool.patch b/contrib/packages/deb/ubuntu-trusty/debian/patches/debian_libtool.patch
deleted file mode 100644 (file)
index 7be0ba2..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
---- a/ltmain.sh        2016-05-11 23:23:25.796742323 -0400
-+++ b/ltmain.sh        2016-05-11 23:24:47.173010324 -0400
-@@ -6447,6 +6447,9 @@
-           # It is a libtool convenience library, so add in its objects.
-           func_append convenience " $ladir/$objdir/$old_library"
-           func_append old_convenience " $ladir/$objdir/$old_library"
-+        elif test "$linkmode" != prog && test "$linkmode" != lib; then
-+          func_fatal_error "\`$lib' is not a convenience library"
-+        fi
-           tmp_libs=
-           for deplib in $dependency_libs; do
-             deplibs="$deplib $deplibs"
-@@ -6457,9 +6460,6 @@
-             fi
-             func_append tmp_libs " $deplib"
-           done
--        elif test "$linkmode" != prog && test "$linkmode" != lib; then
--          func_fatal_error "\`$lib' is not a convenience library"
--        fi
-         continue
-       fi # $pass = conv
---- a/m4/libtool.m4    2016-05-11 23:26:23.801328557 -0400
-+++ b/m4/libtool.m4    2016-05-11 23:27:12.701489603 -0400
-@@ -4589,9 +4589,6 @@
-       ;;
-     esac
-     ;;
--  linux* | k*bsd*-gnu | gnu*)
--    _LT_TAGVAR(link_all_deplibs, $1)=no
--    ;;
-   *)
-     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
-     ;;
-@@ -4654,9 +4651,6 @@
-   openbsd*)
-     with_gnu_ld=no
-     ;;
--  linux* | k*bsd*-gnu | gnu*)
--    _LT_TAGVAR(link_all_deplibs, $1)=no
--    ;;
-   esac
-   _LT_TAGVAR(ld_shlibs, $1)=yes
-@@ -5055,7 +5049,6 @@
-       if test "$aix_use_runtimelinking" = yes; then
-         shared_flag="$shared_flag "'${wl}-G'
-       fi
--      _LT_TAGVAR(link_all_deplibs, $1)=no
-       else
-       # not using gcc
-       if test "$host_cpu" = ia64; then
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/patches/series b/contrib/packages/deb/ubuntu-trusty/debian/patches/series
deleted file mode 100644 (file)
index b57b12a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-## Patches with a number < 100 are applied in debian.
-## Ubuntu patches start with 100.
-
-# Ubuntu patches
-100_rethrow_signals.patch
-
-# Upstream patches
-516_tigervnc-xorg-manpages.patch
index ea9f1437bcaad929f1cc548b5a2a479d4b4fe865..6c270a69b6a610db80edeb53c5714940d1b4691e 100755 (executable)
@@ -50,8 +50,18 @@ get-orig-source: $(SOURCE_NAME)_$(SOURCE_VERSION).orig.tar.gz
 $(SOURCE_NAME)_$(SOURCE_VERSION).orig.tar.gz:
        $(CURDIR)/get-orig-source.sh
 
+# use xorg sources as shipped in xorg-server-source package
+XORG_SOURCE_ARCHIVE = /usr/src/xorg-server.tar.xz
+
+xorg-source-stamp: $(XORG_SOURCE_ARCHIVE)
+       tar -C unix/xserver -axf $(XORG_SOURCE_ARCHIVE) --strip-components=1
+       cd unix/xserver && patch -p1 < ../xserver115.patch
+       patch -p1 < debian/xorg-source-patches/100_rethrow_signals.patch
+       patch -p1 < debian/xorg-source-patches/516_tigervnc-xorg-manpages.patch
+       touch xorg-source-stamp
+
 configure: config-stamp
-config-stamp:
+config-stamp: xorg-source-stamp
        dh_testdir
        # Add here commands to configure the package.
        (cd fltk-*;DSOFLAGS="$(filter-out -fPIE -pie,$(LDFLAGS))" \
@@ -65,7 +75,7 @@ config-stamp:
        (cd unix/xserver; \
        export PIXMANINCDIR=/usr/include/pixman-1; \
        autoreconf -fiv; \
-  patch -p1 -i ../../debian/patches/debian_libtool.patch; \
+  patch -p1 -i ../../debian/xorg-source-patches/debian_libtool.patch; \
        ./configure --prefix=/usr \
                --disable-silent-rules \
                --disable-static \
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/100_rethrow_signals.patch b/contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/100_rethrow_signals.patch
new file mode 100644 (file)
index 0000000..b40b148
--- /dev/null
@@ -0,0 +1,26 @@
+--- a/unix/xserver/hw/vnc/xvnc.c       2013-07-14 14:05:29.963390223 -0400
++++ b/unix/xserver/hw/vnc/xvnc.c       2013-07-14 14:04:12.840357191 -0400
+@@ -250,7 +250,7 @@
+ #if XORG < 111
+ AbortDDX()
+ #else
+-AbortDDX(enum ExitCode error)
++SigAbortDDX(int signo, enum ExitCode error)
+ #endif
+ {
+ #if XORG < 111
+@@ -260,6 +260,14 @@
+ #endif
+ }
++#if XORG >= 111
++void
++AbortDDX(enum ExitCode error)
++{
++    SigAbortDDX(0, error);
++}
++#endif
++
+ #ifdef __DARWIN__
+ void
+ DarwinHandleGUI(int argc, char *argv[])
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/516_tigervnc-xorg-manpages.patch b/contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/516_tigervnc-xorg-manpages.patch
new file mode 100644 (file)
index 0000000..4575f6a
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/unix/xserver/man/Makefile.am     2013-03-30 17:51:01.707258746 -0400
++++ b/unix/xserver/man/Makefile.am     2013-03-30 17:51:47.606569692 -0400
+@@ -2,5 +2,7 @@
+ # (i.e. those handled in the os/utils.c options processing instead of in
+ #  the DDX-level options processing)
++if ENABLE_DOCS
+ include $(top_srcdir)/manpages.am
+ appman_PRE = Xserver.man
++endif ENABLE_DOCS 
diff --git a/contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/debian_libtool.patch b/contrib/packages/deb/ubuntu-trusty/debian/xorg-source-patches/debian_libtool.patch
new file mode 100644 (file)
index 0000000..7be0ba2
--- /dev/null
@@ -0,0 +1,52 @@
+--- a/ltmain.sh        2016-05-11 23:23:25.796742323 -0400
++++ b/ltmain.sh        2016-05-11 23:24:47.173010324 -0400
+@@ -6447,6 +6447,9 @@
+           # It is a libtool convenience library, so add in its objects.
+           func_append convenience " $ladir/$objdir/$old_library"
+           func_append old_convenience " $ladir/$objdir/$old_library"
++        elif test "$linkmode" != prog && test "$linkmode" != lib; then
++          func_fatal_error "\`$lib' is not a convenience library"
++        fi
+           tmp_libs=
+           for deplib in $dependency_libs; do
+             deplibs="$deplib $deplibs"
+@@ -6457,9 +6460,6 @@
+             fi
+             func_append tmp_libs " $deplib"
+           done
+-        elif test "$linkmode" != prog && test "$linkmode" != lib; then
+-          func_fatal_error "\`$lib' is not a convenience library"
+-        fi
+         continue
+       fi # $pass = conv
+--- a/m4/libtool.m4    2016-05-11 23:26:23.801328557 -0400
++++ b/m4/libtool.m4    2016-05-11 23:27:12.701489603 -0400
+@@ -4589,9 +4589,6 @@
+       ;;
+     esac
+     ;;
+-  linux* | k*bsd*-gnu | gnu*)
+-    _LT_TAGVAR(link_all_deplibs, $1)=no
+-    ;;
+   *)
+     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+     ;;
+@@ -4654,9 +4651,6 @@
+   openbsd*)
+     with_gnu_ld=no
+     ;;
+-  linux* | k*bsd*-gnu | gnu*)
+-    _LT_TAGVAR(link_all_deplibs, $1)=no
+-    ;;
+   esac
+   _LT_TAGVAR(ld_shlibs, $1)=yes
+@@ -5055,7 +5049,6 @@
+       if test "$aix_use_runtimelinking" = yes; then
+         shared_flag="$shared_flag "'${wl}-G'
+       fi
+-      _LT_TAGVAR(link_all_deplibs, $1)=no
+       else
+       # not using gcc
+       if test "$host_cpu" = ia64; then