[Glibc-bsd-commits] r1658 - trunk/web/patches
Petr Salinger
ps-guest at costa.debian.org
Fri Sep 22 08:37:54 UTC 2006
Author: ps-guest
Date: 2006-09-22 08:37:53 +0000 (Fri, 22 Sep 2006)
New Revision: 1658
Added:
trunk/web/patches/xorg-server.diff
Log:
* add xorg-server.diff
Added: trunk/web/patches/xorg-server.diff
===================================================================
--- trunk/web/patches/xorg-server.diff (rev 0)
+++ trunk/web/patches/xorg-server.diff 2006-09-22 08:37:53 UTC (rev 1658)
@@ -0,0 +1,232 @@
+
+Status: in BTS #363517
+
+diff -u xorg-server-1.1.1/debian/patches/series xorg-server-1.1.1/debian/patches/series
+--- xorg-server-1.1.1/debian/patches/series
++++ xorg-server-1.1.1/debian/patches/series
+@@ -19,0 +20 @@
++20_kbsd.patch
+diff -u xorg-server-1.1.1/debian/xserver-xorg-core.install xorg-server-1.1.1/debian/xserver-xorg-core.install
+--- xorg-server-1.1.1/debian/xserver-xorg-core.install
++++ xorg-server-1.1.1/debian/xserver-xorg-core.install
+@@ -2,6 +2,7 @@
+ usr/lib/xorg/modules/extensions/*.so
+ usr/lib/xorg/modules/fonts/*
+ usr/lib/xorg/modules/linux/*.so
++usr/lib/xorg/modules/freebsd/*.so
+ usr/lib/xorg/modules/multimedia/*.so
+ usr/bin/Xorg
+ usr/share/man/man1/Xserver.1
+only in patch2:
+unchanged:
+--- xorg-server-1.1.1.orig/debian/patches/20_kbsd.patch
++++ xorg-server-1.1.1/debian/patches/20_kbsd.patch
+@@ -0,0 +1,126 @@
++Index: xorg-server-1.1.1/configure.ac
++===================================================================
++--- xorg-server-1.1.1.orig/configure.ac 2006-09-22 09:16:33.065267000 +0200
+++++ xorg-server-1.1.1/configure.ac 2006-09-22 09:17:08.000000000 +0200
++@@ -246,7 +246,10 @@
++ dnl it would be nice to autodetect these *CONS_SUPPORTs
++ case $host_os in
++ *freebsd*)
++- AC_DEFINE(CSRG_BASED, 1, [System is BSD-like])
+++ case $host_os in
+++ kfreebsd*-gnu) ;;
+++ *) AC_DEFINE(CSRG_BASED, 1, [System is BSD-like]) ;;
+++ esac
++ AC_DEFINE(PCCONS_SUPPORT, 1, [System has PC console])
++ AC_DEFINE(PCVT_SUPPORT, 1, [System has PCVT console])
++ AC_DEFINE(SYSCONS_SUPPORT, 1, [System has syscons console])
++@@ -1080,7 +1083,7 @@
++ ;;
++ esac
++ ;;
++- freebsd*)
+++ freebsd* | kfreebsd*-gnu)
++ XORG_OS="freebsd"
++ XORG_OS_SUBDIR="bsd"
++ XORG_OS_KBD="BSD"
++@@ -1179,7 +1182,7 @@
++ ;;
++ powerpc*)
++ case $host_os in
++- linux*|freebsd*|netbsd*|openbsd*)
+++ linux*|freebsd*|netbsd*|openbsd*|kfreebsd*-gnu)
++ ;;
++ *)
++ xorg_bus_ppcpci="yes"
++@@ -1192,7 +1195,7 @@
++ ;;
++ x86_64*|amd64*)
++ case $host_os in
++- freebsd*)
+++ freebsd*|kfreebsd*-gnu)
++ # FreeBSD uses the system pci interface
++ ;;
++ *)
++@@ -1437,7 +1440,11 @@
++
++ AC_CHECK_HEADERS([sys/vm86.h sys/io.h])
++ if test "$ac_cv_header_sys_vm86_h" = yes; then
++- AC_DEFINE(KDRIVEVESA, 1, [Build VESA-based kdrive servers])
+++ case $host_os in
+++ kfreebsd*-gnu) kdrivevesa=no ;;
+++ *) AC_DEFINE(KDRIVEVESA, 1, [Build VESA-based kdrive servers])
+++ kdrivevesa=yes;;
+++ esac
++ fi
++
++ AC_CHECK_HEADERS([linux/fb.h])
++@@ -1477,7 +1484,7 @@
++ AC_SUBST(KDRIVE_LIBS)
++ AM_CONDITIONAL(TSLIB, false)
++ AM_CONDITIONAL(H3600_TS, false)
++-AM_CONDITIONAL(KDRIVEVESA, [test x"$ac_cv_header_sys_vm86_h" = xyes])
+++AM_CONDITIONAL(KDRIVEVESA, [test x"$kdrivevesa" = xyes])
++ AM_CONDITIONAL(KDRIVEFBDEV, [test x"$ac_cv_header_linux_fb_h" = xyes])
++ #AM_CONDITIONAL(KDRIVEVESA, false)
++ #AM_CONDITIONAL(KDRIVEFBDEV, false)
++@@ -1532,7 +1539,7 @@
++ cygwin*) ;;
++ solaris*) ;;
++ darwin*) ;;
++- *bsd*) ;;
+++ freebsd*|netbsd*|openbsd*) ;;
++ *)
++ AC_DEFINE(_POSIX_SOURCE, 1, [POSIX-compliant source])
++ AC_DEFINE(_XOPEN_SOURCE, 500, [X/Open-compliant source])
++Index: xorg-server-1.1.1/hw/xfree86/os-support/bus/Pci.h
++===================================================================
++--- xorg-server-1.1.1.orig/hw/xfree86/os-support/bus/Pci.h 2006-09-22 09:16:33.106722000 +0200
+++++ xorg-server-1.1.1/hw/xfree86/os-support/bus/Pci.h 2006-09-22 09:17:08.000000000 +0200
++@@ -332,7 +332,7 @@
++ # define ARCH_PCI_PCI_BRIDGE sparcPciPciBridge
++ # endif
++ #elif defined(__amd64__) || defined(__amd64)
++-# if defined(__FreeBSD__)
+++# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++ # define ARCH_PCI_INIT freebsdPciInit
++ # else
++ # define ARCH_PCI_INIT ix86PciInit
++Index: xorg-server-1.1.1/GL/glx/indirect_dispatch_swap.c
++===================================================================
++--- xorg-server-1.1.1.orig/GL/glx/indirect_dispatch_swap.c 2006-09-22 09:16:33.182567000 +0200
+++++ xorg-server-1.1.1/GL/glx/indirect_dispatch_swap.c 2006-09-22 09:17:08.000000000 +0200
++@@ -28,7 +28,7 @@
++ #include <X11/Xmd.h>
++ #include <GL/gl.h>
++ #include <GL/glxproto.h>
++-#ifdef __linux__
+++#if defined (__linux__) || defined (__GLIBC__)
++ #include <byteswap.h>
++ #elif defined(__OpenBSD__)
++ #include <sys/endian.h>
++Index: xorg-server-1.1.1/GL/glx/indirect_util.c
++===================================================================
++--- xorg-server-1.1.1.orig/GL/glx/indirect_util.c 2006-09-22 09:16:33.241833000 +0200
+++++ xorg-server-1.1.1/GL/glx/indirect_util.c 2006-09-22 09:17:08.000000000 +0200
++@@ -28,7 +28,7 @@
++ #include <X11/Xmd.h>
++ #include <GL/gl.h>
++ #include <GL/glxproto.h>
++-#ifdef __linux__
+++#if defined (__linux__) || defined (__GLIBC__)
++ #include <byteswap.h>
++ #elif defined(__OpenBSD__)
++ #include <sys/endian.h>
++Index: xorg-server-1.1.1/hw/kdrive/linux/agp.c
++===================================================================
++--- xorg-server-1.1.1.orig/hw/kdrive/linux/agp.c 2006-09-22 09:16:33.153875000 +0200
+++++ xorg-server-1.1.1/hw/kdrive/linux/agp.c 2006-09-22 09:17:08.000000000 +0200
++@@ -65,7 +65,7 @@
++
++ #include <linux/agpgart.h>
++
++-#elif defined(__FreeBSD__)
+++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++ #include <sys/ioctl.h>
++ #include <sys/agpio.h>
++ #endif
+diff -u xorg-server-1.1.1/configure xorg-server-1.1.1/configure
+--- xorg-server-1.1.1/configure
++++ xorg-server-1.1.1/configure
+@@ -26168,11 +26168,14 @@
+ KDRIVE_HW=no
+ case $host_os in
+ *freebsd*)
+-
++ case $host_os in
++ kfreebsd*-gnu) ;;
++ *)
+ cat >>confdefs.h <<\_ACEOF
+ #define CSRG_BASED 1
+ _ACEOF
+-
++ ;;
++ esac
+
+ cat >>confdefs.h <<\_ACEOF
+ #define PCCONS_SUPPORT 1
+@@ -32213,7 +32216,7 @@
+ ;;
+ esac
+ ;;
+- freebsd*)
++ freebsd* | kfreebsd*-gnu)
+ XORG_OS="freebsd"
+ XORG_OS_SUBDIR="bsd"
+ XORG_OS_KBD="BSD"
+@@ -32478,7 +32481,7 @@
+ ;;
+ powerpc*)
+ case $host_os in
+- linux*|freebsd*|netbsd*|openbsd*)
++ linux*|freebsd*|netbsd*|openbsd*|kfreebsd*-gnu)
+ ;;
+ *)
+ xorg_bus_ppcpci="yes"
+@@ -32491,7 +32494,7 @@
+ ;;
+ x86_64*|amd64*)
+ case $host_os in
+- freebsd*)
++ freebsd*|kfreebsd*-gnu)
+ # FreeBSD uses the system pci interface
+ ;;
+ *)
+@@ -33889,11 +33892,15 @@
+ done
+
+ if test "$ac_cv_header_sys_vm86_h" = yes; then
+-
++ case $host_os in
++ kfreebsd*-gnu) kdrivevesa=no ;;
++ *)
+ cat >>confdefs.h <<\_ACEOF
+ #define KDRIVEVESA 1
+ _ACEOF
+
++ kdrivevesa=yes;;
++ esac
+ fi
+
+
+@@ -34363,7 +34370,7 @@
+
+
+
+-if test x"$ac_cv_header_sys_vm86_h" = xyes; then
++if test x"$kdrivevesa" = xyes; then
+ KDRIVEVESA_TRUE=
+ KDRIVEVESA_FALSE='#'
+ else
+@@ -34508,7 +34515,7 @@
+ cygwin*) ;;
+ solaris*) ;;
+ darwin*) ;;
+- *bsd*) ;;
++ freebsd*|netbsd*|openbsd*) ;;
+ *)
+
+ cat >>confdefs.h <<\_ACEOF
More information about the Glibc-bsd-commits
mailing list