diff options
Diffstat (limited to 'dev-libs')
20 files changed, 259 insertions, 13 deletions
diff --git a/dev-libs/botan/files/botan-3.6.1-no-avx2.patch b/dev-libs/botan/files/botan-3.6.1-no-avx2.patch index a4794738d6cd..b72e23c5d6d9 100644 --- a/dev-libs/botan/files/botan-3.6.1-no-avx2.patch +++ b/dev-libs/botan/files/botan-3.6.1-no-avx2.patch @@ -2,24 +2,28 @@ https://bugs.gentoo.org/946821 https://github.com/randombit/botan/issues/4493 https://github.com/randombit/botan/pull/4494 -From c7f8f6c0967faac1ba66ca3d55560b2aed12863a Mon Sep 17 00:00:00 2001 +From 07d0556e03c4a2f96c0e26073523b944b86cdfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meusel?= <rene.meusel@rohde-schwarz.com> Date: Mon, 23 Dec 2024 09:29:07 +0100 Subject: [PATCH] FIX: SM4 GFNI needs AVX2 closes #4493 --- - src/lib/block/sm4/sm4_gfni/info.txt | 1 + - 1 file changed, 1 insertion(+) + src/lib/block/sm4/sm4_gfni/info.txt | 4 ++++ + 1 file changed, 4 insertions(+) diff --git a/src/lib/block/sm4/sm4_gfni/info.txt b/src/lib/block/sm4/sm4_gfni/info.txt -index 4c5867f9b72..5b5c87b42e7 100644 +index 4c5867f9b72..1ec736e7cd4 100644 --- a/src/lib/block/sm4/sm4_gfni/info.txt +++ b/src/lib/block/sm4/sm4_gfni/info.txt -@@ -9,4 +9,5 @@ brief -> "SM4 using Intel GFNI" +@@ -7,6 +7,10 @@ name -> "SM4 GFNI" + brief -> "SM4 using Intel GFNI" + </module_info> ++<requires> ++simd_avx2 ++</requires> ++ <isa> gfni -+avx2 </isa> - diff --git a/dev-libs/criterion/criterion-2.4.1-r1.ebuild b/dev-libs/criterion/criterion-2.4.1-r1.ebuild index 2bf0c4da2c69..ad387aeec93e 100644 --- a/dev-libs/criterion/criterion-2.4.1-r1.ebuild +++ b/dev-libs/criterion/criterion-2.4.1-r1.ebuild @@ -36,6 +36,10 @@ DEPEND="${RDEPEND} BDEPEND="dev-build/cmake virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${PN}-2.4.1-includes.patch +) + python_check_deps() { has_version "dev-util/cram[${PYTHON_USEDEP}]" } diff --git a/dev-libs/criterion/files/criterion-2.4.1-includes.patch b/dev-libs/criterion/files/criterion-2.4.1-includes.patch new file mode 100644 index 000000000000..9fbce640ce5e --- /dev/null +++ b/dev-libs/criterion/files/criterion-2.4.1-includes.patch @@ -0,0 +1,14 @@ +--- a/include/criterion/alloc.h ++++ b/include/criterion/alloc.h +@@ -31,9 +31,11 @@ + #ifdef __cplusplus + # include <memory> + # include <cstddef> ++# include <cstdint> + using std::size_t; + #else + # include <stddef.h> ++# include <stdint.h> + #endif + #include "internal/common.h" + diff --git a/dev-libs/cxxopts/Manifest b/dev-libs/cxxopts/Manifest index 7c4f5f353d16..b2a7ac501f93 100644 --- a/dev-libs/cxxopts/Manifest +++ b/dev-libs/cxxopts/Manifest @@ -1,2 +1,3 @@ DIST cxxopts-3.0.0.tar.gz 97020 BLAKE2B 129b055dd03ce9e4a146d36587063f7155b47456d81e395ae6eeab8012e8d6cfcb410c305353f2ac2ec66a2f3e8d6169e1a0d27c53dcb35388b967d3c9cc86f1 SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c DIST cxxopts-3.2.0.tar.gz 160534 BLAKE2B b6fead8930e83b4af089631e584bec0777da2e7b58aeb5e44b03a1655795dd3aff3923a245699e936bef7e0e871da2c86dd5639d44a839f1ac305a694e811feb SHA512 7265de66b92591255488d01bc26ca874423c75223e2e157a99f14fdd3e92e8d2669b72732acac3ce835190f1a09c13a994c480f0513f229eba8aa008e3d98955 +DIST cxxopts-3.2.1.tar.gz 160606 BLAKE2B 891657d5c00213ae79a1f7600627829f114cf17c3f5c332b1a1c2dcdf2ba7c4a46826f5e0bdff2c09803396fdf133c12d35f6d76b01e473c83bc0fc130821ad4 SHA512 7841fb3e6c3c2a057917c962e29fc0090e6ed06f5515aaa5e2a868fef59071a9a99b74d81c32cf613ecf10a68a4d96d6ad07805f48c7c3951ded096a2317dc3d diff --git a/dev-libs/cxxopts/cxxopts-3.2.1.ebuild b/dev-libs/cxxopts/cxxopts-3.2.1.ebuild new file mode 100644 index 000000000000..bc1006c6538a --- /dev/null +++ b/dev-libs/cxxopts/cxxopts-3.2.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Lightweight C++ command line option parser" +HOMEPAGE="https://github.com/jarro2783/cxxopts" +SRC_URI="https://github.com/jarro2783/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="icu test" + +RESTRICT=" + !test? ( test ) +" + +DOCS=( + README.md + CHANGELOG.md +) + +src_prepare() { + sed -r -e 's:-Werror[[:space:]]*::' -i cmake/cxxopts.cmake || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCXXOPTS_BUILD_EXAMPLES:BOOL=OFF + -DCXXOPTS_BUILD_TESTS:BOOL=$(usex test) + -DCXXOPTS_ENABLE_INSTALL:BOOL=ON + -DCXXOPTS_USE_UNICODE_HELP:BOOL=$(usex icu) + ) + cmake_src_configure +} diff --git a/dev-libs/hyprgraphics/Manifest b/dev-libs/hyprgraphics/Manifest new file mode 100644 index 000000000000..4da1aecd35c4 --- /dev/null +++ b/dev-libs/hyprgraphics/Manifest @@ -0,0 +1 @@ +DIST hyprgraphics-0.1.1.gh.tar.gz 421561 BLAKE2B 1f99b2db950c700aae7273ef6a883470165e1b45656c958d5c3999080ecc8372a5114cdf3e5baa812778bd0f157683e38d44f8a3f62eb060b0e48b1ce5ac2a22 SHA512 9295ab3bfcdfed42425ca21d0b8c48f4fc6abba377eaf07ac638e077181380ae57fd352a67420540fda7c4709cae77cde563f328271e36fc38c3101e04e8fd69 diff --git a/dev-libs/hyprgraphics/hyprgraphics-0.1.1.ebuild b/dev-libs/hyprgraphics/hyprgraphics-0.1.1.ebuild new file mode 100644 index 000000000000..c5c096e4cd92 --- /dev/null +++ b/dev-libs/hyprgraphics/hyprgraphics-0.1.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Hyprland graphics / resource utilities" +HOMEPAGE="https://github.com/hyprwm/hyprgraphics" +SRC_URI="https://github.com/hyprwm/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=gui-libs/hyprutils-0.1.1:= + media-libs/libjpeg-turbo:= + media-libs/libjxl:= + media-libs/libwebp:= + sys-apps/file + x11-libs/cairo +" +DEPEND="${RDEPEND}" diff --git a/dev-libs/hyprgraphics/metadata.xml b/dev-libs/hyprgraphics/metadata.xml new file mode 100644 index 000000000000..3c6ac7a66b0b --- /dev/null +++ b/dev-libs/hyprgraphics/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>julien@jroy.ca</email> + <name>Julien Roy</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> +Hyprgraphics is a small C++ library with graphics / resource related utilities used across the hypr* ecosystem. + </longdescription> + <upstream> + <bugs-to>https://github.com/hyprwm/hyprgraphics/issues</bugs-to> + <changelog>https://github.com/hyprwm/hyprgraphics/releases</changelog> + <remote-id type="github">hyprwm/hyprgraphics</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-libs/hyprland-protocols/hyprland-protocols-0.4.0.ebuild b/dev-libs/hyprland-protocols/hyprland-protocols-0.4.0.ebuild index f5179590cd2f..0de43fcf06fb 100644 --- a/dev-libs/hyprland-protocols/hyprland-protocols-0.4.0.ebuild +++ b/dev-libs/hyprland-protocols/hyprland-protocols-0.4.0.ebuild @@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 else SRC_URI="https://github.com/hyprwm/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" - KEYWORDS="~amd64 ~riscv" + KEYWORDS="amd64 ~riscv" fi LICENSE="BSD" diff --git a/dev-libs/hyprlang/Manifest b/dev-libs/hyprlang/Manifest index c803c20cf264..4af83969ae13 100644 --- a/dev-libs/hyprlang/Manifest +++ b/dev-libs/hyprlang/Manifest @@ -1,3 +1,3 @@ -DIST hyprlang-0.5.1.gh.tar.gz 56237 BLAKE2B 1d93362d4e121dc0d6e18d27456be71bed088d79646a92a74e41af7ebefd511cef05c12034eb679fd1849c3c95e50e425a52a42da75f274bf39d2956d6bd6d5e SHA512 92bf1e79c41c33e09de25f45e8abfe753736521be06fee298875a68072761bf0254d06d2d312a12b2ae750d8710f50d1666f1b3fbbb95c338398f2b9e80ce454 DIST hyprlang-0.5.2.gh.tar.gz 56383 BLAKE2B 0d7708532e5169b0b0c2d5f88927ead24941af157c668832bdc67f4e87da1737d9f17d6d26b2424519bce4b54e4912c44ef879546d699ba03e270cab73652a89 SHA512 df330da11da317ff6aac2eb4a65c81b6cf4fc85e79f117e3fc3ef6e06d4c857d03134be9fcdc4e33f4974a4b2181e45b6009dba70ed047cda38e32df289b60a7 DIST hyprlang-0.5.3.gh.tar.gz 56761 BLAKE2B 5f8803b697b2d3e8f7bb386b6a07c10c1d66f97c0e4a034d5e9eb4272b250ba0665ee92d74277fd0f85b3857954b91890c199da16c27cd594a5c4975c55c15c0 SHA512 b5ab72d0f6ddb4c190bb2c2a495fab0128de0b5432b3161785b2ef0111aaea18ca42f17bc77248a4a4ab8b86d7cdd9b3acf415d495d4fcac42cf8bab5bc87df6 +DIST hyprlang-0.6.0.gh.tar.gz 57475 BLAKE2B 6d9783b87e2c2cecd965b82733eb40db357b6c18be031e3e15ab7436ecedf1a93fb1fcf27bcc3edd13e14fe697e65b790b7cf06e29ffe15595e6ba9564d552fc SHA512 bd7aee527acc82accaf47fe061844103520787da638df769ec7f2978fb2334c33b01e0b37af03cd66f4a6dc447bbecb2ede8ed61fa59c59044aae4f631e90823 diff --git a/dev-libs/hyprlang/hyprlang-0.5.3.ebuild b/dev-libs/hyprlang/hyprlang-0.5.3.ebuild index 695f9358068e..f2f3ebc0b9ee 100644 --- a/dev-libs/hyprlang/hyprlang-0.5.3.ebuild +++ b/dev-libs/hyprlang/hyprlang-0.5.3.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://github.com/hyprwm/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz LICENSE="GPL-3" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" RDEPEND=">=gui-libs/hyprutils-0.1.1" DEPEND="${RDEPEND}" diff --git a/dev-libs/hyprlang/hyprlang-0.5.1.ebuild b/dev-libs/hyprlang/hyprlang-0.6.0.ebuild index 9884a4ce9a12..7b3f37ecbece 100644 --- a/dev-libs/hyprlang/hyprlang-0.5.1.ebuild +++ b/dev-libs/hyprlang/hyprlang-0.6.0.ebuild @@ -11,4 +11,7 @@ SRC_URI="https://github.com/hyprwm/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz LICENSE="GPL-3" SLOT="0" -KEYWORDS="amd64 ~riscv" +KEYWORDS="~amd64" + +RDEPEND=">=gui-libs/hyprutils-0.1.1:=" +DEPEND="${RDEPEND}" diff --git a/dev-libs/libjcat/files/libjcat-0.2.2-tests.patch b/dev-libs/libjcat/files/libjcat-0.2.2-tests.patch new file mode 100644 index 000000000000..82f1b6a38286 --- /dev/null +++ b/dev-libs/libjcat/files/libjcat-0.2.2-tests.patch @@ -0,0 +1,36 @@ +https://bugs.gentoo.org/946985 +https://github.com/hughsie/libjcat/commit/130179f55a4eba1e885ca4ea1b4b2aa0a8d24605 + +From 130179f55a4eba1e885ca4ea1b4b2aa0a8d24605 Mon Sep 17 00:00:00 2001 +From: Heiko Becker <mail@heiko-becker.de> +Date: Sat, 2 Nov 2024 15:06:31 +0100 +Subject: [PATCH] Skip ed25519 part of a test with -Ded25519=false + +Otherwise it fails with "jcat-self-test.c:1147:jcat_bt_common_func: +assertion failed (error == NULL): Jcat engine kind 'ed25519' not +supported (g-io-error-quark, 1)" +--- + libjcat/jcat-self-test.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libjcat/jcat-self-test.c b/libjcat/jcat-self-test.c +index 68e1273..cc92e12 100644 +--- a/libjcat/jcat-self-test.c ++++ b/libjcat/jcat-self-test.c +@@ -1142,6 +1142,7 @@ jcat_bt_common_func(void) + g_assert_no_error(error); + g_assert_nonnull(btcheckpoint); + ++#ifdef ENABLE_ED25519 + /* get engine */ + engine = jcat_context_get_engine(context, JCAT_BLOB_KIND_ED25519, &error); + g_assert_no_error(error); +@@ -1162,6 +1163,7 @@ jcat_bt_common_func(void) + &error); + g_assert_no_error(error); + g_assert_nonnull(result); ++#endif + } + + int + diff --git a/dev-libs/libjcat/libjcat-0.2.2.ebuild b/dev-libs/libjcat/libjcat-0.2.2.ebuild index f584d650c90e..56480d506397 100644 --- a/dev-libs/libjcat/libjcat-0.2.2.ebuild +++ b/dev-libs/libjcat/libjcat-0.2.2.ebuild @@ -44,6 +44,10 @@ BDEPEND=" RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}"/${P}-tests.patch +) + python_check_deps() { python_has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]" } diff --git a/dev-libs/mimalloc/mimalloc-2.1.7.ebuild b/dev-libs/mimalloc/mimalloc-2.1.7.ebuild index d72d8e0d7a12..1d649bf86b04 100644 --- a/dev-libs/mimalloc/mimalloc-2.1.7.ebuild +++ b/dev-libs/mimalloc/mimalloc-2.1.7.ebuild @@ -12,13 +12,14 @@ SRC_URI="https://github.com/microsoft/mimalloc/archive/refs/tags/v${PV}.tar.gz - LICENSE="MIT" SLOT="0/2" KEYWORDS="amd64 ~arm ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="hardened test valgrind" +IUSE="debug hardened test valgrind" RESTRICT="!test? ( test )" DEPEND="valgrind? ( dev-debug/valgrind )" src_configure() { local mycmakeargs=( + -DMI_DEBUG_FULL=$(usex debug) -DMI_SECURE=$(usex hardened) -DMI_INSTALL_TOPLEVEL=ON -DMI_BUILD_TESTS=$(usex test) diff --git a/dev-libs/nanomsg/files/nanomsg-1.2.1-chunk.patch b/dev-libs/nanomsg/files/nanomsg-1.2.1-chunk.patch new file mode 100644 index 000000000000..7d6cec725939 --- /dev/null +++ b/dev-libs/nanomsg/files/nanomsg-1.2.1-chunk.patch @@ -0,0 +1,49 @@ +https://bugs.gentoo.org/934665 +https://github.com/nanomsg/nanomsg/issues/1111#issuecomment-2113151297 +(acked by upstream at https://github.com/nanomsg/nanomsg/issues/1111#issuecomment-2305516234) + +--- a/src/utils/chunkref.c ++++ b/src/utils/chunkref.c +@@ -52,6 +52,7 @@ + { + if (self->size == NN_CHUNKREF_EXT) { + nn_chunk_free (self->u.chunk); ++ self->size = 0; + } + } + +@@ -80,6 +81,8 @@ + dst->size = src->size; + if (src->size == NN_CHUNKREF_EXT) { + dst->u.chunk = src->u.chunk; ++ // self->u.chunk = NULL; ++ // src->size = 0; + } else { + nn_assert (src->size <= NN_CHUNKREF_MAX); + memcpy (dst->u.ref, src->u.ref, src->size); +@@ -100,7 +103,7 @@ + + void *nn_chunkref_data (struct nn_chunkref *self) + { +- if (self->size > NN_CHUNKREF_MAX) { ++ if (self->size == NN_CHUNKREF_EXT) { + return self->u.chunk; + } else { + return self->u.ref; +@@ -109,7 +112,7 @@ + + size_t nn_chunkref_size (struct nn_chunkref *self) + { +- if (self->size > NN_CHUNKREF_MAX) { ++ if (self->size == NN_CHUNKREF_EXT) { + return (nn_chunk_size(self->u.chunk)); + } + return self->size; +@@ -118,7 +121,7 @@ + void nn_chunkref_trim (struct nn_chunkref *self, size_t n) + { + if (self->size == NN_CHUNKREF_EXT) { +- nn_chunk_trim (self->u.chunk, n); ++ self->u.chunk = nn_chunk_trim(self->u.chunk, n); + return; + } diff --git a/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild b/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild new file mode 100644 index 000000000000..c4951bd35d86 --- /dev/null +++ b/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="High-performance messaging interface for distributed applications" +HOMEPAGE="https://nanomsg.org/" +SRC_URI="https://github.com/nanomsg/nanomsg/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/6.0.1" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~riscv ~x86" +IUSE="doc" + +BDEPEND="doc? ( dev-ruby/asciidoctor )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.1-chunk.patch +) + +src_prepare() { + # Old CPUs like HPPA fails test because of timeout + sed -i \ + -e '/inproc_shutdown/s/10/80/' \ + -e '/ws_async_shutdown/s/10/80/' \ + -e '/ipc_shutdown/s/40/80/' CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DNN_STATIC_LIB=OFF + -DNN_ENABLE_DOC=$(usex doc) + ) + + cmake_src_configure +} diff --git a/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild b/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild index 4b321cb51bfc..a64a2cf3bb9c 100644 --- a/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild +++ b/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild @@ -35,7 +35,7 @@ PATCHES=( src_configure() { local mycmakeargs=( - # tests are non-automated examples that open interactive dialogues + # tests are non-automated examples that open interactive dialogs -DNFD_BUILD_TESTS=no -DNFD_PORTAL=$(usex desktop-portal) ) diff --git a/dev-libs/redland-bindings/metadata.xml b/dev-libs/redland-bindings/metadata.xml index b69a849fd57e..4b651c1ad2d6 100644 --- a/dev-libs/redland-bindings/metadata.xml +++ b/dev-libs/redland-bindings/metadata.xml @@ -5,4 +5,7 @@ <email>sound@gentoo.org</email> <name>Gentoo Sound project</name> </maintainer> +<upstream> + <remote-id type="github">dajobe/redland-bindings</remote-id> +</upstream> </pkgmetadata> diff --git a/dev-libs/redland/metadata.xml b/dev-libs/redland/metadata.xml index b69a849fd57e..a84fb6073cdf 100644 --- a/dev-libs/redland/metadata.xml +++ b/dev-libs/redland/metadata.xml @@ -5,4 +5,7 @@ <email>sound@gentoo.org</email> <name>Gentoo Sound project</name> </maintainer> +<upstream> + <remote-id type="github">dajobe/librdf</remote-id> +</upstream> </pkgmetadata> |