[X2Go-Commits] [nx-libs] 24/24: Use shared libraries (301_nx-X11_use-shared-libs.full.patch).

git-admin at x2go.org git-admin at x2go.org
Tue Feb 10 21:51:02 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 6fc37fa762efc55e5d59158eb180cfe1c0405b26
Author: Jan Engelhardt <jengelh at medozas.de>
Date:   Tue Feb 10 21:47:31 2015 +0100

    Use shared libraries (301_nx-X11_use-shared-libs.full.patch).
    
      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
---
 .../patches/301_nx-X11_use-shared-libs.full.patch  |  106 --------------------
 debian/patches/series                              |    1 -
 nx-X11/config/cf/host.def                          |   11 +-
 nx-X11/programs/Xserver/Imakefile                  |    6 +-
 nx-X11/programs/nxauth/Imakefile                   |    2 +-
 5 files changed, 10 insertions(+), 116 deletions(-)

diff --git a/debian/patches/301_nx-X11_use-shared-libs.full.patch b/debian/patches/301_nx-X11_use-shared-libs.full.patch
deleted file mode 100644
index 2001474..0000000
--- a/debian/patches/301_nx-X11_use-shared-libs.full.patch
+++ /dev/null
@@ -1,106 +0,0 @@
-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 at 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 503a511..a901010 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
-301_nx-X11_use-shared-libs.full.patch
 302_nx-X11_xkbbasedir-detection.full.patch
 320_nxagent_configurable-keystrokes.full.patch
 321_nxagent_x2go-specific-keystroke-config.full.patch
diff --git a/nx-X11/config/cf/host.def b/nx-X11/config/cf/host.def
index 7d0511f..2193a47 100644
--- a/nx-X11/config/cf/host.def
+++ b/nx-X11/config/cf/host.def
@@ -138,7 +138,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich Exp $
 #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.def,v 3.186 2003/06/25 18:06:22 eich Exp $
  *
 #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.def,v 3.186 2003/06/25 18:06:22 eich Exp $
 #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.def,v 3.186 2003/06/25 18:06:22 eich Exp $
 #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.def,v 3.186 2003/06/25 18:06:22 eich Exp $
 #define BuildFontServer             NO
 #define BuildFreeType               NO
 #define BuildXTrueType              NO
-#define FontLibSharedFreeType       NO
+#define FontLibSharedFreeType       YES
 #endif
 
 #if !defined(NXZaurusXServer) && defined(NXiPAQXServer)
diff --git a/nx-X11/programs/Xserver/Imakefile b/nx-X11/programs/Xserver/Imakefile
index 8ecb338..c803a99 100644
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -1013,15 +1013,15 @@ $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXAGENTSYSLIBS):: $(NXAGENTDIRS)
 #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
diff --git a/nx-X11/programs/nxauth/Imakefile b/nx-X11/programs/nxauth/Imakefile
index 07b1ca7..278904f 100644
--- a/nx-X11/programs/nxauth/Imakefile
+++ b/nx-X11/programs/nxauth/Imakefile
@@ -26,7 +26,7 @@ XCOMM $XFree86: xc/programs/xauth/Imakefile,v 3.5 2001/03/30 02:15:23 keithp Exp
 
   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)

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list