File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ FEATURES:
11
11
12
12
ENHANCEMENTS:
13
13
14
+ * Add support for PCRE 2 and OpenSSL 3.0 (built from source) when building NGINX from source.
14
15
* Tweak Release Drafter config.
15
16
* Bump the Ansible ` community.general ` collection to ` 5.1.1 ` , ` ansible.posix ` collection to ` 1.4.0 ` and ` community.docker ` collection to ` 2.6.0 ` .
16
17
Original file line number Diff line number Diff line change 25
25
&& dnf clean all; \
26
26
elif [ $(command -v yum) ]; then \
27
27
yum makecache fast \
28
- && yum install -y bash iproute initscripts sudo /usr/bin/python /usr/bin/python2-config vim yum-plugin-ovl http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-10.23-2.el7.x86_64.rpm \
28
+ && yum install -y bash iproute initscripts sudo /usr/bin/python /usr/bin/python2-config vim yum-plugin-ovl \
29
29
&& sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf \
30
30
&& yum clean all; \
31
31
elif [ $(command -v zypper) ]; then \
Original file line number Diff line number Diff line change 25
25
name :
26
26
- ca-certificates
27
27
- gcc
28
+ - gcc-c++
28
29
- gd
29
30
- gd-devel
30
31
- glibc
103
104
104
105
- name : (CentOS/RHEL) Install PCRE dependency from package
105
106
ansible.builtin.yum :
106
- name : pcre-devel
107
+ name : " {{ (pcre_release == 2) | ternary('pcre2-devel', ' pcre-devel') }} "
107
108
update_cache : true
108
109
when :
109
110
- nginx_install_source_pcre | bool
110
111
- ansible_facts['os_family'] == "RedHat"
111
112
112
113
- name : (Debian/Ubuntu) Install PCRE dependency from package
113
114
ansible.builtin.apt :
114
- name : libpcre3-dev
115
+ name : " {{ (pcre_release == 2) | ternary('libpcre2-dev', ' libpcre3-dev') }} "
115
116
update_cache : true
116
117
when :
117
118
- nginx_install_source_pcre | bool
118
119
- ansible_facts['os_family'] == "Debian"
119
120
120
121
- name : (Alpine Linux) Install PCRE dependency from package
121
122
community.general.apk :
122
- name : pcre-dev
123
+ name : " {{ (pcre_release == 2) | ternary('pcre2-dev', ' pcre-dev') }} "
123
124
update_cache : true
124
125
when :
125
126
- nginx_install_source_pcre | bool
129
130
block :
130
131
- name : Download PCRE dependency
131
132
ansible.builtin.get_url :
132
- url : " https://ftp.exim.org/pub/pcre/{{ pcre_version }} .tar.gz"
133
+ url : " {{ (pcre_release == 2) | ternary(' https://github.com/PCRE2Project/pcre2/releases/download/' ~ pcre_version ~ '/' ~ pcre_version ~ '.tar.gz', 'https:// ftp.exim.org/pub/pcre/' ~ pcre_version ~ ' .tar.gz') }} "
133
134
dest : " /tmp/{{ pcre_version }}.tar.gz"
134
135
mode : 0600
135
136
register : pcre_source
Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ nginx_freebsd_dependencies: [
80
80
' security/ca_root_nss' ,
81
81
]
82
82
83
- # Default locations and versions when 'nginx_install_from' is set to 'source'
84
- pcre_version : pcre-8.45
85
- zlib_version : zlib-1.2.11
86
- openssl_version : openssl-1.1.1m
83
+ # Default locations and versions when 'nginx_install_from' is set to 'source'.
84
+ # Set 'pcre_release' to 1 to install PCRE 1, modify the 'openssl_version' to move back to 1.1.1.
85
+ pcre_release : 2
86
+ pcre_version : pcre2-10.40
87
+ zlib_version : zlib-1.2.12
88
+ openssl_version : openssl-3.0.4
87
89
88
90
# Supported NGINX Open Source dynamic modules
89
91
nginx_modules_list : [
You can’t perform that action at this time.
0 commit comments