summaryrefslogtreecommitdiff
path: root/dev-libs
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-10-07 03:05:00 -0500
committerCrucible <crucible@localhost>2026-10-07 03:05:00 -0500
commit4f8f07779b4dd78123821b104e43fd1eb15281dd (patch)
tree50283d655e8953ffa4cd36a42b39f72f09fed20b /dev-libs
parent21cec7ace42ae94a3a1b32ecec396a199eebf3c9 (diff)
downloadsrcux-4f8f07779b4dd78123821b104e43fd1eb15281dd.tar.gz
srcux-4f8f07779b4dd78123821b104e43fd1eb15281dd.tar.xz
srcux-4f8f07779b4dd78123821b104e43fd1eb15281dd.zip
Publish srcux candidate 0000000583-20261007-030305
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/boost/boost-1.91.0-r2.ebuild2
-rw-r--r--dev-libs/elfutils/elfutils-9999.ebuild12
-rw-r--r--dev-libs/elfutils/files/elfutils-0.197-musl-aarch64-regs.patch37
-rw-r--r--dev-libs/nss/files/nss-3.126-bmo-2027768-fix-build-failure-due-to-missing-gcm-stubs-if-on-big-endian.patch91
-rw-r--r--dev-libs/nss/files/nss-3.128-bmo-2067434-avoid-building-libcurx-twice-in-makefile-builds.patch20
5 files changed, 44 insertions, 118 deletions
diff --git a/dev-libs/boost/boost-1.91.0-r2.ebuild b/dev-libs/boost/boost-1.91.0-r2.ebuild
index eab6facf4661..9e7b0509d752 100644
--- a/dev-libs/boost/boost-1.91.0-r2.ebuild
+++ b/dev-libs/boost/boost-1.91.0-r2.ebuild
@@ -18,7 +18,7 @@ S="${WORKDIR}/${PN}_${MY_PV}"
LICENSE="Boost-1.0"
SLOT="0/${PV}"
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="bzip2 +context debug doc icu lzma +nls mpi numpy python +stacktrace test test-full tools zlib zstd"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
diff --git a/dev-libs/elfutils/elfutils-9999.ebuild b/dev-libs/elfutils/elfutils-9999.ebuild
index 865d08243268..c97bbba5c179 100644
--- a/dev-libs/elfutils/elfutils-9999.ebuild
+++ b/dev-libs/elfutils/elfutils-9999.ebuild
@@ -28,7 +28,7 @@ fi
LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
SLOT="0"
-IUSE="bzip2 +debuginfod +libarchive libpfm +lzma nls stackprof static-libs test +utils valgrind zstd"
+IUSE="bzip2 +debuginfod +libarchive libpfm +lzma nls stackprof static-libs threads test +utils valgrind zstd"
RESTRICT="!test? ( test )"
REQUIRED_USE="debuginfod? ( libarchive )"
@@ -67,7 +67,7 @@ BDEPEND+="
"
PATCHES=(
- "${FILESDIR}"/${PN}-0.189-musl-aarch64-regs.patch
+ "${FILESDIR}"/${PN}-0.197-musl-aarch64-regs.patch
"${FILESDIR}"/${PN}-0.191-musl-macros.patch
"${FILESDIR}"/${PN}-0.196-skip-static-test.patch
)
@@ -137,9 +137,9 @@ multilib_src_configure() {
$(multilib_native_use_enable stackprof)
$(use_enable valgrind valgrind-annotations)
- # Explicitly disable thread safety, it's not recommended by upstream
- # (marked experimental in configure) and doesn't build either on musl.
- --disable-thread-safety
+ # TODO: This can become unconditional in a release after
+ # 0.196 depending on upstream progress.
+ $(use_enable threads thread-safety)
# Valgrind option is just for running tests under it; dodgy under sandbox
# and indeed even w/ glibc with newer instructions.
@@ -163,7 +163,7 @@ multilib_src_configure() {
multilib_src_test() {
env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
- LC_ALL="C" \
+ LC_ALL="C.UTF-8" \
emake check VERBOSE=1
}
diff --git a/dev-libs/elfutils/files/elfutils-0.197-musl-aarch64-regs.patch b/dev-libs/elfutils/files/elfutils-0.197-musl-aarch64-regs.patch
new file mode 100644
index 000000000000..852ba234bf05
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.197-musl-aarch64-regs.patch
@@ -0,0 +1,37 @@
+https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832
+https://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
+https://bugs.gentoo.org/693772
+
+Other variants/links:
+https://git.alpinelinux.org/aports/tree/main/elfutils/fix-aarch64_fregs.patch
+https://github.com/gentoo/musl/blob/6450482b9b4463b57ac249c63b7ed796e9874c40/dev-libs/elfutils/files/0.178/fix-aarch64_fregs.patch
+
+From: Hongxu Jia <hongxu.jia@windriver.com>
+Date: Tue, 15 Aug 2017 17:27:30 +0800
+Subject: [PATCH] Fix build on aarch64/musl
+
+Errors
+
+invalid operands to binary & (have 'long double' and 'unsigned int')
+
+error: redefinition
+ of 'struct iovec'
+ struct iovec { void *iov_base; size_t iov_len; };
+ ^
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Rebase to 0.170
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+
+--- a/backends/aarch64_initreg.c
++++ b/backends/aarch64_initreg.c
+@@ -82,7 +82,7 @@ aarch64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
+
+ Dwarf_Word dwarf_fregs[32];
+ for (int r = 0; r < 32; r++)
+- dwarf_fregs[r] = fregs.vregs[r] & 0xFFFFFFFF;
++ dwarf_fregs[r] = (unsigned int)fregs.vregs[r] & 0xFFFFFFFF;
+
+ if (! setfunc (64, 32, dwarf_fregs, arg))
+ return false;
diff --git a/dev-libs/nss/files/nss-3.126-bmo-2027768-fix-build-failure-due-to-missing-gcm-stubs-if-on-big-endian.patch b/dev-libs/nss/files/nss-3.126-bmo-2027768-fix-build-failure-due-to-missing-gcm-stubs-if-on-big-endian.patch
deleted file mode 100644
index c7145daf69ba..000000000000
--- a/dev-libs/nss/files/nss-3.126-bmo-2027768-fix-build-failure-due-to-missing-gcm-stubs-if-on-big-endian.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-diff --git a/coreconf/Linux.mk b/coreconf/Linux.mk
---- a/coreconf/Linux.mk
-+++ b/coreconf/Linux.mk
-@@ -186,10 +186,18 @@
- FREEBL_LOWHASH = 1
- endif
- endif
- endif
-
-+# Test toolchain for endianness and set LITTLE_ENDIAN variable accordingly
-+ENDIANNESS := $(shell echo | $(CC) -dM -E - | grep __BYTE_ORDER__)
-+ifeq ($(findstring __ORDER_LITTLE_ENDIAN__,$(ENDIANNESS)),__ORDER_LITTLE_ENDIAN__)
-+ LITTLE_ENDIAN := 1
-+else
-+ LITTLE_ENDIAN := 0
-+endif
-+
- USE_SYSTEM_ZLIB = 1
- ZLIB_LIBS = -lz
-
- # The -rpath '$$ORIGIN' linker option instructs this library to search for its
- # dependencies in the same directory where it resides.
-diff '--color=auto' -Naur a/lib/freebl/Makefile b/lib/freebl/Makefile
---- a/lib/freebl/Makefile 2026-07-19 11:30:59.568272858 +0300
-+++ b/lib/freebl/Makefile 2026-07-19 12:20:56.138305051 +0300
-@@ -112,7 +112,10 @@
- # NSS_X64 means the target is a 64-bits 64 CPU architecture
- # NSS_X86_OR_X64 means the target is either x86 or x64
- ifeq (,$(filter-out i386 x386 x86 x86_64,$(CPU_ARCH)))
-- DEFINES += -DNSS_X86_OR_X64 -DHAVE_PLATFORM_GHASH
-+ DEFINES += -DNSS_X86_OR_X64
-+ ifeq ($(LITTLE_ENDIAN),1)
-+ DEFINES += -DHAVE_PLATFORM_GHASH
-+ endif
- EXTRA_SRCS += ghash-x86.c aes-x86.c
- $(OBJDIR)/ghash-x86.o: CFLAGS += -mpclmul -maes
- $(OBJDIR)/aes-x86.o: CFLAGS += -mpclmul -maes
-@@ -138,7 +141,10 @@
- endif
- ifeq ($(CPU_ARCH),aarch64)
- ifdef CC_IS_CLANG
-- DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 -DHAVE_PLATFORM_GHASH
-+ DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
-+ ifeq ($(LITTLE_ENDIAN),1)
-+ DEFINES += -DHAVE_PLATFORM_GHASH
-+ endif
- EXTRA_SRCS += aes-armv8.c ghash-aarch64.c sha1-armv8.c sha256-armv8.c
- else ifeq (1,$(CC_IS_GCC))
- # GCC versions older than 4.9 don't support ARM AES. The check
-@@ -146,11 +152,17 @@
- # and then rejects any major versions prior to 5. Note that
- # there has been no GCC 4.10, as it was renamed to GCC 5.
- ifneq (,$(filter 4.9,$(word 1,$(GCC_VERSION)).$(word 2,$(GCC_VERSION))))
-- DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 -DHAVE_PLATFORM_GHASH
-+ DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
-+ ifeq ($(LITTLE_ENDIAN),1)
-+ DEFINES += -DHAVE_PLATFORM_GHASH
-+ endif
- EXTRA_SRCS += aes-armv8.c ghash-aarch64.c sha1-armv8.c sha256-armv8.c
- endif
- ifeq (,$(filter 0 1 2 3 4,$(word 1,$(GCC_VERSION))))
-- DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 -DHAVE_PLATFORM_GHASH
-+ DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2
-+ ifeq ($(LITTLE_ENDIAN),1)
-+ DEFINES += -DHAVE_PLATFORM_GHASH
-+ endif
- EXTRA_SRCS += aes-armv8.c ghash-aarch64.c sha1-armv8.c sha256-armv8.c
- endif
- endif
-@@ -183,7 +195,9 @@
- endif
- ifeq ($(CPU_ARCH),arm)
- ifndef NSS_DISABLE_ARM32_NEON
-- DEFINES += -DHAVE_PLATFORM_GHASH
-+ ifeq ($(LITTLE_ENDIAN),1)
-+ DEFINES += -DHAVE_PLATFORM_GHASH
-+ endif
- EXTRA_SRCS += ghash-arm32-neon.c
- endif
- ifdef CC_IS_CLANG
-@@ -316,7 +330,9 @@
- MPI_SRCS += mpi_arm.c
- endif
- ifeq ($(CPU_ARCH),ppc)
-- DEFINES += -DHAVE_PLATFORM_GHASH
-+ ifeq ($(LITTLE_ENDIAN),1)
-+ DEFINES += -DHAVE_PLATFORM_GHASH
-+ endif
- EXTRA_SRCS += ghash-ppc.c
- ifdef USE_64
- DEFINES += -DNSS_NO_INIT_SUPPORT
diff --git a/dev-libs/nss/files/nss-3.128-bmo-2067434-avoid-building-libcurx-twice-in-makefile-builds.patch b/dev-libs/nss/files/nss-3.128-bmo-2067434-avoid-building-libcurx-twice-in-makefile-builds.patch
deleted file mode 100644
index 1bab910cb3df..000000000000
--- a/dev-libs/nss/files/nss-3.128-bmo-2067434-avoid-building-libcurx-twice-in-makefile-builds.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff '--color=auto' -Naur a/lib/freebl/Makefile b/lib/freebl/Makefile
---- a/lib/freebl/Makefile 2026-09-09 19:46:15.505386235 +0300
-+++ b/lib/freebl/Makefile 2026-09-09 19:47:22.985375793 +0300
-@@ -654,7 +654,16 @@
- libcrux_mldsa_core.c libcrux_mldsa_portable.c \
- libcrux_mldsa44_portable.c libcrux_mldsa65_portable.c \
- libcrux_mldsa87_portable.c
-+# Bug 2067434 - restrict these to the child build that compiles the real
-+# library. The parent (loader-only) and lowhash stub builds reset CSRCS to their
-+# single source file, and appending here bypasses that. The stub build shares
-+# its OBJDIR with the real single-shlib build, so under make -jN both would
-+# compile these to the same object files at once, producing truncated objects.
-+ifdef FREEBL_CHILD_BUILD
-+ifndef USE_STUB_BUILD
- CSRCS += $(LIBCRUX_SRCS)
-+endif
-+endif
-
- # Bug 1918767 / Bug 1918711 - by setting KRML_MUSTINLINE=inline here, we
- # avoid it being defined to `inline __forceinline` (for msvc) or `inline