aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog3
-rwxr-xr-xdebian/rules38
2 files changed, 37 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 3395cda02..8728e28f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,9 @@ nx-libs (2:3.5.0.29-0x2go1) UNRELEASED; urgency=medium
+ Backup nxcomp/VERSION file from NoMachine before replacing it with
a symlink to debian/VERSION. Recreate the original file when cleaning
up.
+ + Fix removal of unused code (that part of the code that we know of so
+ far). (The debian/rules file is a Makefile and Makefiles don't understand
+ shell globbing with curly braces).
[ Horst Schirmeier ]
* Update 320_nxagent_configurable-keystrokes.full.patch. Fix a typo that
diff --git a/debian/rules b/debian/rules
index 02eaec1dc..df248d704 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,6 @@
#!/usr/bin/make -f
+NULL =
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -11,6 +12,36 @@ endif
%:
CONFIGURE="./configure --prefix=/usr" LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh $@ --with quilt
+# before build, we will remove unused code / bundled libraries (keep this in sync with roll-tarball.sh)
+UNUSED_CODE = nx-X11/extras/drm \
+ nx-X11/extras/expat \
+ nx-X11/extras/fontconfig \
+ nx-X11/extras/freetype2 \
+ nx-X11/extras/fonts \
+ nx-X11/extras/ogl-sample \
+ nx-X11/extras/regex \
+ nx-X11/extras/rman \
+ nx-X11/extras/ttf2pt1 \
+ nx-X11/extras/x86emu \
+ nx-X11/extras/zlib \
+ nx-X11/lib/expat \
+ nx-X11/lib/fontconfig \
+ nx-X11/lib/fontenc \
+ nx-X11/lib/font/FreeType \
+ nx-X11/lib/font/include/fontenc.h \
+ nx-X11/lib/freetype2 \
+ nx-X11/lib/regex \
+ nx-X11/lib/zlib \
+ nx-X11/lib/FS \
+ nx-X11/lib/ICE \
+ nx-X11/lib/SM \
+ nx-X11/lib/Xaw \
+ nx-X11/lib/Xft \
+ nx-X11/lib/Xt \
+ nx-X11/lib/Xmu \
+ nx-X11/lib/Xmuu \
+ $(NULL)
+
override_dh_auto_clean:
rm -Rf nx-X11/.build-exports
LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_clean
@@ -51,10 +82,9 @@ override_dh_auto_build:
# let's prep the libnx-x11.postinst script with the value of the build systems's DEB_BUILD_MULTIARCH variable
sed debian/libnx-x11.postinst.in -e 's/#DEB_BUILD_MULTIARCH#/$(DEB_BUILD_MULTIARCH)/' > debian/libnx-x11.postinst
- # remove bundled libraries (keep this in sync with roll-tarball.sh)
- rm -Rf nx-X11/extras/{drm,expat,fontconfig,freetype2,fonts,ogl-sample,regex,rman,ttf2pt1,x86emu,zlib}
- rm -Rf nx-X11/lib/{expat,fontconfig,fontenc,font/FreeType,font/include/fontenc.h,freetype2,regex,zlib}
- rm -Rf nx-X11/lib/{FS,ICE,SM,Xaw,Xft,Xt,Xmu,Xmuu}
+ # remove unused code / bundled libraries (see at the top of this file
+ # for the exact list of files and folders
+ rm -Rf $(UNUSED_CODE)
LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_build --parallel