From 177daf61d4c1f97ff0b92ed197c92e612f16a3c6 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sat, 2 May 2026 21:50:05 +0300 Subject: [PATCH] boost: build libquadmath only on some archs libquadmath is only packaged for x86 and powerpc targets in OpenWrt. Declaring it as an unconditional runtime dependency of boost-charconv causes apk installation failure on all other architectures (e.g. i386, arm, mips) with "libquadmath (no such package)". Guard the dependency with an ARCH filter so it is only pulled in on platforms where the package actually exists. Signed-off-by: Alexandru Ardelean boost: add x86 to libquadmath arch conditional in boost-charconv libquadmath is available on x86 (i386) in addition to x86_64 and powerpc variants. Include it in the filter so boost-charconv gets the correct dependency on 32-bit x86 targets. Signed-off-by: Alexandru Ardelean --- libs/boost/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/boost/Makefile b/libs/boost/Makefile index e53e2492c1..212490dce8 100644 --- a/libs/boost/Makefile +++ b/libs/boost/Makefile @@ -13,7 +13,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=boost PKG_VERSION:=1.90.0 PKG_SOURCE_VERSION:=1_90_0 -PKG_RELEASE:=1 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)_$(PKG_SOURCE_VERSION).tar.bz2 PKG_SOURCE_URL:=https://archives.boost.io/release/$(PKG_VERSION)/source @SF/$(PKG_NAME)/$(PKG_NAME)/$(PKG_VERSION) @@ -336,7 +336,7 @@ define DefineBoostLibrary endef $(eval $(call DefineBoostLibrary,atomic)) -$(eval $(call DefineBoostLibrary,charconv,,,,libquadmath)) +$(eval $(call DefineBoostLibrary,charconv,,,,$(if $(filter i386 x86_64 powerpc powerpc64,$(ARCH)),libquadmath))) $(eval $(call DefineBoostLibrary,chrono)) $(eval $(call DefineBoostLibrary,cobalt,container context date_time,,,libopenssl)) $(eval $(call DefineBoostLibrary,container))