From c51c06381c1deff2ab8dad37a05e4a5bae6afb31 Mon Sep 17 00:00:00 2001 From: haiibo Date: Fri, 26 Jan 2024 14:20:10 +0800 Subject: [PATCH] Temporary repair xfsprogs error --- diy-mini.sh | 3 +++ diy-script.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/diy-mini.sh b/diy-mini.sh index e1d6189783..79d4bb74e1 100644 --- a/diy-mini.sh +++ b/diy-mini.sh @@ -93,6 +93,9 @@ sed -i "s/${orig_version}/R${date_version} by Haiibo/g" package/lean/default-set # 修复 hostapd 报错 cp -f $GITHUB_WORKSPACE/scripts/011-fix-mbo-modules-build.patch package/network/services/hostapd/patches/011-fix-mbo-modules-build.patch +# 修复 armv8 设备 xfsprogs 报错 +sed -i 's/TARGET_CFLAGS.*/TARGET_CFLAGS += -DHAVE_MAP_SYNC -D_LARGEFILE64_SOURCE/g' feeds/packages/utils/xfsprogs/Makefile + # 修改 Makefile find package/*/ -maxdepth 2 -path "*/Makefile" | xargs -i sed -i 's/..\/..\/luci.mk/$(TOPDIR)\/feeds\/luci\/luci.mk/g' {} find package/*/ -maxdepth 2 -path "*/Makefile" | xargs -i sed -i 's/..\/..\/lang\/golang\/golang-package.mk/$(TOPDIR)\/feeds\/packages\/lang\/golang\/golang-package.mk/g' {} diff --git a/diy-script.sh b/diy-script.sh index ec5fe69c10..78a1c98b79 100644 --- a/diy-script.sh +++ b/diy-script.sh @@ -105,6 +105,9 @@ sed -i "s/${orig_version}/R${date_version} by Haiibo/g" package/lean/default-set # 修复 hostapd 报错 cp -f $GITHUB_WORKSPACE/scripts/011-fix-mbo-modules-build.patch package/network/services/hostapd/patches/011-fix-mbo-modules-build.patch +# 修复 armv8 设备 xfsprogs 报错 +sed -i 's/TARGET_CFLAGS.*/TARGET_CFLAGS += -DHAVE_MAP_SYNC -D_LARGEFILE64_SOURCE/g' feeds/packages/utils/xfsprogs/Makefile + # 修改 Makefile find package/*/ -maxdepth 2 -path "*/Makefile" | xargs -i sed -i 's/..\/..\/luci.mk/$(TOPDIR)\/feeds\/luci\/luci.mk/g' {} find package/*/ -maxdepth 2 -path "*/Makefile" | xargs -i sed -i 's/..\/..\/lang\/golang\/golang-package.mk/$(TOPDIR)\/feeds\/packages\/lang\/golang\/golang-package.mk/g' {}