Discussion:
[Slackbuilds-users] Notes on building against the new PyQt5-5.9.2
David Woodfall
2018-09-23 01:12:26 UTC
Permalink
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
(____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-***@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/
Daniel Prosser
2018-09-23 11:39:33 UTC
Permalink
Thanks to a David Woodfall and everyone involved in making this update happen.

Dan
Andrzej Telszewski
2018-09-23 15:15:02 UTC
Permalink
Post by Daniel Prosser
Thanks to a David Woodfall and everyone involved in making this update happen.
+1
--
Best regards / Pozdrawiam,
Andrzej Telszewski
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-***@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/
Fellype
2018-09-23 22:21:53 UTC
Permalink
Post by David Woodfall
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"
Hi David,
As the current maintainer of Veusz , I'd like to thank you for this fix.
Best regards,

Fellype

Loading...