Blame SOURCES/0001-Add-inital-redhat-build-support.patch

282658
From ee6172c4d57103ac857bbd69c46f247cee5394c3 Mon Sep 17 00:00:00 2001
5d90b8
From: Miroslav Rezanina <mrezanin@redhat.com>
5d90b8
Date: Thu, 6 Oct 2016 12:25:35 +0200
5d90b8
Subject: Add inital redhat build support
5d90b8
5d90b8
Rebase notes (2.2.32):
5d90b8
- Fix license text
5d90b8
5d90b8
Rebase notes (2.2.26):
5d90b8
- update to RHEL 8 build
5d90b8
- Do not use INSTALED_FILES for %files
5d90b8
5d90b8
Rebase notes (2.2.10):
5d90b8
- switched to sha256
5d90b8
- added .gitpublish profile
5d90b8
5d90b8
Rebase notes (2.2.46):
5d90b8
- added waagent-extn.logrotate
5d90b8
282658
Rebase notes (2.7.0.6):
282658
- new files - azure.slice and azure-vmextensions.slice
282658
- removed changes in not shipped scripts
282658
5d90b8
Merged patches (2.2.45):
5d90b8
- df29beb Switch from platform-python to python36
5d90b8
- 6749108 Stop packaging legacy waagent2.0
5d90b8
5d90b8
Merged patches (2.2.32):
5d90b8
- ce36fd9 Use Python3
5d90b8
- 952c830 Remove FIPS setting from the default config
5d90b8
- cc9df73 Switch hardcoded python3 shebangs into the %%{__python3} macro
5d90b8
- 66b6f8c Use correct macro for waagent.service
5d90b8
- 1b15ada Switch to platform-python in systemd unit file
5d90b8
- 59f682b Use sys.executable to find system python
5d90b8
eb9da2
Merged patches (2.2.49):
eb9da2
- 3a23336 Mark logrotate configs with %config(noreplace)
c22365
c22365
Merged patches (2.3.0.2):
c22365
- 30bb06f9 Provide udev rules as a separate subpackage.
282658
282658
Merged patches (2.7.0.6):
282658
- a790fb5c Require iptables for setting up persistent firewall rules
5d90b8
---
eb9da2
 .gitignore                                |   1 +
5d90b8
 .gitpublish                               |   8 +
5d90b8
 makepkg.py                                |   2 +-
5d90b8
 redhat/.gitignore                         |   1 +
c22365
 redhat/Makefile                           |  72 +++++
c22365
 redhat/Makefile.common                    |  37 +++
282658
 redhat/WALinuxAgent.spec.template         | 243 ++++++++++++++++
5d90b8
 redhat/rpmbuild/BUILD/.gitignore          |   2 +
5d90b8
 redhat/rpmbuild/RPMS/.gitignore           |   2 +
5d90b8
 redhat/rpmbuild/SOURCES/.gitignore        |   2 +
5d90b8
 redhat/rpmbuild/SPECS/.gitignore          |   2 +
5d90b8
 redhat/rpmbuild/SRPMS/.gitignore          |   2 +
c22365
 redhat/scripts/frh.py                     |  27 ++
c22365
 redhat/scripts/git-backport-diff          | 327 ++++++++++++++++++++++
c22365
 redhat/scripts/git-compile-check          | 215 ++++++++++++++
c22365
 redhat/scripts/process-patches.sh         |  93 ++++++
5d90b8
 redhat/scripts/tarball_checksum.sh        |   3 +
282658
 setup.py                                  |   6 +-
5d90b8
 tests/data/ext/sample_ext-1.3.0/sample.py |   2 +-
282658
 19 files changed, 1042 insertions(+), 5 deletions(-)
5d90b8
 create mode 100644 .gitpublish
5d90b8
 create mode 100644 redhat/.gitignore
5d90b8
 create mode 100644 redhat/Makefile
5d90b8
 create mode 100644 redhat/Makefile.common
5d90b8
 create mode 100644 redhat/WALinuxAgent.spec.template
5d90b8
 create mode 100644 redhat/rpmbuild/BUILD/.gitignore
5d90b8
 create mode 100644 redhat/rpmbuild/RPMS/.gitignore
5d90b8
 create mode 100644 redhat/rpmbuild/SOURCES/.gitignore
5d90b8
 create mode 100644 redhat/rpmbuild/SPECS/.gitignore
5d90b8
 create mode 100644 redhat/rpmbuild/SRPMS/.gitignore
5d90b8
 create mode 100755 redhat/scripts/frh.py
5d90b8
 create mode 100755 redhat/scripts/git-backport-diff
5d90b8
 create mode 100755 redhat/scripts/git-compile-check
5d90b8
 create mode 100755 redhat/scripts/process-patches.sh
5d90b8
 create mode 100755 redhat/scripts/tarball_checksum.sh
5d90b8
5d90b8
diff --git a/makepkg.py b/makepkg.py
c22365
index 11e90b95..1b6b4351 100755
5d90b8
--- a/makepkg.py
5d90b8
+++ b/makepkg.py
5d90b8
@@ -1,4 +1,4 @@
5d90b8
-#!/usr/bin/env python
5d90b8
+#!/usr/bin/env python3
5d90b8
 
5d90b8
 import glob
5d90b8
 import os
5d90b8
diff --git a/setup.py b/setup.py
282658
index 12c9e1d6..586bb5ca 100755
5d90b8
--- a/setup.py
5d90b8
+++ b/setup.py
5d90b8
@@ -1,4 +1,4 @@
5d90b8
-#!/usr/bin/env python
5d90b8
+#!/usr/bin/env python3
5d90b8
 #
5d90b8
 # Microsoft Azure Linux Agent setup.py
5d90b8
 #
282658
@@ -97,7 +97,7 @@ def get_data_files(name, version, fullname):  # pylint: disable=R0912
282658
     agent_bin_path = osutil.get_agent_bin_path()
282658
 
282658
     if name in ('redhat', 'centos', 'almalinux', 'cloudlinux'):  # pylint: disable=R1714
282658
-        if version.startswith("8.2"):
282658
+        if version.startswith("8"):
282658
             # redhat8+ default to py3
282658
             set_bin_files(data_files, dest=agent_bin_path,
282658
                           src=["bin/py3/waagent", "bin/waagent2.0"])
282658
@@ -106,7 +106,7 @@ def get_data_files(name, version, fullname):  # pylint: disable=R0912
282658
         set_conf_files(data_files)
282658
         set_logrotate_files(data_files)
282658
         set_udev_files(data_files)
282658
-        if version.startswith("8.2"):
282658
+        if version.startswith("8"):
282658
             # redhat 8+ uses systemd and python3
282658
             set_systemd_files(data_files, dest=systemd_dir_path,
282658
                               src=["init/redhat/waagent.service",
5d90b8
diff --git a/tests/data/ext/sample_ext-1.3.0/sample.py b/tests/data/ext/sample_ext-1.3.0/sample.py
c22365
index 47f86af8..92585ed3 100755
5d90b8
--- a/tests/data/ext/sample_ext-1.3.0/sample.py
5d90b8
+++ b/tests/data/ext/sample_ext-1.3.0/sample.py
5d90b8
@@ -1,4 +1,4 @@
5d90b8
-#!/usr/bin/env python
5d90b8
+#!/usr/bin/env python3
c22365
 import json
5d90b8
 import os
c22365
 import re
5d90b8
-- 
282658
2.31.1
5d90b8