Opened 18 months ago

Closed 16 months ago

Last modified 16 months ago

#66177 closed defect (fixed)

qt5-qtwebkit @5.9.2_4 fails to build

Reported by: dershow Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: qt5-qtwebkit

Description

I'm attempting to upgrade qt5-qtwebkit from 5.9.2_3 to 5.9.2_4 and I'm receiving an error:

--->  Computing dependencies for qt5-qtwebkit
--->  Fetching archive for qt5-qtwebkit
--->  Attempting to fetch qt5-qtwebkit-5.9.2_4.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt5-qtwebkit
--->  Attempting to fetch qt5-qtwebkit-5.9.2_4.darwin_21.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/qt5-qtwebkit
--->  Attempting to fetch qt5-qtwebkit-5.9.2_4.darwin_21.x86_64.tbz2 from https://mse.uk.packages.macports.org/qt5-qtwebkit
--->  Fetching distfiles for qt5-qtwebkit
--->  Attempting to fetch qtwebkit-opensource-src-5.9.2.tar.xz from https://distfiles.macports.org/qt5
--->  Verifying checksums for qt5-qtwebkit
--->  Extracting qt5-qtwebkit
--->  Applying patches to qt5-qtwebkit
--->  Configuring qt5-qtwebkit
--->  Building qt5-qtwebkit
Error: Failed to build qt5-qtwebkit: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtwebkit/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

I've attached the log file

Attachments (1)

main.log (5.2 MB) - added by dershow 18 months ago.

Change History (7)

Changed 18 months ago by dershow

Attachment: main.log added

comment:1 Changed 18 months ago by jmroot (Joshua Root)

Cc: MarcusCalhoun-Lopez removed
Owner: set to MarcusCalhoun-Lopez
Status: newassigned
Summary: qtwebkit fails to upgradeqt5-qtwebkit @5.9.2_4 fails to build
:info:build Modules/geolocation/Coordinates.h:36:36: error: implicit instantiation of undefined template 'WTF::PassRefPtr<WebCore::Coordinates>'
:info:build     static PassRefPtr<Coordinates> create(double latitude, double longitude, bool providesAltitude, double altitude, double accuracy, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed) { return adoptRef(new Coordinates(latitude, longitude, providesAltitude, altitude, accuracy, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed)); }
:info:build                                    ^
:info:build ../WTF/wtf/Forward.h:33:32: note: template is declared here
:info:build     template<typename T> class PassRefPtr;
:info:build                                ^

comment:2 Changed 16 months ago by ostefano (Stefano Ortolani)

Is there any workaround for this?

Unfortunately qt5-qtwebkit is a dependency for wkhtmltopdf :/

comment:3 Changed 16 months ago by dershow

Yes, but I'm not sure what. It did ultimately build for me more recently. But, I'm not sure what changed and fixed it. So, I don't think that the ticket should be closed unless there was a fix introduced.

comment:4 Changed 16 months ago by kencu (Ken)

there is a thought that certain headers, which ones not yet sorted out, in the macports prefix might cause the failure.

an arm-only fix is pr’d here https://github.com/macports/macports-ports/pull/16890 but that might need to be used on all systems?

It hasn’t been commited yet as it’s still not fully sorted out.

Last edited 16 months ago by kencu (Ken) (previous) (diff)

comment:5 Changed 16 months ago by jhoyt4

Resolution: fixed
Status: assignedclosed

In 8b528349a8adb591352e8a81ec884764c7bb8e65/macports-ports (master):

qt5-qtwebkit: Fix build for Big Sur, Monterey, and Ventura with header conflicts

On case insensitive file systems, the include search path picks up header files from
macports before the local header files causing an error while compiling. This
modification places flags the known conflicting ports with conflicts_build.

Closes: #63877
Closes: #62027
Closes: #66177
Closes: #63566

[skip ci]

fun

comment:6 Changed 16 months ago by jhoyt4

to get this installed while a more permanent fix is identified do the following:

sudo port -f deactivate libarchive ruby31 ruby30 libevent
sudo port install qt5-qtwebkit
sudo port -f activate libarchive ruby31 ruby30 libevent

Depending on what is installed on your system, you may need to adjust the deactivate/reactivate commands.

Note: See TracTickets for help on using tickets.