[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/22: gnu: python-pyqt: Fix build for new python-sip.
From: |
guix-commits |
Subject: |
04/22: gnu: python-pyqt: Fix build for new python-sip. |
Date: |
Fri, 9 Apr 2021 16:12:06 -0400 (EDT) |
lfam pushed a commit to branch master
in repository guix.
commit 586f017d9800a23c71b347c74aee5017a168b35b
Author: Brendan Tildesley <mail@brendan.scot>
AuthorDate: Mon Feb 22 22:20:40 2021 +1100
gnu: python-pyqt: Fix build for new python-sip.
* gnu/packages/qt.scm (python-pyqt)
[source]: Remove pyqt-public-sip.patch.
[propagated-inputs]: Add python-pyqt5-sip.
* gnu/packages/patches/pyqt-public-sip.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Remove it.
---
gnu/local.mk | 1 -
gnu/packages/patches/pyqt-public-sip.patch | 55 ------------------------------
gnu/packages/qt.scm | 8 ++---
3 files changed, 4 insertions(+), 60 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 075504e..8365e19 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1559,7 +1559,6 @@ dist_patch_DATA =
\
%D%/packages/patches/pybugz-stty.patch \
%D%/packages/patches/pygpgme-disable-problematic-tests.patch \
%D%/packages/patches/pyqt-configure.patch \
- %D%/packages/patches/pyqt-public-sip.patch \
%D%/packages/patches/python-2-deterministic-build-info.patch \
%D%/packages/patches/python-2.7-adjust-tests.patch \
%D%/packages/patches/python-2.7-search-paths.patch \
diff --git a/gnu/packages/patches/pyqt-public-sip.patch
b/gnu/packages/patches/pyqt-public-sip.patch
deleted file mode 100644
index 44cdcb6..0000000
--- a/gnu/packages/patches/pyqt-public-sip.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-https://sources.debian.org/data/main/p/pyqt5/5.11.3+dfsg-1/debian/patches/public_sip.diff
-
-From: Dmitry Shachnev <mitya57@debian.org>
-Date: Tue, 3 Jul 2018 09:46:42 +0300
-Subject: Use the public version of sip module
-
-Per https://www.debian.org/doc/debian-policy/#convenience-copies-of-code.
----
- configure.py | 2 +-
- designer/pluginloader.cpp | 2 +-
- qmlscene/pluginloader.cpp | 4 ++--
- 3 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/configure.py b/configure.py
-index 32d03a0..3c43a14 100644
---- a/configure.py
-+++ b/configure.py
-@@ -2440,7 +2440,7 @@ def get_sip_flags(target_config):
- the target configuration.
- """
-
-- sip_flags = ['-n', 'PyQt5.sip']
-+ sip_flags = ['-n', 'sip']
-
- # If we don't check for signed interpreters, we exclude the 'VendorID'
- # feature
-diff --git a/designer/pluginloader.cpp b/designer/pluginloader.cpp
-index f41d391..3ca8b11 100644
---- a/designer/pluginloader.cpp
-+++ b/designer/pluginloader.cpp
-@@ -167,7 +167,7 @@ bool PyCustomWidgets::importPlugins(const QString &dir,
const QStringList &plugi
- // Make sure we have sip.unwrapinstance.
- if (!sip_unwrapinstance)
- {
-- sip_unwrapinstance = getModuleAttr("PyQt5.sip", "unwrapinstance");
-+ sip_unwrapinstance = getModuleAttr("sip", "unwrapinstance");
-
- if (!sip_unwrapinstance)
- return true;
-diff --git a/qmlscene/pluginloader.cpp b/qmlscene/pluginloader.cpp
-index e14b946..140e80c 100644
---- a/qmlscene/pluginloader.cpp
-+++ b/qmlscene/pluginloader.cpp
-@@ -412,9 +412,9 @@ PyObject *PyQt5QmlPlugin::getModuleAttr(const char
*module, const char *attr)
- void PyQt5QmlPlugin::getSipAPI()
- {
- #if defined(SIP_USE_PYCAPSULE)
-- sip = (const sipAPIDef *)PyCapsule_Import("PyQt5.sip._C_API", 0);
-+ sip = (const sipAPIDef *)PyCapsule_Import("sip._C_API", 0);
- #else
-- PyObject *c_api = getModuleAttr("PyQt5.sip", "_C_API");
-+ PyObject *c_api = getModuleAttr("sip", "_C_API");
-
- if (c_api)
- {
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index d604a9c..530fcf1 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1903,17 +1903,17 @@ module provides support functions to the automatically
generated code.")
(string-append "https://www.riverbankcomputing.com/static/"
"Downloads/PyQt5/" version "/PyQt5-"
version ".tar.gz")))
- (file-name (string-append "PyQt5-"version ".tar.gz"))
+ (file-name (string-append "PyQt5-" version ".tar.gz"))
(sha256
(base32
"1z74295i69cha52llsqffzhb5zz7qnbjc64h8qg21l91jgf0harp"))
- (patches (search-patches "pyqt-configure.patch"
- "pyqt-public-sip.patch"))))
+ (patches (search-patches "pyqt-configure.patch"))))
(build-system gnu-build-system)
(native-inputs
`(("qtbase" ,qtbase))) ; for qmake
(propagated-inputs
- `(("python-sip" ,python-sip)))
+ `(("python-sip" ,python-sip)
+ ("python-pyqt5-sip" ,python-pyqt5-sip)))
(inputs
`(("python" ,python-wrapper)
("qtbase" ,qtbase)
- branch master updated (073b12d -> f68bcc1), guix-commits, 2021/04/09
- 01/22: gnu: python-sip: Update to 5.5.0. Add python-sip-4, guix-commits, 2021/04/09
- 09/22: gnu: Add python-ppmd-cffi., guix-commits, 2021/04/09
- 02/22: gnu: Add python-pyqt-builder., guix-commits, 2021/04/09
- 05/22: gnu: Add python-ifaddr., guix-commits, 2021/04/09
- 07/22: gnu: Add python-pyannotate., guix-commits, 2021/04/09
- 10/22: gnu: python-zstandard: Update to 0.15.2., guix-commits, 2021/04/09
- 12/22: gnu: Add python-bcj-cffi., guix-commits, 2021/04/09
- 04/22: gnu: python-pyqt: Fix build for new python-sip.,
guix-commits <=
- 03/22: gnu: Add python-pyqt5-sip., guix-commits, 2021/04/09
- 15/22: gnu: python-feedparser: Update to 6.0.2., guix-commits, 2021/04/09
- 06/22: gnu: Add python-zeroconf., guix-commits, 2021/04/09
- 11/22: gnu: Add python-pyzstd, guix-commits, 2021/04/09
- 20/22: gnu: Remove python2-pyqtwebengine., guix-commits, 2021/04/09
- 13/22: gnu: Add python-py7zr., guix-commits, 2021/04/09
- 14/22: gnu: python-markdown: Update to 3.3.4., guix-commits, 2021/04/09
- 18/22: gnu: python-html5lib: Depend on python-chardet., guix-commits, 2021/04/09
- 16/22: gnu: Add python-pychm., guix-commits, 2021/04/09
- 22/22: gnu: python2-sip: Remove package., guix-commits, 2021/04/09