Skip to content

Commit 2577249

Browse files
authored
Merge pull request #817 from jajik/ci-update
[1.3.x] Resolve MODCLUSTER-829 and add CI for it
2 parents 8e51de2 + 4b8810a commit 2577249

File tree

2 files changed

+51
-4
lines changed

2 files changed

+51
-4
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Create container and build
5050
run: |
5151
{
52-
echo 'FROM fedora:39'
52+
echo 'FROM fedora:40'
5353
echo 'RUN dnf install cmake httpd-devel ${{ matrix.compiler }} -y'
5454
echo 'RUN dnf groupinstall "C Development Tools and Libraries" -y'
5555
echo 'RUN dnf clean all'
@@ -76,7 +76,7 @@ jobs:
7676
- name: Create container and build
7777
run: |
7878
{
79-
echo 'FROM fedora:39'
79+
echo 'FROM fedora:40'
8080
echo 'RUN dnf install httpd-devel redhat-rpm-config -y'
8181
echo 'RUN dnf groupinstall "C Development Tools and Libraries" -y'
8282
echo 'RUN dnf clean all'
@@ -95,3 +95,50 @@ jobs:
9595
echo 'done;'
9696
} > podmanfile
9797
podman build -f ./podmanfile
98+
99+
make-with-httpd-trunk:
100+
runs-on: ubuntu-latest
101+
steps:
102+
- name: Checkout
103+
uses: actions/checkout@v4
104+
with:
105+
path: mod_proxy_cluster
106+
- name: Checkout latest httpd
107+
uses: actions/checkout@v4
108+
with:
109+
repository: apache/httpd
110+
path: httpd
111+
- name: Checkout apr for httpd
112+
uses: actions/checkout@v4
113+
with:
114+
repository: apache/apr
115+
path: httpd/srclib/apr
116+
- name: Install necessary packages
117+
run: |
118+
ls
119+
sudo apt-get update
120+
sudo apt-get install cmake gcc cmake gcc make libtool libtool-bin python3 autoconf libxml2-dev libpcre2-dev -y
121+
- name: Build httpd
122+
run: |
123+
ls
124+
export "APACHE_DIR=/usr/local/apache2/"
125+
cd httpd
126+
./buildconf
127+
./configure --prefix=/usr/local/apache2 --with-included-apr --enable-proxy-ajp --enable-maintainer-mode \
128+
--enable-so --enable-proxy --enable-proxy-http --enable-proxy-wstunned --enable-proxy-hcheck \
129+
--with-port=8000
130+
sudo make
131+
sudo make install
132+
- name: Build mod_proxy_cluster
133+
run: |
134+
ls
135+
cd mod_proxy_cluster/native
136+
for module in advertise/ mod_proxy_cluster/ mod_cluster_slotmem/ mod_manager/; do \
137+
cd $module; \
138+
sh buildconf; \
139+
./configure CFLAGS="-Wall -Werror" --with-apxs=/usr/local/apache2/bin/apxs; \
140+
make clean; \
141+
make || exit 1; \
142+
cd ..; \
143+
done;
144+

native/advertise/mod_advertise.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static const char *cmd_advertise_h(cmd_parms *cmd, void *dummy,
284284

285285
static const char *hex = "0123456789abcdef";
286286

287-
apr_status_t ma_advertise_server(server_rec *server, int type)
287+
static apr_status_t ma_advertise_server(server_rec *server, int type)
288288
{
289289
char buf[MA_BSIZE];
290290
char dat[APR_RFC822_DATE_LEN];
@@ -420,7 +420,7 @@ static apr_status_t ma_group_join(const char *addr, apr_port_t port,
420420
return APR_SUCCESS;
421421
}
422422

423-
static void ma_group_leave()
423+
static void ma_group_leave(void)
424424
{
425425
if (ma_mgroup_socket) {
426426
apr_mcast_leave(ma_mgroup_socket, ma_mgroup_sa,

0 commit comments

Comments
 (0)