Page MenuHomeFreeBSD

Port devel/qt4-dbus to arm64
AbandonedPublic

Authored by adridg on Jul 17 2017, 3:44 PM.
Tags
None
Referenced Files
F82868713: D11622.diff
Fri, May 3, 9:29 AM
Unknown Object (File)
Thu, May 2, 1:18 PM
Unknown Object (File)
Mar 19 2024, 2:03 PM
Unknown Object (File)
Mar 7 2024, 10:05 AM
Unknown Object (File)
Jan 7 2024, 5:43 PM
Unknown Object (File)
Dec 22 2023, 2:35 PM
Unknown Object (File)
Dec 20 2023, 1:11 AM
Unknown Object (File)
Dec 13 2023, 4:30 PM

Details

Reviewers
andrew
Group Reviewers
kde
Summary

The qt4 generic atomic operations fail when building for arm64 as they take a void *, but are passed a const QString *. Fix this by casting to a void *.

Test Plan

Built on a ThunderX under Poudriere, including ports dependant on it.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

How far do you actually get with the Qt4 ports on arm64? The header you're patching is also used by several other Qt4 ports, as well as ports depending on Qt. Fedora's patch looks quite bigger.

With this and a patch for www/qt4-webkit I can build 106 ports with a name containing qt4 and 1 failure. I don't see the error in any of the failure logs.

What is the status of this?

devel/qt4-dbus/files/patch-src__corelib__arch__qatomic_generic.h
1

Could you insert a small comment here ala

The qt4 generic atomic operations fail when building for arm64 as they take a void *, but are passed a const QString *. 
Fix this by casting to a void *.

I'm trying to crochet a current Pine64 image (and failing). Building ports on NFS with the older Pine64 image is problematic, so this is kind of difficult to test. It *is* somewhere on our radar, though. But .. Qt4 is rather end-of-life, are you sure you want to put effort into fixing it now?

D13935 has a patch (lifted from Fedora, it's the same one @rakuco mentioned earlier) that implements atomic ops, rather than applying a cast-hammer like this one does. See also PR 223988

adridg added a reviewer: andrew.

The other review's patches were committed which resolve the issue. Commandeering in order to close.

Other solution committed.