Commit 9f226601 authored by Mike Gabriel's avatar Mike Gabriel

Adapt path names in FreeNX patches to meet requirements for source tree of this package.

parent 4cffd99f
......@@ -19,6 +19,8 @@ nx-libs (2:3.5.0-0~x2go2) UNRELEASED; urgency=low
- 108_nxagent_wine-close-delay.patch
- 109_nxagent_locale-utf8-compound-text.patch
- 200_nxagent_unbrand-agent.patch
* Adapt path names in FreeNX patches to meet requirements for source tree of this
package.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 28 Dec 2011 19:06:26 +0100
......
......@@ -3,8 +3,8 @@
## All lines beginning with `## DP:' are a description of the patch.
## DP: Change the path to the keyboard configuration file
--- a/programs/Xserver/os/oscolor.c
+++ b/programs/Xserver/os/oscolor.c
--- a/nx-X11/programs/Xserver/os/oscolor.c
+++ b/nx-X11/programs/Xserver/os/oscolor.c
@@ -53,7 +53,7 @@
#include <sys/stat.h>
#include <unistd.h>
......
......@@ -3,8 +3,8 @@
## All lines beginning with `## DP:' are a description of the patch.
## DP: Change the path to the keyboard configuration file
--- a/programs/Xserver/Xext/security.c
+++ b/programs/Xserver/Xext/security.c
--- a/nx-X11/programs/Xserver/Xext/security.c
+++ b/nx-X11/programs/Xserver/Xext/security.c
@@ -86,7 +86,7 @@
#ifdef NXAGENT_SERVER
......
--- a/nxagent/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Keyboard.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -136,7 +136,7 @@
#define XKB_ALTERNATE_BASE_DIRECTORY "/usr/X11R6/lib/X11/xkb"
#endif
......@@ -9,7 +9,7 @@
#endif
#ifndef XKB_DFLT_RULES_FILE
#define XKB_DFLT_RULES_FILE "xfree86"
@@ -978,8 +978,7 @@
@@ -985,8 +985,7 @@
XkbGetControls(nxagentDisplay, XkbAllControlsMask, xkb);
......@@ -19,7 +19,7 @@
nxagentXkbConfigFilePath = malloc((nxagentXkbConfigFilePathSize + 1) * sizeof(char));
@@ -988,9 +987,7 @@
@@ -995,9 +994,7 @@
FatalError("nxagentKeyboardProc: malloc failed.");
}
......
## 90_enable_debug.dpatch by <marceloshima@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
--- a/nxagent/programs/Xserver/hw/nxagent/Imakefile 2010-09-17 14:49:52.000000000 +0200
+++ b/nxagent/programs/Xserver/hw/nxagent/Imakefile 2010-09-17 15:02:43.113911514 +0200
@@ -205,7 +205,8 @@
--- a/nx-X11/programs/Xserver/hw/nxagent/Imakefile
+++ b/nx-X11/programs/Xserver/hw/nxagent/Imakefile
@@ -203,7 +203,8 @@
-DNXAGENT_ONSTART \
-DNXAGENT_SPLASH \
-DNXAGENT_ARTSD \
- -UNX_DEBUG_INPUT \
+ -DNX_DEBUG_INPUT \
+ -DDEBUG \
-DRANDR_10_INTERFACE \
-DRANDR_12_INTERFACE \
-UPANORAMIX \
-UDEBUG_TREE
......@@ -4,8 +4,8 @@
## All lines beginning with `## DP:' are a description of the patch.
## DP: Export the client keyboard configurations to a file
--- a/nxagent/programs/Xserver/hw/nxagent/Error.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Error.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.c
@@ -497,7 +497,7 @@
return rootPath;
}
......@@ -15,17 +15,17 @@
{
char *rootPath;
--- a/nxagent/programs/Xserver/hw/nxagent/Error.h
+++ b/nxagent/programs/Xserver/hw/nxagent/Error.h
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.h
@@ -34,4 +34,6 @@
void nxagentEndRedirectToClientsLog(void);
+char *nxagentGetSessionPath(void);
+
#endif /* __Error_H__ */
--- a/nxagent/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Keyboard.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -52,6 +52,7 @@
#include "Keyboard.h"
#include "Events.h"
......
--- a/nxagent/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Clipboard.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -166,7 +166,9 @@
if (target == XA_STRING) return True;
......
--- a/nxagent/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Clipboard.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1226,10 +1226,11 @@
Atom xa_STRING[4];
xEvent x;
......@@ -15,8 +15,8 @@
ChangeWindowProperty(pWin,
property,
--- a/nxagent/programs/Xserver/hw/nxagent/Image.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Image.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Image.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Image.c
@@ -644,6 +644,10 @@
pDrawable -> depth != 1 &&
nxagentOption(DeferLevel) >= 1)
......
--- a/nxagent/programs/Xserver/hw/nxagent/Window.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Window.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -176,6 +176,14 @@
static int nxagentForceExposure(WindowPtr pWin, pointer ptr);
......
--- a/nxagent/programs/Xserver/hw/nxagent/Init.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Init.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c
@@ -64,6 +64,9 @@
#include "NX.h"
#include "NXlib.h"
......@@ -31,8 +31,8 @@
}
void InitInput(argc, argv)
--- a/nxagent/programs/Xserver/hw/nxagent/Rootless.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Rootless.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c
@@ -32,6 +32,10 @@
#include "NXlib.h"
......
--- a/nxagent/programs/Xserver/hw/nxagent/Screen.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Screen.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1539,7 +1539,20 @@
#ifdef TEST
fprintf(stderr, "nxagentOpenScreen: Created new default window with id [%ld].\n",
......@@ -21,8 +21,8 @@
if (nxagentOption(Fullscreen))
{
--- a/nxagent/programs/Xserver/hw/nxagent/Screen.h
+++ b/nxagent/programs/Xserver/hw/nxagent/Screen.h
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.h
@@ -36,6 +36,8 @@
#define MIN_NXAGENT_HEIGHT 60
#define NXAGENT_FRAME_WIDTH 2000
......@@ -32,8 +32,8 @@
#define nxagentSetPrintGeometry(screen) \
nxagentPrintGeometryFlags = (1 << (screen));
--- a/nxagent/programs/Xserver/hw/nxagent/Display.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Display.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -1861,7 +1861,7 @@
strncpy(default_path, "", 255);
......@@ -43,8 +43,8 @@
strcat(default_path,icon_filename);
if ((icon_fp = fopen(default_path, "r")) == NULL)
--- a/nxagent/programs/Xserver/hw/nxagent/Splash.c
+++ b/nxagent/programs/Xserver/hw/nxagent/Splash.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Splash.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.c
@@ -204,6 +204,7 @@
nxagentPixmapLogo = XCreatePixmap(nxagentDisplay, win, width, height, nxagentLogoDepth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment