From 1e91a9641e8363e5c1898b8c31f67fce06d4b20f Mon Sep 17 00:00:00 2001 From: oreo639 Date: Fri, 9 May 2025 00:49:53 -0700 Subject: [PATCH] boost: includes quadmath.h with gcc 14 --- srcpkgs/boost/template | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template index 790ea8467e9..1917848caf6 100644 --- a/srcpkgs/boost/template +++ b/srcpkgs/boost/template @@ -1,7 +1,7 @@ # Template file for 'boost' pkgname=boost version=1.83.0 -revision=7 +revision=8 build_style=meta hostmakedepends="which bzip2-devel icu-devel python3-devel pkg-config" makedepends="zlib-devel bzip2-devel icu-devel python3-devel liblzma-devel libzstd-devel" @@ -63,14 +63,16 @@ case "$XBPS_TARGET_MACHINE" in *) subpackages+=" libboost_math_c99l libboost_math_tr1l";; esac +_uses_libquadmath=no +case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*|ppc64le) _uses_libquadmath=yes ;; +esac + if [ -z "$CROSS_BUILD" ]; then subpackages+=" libboost_stacktrace_addr2line" - - case "$XBPS_TARGET_MACHINE" in - i686*|x86_64*|ppc64le) - makedepends+=" libquadmath-devel" - ;; - esac + if [ "$_uses_libquadmath" = "yes" ]; then + makedepends+=" libquadmath-devel" + fi fi if [ "$XBPS_TARGET_LIBC" = musl ]; then @@ -219,6 +221,9 @@ boost-devel_package() { _depends="${subpackages/boost-devel}" _depends="${_depends/libboost_mpi-python3}" depends="${_depends/boost-python3}" + if [ "$_uses_libquadmath" = "yes" ]; then + depends+=" libquadmath-devel" + fi short_desc+=" - development files" pkg_install() { vmove usr/include