[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xorg-server: Changes to 'ubuntu+1'



 debian/patches/xmir.patch |  129 +++++++++++++---------------------------------
 1 file changed, 38 insertions(+), 91 deletions(-)

New commits:
commit 09b040ed973684451db9f686d3bda3575fee1b77
Author: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Date:   Fri Jul 4 11:12:30 2014 +0200

    quilt refresh --strip-trailing-whitespaces on xmir.patch

diff --git a/debian/patches/xmir.patch b/debian/patches/xmir.patch
index f60216f..a91c52d 100644
--- a/debian/patches/xmir.patch
+++ b/debian/patches/xmir.patch
@@ -1,8 +1,6 @@
-diff --git a/configure.ac b/configure.ac
-index e5387bf..ec171d9 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -627,6 +627,7 @@ AC_ARG_ENABLE(linux_acpi, AS_HELP_STRING([--disable-linux-acpi], [Disable buildi
+@@ -632,6 +632,7 @@
  AC_ARG_ENABLE(linux_apm, AS_HELP_STRING([--disable-linux-apm], [Disable building APM support on Linux (if available).]), [enable_linux_apm=$enableval], [enable_linux_apm=yes])
  AC_ARG_ENABLE(systemd-logind, AS_HELP_STRING([--enable-systemd-logind], [Build systemd-logind support (default: auto)]), [SYSTEMD_LOGIND=$enableval], [SYSTEMD_LOGIND=auto])
  AC_ARG_ENABLE(suid-wrapper, AS_HELP_STRING([--enable-suid-wrapper], [Build suid-root wrapper for legacy driver support on rootless xserver systems (default: no)]), [SUID_WRAPPER=$enableval], [SUID_WRAPPER=no])
@@ -10,7 +8,7 @@ index e5387bf..ec171d9 100644
  
  dnl DDXes.
  AC_ARG_ENABLE(xorg,    	      AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto])
-@@ -1348,6 +1349,15 @@ if test "x$XINERAMA" = xyes; then
+@@ -1368,6 +1369,15 @@
  	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
  fi
  
@@ -20,13 +18,13 @@ index e5387bf..ec171d9 100644
 +        AC_SUBST([XMIR_CFLAGS])
 +        AC_DEFINE(XMIR, 1, [Support wayland mode])
 +	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES mirclient"
-+fi	      
++fi
 +AM_CONDITIONAL(XMIR, [test "x$XMIR" = xyes])
 +
  AM_CONDITIONAL(XACE, [test "x$XACE" = xyes])
  if test "x$XACE" = xyes; then
  	AC_DEFINE(XACE, 1, [Build X-ACE extension])
-@@ -2573,6 +2583,7 @@ hw/xfree86/utils/Makefile
+@@ -2594,6 +2604,7 @@
  hw/xfree86/utils/man/Makefile
  hw/xfree86/utils/cvt/Makefile
  hw/xfree86/utils/gtf/Makefile
@@ -34,11 +32,9 @@ index e5387bf..ec171d9 100644
  hw/dmx/config/Makefile
  hw/dmx/config/man/Makefile
  hw/dmx/doc/Makefile
-diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
-index c5992c3..c9a077f 100644
 --- a/hw/xfree86/Makefile.am
 +++ b/hw/xfree86/Makefile.am
-@@ -34,16 +34,20 @@ if INT10MODULE
+@@ -34,16 +34,20 @@
  INT10_SUBDIR = int10
  endif
  
@@ -61,11 +57,9 @@ index c5992c3..c9a077f 100644
  
  bin_PROGRAMS = Xorg
  nodist_Xorg_SOURCES = sdksyms.c
-diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
-index 2adef44..f8c3a7e 100644
 --- a/hw/xfree86/common/xf86Config.c
 +++ b/hw/xfree86/common/xf86Config.c
-@@ -118,6 +118,7 @@ static ModuleDefault ModuleDefaults[] = {
+@@ -118,6 +118,7 @@
      {.name = "fb",.toLoad = TRUE,.load_opt = NULL},
      {.name = "shadow",.toLoad = TRUE,.load_opt = NULL},
  #endif
@@ -73,7 +67,7 @@ index 2adef44..f8c3a7e 100644
      {.name = NULL,.toLoad = FALSE,.load_opt = NULL}
  };
  
-@@ -272,6 +273,17 @@ xf86ModulelistFromConfig(void ***optlist)
+@@ -272,6 +273,17 @@
          return NULL;
      }
  
@@ -91,11 +85,9 @@ index 2adef44..f8c3a7e 100644
      if (xf86configptr->conf_modules) {
          /* Walk the disable list and let people know what we've parsed to
           * not be loaded 
-diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
-index 35a673d..082e454 100644
 --- a/hw/xfree86/common/xf86Events.c
 +++ b/hw/xfree86/common/xf86Events.c
-@@ -614,6 +614,10 @@ xf86VTSwitch(void)
+@@ -614,6 +614,10 @@
  {
      DebugF("xf86VTSwitch()\n");
  
@@ -106,22 +98,18 @@ index 35a673d..082e454 100644
  #ifdef XFreeXDGA
      if (!DGAVTSwitch())
          return;
-diff --git a/hw/xfree86/common/xf86Globals.c b/hw/xfree86/common/xf86Globals.c
-index 984c39b..9b23d9a 100644
 --- a/hw/xfree86/common/xf86Globals.c
 +++ b/hw/xfree86/common/xf86Globals.c
-@@ -204,3 +204,6 @@ Bool xf86VidModeAllowNonLocal = FALSE;
+@@ -207,3 +207,6 @@
  #endif
  RootWinPropPtr *xf86RegisteredPropertiesTable = NULL;
  Bool xorgHWAccess = FALSE;
 +Bool xorgMir = FALSE;
 +const char *mirID = NULL;
 +const char *mirSocket = NULL;
-diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
-index e2b32a0..d942ffd 100644
 --- a/hw/xfree86/common/xf86Helper.c
 +++ b/hw/xfree86/common/xf86Helper.c
-@@ -100,7 +100,14 @@ xf86DeleteDriver(int drvIndex)
+@@ -100,7 +100,14 @@
          if (xf86DriverList[drvIndex]->module)
              UnloadModule(xf86DriverList[drvIndex]->module);
          free(xf86DriverList[drvIndex]);
@@ -137,11 +125,9 @@ index e2b32a0..d942ffd 100644
      }
  }
  
-diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
-index 5a45004..931381d 100644
 --- a/hw/xfree86/common/xf86Init.c
 +++ b/hw/xfree86/common/xf86Init.c
-@@ -540,7 +540,7 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
+@@ -564,7 +564,7 @@
           * needed at this early stage.
           */
  
@@ -150,13 +136,13 @@ index 5a45004..931381d 100644
              xorgHWFlags flags = HW_IO;
  
              if (xf86DriverList[i]->Identify != NULL)
-@@ -551,12 +551,22 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
+@@ -575,12 +575,22 @@
                                                GET_REQUIRED_HW_INTERFACES,
                                                &flags);
  
 +            if (xorgMir &&
 +                (NEED_IO_ENABLED(flags) || !(flags & HW_SKIP_CONSOLE))) {
-+                
++
 +                ErrorF("Driver needs flags %lu, incompatible with nested, deleting.\n", flags);
 +                xf86DeleteDriver(i);
 +                continue;
@@ -173,7 +159,7 @@ index 5a45004..931381d 100644
          }
  
          if (xorgHWOpenConsole)
-@@ -644,9 +654,13 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
+@@ -675,9 +685,13 @@
          }
  
          /* Remove (unload) drivers that are not required */
@@ -189,7 +175,7 @@ index 5a45004..931381d 100644
  
          /*
           * At this stage we know how many screens there are.
-@@ -1479,6 +1493,17 @@ ddxProcessArgument(int argc, char **argv, int i)
+@@ -1515,6 +1529,17 @@
          xf86Info.ShareVTs = TRUE;
          return 1;
      }
@@ -207,7 +193,7 @@ index 5a45004..931381d 100644
  
      /* OS-specific processing */
      return xf86ProcessArgument(argc, argv, i);
-@@ -1552,6 +1577,8 @@ ddxUseMsg(void)
+@@ -1588,6 +1613,8 @@
      ErrorF
          ("-novtswitch            don't automatically switch VT at reset & exit\n");
      ErrorF("-sharevts              share VTs with another X server\n");
@@ -216,11 +202,9 @@ index 5a45004..931381d 100644
      /* OS-specific usage */
      xf86UseMsg();
      ErrorF("\n");
-diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h
-index 6e374eb..226ae5d 100644
 --- a/hw/xfree86/common/xf86Priv.h
 +++ b/hw/xfree86/common/xf86Priv.h
-@@ -91,6 +91,11 @@ extern _X_EXPORT int xf86NumScreens;
+@@ -93,6 +93,11 @@
  extern _X_EXPORT const char *xf86VisualNames[];
  extern _X_EXPORT int xf86Verbose;       /* verbosity level */
  extern _X_EXPORT int xf86LogVerbose;    /* log file verbosity level */
@@ -232,7 +216,7 @@ index 6e374eb..226ae5d 100644
  
  extern _X_EXPORT RootWinPropPtr *xf86RegisteredPropertiesTable;
  
-@@ -148,6 +153,7 @@ extern _X_EXPORT int (*xf86PMGetEventFromOs) (int fd, pmEvent * events,
+@@ -150,6 +155,7 @@
                                                int num);
  extern _X_EXPORT pmWait (*xf86PMConfirmEventToOs) (int fd, pmEvent event);
  
@@ -240,17 +224,15 @@ index 6e374eb..226ae5d 100644
  /* xf86Helper.c */
  extern _X_EXPORT void
  xf86LogInit(void);
-diff --git a/hw/xfree86/ramdac/xf86Cursor.c b/hw/xfree86/ramdac/xf86Cursor.c
-index fac6822..7becd5f 100644
 --- a/hw/xfree86/ramdac/xf86Cursor.c
 +++ b/hw/xfree86/ramdac/xf86Cursor.c
-@@ -58,7 +58,12 @@ xf86InitCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr)
+@@ -58,7 +58,12 @@
      xf86CursorScreenPtr ScreenPriv;
      miPointerScreenPtr PointPriv;
  
 -    if (!xf86InitHardwareCursor(pScreen, infoPtr))
 +    infoPtr->pScrn = xf86ScreenToScrn(pScreen);
-+    
++
 +    /* If we can't create a hardware cursor don't bother initialising HW cursor support */
 +    if (infoPtr->MaxWidth != 0 &&
 +        infoPtr->MaxHeight != 0 &&
@@ -258,11 +240,9 @@ index fac6822..7becd5f 100644
          return FALSE;
  
      if (!dixRegisterPrivateKey(&xf86CursorScreenKeyRec, PRIVATE_SCREEN, 0))
-diff --git a/hw/xfree86/ramdac/xf86HWCurs.c b/hw/xfree86/ramdac/xf86HWCurs.c
-index 953c86a..d8994be 100644
 --- a/hw/xfree86/ramdac/xf86HWCurs.c
 +++ b/hw/xfree86/ramdac/xf86HWCurs.c
-@@ -114,8 +114,6 @@ xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr)
+@@ -114,8 +114,6 @@
          infoPtr->RealizeCursor = RealizeCursorInterleave0;
      }
  
@@ -271,9 +251,6 @@ index 953c86a..d8994be 100644
      return TRUE;
  }
  
-diff --git a/hw/xfree86/xmir/#xmir.h# b/hw/xfree86/xmir/#xmir.h#
-new file mode 100644
-index 0000000..1ca78b1
 --- /dev/null
 +++ b/hw/xfree86/xmir/#xmir.h#
 @@ -0,0 +1,14 @@
@@ -283,7 +260,7 @@ index 0000000..1ca78b1
 +    uint32_t stride;
 +} MirBufferInfo;
 +
-+typedef void (*XMirBufferReceivedProcPtr)(WindowPtr window, 
++typedef void (*XMirBufferReceivedProcPtr)(WindowPtr window,
 +                                          MirBufferInfo *info);
 +
 +typedef struct xmir_screen {
@@ -291,9 +268,6 @@ index 0000000..1ca78b1
 +    MirSurface *root_surf;
 +    RealizeWindowProcPtr RealizeWindow;
 +} xmir_screen;
-diff --git a/hw/xfree86/xmir/Makefile.am b/hw/xfree86/xmir/Makefile.am
-new file mode 100644
-index 0000000..80715f8
 --- /dev/null
 +++ b/hw/xfree86/xmir/Makefile.am
 @@ -0,0 +1,26 @@
@@ -323,9 +297,6 @@ index 0000000..80715f8
 +	xmir-private.h
 +
 +sdk_HEADERS = xmir.h
-diff --git a/hw/xfree86/xmir/xmir-output.c b/hw/xfree86/xmir/xmir-output.c
-new file mode 100644
-index 0000000..6cfb9da
 --- /dev/null
 +++ b/hw/xfree86/xmir/xmir-output.c
 @@ -0,0 +1,678 @@
@@ -654,7 +625,7 @@ index 0000000..6cfb9da
 +    const char *error_msg;
 +
 +    if (mode->HDisplay == 0 || mode->VDisplay == 0)
-+        return FALSE;    
++        return FALSE;
 +
 +    xf86Msg(X_INFO, "Initial configuration for crtc %p:\n", crtc);
 +    xmir_dump_config(xmir_crtc->config);
@@ -820,7 +791,7 @@ index 0000000..6cfb9da
 +static void
 +xmir_output_destroy(xf86OutputPtr xf86output)
 +{
-+    /* The MirDisplayOutput* in driver_private gets cleaned up by 
++    /* The MirDisplayOutput* in driver_private gets cleaned up by
 +       mir_display_config_destroy() */
 +}
 +
@@ -917,7 +888,7 @@ index 0000000..6cfb9da
 +    xmir_update_config(crtc_config);
 +
 +    /* Trigger RANDR refresh */
-+    RRGetInfo(xf86ScrnToScreen(scrn), TRUE);   
++    RRGetInfo(xf86ScrnToScreen(scrn), TRUE);
 +}
 +
 +static void
@@ -1004,12 +975,9 @@ index 0000000..6cfb9da
 +
 +    /* TODO: Use initial Mir state rather than setting up our own */
 +    xf86InitialConfiguration(scrn, TRUE);
-+  
++
 +    return TRUE;
 +}
-diff --git a/hw/xfree86/xmir/xmir-private.h b/hw/xfree86/xmir/xmir-private.h
-new file mode 100644
-index 0000000..15d89f0
 --- /dev/null
 +++ b/hw/xfree86/xmir/xmir-private.h
 @@ -0,0 +1,106 @@
@@ -1119,9 +1087,6 @@ index 0000000..15d89f0
 +xmir_process_from_eventloop(void);
 +
 + #endif /* _MIR_PRIVATE_H */
-diff --git a/hw/xfree86/xmir/xmir-thread-proxy.c b/hw/xfree86/xmir/xmir-thread-proxy.c
-new file mode 100644
-index 0000000..2e60aec
 --- /dev/null
 +++ b/hw/xfree86/xmir/xmir-thread-proxy.c
 @@ -0,0 +1,124 @@
@@ -1218,7 +1183,7 @@ index 0000000..2e60aec
 +}
 +
 +void
-+xmir_post_to_eventloop(xmir_marshall_handler *handler, void *msg) 
++xmir_post_to_eventloop(xmir_marshall_handler *handler, void *msg)
 +{
 +	ssize_t written;
 +	const int total_size = sizeof *handler + handler->msg_size;
@@ -1249,9 +1214,6 @@ index 0000000..2e60aec
 +	}
 +}
 +
-diff --git a/hw/xfree86/xmir/xmir-window.c b/hw/xfree86/xmir/xmir-window.c
-new file mode 100644
-index 0000000..18a19bf
 --- /dev/null
 +++ b/hw/xfree86/xmir/xmir-window.c
 @@ -0,0 +1,343 @@
@@ -1590,7 +1552,7 @@ index 0000000..18a19bf
 +    xmir->DestroyWindow = screen->DestroyWindow;
 +    screen->DestroyWindow = xmir_destroy_window;
 +
-+    xmir->submit_rendering_handler = 
++    xmir->submit_rendering_handler =
 +        xmir_register_handler(&xmir_handle_buffer_available,
 +                              sizeof (xmir_window *));
 +    if (xmir->submit_rendering_handler == NULL)
@@ -1598,9 +1560,6 @@ index 0000000..18a19bf
 +
 +    return TRUE;
 +}
-diff --git a/hw/xfree86/xmir/xmir.c b/hw/xfree86/xmir/xmir.c
-new file mode 100644
-index 0000000..ceb81e1
 --- /dev/null
 +++ b/hw/xfree86/xmir/xmir.c
 @@ -0,0 +1,263 @@
@@ -1655,7 +1614,7 @@ index 0000000..ceb81e1
 +#include <mir_toolkit/mir_client_library_drm.h>
 +
 +static DevPrivateKeyRec xmir_screen_private_key;
-+/* 
++/*
 + * We have only a single Mir connection, regardless of how many
 + * drivers load.
 + */
@@ -1781,7 +1740,7 @@ index 0000000..ceb81e1
 +        xf86Msg(X_WARNING, "xf86Cursor initialisation failed\n");
 +
 +    /* Hook up focus -> VT switch proxy */
-+    xmir->focus_event_handler = 
++    xmir->focus_event_handler =
 +        xmir_register_handler(&xmir_handle_focus_event,
 +                              sizeof(Bool));
 +    if (xmir->focus_event_handler == NULL)
@@ -1803,7 +1762,7 @@ index 0000000..ceb81e1
 +_X_EXPORT void
 +xmir_screen_destroy(xmir_screen *xmir)
 +{
-+    
++
 +}
 +
 +_X_EXPORT void
@@ -1839,7 +1798,7 @@ index 0000000..ceb81e1
 +xMirSetup(void* module, void* opts, int *errmaj, int *errmin)
 +{
 +    static Bool setupDone = FALSE;
-+    
++
 +    if (setupDone) {
 +        if (errmaj)
 +            *errmaj = LDR_ONCEONLY;
@@ -1856,7 +1815,7 @@ index 0000000..ceb81e1
 +        return NULL;
 +    }
 +
-+    xmir_init_thread_to_eventloop();    
++    xmir_init_thread_to_eventloop();
 +
 +    setupDone = TRUE;
 +
@@ -1867,9 +1826,6 @@ index 0000000..ceb81e1
 +xMirTeardown(void* module)
 +{
 +}
-diff --git a/hw/xfree86/xmir/xmir.h b/hw/xfree86/xmir/xmir.h
-new file mode 100644
-index 0000000..78396a3
 --- /dev/null
 +++ b/hw/xfree86/xmir/xmir.h
 @@ -0,0 +1,103 @@
@@ -1943,7 +1899,7 @@ index 0000000..78396a3
 +
 +_X_EXPORT void
 +xmir_screen_close(ScreenPtr screen, xmir_screen *xmir);
-+	
++
 +_X_EXPORT void
 +xmir_screen_destroy(xmir_screen *xmir);
 +
@@ -1976,11 +1932,9 @@ index 0000000..78396a3
 +xmir_screen_for_each_damaged_window(xmir_screen *xmir, xmir_window_proc callback);
 +
 +#endif /* _XMIR_H */
-diff --git a/include/list.h b/include/list.h
-index 455c670..c5f8d11 100644
 --- a/include/list.h
 +++ b/include/list.h
-@@ -184,6 +184,14 @@ __xorg_list_del(struct xorg_list *prev, struct xorg_list *next)
+@@ -184,6 +184,14 @@
      prev->next = next;
  }
  
@@ -1995,8 +1949,6 @@ index 455c670..c5f8d11 100644
  /**
   * Remove the element from the list it is in. Using this function will reset
   * the pointers to/from this element so it is removed from the list. It does
-diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in
-index 8bf9d38..9bcfe7c 100644
 --- a/include/xorg-server.h.in
 +++ b/include/xorg-server.h.in
 @@ -227,4 +227,7 @@
@@ -2007,11 +1959,9 @@ index 8bf9d38..9bcfe7c 100644
 +#undef XMIR
 +
  #endif /* _XORG_SERVER_H_ */
-diff --git a/test/Makefile.am b/test/Makefile.am
-index 32edc7a..39c86ca 100644
 --- a/test/Makefile.am
 +++ b/test/Makefile.am
-@@ -6,7 +6,12 @@ if XORG
+@@ -6,7 +6,12 @@
  # For now, requires xf86 ddx, could be adjusted to use another
  SUBDIRS += xi2
  noinst_PROGRAMS += xkb input xtest misc fixes xfree86 hashtabletest os signal-logging touch
@@ -2025,7 +1975,7 @@ index 32edc7a..39c86ca 100644
  check_LTLIBRARIES = libxservertest.la
  
  TESTS=$(noinst_PROGRAMS)
-@@ -37,6 +42,8 @@ touch_LDADD=$(TEST_LDADD)
+@@ -37,6 +42,8 @@
  signal_logging_LDADD=$(TEST_LDADD)
  hashtabletest_LDADD=$(TEST_LDADD)
  os_LDADD=$(TEST_LDADD)
@@ -2034,9 +1984,6 @@ index 32edc7a..39c86ca 100644
  
  libxservertest_la_LIBADD = $(XSERVER_LIBS)
  if XORG
-diff --git a/test/xmir-thread-proxy.c b/test/xmir-thread-proxy.c
-new file mode 100644
-index 0000000..7cf19cf
 --- /dev/null
 +++ b/test/xmir-thread-proxy.c
 @@ -0,0 +1,154 @@
@@ -2176,7 +2123,7 @@ index 0000000..7cf19cf
 +
 +	xmir_process_from_eventloop();
 +
-+	assert(check == NUM_THREADS);	
++	assert(check == NUM_THREADS);
 +}
 +
 +static void


Reply to: