ci: another pass at tumbleweed

This commit is contained in:
Wez Furlong committed 2022-12-31 23:44:04 -07:00
1 parent 7b6aad6884
commit 7c88674413
4 files changed
+18 -20

No files matched your search

@@ -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"
@@ -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"
@@ -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"
+9 -11
View File
@@ -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: