From f1634517e73f2faf342a366354c3e0f2edb45952 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 11 Jan 2025 06:41:28 +0000 Subject: gentoo auto-resync : 11:01:2025 - 06:41:28 --- dev-libs/concurrencykit/Manifest | 3 +- .../concurrencykit/concurrencykit-0.7.2-r1.ebuild | 34 +++++++++++++++++++++ .../concurrencykit/concurrencykit-0.7.2.ebuild | 35 ---------------------- .../concurrencykit-0.7.2-strict-aliasing.patch | 24 +++++++++++++++ 4 files changed, 60 insertions(+), 36 deletions(-) create mode 100644 dev-libs/concurrencykit/concurrencykit-0.7.2-r1.ebuild delete mode 100644 dev-libs/concurrencykit/concurrencykit-0.7.2.ebuild create mode 100644 dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch (limited to 'dev-libs/concurrencykit') diff --git a/dev-libs/concurrencykit/Manifest b/dev-libs/concurrencykit/Manifest index 49a81fcfe793..0cfdf155d52a 100644 --- a/dev-libs/concurrencykit/Manifest +++ b/dev-libs/concurrencykit/Manifest @@ -1,3 +1,4 @@ +AUX concurrencykit-0.7.2-strict-aliasing.patch 901 BLAKE2B 0243537ea093001e8bc705a2d2512b579fe0e69d34281abbc59000f76b48ecac6e610b68f824b649faed682e594bd0e6320dd1966a0f5c9f6105806ce7bd49d4 SHA512 8862d8bf1ae41149b922d749ed0df92cc99c4dbf3423c052d4efc3ff4bf3a58e871d040a2e038a60fad69455b40690575d29893fc30412f4ada22b3216b3b6ba DIST concurrencykit-0.7.2.tar.gz 257817 BLAKE2B e9b58c2e5fc7f39d03a3800117bc215f933cd5b542c293e07934597788e2d33e33cf6d02bbaa54d829b57e2dcaabcf79220398bef3a903a1d39c70bb5553ccb2 SHA512 c3a93a8bbdab2c81ccbfe8f38a17677b912bc157c231c960330cb130e93c35e3aab6b2fd1695d0ea28dbe3e12297851f1b96ef1ee21ca4e4c0065c91b83f51c3 -EBUILD concurrencykit-0.7.2.ebuild 805 BLAKE2B 8f7c319fa61081fc4cb5a98823db4f8f86412b51b43fbab1ef65ebe508312f94954177c1f6b5c45392de9fc07829d0e24beab1bfd7d2b0593367b06d0315babd SHA512 224ce3355aff6fc7cad81403083828e8716b6665906dc2df864b94659939715471760463f3ab8c767c58ed6d4ff31275e652b18edf5fe127fe0c3abeec2b620d +EBUILD concurrencykit-0.7.2-r1.ebuild 778 BLAKE2B a8e9c8790e1f48d6757dc4899b8d50cabb19aa52d7f0702199ee29a5884a13549a5392b5a4f72cbdf887824596ba2ce5444cbbb1791c406757b1fc93bd97381e SHA512 71472a2feea80162ec63aba8aa1d8869ef657f238c398fa6c877cc808247274e7233ea1f4d6fabae2bcf78f7e69074e52cd58a721b3e42464b92f8977d75d220 MISC metadata.xml 333 BLAKE2B 2fd93fa762629a64c971530a13139a483bda381f9fca9a7f8869f13e4a92ab04290ab7bcf3ada28d59a51489d90d3c68c034da3c09dda238c85e753355bc732b SHA512 0c1de28692b06be50656859e8453b4e8e5ca120b1215627a2f07d655f936f352ab0e893042a635fd1204e9d4387af618f7f925574208cea138f130f60e2431e9 diff --git a/dev-libs/concurrencykit/concurrencykit-0.7.2-r1.ebuild b/dev-libs/concurrencykit/concurrencykit-0.7.2-r1.ebuild new file mode 100644 index 000000000000..e02b068bbbfc --- /dev/null +++ b/dev-libs/concurrencykit/concurrencykit-0.7.2-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +MY_PN="ck" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A library with concurrency related algorithms and data structures in C" +HOMEPAGE="http://concurrencykit.org" +SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-2.0 BSD-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" + +# The 'libck.so' has a name collision. +# See bug #616762 for more information. +RDEPEND="!sys-cluster/charm" + +PATCHES=( "${FILESDIR}/${PN}-0.7.2-strict-aliasing.patch" ) + +src_configure() { + tc-export AR CC LD + + local myeconfargs=( + "--disable-static" + ) + + GZIP="" econf ${myeconfargs[@]} +} diff --git a/dev-libs/concurrencykit/concurrencykit-0.7.2.ebuild b/dev-libs/concurrencykit/concurrencykit-0.7.2.ebuild deleted file mode 100644 index e4db47d51ef1..000000000000 --- a/dev-libs/concurrencykit/concurrencykit-0.7.2.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic toolchain-funcs - -MY_PN="ck" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="A library with concurrency related algorithms and data structures in C" -HOMEPAGE="http://concurrencykit.org" -SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="Apache-2.0 BSD-2" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" - -# The 'libck.so' has a name collision. -# See bug #616762 for more information. -RDEPEND="!sys-cluster/charm" - -src_configure() { - # https://github.com/concurrencykit/ck/issues/200 - append-cflags -fno-strict-aliasing - - tc-export AR CC LD - - local myeconfargs=( - "--disable-static" - ) - - GZIP="" econf ${myeconfargs[@]} -} diff --git a/dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch b/dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch new file mode 100644 index 000000000000..457da38deef7 --- /dev/null +++ b/dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch @@ -0,0 +1,24 @@ +From 4f1e5cc70889058e809984a30917ef1d88bdd63d Mon Sep 17 00:00:00 2001 +From: Samy Al Bahra +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); \ -- cgit v1.2.3