diff options
| author | root <root@alpha.trunkmasters.com> | 2026-08-17 03:04:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-08-17 03:04:37 -0500 |
| commit | 5e23801c678ccd5c0e28d009b46d8860e38779ce (patch) | |
| tree | 3f70315272c1bd4384b4c71e877a013973c1b86e /dev-libs | |
| parent | 419e92606fe27d657dbe239bd6f440ec8a36d51d (diff) | |
| download | baldeagleos-repo-5e23801c678ccd5c0e28d009b46d8860e38779ce.tar.gz baldeagleos-repo-5e23801c678ccd5c0e28d009b46d8860e38779ce.tar.xz baldeagleos-repo-5e23801c678ccd5c0e28d009b46d8860e38779ce.zip | |
Adding metadata
Diffstat (limited to 'dev-libs')
| -rw-r--r-- | dev-libs/dqlite/dqlite-1.18.2.ebuild | 4 | ||||
| -rw-r--r-- | dev-libs/libei/files/1.6.0-util-explicitly-reject-rejecting-negative-numbers-in.patch | 58 | ||||
| -rw-r--r-- | dev-libs/libei/libei-1.6.0.ebuild | 3 | ||||
| -rw-r--r-- | dev-libs/thrift/thrift-0.24.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-libs/tree-sitter/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.26.12.ebuild | 28 |
6 files changed, 92 insertions, 4 deletions
diff --git a/dev-libs/dqlite/dqlite-1.18.2.ebuild b/dev-libs/dqlite/dqlite-1.18.2.ebuild index 835e3fda54cb..b3568fd5cda0 100644 --- a/dev-libs/dqlite/dqlite-1.18.2.ebuild +++ b/dev-libs/dqlite/dqlite-1.18.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2025 Gentoo Authors +# Copyright 2020-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -11,7 +11,7 @@ SRC_URI="https://github.com/canonical/dqlite/archive/v${PV}.tar.gz -> ${P}.tar.g LICENSE="LGPL-3-with-linking-exception" SLOT="0/1.18.0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 ~x86" IUSE="+lz4 test" RESTRICT="!test? ( test )" diff --git a/dev-libs/libei/files/1.6.0-util-explicitly-reject-rejecting-negative-numbers-in.patch b/dev-libs/libei/files/1.6.0-util-explicitly-reject-rejecting-negative-numbers-in.patch new file mode 100644 index 000000000000..e85258c3b438 --- /dev/null +++ b/dev-libs/libei/files/1.6.0-util-explicitly-reject-rejecting-negative-numbers-in.patch @@ -0,0 +1,58 @@ +From d2825f101c43ebefed8c2327a30eef99176184ae Mon Sep 17 00:00:00 2001 +From: Peter Hutterer <peter.hutterer@who-t.net> +Date: Wed, 24 Jun 2026 11:59:13 +1000 +Subject: [PATCH] util: explicitly reject rejecting negative numbers in xatou + +Make this behave as expected: passing in a negative number should be +rejected, there's no point for the strtoul behavior in libei. + +This fixes the failing test on 32 bits - ULONG_MAX == UINT_MAX so +the previous range check didn't work. + +Closes #95 + +Assisted-by: Claude:claude-opus-4-6 +Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/399> +--- + src/util-strings.c | 2 -- + src/util-strings.h | 8 ++++++++ + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git ./src/util-strings.c ./src/util-strings.c +index 6e6140a..686c5da 100644 +--- ./src/util-strings.c ++++ ./src/util-strings.c +@@ -694,8 +694,6 @@ MUNIT_TEST(test_xatou) + /* Overflow beyond ULONG_MAX - strtoul sets errno, must fail */ + munit_assert_false(xatou("18446744073709551616", &val)); + +- /* negative numbers: strtoul wraps "-1" to ULONG_MAX without +- * setting errno, but v > UINT_MAX catches it */ + munit_assert_false(xatou("-1", &val)); + + /* invalid strings */ +diff --git ./src/util-strings.h ./src/util-strings.h +index e62df4c..6ecde51 100644 +--- ./src/util-strings.h ++++ ./src/util-strings.h +@@ -171,9 +171,17 @@ xatou_base(const char *str, unsigned int *val, int base) + { + char *endptr; + unsigned long v; ++ const char *s = str; + + assert(base == 10 || base == 16 || base == 8); + ++ /* strtoul silently wraps negative numbers but there's no ++ * use-case for our helpers where this makes sense */ ++ while (isspace((unsigned char)*s)) ++ s++; ++ if (*s == '-') ++ return false; ++ + errno = 0; + v = strtoul(str, &endptr, base); + if (errno > 0) +-- +2.54.0 + diff --git a/dev-libs/libei/libei-1.6.0.ebuild b/dev-libs/libei/libei-1.6.0.ebuild index df95ac74f990..8908cc1c038f 100644 --- a/dev-libs/libei/libei-1.6.0.ebuild +++ b/dev-libs/libei/libei-1.6.0.ebuild @@ -14,7 +14,7 @@ SRC_URI+=" https://github.com/nemequ/munit/archive/${MUNIT_COMMIT}.tar.gz -> mun LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc ~x86" IUSE="elogind systemd test" RESTRICT="!test? ( test )" @@ -44,6 +44,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/1.3.0-skip-protocol-test.patch + "${FILESDIR}"/1.6.0-util-explicitly-reject-rejecting-negative-numbers-in.patch ) python_check_deps() { diff --git a/dev-libs/thrift/thrift-0.24.0.ebuild b/dev-libs/thrift/thrift-0.24.0.ebuild index de86df40e672..a04db6588d8a 100644 --- a/dev-libs/thrift/thrift-0.24.0.ebuild +++ b/dev-libs/thrift/thrift-0.24.0.ebuild @@ -16,7 +16,7 @@ SRC_URI=" LICENSE="Apache-2.0" SLOT="0/${PV}" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ppc64 ~riscv ~s390 x86" +KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ppc64 ~riscv ~s390 x86" IUSE="libevent lua +ssl test" REQUIRED_USE="test? ( ssl libevent )" diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest index 573d8073c0c8..003295fb28a3 100644 --- a/dev-libs/tree-sitter/Manifest +++ b/dev-libs/tree-sitter/Manifest @@ -3,6 +3,7 @@ DIST tree-sitter-0.25.10.tar.gz 864648 BLAKE2B ae80d0e995cc5e3b40198caa3a7845f20 DIST tree-sitter-0.25.6.tar.gz 857070 BLAKE2B 3bb6b6130e1a96c96b5af4608bf60f8bbd00cbf1fdc9905b7a6169db52351c2ae3a907eca444363ab2b3185a54d0080aa487cbe252e6e015c1cd7a735e420679 SHA512 47213b68233d376e145e3f42b4674d64e7ff27436f4a028e751d9ad8494469ff67b002ce184346d3f6848df2c91386c28127827c43a8bea34da5e84f2530f02f DIST tree-sitter-0.25.8.tar.gz 857462 BLAKE2B aa3f0d9056544bb6ef1127723563449c7672e06b5289e1596f2c1b5826905c578830c7e6c3bc58a91e388d647a5a5629e71f5f0af2a431e73c3be4f93ce5b6f4 SHA512 0d26d0699f61fa27b5adbc298ff53f8e0f5b9f2f1b216744200f6f50cff777c9c5a5a5b92304a4d1889fccd9d8a6dd6b7d4947bac907a91850322281f754ea53 DIST tree-sitter-0.26.11.tar.gz 920828 BLAKE2B 6406aa003bbd4cdff00a16a20dffe24f8a3081fd0a190216b6ad5aad0393449814c7b2830017ad265ddc67ab57f4494a4fe2409f72a4cf786ce4c291795a9cd0 SHA512 2175f7d1f913fffaba7395baa7b0a3228172bdc25169d22cf3e39fa3841df1a9902031e248e417328f8ea3e48e7042d34bf85a36c8545a79ca5f7321c6b9d848 +DIST tree-sitter-0.26.12.tar.gz 923279 BLAKE2B 18cfd313f07272e4d7254da3ba61b9cc9e590ffa182e5d4a26ba858b3f8b286615d311ad00a9bf75ec4fea6abeefacb07539c2e4acb8cfaddbb49ae4276c523a SHA512 d0e5596b9445bf94177927f5ca6053f473bced8eee9d27f878677c37ad4e1f13d8898220c7156743b57f6c9591840c9c1accb9e1f6f54a6ac302a6875c48466b DIST tree-sitter-0.26.3.tar.gz 900789 BLAKE2B 8532bd460f3fd4e1cec9daecc45fcc85638e5ebde474fc32ccbb9ba77611cf8aff41653295b9b1c267aac62f8e2cf23345193271cc64c975895dd04a3d988c11 SHA512 ae2b59938ce41f6936d98e454adfc05a3890b2b3d24485b0d992e6f1d2dd1e8d9124e6a3eddc3d594f0cdb831362ff2c9b44b72364b22d3526150d23a9d15781 DIST tree-sitter-0.26.5.tar.gz 905701 BLAKE2B 3771c0b31704f6182ae10c2629566984883a9bfcfc914e40a3d30889eb3ef30f19213a45e9732b067042893dd89e27b51b8f5fa50f2d7d8cec81aeb8666ebece SHA512 c8ffa86caf5841208dd2c987c6437111c7514635ebc76e910deb38ba64252caa99ae8453f1acd8af8e167cc2c7fe7194d481cd53533802601b331c60d20f2a49 DIST tree-sitter-0.26.6.tar.gz 906770 BLAKE2B c6fcbc901f86795d6e5de5e22d4b7f34425f1f25ff9134de27baa0a68d917c376accd4a7a9d33faaee4e82e4dd7440085a06b55d5f57e5fe9756c195147867d5 SHA512 33ce5617ac53e276cccc8fa34e3a6b3e29a5bd572b381da4a7d6d78cbb7485d85120be8c0e25e02d3fbae4c36793b02bcfd788a2cdfe73f026742b184e16d572 diff --git a/dev-libs/tree-sitter/tree-sitter-0.26.12.ebuild b/dev-libs/tree-sitter/tree-sitter-0.26.12.ebuild new file mode 100644 index 000000000000..3abf2d9fb7d4 --- /dev/null +++ b/dev-libs/tree-sitter/tree-sitter-0.26.12.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake optfeature + +DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library" +HOMEPAGE="https://tree-sitter.github.io/" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +fi + +LICENSE="MIT" +# ABI is not stable. Revisit after tree-sitter-1.0. +# https://bugs.gentoo.org/930039 +# https://github.com/tree-sitter/tree-sitter/pull/3302 +SLOT="0/${PV}" +RESTRICT="test" # tests are for CLI and not the lib + +pkg_postinst() { + optfeature "building and testing grammars" dev-util/tree-sitter-cli +} |
