From 42410fea54972505600d8cc5f51d24cdde07a0ff Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Thu, 21 Jan 2021 20:56:11 -0600 Subject: [PATCH 1/2] Disable rhsm support in Anolis --- libdnf.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libdnf.spec b/libdnf.spec index 59202ed..362b161 100644 --- a/libdnf.spec +++ b/libdnf.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global libsolv_version 0.7.17 %global libmodulemd_version 2.11.2-2 %global librepo_version 1.13.1 @@ -36,7 +37,7 @@ %bcond_without python2 %endif -%if 0%{?rhel} && ! 0%{?centos} +%if 0%{?rhel} && ! 0%{?centos} && ! 0%{?anolis} %bcond_without rhsm %else %bcond_with rhsm @@ -56,7 +57,7 @@ Name: libdnf Version: %{libdnf_major_version}.%{libdnf_minor_version}.%{libdnf_micro_version} -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Library providing simplified C and Python API to libsolv License: LGPLv2+ URL: https://github.com/rpm-software-management/libdnf @@ -328,6 +329,10 @@ popd %endif %changelog +* Wed Dec 15 2021 zhangbinchen - 0.63.0-3.0.1 +- cherry-pick [8469287] +- Disable rhsm support in Anolis + * Mon Sep 13 2021 Marek Blaha - 0.63.0-3 - Update translations (RhBug:1961634) -- Gitee From fa4cb5ff845f86953556b3b39239314e4b6ff064 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Thu, 8 Jul 2021 16:44:55 +0800 Subject: [PATCH 2/2] rebrand: fix platform compatibility Signed-off-by: Liwei Ge --- 1000-anolis-fix-platform-compatibility.path | 15 +++++++++++++++ libdnf.spec | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 1000-anolis-fix-platform-compatibility.path diff --git a/1000-anolis-fix-platform-compatibility.path b/1000-anolis-fix-platform-compatibility.path new file mode 100644 index 0000000..977f72e --- /dev/null +++ b/1000-anolis-fix-platform-compatibility.path @@ -0,0 +1,15 @@ +diff -Nur libdnf-0.55.0/libdnf/module/ModulePackage.cpp libdnf-0.55.0.new/libdnf/module/ModulePackage.cpp +--- libdnf-0.55.0/libdnf/module/ModulePackage.cpp 2020-11-09 22:42:13.000000000 +0800 ++++ libdnf-0.55.0.new/libdnf/module/ModulePackage.cpp 2021-07-08 16:40:15.635247194 +0800 +@@ -580,6 +580,11 @@ + Id id = repo_add_solvable(repo); + Solvable *solvable = pool_id2solvable(pool, id); + setSovable(pool, solvable, name, stream, version, context, "noarch"); ++ if (name == "platform" and stream == "an8") ++ { ++ std::string compatible_stream = "el8"; ++ setSovable(pool, solvable, name, compatible_stream, version, context, "noarch"); ++ } + repoImpl->needs_internalizing = 1; + dnf_sack_set_provides_not_ready(moduleSack); + dnf_sack_set_considered_to_update(moduleSack); diff --git a/libdnf.spec b/libdnf.spec index 362b161..d48ed0a 100644 --- a/libdnf.spec +++ b/libdnf.spec @@ -86,6 +86,8 @@ Patch21: 0021-covscan-remove-unused-vars-mark-private-func-static-return- Patch22: 0022-hawkey-surrogateescape-error-handler-to-decode-UTF-8-strings-RhBug1893176.patch Patch23: 0023-Update-translations.patch +Patch1000: 1000-anolis-fix-platform-compatibility.path + BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ @@ -332,6 +334,7 @@ popd * Wed Dec 15 2021 zhangbinchen - 0.63.0-3.0.1 - cherry-pick [8469287] - Disable rhsm support in Anolis +- Fix platform compatibility * Mon Sep 13 2021 Marek Blaha - 0.63.0-3 - Update translations (RhBug:1961634) -- Gitee