Package Details: python2-sip-pyqt4 4.19.25-2

Git Clone URL: https://aur.archlinux.org/python-sip-pyqt4.git (read-only, click to copy)
Package Base: python-sip-pyqt4
Description: Python 2.x SIP bindings for C and C++ libraries (PyQt4 version)
Upstream URL: https://www.riverbankcomputing.com/software/sip/intro
Licenses: custom:"sip"
Submitter: graysky
Maintainer: LaughingMan
Last Packager: LaughingMan
Votes: 33
Popularity: 0.020931
First Submitted: 2019-01-06 15:57 (UTC)
Last Updated: 2023-05-10 19:49 (UTC)

Pinned Comments

Latest Comments

1 2 3 Next › Last »

LaughingMan commented on 2023-12-28 04:01 (UTC)

Could you elaborate a little, vanguard1097? Why is python2 more correct than the current python and why change it after all those years?

vanguard1097 commented on 2023-12-28 02:55 (UTC)

GIT URL should be https://aur.archlinux.org/python2-sip-pyqt4.git

LaughingMan commented on 2023-05-10 19:53 (UTC)

Had another look and it turns out I made a mistake trying to reproduce last time. It was an incompatible change in Python 3.11 after all. A fix has been pushed so compilation should work fine now.

FabioLolix commented on 2023-05-04 20:48 (UTC)

Building with devtools (extra-x86_64-build) fails, same as dreieck

LaughingMan commented on 2023-05-04 19:35 (UTC) (edited on 2023-05-04 19:40 (UTC) by LaughingMan)

Can't reproduce but the update to Python 3.11 didn't reach me yet. I'm still on Python 3.10. Maybe that's the difference?

Edit: Hm, grabbed the Python 3.11 headers manually and it still compiles fine...

dreieck commented on 2023-05-04 14:03 (UTC)

Build fails for me with siplib.c:13750:22: error: invalid use of undefined type ‘struct _frame’:

==> Starting build()...
This is SIP 4.19.25 for Python 3.11.3 on linux.
The PyQt4.sip module will be installed in
/usr/lib/python3.11/site-packages/PyQt4.
The sip.pyi stub file will be installed in
/usr/lib/python3.11/site-packages/PyQt4.
The default directory to install .sip files in is /usr/share/sip.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
make[1]: Entering directory '/tmp/makepkg/build/python-sip-pyqt4/src/build-pyqt4/siplib'
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o siplib.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o apiversions.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/apiversions.c
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o descriptors.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/descriptors.c
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o qtlib.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/qtlib.c
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:205:9: warning: missing initializer for field ‘am_send’ of ‘PyAsyncMethods’ [-Wmissing-field-initializers]
  205 |         },
      |         ^
In file included from /usr/include/python3.11/object.h:757,
                 from /usr/include/python3.11/Python.h:44,
                 from /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:20:
/usr/include/python3.11/cpython/object.h:134:14: note: ‘am_send’ declared here
  134 |     sendfunc am_send;
      |              ^~~~~~~
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:304:5: warning: missing initializer for field ‘_ht_tpname’ of ‘PyHeapTypeObject’ {aka ‘struct _heaptypeobject’} [-Wmissing-field-initializers]
  304 |     },
      |     ^
/usr/include/python3.11/cpython/object.h:256:11: note: ‘_ht_tpname’ declared here
  256 |     char *_ht_tpname;  // Storage for "tp_name"; see PyType_FromModuleAndSpec
      |           ^~~~~~~~~~
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o threads.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/threads.c
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o objmap.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/objmap.c
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o voidptr.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/voidptr.c
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c: In function ‘sipSimpleWrapper_getbuffer’:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:11201:45: warning: cast between incompatible function types from ‘sipGetBufferFunc’ {aka ‘int (*)(struct _object *, void *, Py_buffer *, int)’} to ‘int (*)(PyObject *, void *, sipBufferDef *)’ {aka ‘int (*)(struct _object *, void *, struct _sipBufferDef *)’} [-Wcast-function-type]
11201 |         sipGetBufferFuncLimited getbuffer = (sipGetBufferFuncLimited)ctd->ctd_getbuffer;
      |                                             ^
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c: In function ‘sipSimpleWrapper_releasebuffer’:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:11238:53: warning: cast between incompatible function types from ‘sipReleaseBufferFunc’ {aka ‘void (*)(struct _object *, void *, Py_buffer *)’} to ‘void (*)(PyObject *, void *)’ {aka ‘void (*)(struct _object *, void *)’} [-Wcast-function-type]
11238 |         sipReleaseBufferFuncLimited releasebuffer = (sipReleaseBufferFuncLimited)ctd->ctd_releasebuffer;
      |                                                     ^
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c: At top level:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:11590:9: warning: missing initializer for field ‘am_send’ of ‘PyAsyncMethods’ [-Wmissing-field-initializers]
11590 |         },
      |         ^
/usr/include/python3.11/cpython/object.h:134:14: note: ‘am_send’ declared here
  134 |     sendfunc am_send;
      |              ^~~~~~~
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:11689:5: warning: missing initializer for field ‘_ht_tpname’ of ‘PyHeapTypeObject’ {aka ‘struct _heaptypeobject’} [-Wmissing-field-initializers]
11689 |     },
      |     ^
/usr/include/python3.11/cpython/object.h:256:11: note: ‘_ht_tpname’ declared here
  256 |     char *_ht_tpname;  // Storage for "tp_name"; see PyType_FromModuleAndSpec
      |           ^~~~~~~~~~
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o array.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/array.c
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c: In function ‘sip_api_get_frame’:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:13750:22: error: invalid use of undefined type ‘struct _frame’
13750 |         frame = frame->f_back;
      |                      ^~
In file included from /usr/include/python3.11/bytesobject.h:10,
                 from /usr/include/python3.11/Python.h:50:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c: In function ‘parsePass2’:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:5936:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
 5936 |             va_arg(va, void *);
      |                        ^
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:5940:9: note: here
 5940 |         default:
      |         ^~~~~~~
gcc -c -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -fPIC -O2 -Wall -W -DNDEBUG -DSIP_MODULE_NAME=PyQt4.sip -I. -I/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib -I/usr/include/python3.11 -o int_convertors.o /tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/int_convertors.c
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c: In function ‘detail_FromFailure’:
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/voidptr.c:215:17: warning: cast between incompatible function types from ‘PyObject * (*)(sipVoidPtrObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(sipVoidPtrObject *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type]
  215 |     {"asarray", (PyCFunction)sipVoidPtr_asarray, METH_VARARGS|METH_KEYWORDS, NULL},
      |                 ^
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/voidptr.c:222:18: warning: cast between incompatible function types from ‘PyObject * (*)(sipVoidPtrObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(sipVoidPtrObject *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type]
  222 |     {"asstring", (PyCFunction)sipVoidPtr_asstring, METH_VARARGS|METH_KEYWORDS, NULL},
      |                  ^
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:8120:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
 8120 |         if (detail)
      |            ^
/tmp/makepkg/build/python-sip-pyqt4/src/sip-4.19.25/siplib/siplib.c:8128:5: note: here
 8128 |     default:
      |     ^~~~~~~
make[1]: *** [Makefile:31: siplib.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/makepkg/build/python-sip-pyqt4/src/build-pyqt4/siplib'
make: *** [Makefile:3: all] Error 2

regards!

GI_Jack commented on 2020-08-30 18:58 (UTC)

4.19.24 is latest

mikewalk commented on 2020-08-22 21:19 (UTC)

It seems version 4.19.22 is no longer available from the riverbankcomputing source url given, I found I needed to use version 4.19.24 instead. I editted the PKGBUILD file in two places:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,14 +7,14 @@

 pkgbase='python-sip-pyqt4'
 pkgname=('python-sip-pyqt4' 'python2-sip-pyqt4')
-pkgver=4.19.22
+pkgver=4.19.24
 pkgrel=1
 arch=('x86_64')
 url='https://www.riverbankcomputing.com/software/sip/intro'
 license=('custom:"sip"')
 makedepends=('python' 'python2')
 source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz")
-sha256sums=('e1b768824ec1a2ee38dd536b6b6b3d06de27b00a2f5f55470d1b512306e3be45')
+sha256sums=('edcd3790bb01938191eef0f6117de0bf56d1136626c0ddb678f3a558d62e41e5')

 prepare() {
   mkdir -p build-pyqt4{,-py2}

I was trying to install m4baker-git when I encountered the problem, and this change seemed to do the trick for me.

(p.s. I'm a very new Manjaro user, not sure what proper procedure for raising these issues with the maintainers in AUR, so that's the reason I'm just leaving this comment here.)

morgenstern commented on 2020-04-22 10:18 (UTC)

While sip-4.19.19 is still very much available, sip-4.19.22 is also available and should be the actual reason for flagging this package as out-of-date.

dmp1ce commented on 2019-09-16 16:53 (UTC)

@Mechanical_Man python-pyqt4 has a "make" dependency on python-sip-pyqt4 and python2-sip-pyqt4. I think you just install the one you need.