From 16f012a56fe8821575dd37097daff9be33e665eb Mon Sep 17 00:00:00 2001 From: star9029 Date: Wed, 6 Nov 2024 16:27:59 +0800 Subject: [PATCH] bison: fix msys --- packages/b/bison/xmake.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/b/bison/xmake.lua b/packages/b/bison/xmake.lua index 826280a9b99..dc00bd86b15 100644 --- a/packages/b/bison/xmake.lua +++ b/packages/b/bison/xmake.lua @@ -20,11 +20,7 @@ package("bison") add_versions("3.7.6", "69dc0bb46ea8fc307d4ca1e0b61c8c355eb207d0b0c69f4f8462328e74d7b9ea") add_versions("3.8.2", "06c9e13bdf7eb24d4ceb6b59205a4f67c2c7e7213119644430fe82fbd14a0abb") - if is_subhost("msys") then - add_deps("pacman::bison") - end - - on_load("macosx", "linux", "bsd", "windows", function (package) + on_load("macosx", "linux", "bsd", "windows", "@msys", function (package) if package:is_plat("windows") then package:add("deps", "winflexbison", {private = true}) elseif package:is_plat("linux", "bsd") then @@ -40,6 +36,7 @@ package("bison") end) on_install("@msys", function (package) + os.vrun("pacman -Sy --noconfirm --needed --disable-download-timeout bison") end) on_install("windows", function (package)