[packages/xe-guest-utilities] - recognize pld in xe-linux-distribution script
adamg
adamg at pld-linux.org
Mon Feb 20 09:17:57 CET 2023
commit 142a990dee58671d72929d05d0578f10d9624060
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Mon Feb 20 09:00:27 2023 +0100
- recognize pld in xe-linux-distribution script
xe-guest-utilities-recognize-pld.patch | 10 ++++++++++
xe-guest-utilities.spec | 2 ++
2 files changed, 12 insertions(+)
---
diff --git a/xe-guest-utilities.spec b/xe-guest-utilities.spec
index 90cc122..b3b1b3e 100644
--- a/xe-guest-utilities.spec
+++ b/xe-guest-utilities.spec
@@ -7,6 +7,7 @@ Source0: https://github.com/xenserver/xe-guest-utilities/archive/refs/heads/mast
# Source0-md5: 77e4b209aac1243ac806920710c5916c
Source1: %{name}.init
Source2: %{name}.sysconfig
+Patch0: %{name}-recognize-pld.patch
URL: https://github.com/xenserver/xe-guest-utilities/
BuildRequires: golang
BuildRequires: rpmbuild(macros) >= 2.009
@@ -22,6 +23,7 @@ XenStore.
%prep
%setup -q -n %{name}-master
+%patch0 -p1
ln -sf %{_libdir}/golang/src/cmd/vendor/golang.org vendor
%build
diff --git a/xe-guest-utilities-recognize-pld.patch b/xe-guest-utilities-recognize-pld.patch
new file mode 100644
index 0000000..c3a471c
--- /dev/null
+++ b/xe-guest-utilities-recognize-pld.patch
@@ -0,0 +1,10 @@
+--- xe-guest-utilities-master/mk/xe-linux-distribution~ 2022-02-23 13:00:31.000000000 +0100
++++ xe-guest-utilities-master/mk/xe-linux-distribution 2023-02-19 21:36:57.823334056 +0100
+@@ -551,6 +551,7 @@
+ identify_redhat /etc/almalinux-release && exit 0
+ identify_redhat /etc/centos-release && exit 0
+ identify_redhat /etc/redhat-release && exit 0
++ identify_redhat /etc/pld-release && exit 0
+ #identify SuSE-release before, as previous version of SUSE or other distros also have os-release
+ identify_sles /etc/SuSE-release && exit 0
+ identify_sles /etc/os-release && exit 0
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xe-guest-utilities.git/commitdiff/263ed683afd64a14f808ff22199ab74c538f8484
More information about the pld-cvs-commit
mailing list