mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/concurrencykit: add patch for strict-aliasing
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -21,10 +21,9 @@ KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
|
||||
# See bug #616762 for more information.
|
||||
RDEPEND="!sys-cluster/charm"
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/concurrencykit/ck/issues/200
|
||||
append-cflags -fno-strict-aliasing
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.7.2-strict-aliasing.patch" )
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CC LD
|
||||
|
||||
local myeconfargs=(
|
||||
@@ -0,0 +1,24 @@
|
||||
From 4f1e5cc70889058e809984a30917ef1d88bdd63d Mon Sep 17 00:00:00 2001
|
||||
From: Samy Al Bahra <sbahra@fileshield.io>
|
||||
Date: Fri, 10 Jan 2025 19:48:41 -0500
|
||||
Subject: [PATCH] regressions/ck_pr: fix type aliasing warning.
|
||||
|
||||
Fixes #200
|
||||
---
|
||||
regressions/ck_pr/validate/ck_pr_store.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/regressions/ck_pr/validate/ck_pr_store.c b/regressions/ck_pr/validate/ck_pr_store.c
|
||||
index e012b222..428655bc 100644
|
||||
--- a/regressions/ck_pr/validate/ck_pr_store.c
|
||||
+++ b/regressions/ck_pr/validate/ck_pr_store.c
|
||||
@@ -67,7 +67,8 @@
|
||||
{ \
|
||||
uint##m##_t f = 0; \
|
||||
uint##w##_t j = (uint##w##_t)-1; \
|
||||
- ck_pr_store_##w((uint##w##_t *)(void *)&f, j); \
|
||||
+ void *f_p = &f; \
|
||||
+ ck_pr_store_##w((uint##w##_t *)f_p, j); \
|
||||
if (f != j) { \
|
||||
printf("FAIL [%#" PRIx##m " != %#" PRIx##w "]\n", f, j);\
|
||||
exit(EXIT_FAILURE); \
|
||||
Reference in New Issue
Block a user