Skip to content

Instantly share code, notes, and snippets.

@peterfpeterson
Last active May 24, 2018 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterfpeterson/90585c4de9265e20d937d199dc1d2fb9 to your computer and use it in GitHub Desktop.
Save peterfpeterson/90585c4de9265e20d937d199dc1d2fb9 to your computer and use it in GitHub Desktop.
rhel7 and qt5-qtbase

On rhel7 (which is based on f19/f20), qt5-qtbase moved from 5.6.1 to 5.9.2. This broke upgrading Naively I tried to rebuild a bunch of things thinking it would be "easy."

Much of this information was determined from digging through https://rpms.remirepo.net/rpmphp/

Currently:

  • sip 4.18 from f24
  • python-qt5 5.6-6 from f24 (best guess)
  • PyQt4 4.11.4-14 from f24
  • python-ipython rebuilt from rhel7

FIRST ATTEMPT: Rebuilding things from f27 required backporting a newer version of sip (4.19) which requires rebuilding older mantid releases.

SECOND ATTEMPT:

  • The newer version of qt5-qtbase requires rebuilding qt5-qtquick1 which is currently (2018-05-23) in epel-testing
  • Rebuild python-qt5 5.6-6 (after commenting out the license check in configure.py and commenting out WindowOkButtonHint, and WindowCancelButtonHint in PyQt5_gpl-5.6/sip/QtCore/qnamespace.sip. I'm calling the new version 5.6-7.

Notes on how to do things with mock, rpms, etc.

mock --no-clean --no-cleanup-after --rebuild sip-4.19.3-4.fc27.src.rpm
mock --install /var/lib/mock/epel-7-x86_64/results/...

Extract spec file from rpm

From https://stackoverflow.com/questions/5613954/extract-the-spec-file-from-rpm-package

  • rpm2cpio packagename | cpio -ivd into the current directory
  • rpm -i pkg.src.rpm into the rpm build directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment