Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Nov 2020 14:38:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 250952] converters/wkhtmltopdf: fix build on arm64/aarch64
Message-ID:  <bug-250952-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250952

            Bug ID: 250952
           Summary: converters/wkhtmltopdf: fix build on arm64/aarch64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pi@FreeBSD.org
          Reporter: rasmus@gal.dk
          Assignee: pi@FreeBSD.org
             Flags: maintainer-feedback?(pi@FreeBSD.org)

CPU isn't correctly tested on arm64 platform for qt.=20

If two lines are changed in
src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h, it fixes all build
errors on the arch.=20

Line 1000 and onward can be changed from:

#if (CPU(X86_64) && (OS(UNIX) || OS(WINDOWS)))=20
|| (CPU(IA64) && !CPU(IA64_32))=20
|| CPU(ALPHA)=20
|| CPU(SPARC64)=20
|| CPU(S390X)=20
|| CPU(PPC64)=20
|| CPU(MIPS64)
#define WTF_USE_JSVALUE64 1

to:

#if (CPU(X86_64) && (OS(UNIX) || OS(WINDOWS)))=20
|| (CPU(IA64) && !CPU(IA64_32))=20
|| CPU(ALPHA)=20
|| CPU(SPARC64)=20
|| CPU(S390X)=20
|| CPU(PPC64)=20
|| CPU(MIPS64)=20
|| defined(aarch64)
#define WTF_USE_JSVALUE64 1

Of course I sent the above fix to the authors of the software as well:

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4871

But the port is currently disabled in the ports tree on arm64 because of th=
is
defect.

There may be a better way to detect arm64, but the above fix works fine.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250952-7788>