From nobody Tue Feb 07 02:46:14 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9nZH2877z3nmX3; Tue, 7 Feb 2023 02:46:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9nZH1c2Pz3hGP; Tue, 7 Feb 2023 02:46:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675737975; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TzQNexYO/xKT9ZIlgidK3mtuHGmKc/NVuMEyFerqf88=; b=xfqbTdbWHSGbTjOX3EG4fLqGy0dRU+GNu90o22h8em1EfYKkllmCxpqpJCPE0hSBf9hDFU wKNjNbqH5YqPwnx0APFUl0XxjW/b5ph3WBNLuz9ZRmJBJVQ9Z/iVgY8SjGNljPaNE+j3h+ 18NvsEkuEh+k0zekPjT1OptGcYdYObaAMmbePsGetGLg/6qtnYOZ/kYi5DE6ZzL4d2AbWI RCJyPd5lj1vpWVWRrvqDBNILA86I2CDwAl9a6PwV/XRW41hg75jLweZp1EWfXNib+i9N/L VwbVvHT0t4+pVG9CiHm+JhW5UOtxuW6Ru4TWlU7ano7gA+7whmh4YqY7/ugtXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675737975; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TzQNexYO/xKT9ZIlgidK3mtuHGmKc/NVuMEyFerqf88=; b=NX3Tyr1RcFPpUvYRujW8A1CiRMMbhwvDvKjO7as9f+8VYCASWz53ELMRuI7bqPbvIrK+ya 3vU3EXXsM8pjdTQT9NMAMcY8piGGpuqY97kgZB5u75hnlOLWDQwN0qnu8qmSMN/RTNT/vv jiwrAe5TI73hoc+wgZ/UvHG51sv/LlCa6ydTo0mHmCArA5Ahzo1lSVvr0g+b+xg1AAx4Ip ODLOgDFsVW8lb3j4y8cXmbrA8pZJTinMysCaBQoSIVQQ1cMYsBPFo7/KW/cLdoznJvJDqy 3s5kpBobTB2TlUWMBzEel6LZDzIMpYVaNLi+JqSNVGJHSBSzUmlA5UX4lJ0U+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675737975; a=rsa-sha256; cv=none; b=fdpWgV8V/qd4HwxFIBvicWBVZU3lfrT97BBCRsrub9ep6zHmkj7bM/kwNiFCp3WK5Eutts hzg6DX3wVS7tqVWxItimYhwtOOfnQkpsgu5hl3jO5A8teatnEGNUNZjdMoJRfpEJEo11ho 1K/m1JT7SsgjnBh5fRd/bKNoDGeK9XGlQDhQGgEJgTusivn1E7JULCXJmUu0XbOehUK2Jm Z6yxM8a9y4o5QCKKUtM/erakox1NBp5oYWhPyKQEApcR5LlDbbAnNe6q2Q9Uh3HqHlNAjN dG3KiTy8gh3MaqXc/B3oGOSMvCR1xN+Cq1rFzStPvHQhukd12ljndYz6wavf8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P9nZH0c65z10G2; Tue, 7 Feb 2023 02:46:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3172kEeS035300; Tue, 7 Feb 2023 02:46:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3172kEVu035299; Tue, 7 Feb 2023 02:46:14 GMT (envelope-from git) Date: Tue, 7 Feb 2023 02:46:14 GMT Message-Id: <202302070246.3172kEVu035299@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 6e55f1e845ca - main - audio/sfizz: fix build on powerpc* and probably also riscv64 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e55f1e845ca3c435aa3b83daad230041525ff77 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=6e55f1e845ca3c435aa3b83daad230041525ff77 commit 6e55f1e845ca3c435aa3b83daad230041525ff77 Author: Piotr Kubaj AuthorDate: 2023-02-07 02:44:57 +0000 Commit: Piotr Kubaj CommitDate: 2023-02-07 02:46:12 +0000 audio/sfizz: fix build on powerpc* and probably also riscv64 1. Apply https://github.com/max0x7ba/atomic_queue/commit/ee3d91cf131e56aa3302a43aeebf7b57a3c97b06 2. Use abseil patch from other ports. 3. Run the strip command meant obviously only for amd64 only on amd64. --- audio/sfizz/Makefile | 3 ++- ...il-cpp_absl_base_internal_unscaledcycleclock.cc | 13 ++++++++++++ ...rnal_atomic__queue_include_atomic__queue_defs.h | 23 ++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/audio/sfizz/Makefile b/audio/sfizz/Makefile index 5f29e7b000df..df77621ecca0 100644 --- a/audio/sfizz/Makefile +++ b/audio/sfizz/Makefile @@ -13,7 +13,6 @@ BROKEN_aarch64= fails to compile: fatal error: 'linux/auxvec.h' file not found, BROKEN_armv6= fails to compile: src/external/cpuid/src/cpuid/detail/init_linux_gcc_arm.hpp: unknown type name 'Elf32_auxv_t', see https://github.com/sfztools/sfizz/issues/1116 BROKEN_armv7= fails to compile: src/external/cpuid/src/cpuid/detail/init_linux_gcc_arm.hpp: unknown type name 'Elf32_auxv_t', see https://github.com/sfztools/sfizz/issues/1116 BROKEN_i386= fails to compile: unknown type name 'Elf64_Auxinfo', see https://github.com/sfztools/sfizz/issues/1110 -BROKEN_riscv64= fails to compile: src/external/atomic_queue/defs.h:45:2: Unknown CPU architecture LIB_DEPENDS= libsndfile.so:audio/libsndfile RUN_DEPENDS= zenity:x11/zenity @@ -78,7 +77,9 @@ post-install-LV2-on: ${STAGEDIR}${PREFIX}/lib/lv2/sfizz.lv2/Contents/Binary/sfizz_ui.so post-install-VST-on: +.if ${ARCH} == amd64 @${STRIP_CMD} \ ${STAGEDIR}${PREFIX}/lib/vst3/sfizz.vst3/Contents/x86_64-linux/sfizz.so +.endif .include diff --git a/audio/sfizz/files/patch-external_abseil-cpp_absl_base_internal_unscaledcycleclock.cc b/audio/sfizz/files/patch-external_abseil-cpp_absl_base_internal_unscaledcycleclock.cc new file mode 100644 index 000000000000..9495230c28b8 --- /dev/null +++ b/audio/sfizz/files/patch-external_abseil-cpp_absl_base_internal_unscaledcycleclock.cc @@ -0,0 +1,13 @@ +--- external/abseil-cpp/absl/base/internal/unscaledcycleclock.cc.orig 2023-02-07 02:19:11 UTC ++++ external/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +@@ -24,8 +24,9 @@ + #ifdef __GLIBC__ + #include + #elif defined(__FreeBSD__) +-#include ++#include "absl/base/call_once.h" + #include ++#include + #endif + #endif + diff --git a/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h b/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h new file mode 100644 index 000000000000..a60be28c6744 --- /dev/null +++ b/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h @@ -0,0 +1,23 @@ +--- external/atomic_queue/include/atomic_queue/defs.h.orig 2023-02-07 02:20:07 UTC ++++ external/atomic_queue/include/atomic_queue/defs.h +@@ -36,8 +36,19 @@ static inline void spin_loop_pause() noexcept { + #endif + } + } // namespace atomic_queue ++#elif defined(__ppc64__) || defined(__powerpc64__) ++namespace atomic_queue { ++constexpr int CACHE_LINE_SIZE = 128; // TODO: Review that this is the correct value. ++static inline void spin_loop_pause() noexcept { ++ asm volatile("or 31,31,31 # very low priority"); // TODO: Review and benchmark that this is the right instruction. ++} ++} // namespace atomic_queue + #else +-#error "Unknown CPU architecture." ++#warning "Unknown CPU architecture. Using L1 cache line size of 64 bytes and no spinloop pause instruction." ++namespace atomic_queue { ++constexpr int CACHE_LINE_SIZE = 64; // TODO: Review that this is the correct value. ++static inline void spin_loop_pause() noexcept {} ++} // namespace atomic_queue + #endif + + ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////