Date: Mon, 03 Aug 2026 15:21:56 +0000 From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 032f99b314fd - main - security/py-utls: fix build on powerpc64* Message-ID: <6a70b214.3b873.30cbc533@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=032f99b314fd06337d910e1425719e12784053e8 commit 032f99b314fd06337d910e1425719e12784053e8 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2026-08-03 13:27:25 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2026-08-03 15:21:30 +0000 security/py-utls: fix build on powerpc64* /wrkdirs/usr/ports/security/py-utls/work-py312/utls-2026.7.8/target/release/build/boring-sys-5d0bded094004099/out/boringssl/include/openssl/target.h:76:2: error: "Unknown target CPU" --- security/py-utls/Makefile | 4 ++++ .../py-utls/files/patch-boringssl_include_openssl_target.h | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/security/py-utls/Makefile b/security/py-utls/Makefile index a4d1ef5f1616..023dcfe70ed3 100644 --- a/security/py-utls/Makefile +++ b/security/py-utls/Makefile @@ -20,6 +20,10 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wassima>=1<3:security/py-wassima@${PY_FLAVOR USES= cargo llvm:build python USE_PYTHON= autoplist concurrent pep517 +# BoringSSL ships no PowerPC assembly, so use the portable C implementations. +CFLAGS_powerpc64le= -DOPENSSL_NO_ASM +CXXFLAGS_powerpc64le= -DOPENSSL_NO_ASM + CARGO_BUILD= no CARGO_INSTALL= no diff --git a/security/py-utls/files/patch-boringssl_include_openssl_target.h b/security/py-utls/files/patch-boringssl_include_openssl_target.h new file mode 100644 index 000000000000..2b2469f37575 --- /dev/null +++ b/security/py-utls/files/patch-boringssl_include_openssl_target.h @@ -0,0 +1,14 @@ +--- ../boringssl-e2a57cf/include/openssl/target.h.orig ++++ ../boringssl-e2a57cf/include/openssl/target.h +@@ -56,6 +56,11 @@ + #define OPENSSL_32_BIT + #elif defined(__myriad2__) + #define OPENSSL_32_BIT ++#elif defined(__powerpc64__) ++// PowerPC64 has no BoringSSL assembly; the portable C code is used and the ++// build must define OPENSSL_NO_ASM. BoringSSL only officially supports ++// little-endian, so big-endian ppc64 is unverified. ++#define OPENSSL_64_BIT + #else + // The list above enumerates the platforms that BoringSSL supports. For these + // platforms we keep a reasonable bar of not breaking them: automated testhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a70b214.3b873.30cbc533>
