From nobody Fri Nov 08 13:09:02 2024 X-Original-To: dev-commits-ports-main@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 4XlK5W1x8hz5cj96; Fri, 08 Nov 2024 13:09: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlK5W1Rzjz4RtR; Fri, 8 Nov 2024 13:09:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731071343; 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=wW2nL3goi7noD3fQ5lp1mUfm+wproRSKL5p5tAjxPk0=; b=irWY4eeDJm1w4GMzA/1IlzJV7txNLe8be/zsnpLun/eSXDsyySfTSLXjGqMXSH2ZWazgDr PwHInKD0hL60TSv6I1pDGGVuk0Fpxj1kDks2FAXCP518vV5cgoFvF0G5rhIa0c+7wY2fKr FDnOqK+arH+hRPFcD//uDQiDZ1tH5JfVMV8K1Djaepmne1P16RPhugsPO+j3b/MbbsHUoU Gl2YSOhnbC4dqKuWGIjROrCro7kWI8tYndmoB74rMGqTNXAvpULo21wGN7dB3bHpYCgcCG HNWZpPQeI+URW2NoiGBDyR7KPaisLxUe3hXDyBg1kr1uNvNb3d4vzS/PSjb9dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731071343; 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=wW2nL3goi7noD3fQ5lp1mUfm+wproRSKL5p5tAjxPk0=; b=vOV0v4MeE4PVJeP4eYiZOvjR2VY2gd5/9wRPSOOT4fjzgeMgxIleLfuZVmZlVmIq1KWD0T 6SyDPkM/yjUcgLXEmLaPZFqfBFCsOLO0y5ARkcAE4E1gwNyjGwo/szxQglOVp3LPLLW08V Vqs7yZ/byTpMMdqz5NcMOnK5MIEa++xu+KzlzGt+u9vJRZvtfxEmDB93C9SCyjmsaIn+QE Eeh908gtx4TduhaHYWUfuaBtE6XHwdHh7nQUYOj7fpbMO/7Mi4kSgQi3xn6mvugU0SJDeZ W8uoJhxJPgubTbnfaX5HCo1dra2I3JvbBmZjYokP9NtgflrKHjDHGDkKtAqXLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731071343; a=rsa-sha256; cv=none; b=eT9Esk+NtQ0lb8xpUhSbCeRli11w4x7nIQPY+3X/Dvj/o62NW+qsrTaaq7+0OqlZhmhDZ0 pT1so8V7wqiqPys6BuAvCTYGzloLCsHF7KZtGuZoS6CHGChogLYFa1dCwehtWM1FtqNO8J URjPqvHMPxYMOSasxqXOMBjBrfOz/PUHVzHmz5bmD9T2jMW3b0GQM2VXOFvMWmdRv4c8mX cYmGfapMMfM+RlEGa9p1nT7xBgsV/HWzxNoScPnmZGjaqmBC9I6Xb5JFqHjPoaBxVDxgjK uiJVgJwadKAlw2aLOKT3IomgQB499kBvKWdbBstdD3xoSiOBp0AEoLgaWo2Irw== 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 4XlK5W0txSzWBc; Fri, 8 Nov 2024 13:09: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 4A8D92RF059116; Fri, 8 Nov 2024 13:09:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8D92UA059113; Fri, 8 Nov 2024 13:09:02 GMT (envelope-from git) Date: Fri, 8 Nov 2024 13:09:02 GMT Message-Id: <202411081309.4A8D92UA059113@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: c70d1de4a1bb - main - multimedia/ringrtc: Fix build on aarch64 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c70d1de4a1bb2631e37bbcfe311a007c96ab32f3 Auto-Submitted: auto-generated The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=c70d1de4a1bb2631e37bbcfe311a007c96ab32f3 commit c70d1de4a1bb2631e37bbcfe311a007c96ab32f3 Author: Mikael Urankar AuthorDate: 2024-11-08 13:08:51 +0000 Commit: Mikael Urankar CommitDate: 2024-11-08 13:08:51 +0000 multimedia/ringrtc: Fix build on aarch64 --- multimedia/ringrtc/files/patch-aarch64 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/multimedia/ringrtc/files/patch-aarch64 b/multimedia/ringrtc/files/patch-aarch64 new file mode 100644 index 000000000000..a54fdaf2a86e --- /dev/null +++ b/multimedia/ringrtc/files/patch-aarch64 @@ -0,0 +1,28 @@ +From d9be0bfca8f9585c2bfc775083124088fd0370ca Mon Sep 17 00:00:00 2001 +From: Miriam Zimmerman +Date: Wed, 2 Oct 2024 10:48:04 -0400 +Subject: [PATCH] Fix build on arm64 linux. + +On arm64 linux, c_char is u8. CStr::from_ptr is documented to take an +i8, but this is not accurate (see +https://github.com/rust-lang/rust/issues/113735); instead, it takes +c_char, which is sometimes but not always the same. One time it is +different is on aarch64 Linux, so without this commit, cubeb-rs fails to +build there. +--- + cubeb-sys/src/device.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cubeb-sys/src/device.rs b/cubeb-sys/src/device.rs +index 5827bf0..bac4a86 100644 +--- cargo-crates/cubeb-sys-0.14.0/src/device.rs ++++ cargo-crates/cubeb-sys-0.14.0/src/device.rs +@@ -182,7 +182,7 @@ impl Default for cubeb_device_info { + + impl fmt::Debug for cubeb_device_info { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { +- fn optional_c_str(c_str: *const i8) -> Option<*const i8> { ++ fn optional_c_str(c_str: *const c_char) -> Option<*const c_char> { + (unsafe { c_str.as_ref() }).map(ptr::from_ref) + } + f.debug_struct("cubeb_device_info")