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 <alex@shruggie.ro>

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 <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-05-02 21:50:05 +03:00
committed by Alexandru Ardelean
parent 89e4a2fe3f
commit 177daf61d4
+2 -2
View File
@@ -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))