Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Amazon Linux 2023 #60

Merged
merged 6 commits into from
Jul 26, 2023

Conversation

izzyleung
Copy link
Contributor

  • Add support for building RPMs on Amazon Linux 2023 (previously known as Amazon Linux 2022).
  • Fixes some minor issues

@@ -54,6 +54,13 @@ Requires(preun): systemd
Requires(postun): systemd
%endif

%if 0%{?amzn2023}
BuildRequires: systemd-devel
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like systemd-units is not available on Amazon Linux 2023, removed it from BuildRequires block

* Thu Jul 07 2022 Karsten Horsmann <khorsmann@gmail.com>
- Add Docker support for RHEL 9.0 / Almalinux 9.0

* Thu Feb 10 2022 Kai Parry <tp@threadproc.io>
- Add Docker support for Amazon Linux 2

* Sat May 30 2021 David Bezemer <info@davidbezemer.nl>
* Sun May 30 2021 David Bezemer <info@davidbezemer.nl>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes warning for

warning: bogus date in %changelog: Sat May 30 2021 David Bezemer <info@davidbezemer.nl>

@@ -9,4 +9,4 @@ COPY Makefile Makefile
COPY SPECS/haproxy.spec SPECS/haproxy.spec
COPY SOURCES/* SOURCES/

CMD make NO_SUDO=1 && cp /rpmbuild/RPMS/x86_64/* /RPMS && cp /rpmbuild/SRPMS/* /RPMS
CMD make NO_SUDO=1 USE_PROMETHEUS=${USE_PROMETHEUS:-0} RELEASE=${RELEASE:-1} && cp /rpmbuild/RPMS/x86_64/* /RPMS && cp /rpmbuild/SRPMS/* /RPMS
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass in the necessary environment variables

@@ -0,0 +1,13 @@
$ModLoad imudp
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is a clone of SOURCES/haproxy.syslog.amzn2

@DBezemer DBezemer merged commit 0bbcd01 into DBezemer:2.4 Jul 26, 2023
@izzyleung izzyleung deleted the amazon-linux-2023-support branch July 26, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants