diff --git a/.github/workflows/gen_opensuse_tumbleweed.yml b/.github/workflows/gen_opensuse_tumbleweed.yml index 24139b075..958488d17 100644 --- a/.github/workflows/gen_opensuse_tumbleweed.yml +++ b/.github/workflows/gen_opensuse_tumbleweed.yml @@ -29,6 +29,9 @@ jobs: - name: "Install util-linux" shell: bash run: "zypper install -y util-linux" + - name: "Install which" + shell: bash + run: "zypper install -y which" - name: "Install git" shell: bash run: "zypper install -y git" @@ -65,9 +68,6 @@ jobs: ~/.cargo/git target key: "opensuse_tumbleweed-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Remove problematic deps" - shell: bash - run: "zypper remove -y busybox-which || true" - name: "Install System Deps" shell: bash run: "env PATH=$PATH ./get-deps" diff --git a/.github/workflows/gen_opensuse_tumbleweed_continuous.yml b/.github/workflows/gen_opensuse_tumbleweed_continuous.yml index 8fc523599..b4611fdc6 100644 --- a/.github/workflows/gen_opensuse_tumbleweed_continuous.yml +++ b/.github/workflows/gen_opensuse_tumbleweed_continuous.yml @@ -33,6 +33,9 @@ jobs: - name: "Install util-linux" shell: bash run: "zypper install -y util-linux" + - name: "Install which" + shell: bash + run: "zypper install -y which" - name: "Install git" shell: bash run: "zypper install -y git" @@ -69,9 +72,6 @@ jobs: ~/.cargo/git target key: "opensuse_tumbleweed-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Remove problematic deps" - shell: bash - run: "zypper remove -y busybox-which || true" - name: "Install System Deps" shell: bash run: "env PATH=$PATH ./get-deps" diff --git a/.github/workflows/gen_opensuse_tumbleweed_tag.yml b/.github/workflows/gen_opensuse_tumbleweed_tag.yml index c18986ad1..9a8a794b0 100644 --- a/.github/workflows/gen_opensuse_tumbleweed_tag.yml +++ b/.github/workflows/gen_opensuse_tumbleweed_tag.yml @@ -17,6 +17,9 @@ jobs: - name: "Install util-linux" shell: bash run: "zypper install -y util-linux" + - name: "Install which" + shell: bash + run: "zypper install -y which" - name: "Install git" shell: bash run: "zypper install -y git" @@ -53,9 +56,6 @@ jobs: ~/.cargo/git target key: "opensuse_tumbleweed-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Remove problematic deps" - shell: bash - run: "zypper remove -y busybox-which || true" - name: "Install System Deps" shell: bash run: "env PATH=$PATH ./get-deps" diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index 1f8f7e8c8..ca0b8f185 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -273,6 +273,14 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git""", ) else: + if "tumbleweed" in self.name: + # git-core requires /usr/bin/which and that gets satisfied + # by busybox-which by default, which blocks installing + # rpmbuild, which depends on the which rpm directly, + # but that is blocked by the conflicting busybox-which rpm. + # So we explicitly install which here now + steps += self.install_system_package("which") + steps += self.install_system_package("git") return steps @@ -317,20 +325,10 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git""", def install_system_deps(self): if "win" in self.name: return [] - steps = [] sudo = "sudo -n " if self.needs_sudo() else "" - if "tumbleweed" in self.name: - # get-deps wants to install rpmbuild. rpmbuild depends on which, but - # installation is blocked because the image already has busybox-which - # installed. Solution: uninstall busybox-which and allow rpmbuild to - # satisfy its dependency - steps += [ - RunStep(name="Remove problematic deps", run=f"{sudo}zypper remove -y busybox-which || true") - ] - steps += [ + return [ RunStep(name="Install System Deps", run=f"{sudo}env PATH=$PATH ./get-deps") ] - return steps def build_all_release(self): if "win" in self.name: