qscintilla: fix build on darwin#150595
Conversation
|
Additional googling suggests that this metadata issue means that |
e99d793 to
d8c95d6
Compare
|
sip now works and is able to start the build, which now fails with: @lsix this issue with qwidget.h seems very similar to #72302, with the new issue that Additionally, I went back and tried to clean up the commit messages to get this closer to a workable PR. |
|
With 6706e4c (and a slightly brittle substituteInPlace inspired by #72249), PR now completes the make step on darwin for |
2a7b1e7 to
716aca8
Compare
716aca8 to
f77d6c0
Compare
|
With 4362b38 this now builds, installs, and links successfully on darwin. Because |
|
Result of 1 package marked as broken and skipped:
1 package failed to build:
6 packages built:
|
|
Result of 2 packages failed to build:
11 packages built:
|
|
On linux, qgis-unwrapped currently fails with: Revisions to address the QGIS package should probably be done alongside #150286 |
ffa3326 to
c059c9f
Compare
|
@prusnak I made all the changes accordingly (and managed to pull in a million other upstream changes when rebasing -- apologies to all for the noise.) |
prusnak
left a comment
There was a problem hiding this comment.
Left couple more cleanup nits. Otherwise good.
|
@GrahamcOfBorg build miniaudicle qgis sqliteman python3Packages.qscintilla-qt4 python3Packages.qscintilla-qt5 |
|
Result of 1 package built:
|
|
Small follow-up PR: #153744 |
| , pyqt4 | ||
| }: | ||
|
|
||
| disabledIf (isPy3k || isPyPy) |
There was a problem hiding this comment.
Btw, where does this limitation come from? I don't see it in the previous code
There was a problem hiding this comment.
It was just a 100% copy of what was in https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/qscintilla/default.nix -- I didn't do any of the refactoring you're looking into now!
Motivation for this change
Per #71398, qscintilla is currently broken on darwin.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notesMechanism of change
@lsix @peterhoeg
Reorganize
qscintillapackages to make qt5 the default and move the legacy version toqscintilla-qt4:qscintillatoqscintilla-qt4and drops its support for bothqt5anddarwin.qscintilla-qt5the default forqscintillaand migrates tolibsForQt5.qscintillapython package toqscintilla-qt4.Upgrading qscintilla version:
qscintillato 2.13.1qscintilla-qt5to usepyproject.tomland ensure build ondarwin.qscintillaandqt4to specifyqscintilla-qt4Previous issues before patch was ready for review
Trying to build the current version leads to issues the following build problem on Darwin:The newest version of QScintilla drops support for Qt4. Unsure how to get past thisfailed to create a Makefile from QScintilla.proerror, I have tried updating to latest qscintilla. Accordingly, this draft PR performs a few tasks, none of them successfully.The C portion of qscintilla still builds successfully on darwin. Unfortunately, in the move to pyproject, I am having trouble getting sip configured correctly. I've tried to patch in additional PyQt5 includes into the toml file, but the build still fails with the errorAttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel', an issue I am not sure how to resolve:Partially resolves: #71398