[SCM] qt3d packaging branch, master, updated. 34bd966568918744a908724820e5ecf655333701
Timo Jyrinki
timo at moszumanska.debian.org
Tue Jul 14 11:50:23 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/qt/qt3d.git;a=commitdiff;h=91c277b
The following commit has been merged in the master branch:
commit 91c277b59d69dd52c20c612249a45ad1c48901d1
Author: Timo Jyrinki <timo.jyrinki at canonical.com>
Date: Tue Jul 14 11:45:31 2015 +0000
debian/rules: Run tests for certain archs, remove private headers.
---
debian/rules | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/debian/rules b/debian/rules
index 4505cb9..53bd0c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,18 +4,36 @@
#export DH_VERBOSE=1
export QT_SELECT=qt5
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
+# Run tests only on archs known to pass in the past
+testrun_architectures := amd64 arm64 armhf i386 ppc64el
+
%:
- dh $@ --parallel --with pkgkde_symbolshelper --dbg-package=qt3d5-dbg
+ dh $@ --fail-missing --parallel --with pkgkde_symbolshelper --dbg-package=qt3d5-dbg
override_dh_auto_configure:
mkdir .git
qmake QT_BUILD_PARTS+=tests
+override_dh_auto_install-arch:
+ dh_auto_install
+
+ # Remove libtool-like files
+ rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
+
+ # Remove private stuff
+ rm -rfv $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/Qt3DCore/*/Qt3DCore/private
+ rm -rfv $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/Qt3DInput/*/Qt3DInput/private
+ rm -rfv $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/Qt3DQuick/*/Qt3DQuick/private
+ rm -rfv $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/Qt3DQuickRenderer/*/Qt3DQuickRenderer/private
+ rm -rfv $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/Qt3DRenderer/*/Qt3DRenderer/private
+ rm -fv $(CURDIR)/debian/tmp/usr/lib/*/qt5/mkspecs/modules/qt_lib_*_private.pri
+
override_dh_auto_install:
dh_auto_install
# Fix wrong path in pkgconfig files
@@ -25,12 +43,10 @@ override_dh_auto_install:
# Remove libtool-like files
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
-override_dh_install:
- dh_install --fail-missing
-
override_dh_auto_test:
- # Disable tests for now, since some require GLX, and some for other reasons
- #xvfb-run -a dh_auto_test -- QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
+ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(testrun_architectures)))
+ xvfb-run -a -s "-screen 0 640x480x24" make check QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib QML2_IMPORT_PATH=$(CURDIR)/qml
+endif
override_dh_builddeb:
dh_builddeb -- -Zxz
--
qt3d packaging
More information about the pkg-kde-commits
mailing list