[MacPorts] #68073: py311-pyqt5 +webkit: fail to build on arm64
MacPorts
noreply at macports.org
Thu Sep 7 19:20:58 UTC 2023
#68073: py311-pyqt5 +webkit: fail to build on arm64
-----------------------+------------------------
Reporter: nilason | Owner: reneeotten
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: py-pyqt5 |
-----------------------+------------------------
Comment (by nilason):
Somewhere the {{{12.3}}} is "burnt in", but I cannot find where. With a
symlink hack I managed to build both {{{py311-pyqt5}}} and {{{py311-pyqt5
+webkit}}}:
{{{
# not working
xcrun --sdk macosx12.3 --show-sdk-path
2023-09-07 21:05:40.583 xcodebuild[95935:5927376] Writing error result
bundle to
/var/folders/41/b45_b8253jn3rxtr4cd0bd7c0000gn/T/ResultBundle_2023-07-09_21-05-0040.xcresult
xcodebuild: error: SDK "macosx12.3" cannot be located.
2023-09-07 21:05:41.978 xcodebuild[95937:5927390] Writing error result
bundle to
/var/folders/41/b45_b8253jn3rxtr4cd0bd7c0000gn/T/ResultBundle_2023-07-09_21-05-0041.xcresult
xcodebuild: error: SDK "macosx12.3" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx12.3'
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
ls -l
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
total 0
drwxr-xr-x 7 root wheel 224 Feb 10 2023 MacOSX.sdk
lrwxr-xr-x 1 root wheel 55 Sep 7 21:06 MacOSX12.3.sdk ->
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk
lrwxr-xr-x 1 root wheel 10 Feb 10 2023 MacOSX13.1.sdk -> MacOSX.sdk
lrwxr-xr-x 1 root wheel 10 Feb 10 2023 MacOSX13.sdk -> MacOSX.sdk
xcrun --sdk macosx12.3 --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
# working
}}}
But {{{PyQt5.QtWebKit}}} seems to not be installed, because of unmatched
"-append" and "-delete" in Portfile:
{{{
...
build.args-append \
...
--disable QtWebKit \
--disable QtWebKitWidgets
...
variant webkit description {Build QtWebKit module} {
qt5.depends_component qtwebkit
build.args-delete --disable=QtWebKit \
--disable=QtWebKitWidgets
}
....
}}}
Changing the latter to:
{{{
build.args-delete --disable QtWebKit --disable
QtWebKitWidgets
}}}
works.
The question is, why is {{{+webkit}}} not default variant?
--
Ticket URL: <https://trac.macports.org/ticket/68073#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list