[neon/forks/pyqt5webengine/Neon/release] debian: Simplify debian/rules by including buildflags.mk.

Dmitry Shachnev null at kde.org
Fri Oct 14 15:54:08 BST 2022


Git commit 0d0aecd830c99c2ffc2cb05c98d3cfc5ab3f7905 by Dmitry Shachnev.
Committed on 05/09/2021 at 18:09.
Pushed by jriddell into branch 'Neon/release'.

Simplify debian/rules by including buildflags.mk.

M  +1    -0    debian/changelog
M  +4    -2    debian/rules

https://invent.kde.org/neon/forks/pyqt5webengine/commit/0d0aecd830c99c2ffc2cb05c98d3cfc5ab3f7905

diff --git a/debian/changelog b/debian/changelog
index 6ff4248..5ea6bfa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ pyqt5webengine (5.15.4-2) UNRELEASED; urgency=medium
 
   * Stop building extensions for Python debug interpreter, they are not needed
     with Python ≥ 3.8. Rely on automatic dbgsym packages for debug symbols.
+  * Simplify debian/rules by including buildflags.mk.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Sun, 05 Sep 2021 21:01:59 +0300
 
diff --git a/debian/rules b/debian/rules
index 664d6e6..e1d3dd6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,15 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildflags.mk
+
 export QT_SELECT=5
 
 export PYBUILD_NAME=pyqt5.qtwebengine
 export PYBUILD_SYSTEM=custom
 export PYBUILD_CONFIGURE_ARGS={interpreter} /usr/bin/sip-build --verbose --no-make \
 	--build-dir {build_dir} --pep484-pyi \
-	--qmake-setting 'QMAKE_CXXFLAGS += "$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)"' \
-	--qmake-setting 'QMAKE_LFLAGS += "$(shell dpkg-buildflags --get LDFLAGS)"'
+	--qmake-setting 'QMAKE_CXXFLAGS += "$(CXXFLAGS) $(CPPFLAGS)"' \
+	--qmake-setting 'QMAKE_LFLAGS += "$(LDFLAGS)"'
 export PYBUILD_BUILD_ARGS=$(MAKE) -C {build_dir}
 export PYBUILD_INSTALL_ARGS=$(MAKE) -C {build_dir} install INSTALL_ROOT={destdir}
 



More information about the Neon-commits mailing list