[neon/forks/pyqt5webengine/Neon/release] debian: Stop building extensions for Python debug interpreter.

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


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

Stop building extensions for Python debug interpreter.

They are not needed with Python ≥ 3.8.
Rely on automatic dbgsym packages for debug symbols.

M  +7    -0    debian/changelog
M  +0    -17   debian/control
M  +5    -12   debian/rules

https://invent.kde.org/neon/forks/pyqt5webengine/commit/25611eb2ed7c52d44fa06b3406d32ad1f1266003

diff --git a/debian/changelog b/debian/changelog
index 34733df..6ff4248 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+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.
+
+ -- Dmitry Shachnev <mitya57 at debian.org>  Sun, 05 Sep 2021 21:01:59 +0300
+
 pyqt5webengine (5.15.4-1) experimental; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index 1bb4413..829b358 100644
--- a/debian/control
+++ b/debian/control
@@ -6,11 +6,8 @@ Uploaders: Dmitry Shachnev <mitya57 at debian.org>
 Build-Depends: debhelper-compat (= 13),
                dh-python,
                pyqt5-dev (>= 5.15.1),
-               python3-all-dbg,
                python3-all-dev,
-               python3-pyqt5-dbg (>= 5.15.1),
                python3-pyqtbuild (>= 1.9),
-               python3-sipbuild-dbg (>= 5.3),
                qtwebengine5-dev,
                sip-tools (>= 5.3.0+dfsg-2~)
 Standards-Version: 4.5.1
@@ -33,17 +30,3 @@ Description: Python 3 bindings for Qt5's WebEngine module
  for PyQt5 applications.
  .
  This package contains the Python 3 version of this module.
-
-Package: python3-pyqt5.qtwebengine-dbg
-Section: debug
-Architecture: any
-Depends: python3-pyqt5.qtwebchannel-dbg (>= 5.15.4),
-         python3-pyqt5.qtwebengine (= ${binary:Version}),
-         ${misc:Depends},
-         ${python3:Depends},
-         ${shlibs:Depends}
-Description: Python 3 bindings for Qt5's WebEngine module (debug extensions)
- The WebEngine module of PyQt5 provides a Chromium-based Web browser engine
- for PyQt5 applications.
- .
- This package contains the extensions built for the Python 3 debug interpreter.
diff --git a/debian/rules b/debian/rules
index bdc9b74..664d6e6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,16 +1,13 @@
 #!/usr/bin/make -f
 
 export QT_SELECT=5
-export BASE_CONFIGURE_ARGS={interpreter} /usr/bin/sip-build --verbose --no-make \
-	--build-dir {build_dir} \
-	--qmake-setting 'QMAKE_CXXFLAGS += "$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)"' \
-	--qmake-setting 'QMAKE_LFLAGS += "$(shell dpkg-buildflags --get LDFLAGS)"'
 
 export PYBUILD_NAME=pyqt5.qtwebengine
 export PYBUILD_SYSTEM=custom
-export PYBUILD_CONFIGURE_ARGS=$(BASE_CONFIGURE_ARGS) --pep484-pyi
-export PYBUILD_CONFIGURE_ARGS_python3-dbg=$(BASE_CONFIGURE_ARGS)
-export PYBUILD_BEFORE_BUILD_python3-dbg=sed -i 's/-isystem/-I/' {build_dir}/*/Makefile  # See bug #755767
+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)"'
 export PYBUILD_BUILD_ARGS=$(MAKE) -C {build_dir}
 export PYBUILD_INSTALL_ARGS=$(MAKE) -C {build_dir} install INSTALL_ROOT={destdir}
 
@@ -18,8 +15,4 @@ export PYBUILD_INSTALL_ARGS=$(MAKE) -C {build_dir} install INSTALL_ROOT={destdir
 	dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_strip:
-	dh_strip -ppython3-pyqt5.qtwebengine --dbg-package=python3-pyqt5.qtwebengine-dbg
-
-override_dh_installdocs:
-	dh_installdocs -ppython3-pyqt5.qtwebengine-dbg --link-doc=python3-pyqt5.qtwebengine
-	dh_installdocs --remaining-packages
+	dh_strip --dbgsym-migration='python3-pyqt5.qtwebengine-dbg (<< 5.15.4-2~)'



More information about the Neon-commits mailing list