From 5cb65baf6451a5adf0bcf3bd6772f136f2635127 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 4 Dec 2020 07:49:17 +0200 Subject: [PATCH] Add fake riscv64 configs for mock Mock will not work if will not find these. Signed-off-by: David Abdurachmanov --- mock-core-configs.spec | 9 ++++++++- mock-riscv64-configs.patch | 31 +++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 mock-riscv64-configs.patch diff --git a/mock-core-configs.spec b/mock-core-configs.spec index b0126e2..76954fb 100644 --- a/mock-core-configs.spec +++ b/mock-core-configs.spec @@ -1,6 +1,6 @@ Name: mock-core-configs Version: 33.3 -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} Summary: Mock core config files basic chroots License: GPLv2+ @@ -13,6 +13,8 @@ URL: https://github.com/rpm-software-management/mock/ Source: https://github.com/rpm-software-management/mock/releases/download/%{name}-%{version}-1/%{name}-%{version}.tar.gz BuildArch: noarch +Patch10: mock-riscv64-configs.patch + # The mock.rpm requires this. Other packages may provide this if they tend to # replace the mock-core-configs.rpm functionality. Provides: mock-configs @@ -51,6 +53,8 @@ Config files which allow you to create chroots for: %prep %setup -q +%patch10 -p1 -b .riscv64 + %build cd etc/host-overrides @@ -144,6 +148,9 @@ fi %ghost %config(noreplace,missingok) %{_sysconfdir}/mock/default.cfg %changelog +* Fri Dec 04 2020 David Abdurachmanov 33.3-1.0.riscv64 +- Add configurations for riscv64 + * Fri Nov 20 2020 Pavel Raiskup 33.3-1 - ELN should use for build Everything repository (jkonecny@redhat.com) diff --git a/mock-riscv64-configs.patch b/mock-riscv64-configs.patch new file mode 100644 index 0000000..4346e64 --- /dev/null +++ b/mock-riscv64-configs.patch @@ -0,0 +1,31 @@ +diff --git a/etc/mock/fedora-33-riscv64.cfg b/etc/mock/fedora-33-riscv64.cfg +new file mode 100644 +index 0000000..3d40935 +--- /dev/null ++++ b/etc/mock/fedora-33-riscv64.cfg +@@ -0,0 +1,5 @@ ++config_opts['releasever'] = '33' ++config_opts['target_arch'] = 'riscv64' ++config_opts['legal_host_arches'] = ('riscv64',) ++ ++include('templates/fedora-branched.tpl') +diff --git a/etc/mock/fedora-34-riscv64.cfg b/etc/mock/fedora-34-riscv64.cfg +new file mode 100644 +index 0000000..65beeab +--- /dev/null ++++ b/etc/mock/fedora-34-riscv64.cfg +@@ -0,0 +1,4 @@ ++config_opts['target_arch'] = 'riscv64' ++config_opts['legal_host_arches'] = ('riscv64',) ++ ++include('templates/fedora-rawhide.tpl') +diff --git a/etc/mock/fedora-rawhide-riscv64.cfg b/etc/mock/fedora-rawhide-riscv64.cfg +new file mode 100644 +index 0000000..65beeab +--- /dev/null ++++ b/etc/mock/fedora-rawhide-riscv64.cfg +@@ -0,0 +1,4 @@ ++config_opts['target_arch'] = 'riscv64' ++config_opts['legal_host_arches'] = ('riscv64',) ++ ++include('templates/fedora-rawhide.tpl')