Skip to content

Commit 3d53bba

Browse files
committed
Packaging: added support for RHEL 9.
1 parent caa0588 commit 3d53bba

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

pkg/rpm/Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ else ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo
1616
OSVER = centos7
1717
else ifeq ($(shell rpm --eval "%{?rhel}"), 8)
1818
OSVER = centos8
19+
else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
20+
OSVER = centos9
1921
else ifeq ($(shell rpm --eval "%{?amzn}"), 1)
2022
OSVER = amazonlinux1
2123
else ifeq ($(shell rpm --eval "%{?amzn}"), 2)
@@ -84,6 +86,16 @@ include Makefile.jsc8
8486
include Makefile.jsc11
8587
endif
8688

89+
ifeq ($(OSVER), centos9)
90+
include Makefile.php
91+
include Makefile.python39
92+
include Makefile.go
93+
include Makefile.perl
94+
include Makefile.jsc-common
95+
include Makefile.jsc8
96+
include Makefile.jsc11
97+
endif
98+
8799
ifeq ($(OSVER), amazonlinux1)
88100
include Makefile.php
89101
include Makefile.python27

pkg/rpm/Makefile.python39

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ MODULE_INSTARGS_python39= python3.9-install
1313
MODULE_SOURCES_python39= unit.example-python-app \
1414
unit.example-python39-config
1515

16-
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora amazonlinux2))
16+
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora amazonlinux2 centos9))
1717
BUILD_DEPENDS_python39= python3-devel
1818
else
1919
BUILD_DEPENDS_python39= python39-devel

0 commit comments

Comments
 (0)