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

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