Date: Wed, 9 Feb 2022 16:19:54 GMT From: Mikael Urankar <mikael@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 22c0c4f2a6e5 - main - audio/jack: Fix alignas() on non-packed architectures Message-ID: <202202091619.219GJsPc026231@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=22c0c4f2a6e599c4530dc47025f9f7153262f381 commit 22c0c4f2a6e599c4530dc47025f9f7153262f381 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2022-02-09 14:49:45 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-02-09 16:19:35 +0000 audio/jack: Fix alignas() on non-packed architectures Unbreak the build with Clang on architectures where JACK uses non-packed data structures, like arm64 or powerpc. The alignment errors are exposed there because: * The non-packed data structures require 8 byte alignment. * alignas() is not allowed to weaken alignment requirements to 4 bytes. * Clang enforces this according to standard, GCC ignores it. Use an additional alignas() specifier to let the compiler choose between minimum alignment (packed) and "natural" alignment (non-packed). This is both standard c++11 and compatible with older GCC, which does not propagate alignment requirements of packed substructures properly. PR: 261508 Submitted by: Florian Walpen <dev@submerge.ch> --- audio/jack/Makefile | 3 +++ audio/jack/distinfo | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/audio/jack/Makefile b/audio/jack/Makefile index 25a0b22e8c03..c0cfe9ebb489 100644 --- a/audio/jack/Makefile +++ b/audio/jack/Makefile @@ -3,6 +3,9 @@ DISTVERSIONPREFIX= v DISTVERSION= 1.9.20 CATEGORIES= audio +PATCH_SITES= https://github.com/jackaudio/jack2/commit/ +PATCHFILES+= 21b293dbc37d42446141a08922cdec0d2550c6a0.patch:-p1 + MAINTAINER= dev@submerge.ch COMMENT= Low latency audio server diff --git a/audio/jack/distinfo b/audio/jack/distinfo index b8c82243ecda..110a54242cd8 100644 --- a/audio/jack/distinfo +++ b/audio/jack/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1642267444 +TIMESTAMP = 1644418071 SHA256 (jackaudio-jack2-v1.9.20_GH0.tar.gz) = 915ad2900992159bdb729b9fc4ea134b962ce32b2df0b384fee40a2c5808835d SIZE (jackaudio-jack2-v1.9.20_GH0.tar.gz) = 1005000 +SHA256 (21b293dbc37d42446141a08922cdec0d2550c6a0.patch) = 19722d6f2e991006c6f1e470e7bc986ee3ca18ad0f9eb74b01332231c807554f +SIZE (21b293dbc37d42446141a08922cdec0d2550c6a0.patch) = 3952
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202091619.219GJsPc026231>