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

23914f
From 3aa5fe71fd77f07c5b35ef40e774840f12ee4ee8 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
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.
8023bf
---
4420af
 .gitignore                                |   1 +
8023bf
 .gitpublish                               |   8 +
8023bf
 bin/waagent                               |   2 +-
8023bf
 bin/waagent2.0                            |   2 +-
8023bf
 init/arch/waagent.service                 |   2 +-
8023bf
 init/clearlinux/waagent.service           |   2 +-
8023bf
 init/suse/waagent                         |   2 +-
8023bf
 init/waagent.service                      |   2 +-
8023bf
 makepkg.py                                |   2 +-
8023bf
 redhat/.gitignore                         |   1 +
23914f
 redhat/Makefile                           |  72 +++++
23914f
 redhat/Makefile.common                    |  37 +++
23914f
 redhat/WALinuxAgent.spec.template         | 234 ++++++++++++++++
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 +
8023bf
 setup.py                                  |   2 +-
8023bf
 tests/data/ext/sample_ext-1.3.0/sample.py |   2 +-
23914f
 25 files changed, 1037 insertions(+), 9 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/bin/waagent b/bin/waagent
23914f
index 60cdf56c..0443ecb4 100755
8023bf
--- a/bin/waagent
8023bf
+++ b/bin/waagent
8023bf
@@ -1,4 +1,4 @@
8023bf
-#!/usr/bin/env python
c53240
+#!/usr/bin/python3.6
8023bf
 #
8023bf
 # Azure Linux Agent
8023bf
 #
8023bf
diff --git a/bin/waagent2.0 b/bin/waagent2.0
23914f
index 34732677..762d211f 100644
8023bf
--- a/bin/waagent2.0
8023bf
+++ b/bin/waagent2.0
8023bf
@@ -1,4 +1,4 @@
8023bf
-#!/usr/bin/env python
8023bf
+#!/usr/bin/env python3
8023bf
 #
8023bf
 # Azure Linux Agent
8023bf
 #
8023bf
diff --git a/init/arch/waagent.service b/init/arch/waagent.service
23914f
index d426eb21..ff1ebab1 100644
8023bf
--- a/init/arch/waagent.service
8023bf
+++ b/init/arch/waagent.service
8023bf
@@ -8,7 +8,7 @@ ConditionPathExists=/etc/waagent.conf
8023bf
 
8023bf
 [Service]
8023bf
 Type=simple
8023bf
-ExecStart=/usr/bin/python -u /usr/bin/waagent -daemon
8023bf
+ExecStart=/usr/bin/python3 -u /usr/bin/waagent -daemon
8023bf
 Restart=always
8023bf
 RestartSec=5
8023bf
 
8023bf
diff --git a/init/clearlinux/waagent.service b/init/clearlinux/waagent.service
23914f
index 9afee454..c29fc1b2 100644
8023bf
--- a/init/clearlinux/waagent.service
8023bf
+++ b/init/clearlinux/waagent.service
8023bf
@@ -8,7 +8,7 @@ ConditionPathExists=/usr/share/defaults/waagent/waagent.conf
8023bf
 
8023bf
 [Service]
8023bf
 Type=simple
8023bf
-ExecStart=/usr/bin/python -u /usr/bin/waagent -daemon
8023bf
+ExecStart=/usr/bin/python3 -u /usr/bin/waagent -daemon
8023bf
 Restart=always
8023bf
 RestartSec=5
8023bf
 
8023bf
diff --git a/init/suse/waagent b/init/suse/waagent
23914f
index b77b0fa4..317e89ec 100755
8023bf
--- a/init/suse/waagent
8023bf
+++ b/init/suse/waagent
8023bf
@@ -34,7 +34,7 @@
8023bf
 # Description: Start the MicrosoftAzureLinuxAgent
8023bf
 ### END INIT INFO
8023bf
 
8023bf
-PYTHON=/usr/bin/python
8023bf
+PYTHON=/usr/bin/python3
8023bf
 WAZD_BIN=/usr/sbin/waagent
8023bf
 WAZD_CONF=/etc/waagent.conf
8023bf
 WAZD_PIDFILE=/var/run/waagent.pid
8023bf
diff --git a/init/waagent.service b/init/waagent.service
23914f
index e91f1433..99f31830 100644
8023bf
--- a/init/waagent.service
8023bf
+++ b/init/waagent.service
8023bf
@@ -8,7 +8,7 @@ ConditionPathExists=/etc/waagent.conf
8023bf
 
8023bf
 [Service]
8023bf
 Type=simple
8023bf
-ExecStart=/usr/bin/python -u /usr/sbin/waagent -daemon
c53240
+ExecStart=/usr/bin/python3.6 -u /usr/sbin/waagent -daemon
8023bf
 Restart=always
8023bf
 RestartSec=5
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
23914f
index c258e4b8..ba6783c6 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
 #
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
-- 
23914f
2.27.0
8023bf