summarylogtreecommitdiffstats
path: root/0007-Add-architecture-and-scheduler-maps.patch
diff options
context:
space:
mode:
authorBjörn Bidar2023-11-26 06:53:47 +0200
committerBjörn Bidar2023-11-26 06:53:47 +0200
commit000eb8b3c82b7b8177c6fcae5f2e29850ad3850b (patch)
tree65540cd783f501a819c48226ef616b04963a19f3 /0007-Add-architecture-and-scheduler-maps.patch
parent8618c14d4f54cc5aeffee74f2a3dc4cf418ff4cb (diff)
downloadaur-000eb8b3c82b7b8177c6fcae5f2e29850ad3850b.tar.gz
Update to 1.5.0
- New upstream release - Rebase sb2 patches - Removed merged patches Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Diffstat (limited to '0007-Add-architecture-and-scheduler-maps.patch')
-rw-r--r--0007-Add-architecture-and-scheduler-maps.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0007-Add-architecture-and-scheduler-maps.patch b/0007-Add-architecture-and-scheduler-maps.patch
new file mode 100644
index 000000000000..e38914d086bb
--- /dev/null
+++ b/0007-Add-architecture-and-scheduler-maps.patch
@@ -0,0 +1,29 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Marko Lemmetty <marko.lemmetty@jollamobile.com>
+Date: Fri, 15 May 2020 15:16:37 +0300
+Subject: [PATCH] Add architecture and scheduler maps
+
+Makes preferring local packages with armv8el and i486 OBS schedulers
+work. These mappings armv7hl/armv7tnhl -> armv8el and i486 ->
+i586/i686 only affect the "get-preferred-packages" evaluation that is
+used when the -p or --prefer-pkgs option is used with the osc build
+command.
+---
+ osc/util/packagequery.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/osc/util/packagequery.py b/osc/util/packagequery.py
+index 39356f5e6840d186f67dd52e10c86913ae8e60a5..df4f92bbe839ee3e954a29697152adfbe1c97ae7 100644
+--- a/osc/util/packagequery.py
++++ b/osc/util/packagequery.py
+@@ -21,6 +21,10 @@ class PackageQueries(dict):
+ # map debian and rpm arches to common obs arches
+ architectureMap = {'i386': ['i586', 'i686'], 'amd64': ['x86_64'], 'ppc64el': ['ppc64le'], 'armv6hl': ['armv6l'], 'armv7hl': ['armv7l']}
+
++ # map rpm arches to mer obs scheduler arches
++ architectureMap.update({'armv7hl': ['armv8el'], 'armv7tnhl': ['armv8el'],
++ 'i486': ['i586', 'i686']})
++
+ def __init__(self, wanted_architecture):
+ self.wanted_architecture = wanted_architecture
+ super().__init__()