[Slackbuilds-users] Notes on building against the new PyQt5-5.9.2

David Woodfall dave at dawoodfall.net
Sun Sep 23 01:12:26 UTC 2018


Hi folks,

Some packages may need fixing to use the new python2-sip to be able
to build against the new PyQt5. Below are how I did it with Veusz and
Calibre, which may give some pointers.

There are a few ways to do this: by environmental variables and/or
configure/build options. It may say in the README/INSTALL file about
what to use, but I had to grep through the source to find out what
Calibre supported.

Example (these lines need to be before any configure or build
commands):

Veusz:

PYTHONVER=$(python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d.)
export SIP_EXE=/usr/bin/python2-sip
export SIP_INCLUDE_DIR="/usr/include/python$PYTHONVER/python2-sip"

Calibre:

PYTHONVER=$(python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d.)
export SIP_BIN=/usr/bin/python2-sip
export SIP_INC_DIR="/usr/include/python$PYTHONVER/python2-sip"

The reason for exporting those is so that they propagate down into
any sub-modules.

If nothing seems to work, reply here and attach a build log named
with the package name like $PRGNAM-build.log or similar. Please
attach your slackbuild too.

A suitable log can be made by e.g.

./$PRGNAM.SlackBuild 2>&1 | tee $PRGNAM-build.log

Hope this helps

--
Dave

Keep me informed on the behaviour of this kernel..  As the "BugFree(tm)"
series didn't turn out too well, I'm starting a new series called the
"ItWorksForMe(tm)" series, of which this new kernel is yet another
shining example.
  -- Linus, in the announcement for 1.3.29

                                                            .--.  oo
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'


More information about the SlackBuilds-users mailing list