aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2012-02-14 22:59:50 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-02-14 22:59:58 +0100
commit8d6d0a921889498601cef9176202a456af881a9e (patch)
tree546b7bc62b6fbb63a5775ecdd04e187c20bff813
parent01e97f0f829b90411a15c70b082a7823a26ae61f (diff)
downloadnx-libs-8d6d0a921889498601cef9176202a456af881a9e.tar.gz
nx-libs-8d6d0a921889498601cef9176202a456af881a9e.tar.bz2
nx-libs-8d6d0a921889498601cef9176202a456af881a9e.zip
Add patch: 301_nx-X11_use-shared-libs.full.diff, use shared libraries from distribution rather then libs included in source tree.
-rw-r--r--debian/changelog2
-rw-r--r--debian/patches/301_nx-X11_use-shared-libs.full.diff106
-rw-r--r--debian/patches/series1
3 files changed, 109 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index c1658fb43..b27e29899 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,8 @@ nx-libs (2:3.5.0.11-0) UNRELEASED; urgency=low
configure args.
* Add patch: 030_nx-X11_configure-args.diff. Allow passing of configure args.
* Add patch: 031_nx-X11_parallel-make.diff, enable parallel make.
+ * Add patch: 301_nx-X11_use-shared-libs.full.diff, use shared libraries from
+ distribution rather then libs included in source tree.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 07 Feb 2012 13:48:19 +0100
diff --git a/debian/patches/301_nx-X11_use-shared-libs.full.diff b/debian/patches/301_nx-X11_use-shared-libs.full.diff
new file mode 100644
index 000000000..200147449
--- /dev/null
+++ b/debian/patches/301_nx-X11_use-shared-libs.full.diff
@@ -0,0 +1,106 @@
+Description: Use shared libraries
+ Many distributions have a policy to reduce code duplications.
+ One means to avoid such duplications is to use shared libraries
+ instead of using libs that are ofter shipped for convenience.
+ .
+ Fedora:
+ http://fedoraproject.org/wiki/Packaging:Guidelines#Shared_Libraries
+ .
+ Debian (Section 10.7.4 of Debian policy):
+ http://www.debian.org/doc/debian-policy/ch-files.html
+Forwarded: pending...
+Author: Jan Engelhardt <jengelh@medozas.de>
+Last-Update: 2012-02-14
+---
+ nx-X11/config/cf/host.def | 11 ++++++-----
+ nx-X11/programs/Xserver/Imakefile | 6 +++---
+ nx-X11/programs/nxauth/Imakefile | 2 +-
+ 3 files changed, 10 insertions(+), 9 deletions(-)
+
+Index: nx-X11/config/cf/host.def
+===================================================================
+--- a/nx-X11/config/cf/host.def
++++ b/nx-X11/config/cf/host.def
+@@ -138,7 +138,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
+ #define BuildRenderLibrary YES
+ #define SharedLibFreetype2 YES
+ #define NormalLibFreetype2 YES
+-#define FontLibSharedFreeType NO
++#define FontLibSharedFreeType YES
+ #endif
+
+ /*
+@@ -649,6 +649,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
+ *
+ #define XserverStaticFontLib NO
+ */
++#define XserverStaticFontLib YES
+
+ /*
+ * To enable binary compatibility with previous versions of the font
+@@ -733,7 +734,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
+ #define BuildXKB YES
+ #define BuildXKBlib YES
+
+-#define SharedLibXau NO
++#define SharedLibXau YES
+
+ /*
+ * If you are running NetBSD 0.9C or later, and have the aperture driver
+@@ -956,9 +957,9 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
+ #define BuildXterm YES
+ */
+
+-#define SharedLibXau NO
++#define SharedLibXau YES
+
+-#define SharedLibXdmcp NO
++#define SharedLibXdmcp YES
+
+ #define BuildXaw7 YES
+
+@@ -976,7 +977,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
+ #define BuildFontServer NO
+ #define BuildFreeType NO
+ #define BuildXTrueType NO
+-#define FontLibSharedFreeType NO
++#define FontLibSharedFreeType YES
+ #endif
+
+ #if !defined(NXZaurusXServer) && defined(NXiPAQXServer)
+Index: nx-X11/programs/Xserver/Imakefile
+===================================================================
+--- a/nx-X11/programs/Xserver/Imakefile
++++ b/nx-X11/programs/Xserver/Imakefile
+@@ -1013,15 +1013,15 @@ $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXAGENTS
+ #if defined(SunArchitecture)
+ NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
+ -lXcomp -lXcompext -lXcompshad -lrt -L/usr/sfw/lib -lXrender -lXfixes \
+- -L../../../nx-X11/exports/lib -lXtst -lXdamage -lXrandr -lXcomposite
++ -L../../../nx-X11/exports/lib -lXtst -lXdamage -lXrandr -lXcomposite -lXdmcp
+ #elif defined(cygwinArchitecture)
+ NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext \
+ -lXcomp -lXcompext -lXrender -lX11 -lXext -lXcomposite -lXfixes \
+- -L ../../../nxcompshad -lXcompshad -L../../../nx-X11/exports/lib -lXtst
++ -L ../../../nxcompshad -lXcompshad -L../../../nx-X11/exports/lib -lXtst -lXdmcp
+ #else
+ NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
+ -lXcomp -lXcompext -lXcompshad -lXrender -lX11 -lXext -lXfixes \
+- -L../../../nx-X11/exports/lib -lXtst -lXdamage -lXrandr -lXcomposite -lXinerama
++ -L../../../nx-X11/exports/lib -lXtst -lXdamage -lXrandr -lXcomposite -lXinerama -lXdmcp
+ #endif
+
+ #endif
+Index: nx-X11/programs/nxauth/Imakefile
+===================================================================
+--- a/nx-X11/programs/nxauth/Imakefile
++++ b/nx-X11/programs/nxauth/Imakefile
+@@ -26,7 +26,7 @@ XCOMM $XFree86: xc/programs/xauth/Imakef
+
+ INCLUDES=-I../../lib
+ DEPLIBS = $(DEPXAUTHLIB)
+- LOCAL_LIBRARIES = ../../exports/lib/libXau.a
++ LOCAL_LIBRARIES = $(XAUTHLIB)
+ SRCS = xauth.c gethost.c process.c parsedpy.c
+ OBJS = xauth.o gethost.o process.o parsedpy.o
+ CONN_DEFINES = $(CONNECTION_FLAGS)
diff --git a/debian/patches/series b/debian/patches/series
index 7f6e801f0..8f1a38810 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -40,5 +40,6 @@
202_nx-x11_enable-xinerama.full.patch
209_x2goagent-add-man-page.full.patch
300_nxagent_set-wm-class.full.patch
+301_nx-X11_use-shared-libs.full.diff
999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch