From nobody Sun Sep 28 09:31:03 2025 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 4cZJwR3QXhz68Nlp; Sun, 28 Sep 2025 09:31:03 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cZJwR1mk4z3J5D; Sun, 28 Sep 2025 09:31:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759051863; 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=zV24KjRS2Apqc5hRb4Dqb1oIlB8YlmNXJq4Wdmz1X7U=; b=nB2h8OH/yE9hQfKHiJboC45jGKKDUxBspFRXgMiuzQmD4I2gr9Dp2VzrYbOoFuK/Uq5CFi XaLrHSuq82ImP2pfiAh9oVB2QfeB2cB/i03m86JjMcNS9mzeqAES9tewQj+jr38JNdymbl Wah8UgkyHZpGmz0wUdPB0CblXOgJxorGNwRQjp0IOTK2UYeALlg9b3JXSgIXFhy0XZW+uO Hz/wbl5gF8g8quSEcTL4lIsxzMRn0s/g8ku1m2GOJQFGHt6+d0AibseIJiYUkX1q5BxTgu l73Os2ip+6zzxxMVE4+Mxc/Y554odgW19ALfnfNvznKHOtwWP1oodPgqeaskNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759051863; 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=zV24KjRS2Apqc5hRb4Dqb1oIlB8YlmNXJq4Wdmz1X7U=; b=b+HNLTOxZCpazBf6upPEL1L1lvI6sbuODHmD2xsnkGN4sHdp36Mg42L6hsPA5Ql//r/MPR xo/ckBWpPoIFQKe9jonFgoNJSfICd1ydb/Yk9u5qbw7PT5hPG7lmCj7M8frx3jVWZVG1nH pZ8lT26tPvJHLi3SU0KZcKsyzna7+2sLb5HrqN+L4Z7Ly0W0q7cu22n55Ms5NQl5LD9uae Rsq0XzvInPF+MZTCZsR6bw/Fmh5WokxmwSmeRw/WGYZJVnDI/xIMqJ+YnKg1vgT/5Q7pn8 aN9rgPQdOY0Bn1SQbC8S6OjLPo5iOeiyV1Z/s82A5ufwpTaZebR5RBemQmk5Gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759051863; a=rsa-sha256; cv=none; b=NUDEWEqBRKZ1sFT/AR+4b8HWcFuxBHdP3Jy9FExj2Obpfx7X1tVLh48iUThaDXWw0ch9Uo pKLXAJ5Y0agw20lzh+j1PWxDKA2f7KzzIpV4bzx6UvDmOalMyClmA8snKryorzm6owRsAs suB/qK9xKKmqYI82iPbbjXf1V9cXcH5mdG7zIqPN1yiZouJXcjzroEQtW2grBJEWwhGlHI GU7NeNyvh9AkmEpl+v7Hus1uMLAzP8UFcJZRYs06CGMtaCVS/CYEWOSVWBEmPvhaRt3Gj8 GzF7ukgd1/rcYb5FhdvjZ2AQLECF10ZVAJTS4E9StI8E9HGb6hbomiF9CWuN2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cZJwR1JSmz9p; Sun, 28 Sep 2025 09:31:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58S9V3sr036051; Sun, 28 Sep 2025 09:31:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58S9V37q036048; Sun, 28 Sep 2025 09:31:03 GMT (envelope-from git) Date: Sun, 28 Sep 2025 09:31:03 GMT Message-Id: <202509280931.58S9V37q036048@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 714047459cb9 - main - audio/py-soxr: fix build on armv7 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 714047459cb9c5f699ee77e3fae6bf0f855f59ae Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=714047459cb9c5f699ee77e3fae6bf0f855f59ae commit 714047459cb9c5f699ee77e3fae6bf0f855f59ae Author: Robert Clausecker AuthorDate: 2025-09-25 09:58:19 +0000 Commit: Robert Clausecker CommitDate: 2025-09-28 09:29:33 +0000 audio/py-soxr: fix build on armv7 Add getauxval() polyfill. Approved by: portmgr (build fix blanket) MFH: 2025Q3 Event: EuroBSDcon Devsummit 2025 --- audio/py-soxr/Makefile | 1 - audio/py-soxr/files/patch-libsoxr_src_soxr.c | 33 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/audio/py-soxr/Makefile b/audio/py-soxr/Makefile index a971e5b8f9da..1c3230ff9163 100644 --- a/audio/py-soxr/Makefile +++ b/audio/py-soxr/Makefile @@ -11,7 +11,6 @@ WWW= https://github.com/dofuuz/python-soxr LICENSE= LGPL21 BSD3CLAUSE LICENSE_COMB= multi -BROKEN_armv7= compilation fails: soxr.c:17:12: fatal error: 'asm/hwcap.h' file not found BROKEN_i386= fails to compile: ...requires target feature 'sse', but would be inlined into function 'h8' that is compiled without support for 'sse' BUILD_DEPENDS= ${PY_SETUPTOOLS} \ diff --git a/audio/py-soxr/files/patch-libsoxr_src_soxr.c b/audio/py-soxr/files/patch-libsoxr_src_soxr.c new file mode 100644 index 000000000000..30c2a0eedede --- /dev/null +++ b/audio/py-soxr/files/patch-libsoxr_src_soxr.c @@ -0,0 +1,33 @@ +--- libsoxr/src/soxr.c.orig 2022-11-09 12:37:21 UTC ++++ libsoxr/src/soxr.c +@@ -12,10 +12,12 @@ + + #if AVUTIL_FOUND + #include +-#elif HAVE_GETAUXVAL && defined(__arm__) ++#elif HAVE_GETAUXVAL + #include ++#ifdef __linux__ + #include + #endif ++#endif + + + +@@ -243,7 +245,16 @@ soxr_io_spec_t soxr_io_spec( + #endif + #endif + ++#ifdef __FreeBSD__ ++ static unsigned long getauxval(int aux) ++ { ++ unsigned long val = 0; + ++ elf_aux_info(aux, &val, sizeof val); ++ ++ return val; ++ } ++#endif + + #if WITH_CR32S && WITH_CR32 + static bool cpu_has_simd32(void)