cartr / homebrew-qt4

Homebrew tap for Qt4 and dependent formulae on Sierra
BSD 2-Clause "Simplified" License
105 stars 42 forks source link

Can't build pyqt@4 (ElCapitan) #70

Open PeterSurda opened 3 years ago

PeterSurda commented 3 years ago
brew install --build-bottle pyqt@4 --without-qt-webkit@2.3
 in dir /var/lib/buildbot/workers/default/elcapprereqsbuilder/build (timeout 1200 secs)
 watching logfiles {}
 argv: [b'brew', b'install', b'--build-bottle', b'pyqt@4', b'--without-qt-webkit@2.3']
 environment:
  HOME=/var/lib/buildbot
  HOMEBREW_CURLRC=0
  HOMEBREW_MAKE_JOBS=-j16
  HOMEBREW_NO_AUTO_UPDATE=1
  LC_CTYPE=UTF-8
  LOGNAME=buildbot
  MAKEOPTS=-j16
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/var/lib/buildbot/.local/bin
  PWD=/var/lib/buildbot/workers/default/elcapprereqsbuilder/build
  PYTHONPATH=/usr/local/lib/python3.7/site-packages/
  SHELL=/bin/bash
  TMPDIR=/var/folders/27/9t409fw92vx2b6lsxcvkxfx40000gy/T/
  USER=buildbot
  XPC_FLAGS=0x0
  XPC_SERVICE_NAME=net.sourceforge.buildbot.worker
  __CF_USER_TEXT_ENCODING=0x1FE:0:0
 using PTY: False
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
==> Installing pyqt@4 from cartr/qt4
==> Downloading https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_mac-4.12.1.tar.gz/download
==> Downloading from https://deac-ams.dl.sourceforge.net/project/pyqt/PyQt4/PyQt-4.12.1/PyQt4_gpl_mac-4.12.1.tar.gz
Error: Empty installation
program finished with exit code 1
elapsedTime=27.575886

I'd appreciate even a workaround.

cartr commented 3 years ago

Hey, really sorry that the formula isn't working. I unfortunately don't have an El Capitan system (or any Mac, really) handy to debug issues at the moment. It's entirely possible that Homebrew's changed something on their side that broke this formula, or broke stuff in general on El Capitan.

Could you please post the output of brew config, brew doctor, and brew install --verbose pyqt@4 --without-qt-webkit@2.3? Homebrew also seems to have a gist-logs command that might be able to upload some log files that would help us.

cartr commented 3 years ago

One idea for a possible workaround -- which might be kind of tricky and a bad idea -- would be to manually roll back Homebrew, homebrew-core, and this tap back to a version from ~Feb 2019 using Git commands.

PeterSurda commented 3 years ago

@cartr I suspect it's due to outdated CA for curl in my installation. I'll retry with an updated one.

PeterSurda commented 3 years ago

sorry, even after updating the CA still not working. I'll try to provide more logs.

PeterSurda commented 3 years ago

I tried to debug. The result is the same on Big Sur.

I don't have experience with ruby but the loop starting at https://github.com/cartr/homebrew-qt4/blob/1794070295f5fdadf59a5c6308eb3ed8fc57d6ff/pyqt%404.rb#L30 seems not to execute at all. The whole build process is completely skipped, and right after unpacking it jumps to trying check if it installed anything. It sees the target directory is empty and raises an exception. I suspect brew changed the attributes of the python packages (after python2 was dropped), or perhaps it can't transform sip's python version into its own. Since I don't know ruby or brew internals I'm not sure how to work around it. I have python@2 and python@3.9 installed.