Skip to content

Commit 1e7decb

Browse files
committed
Fix: Handle nginx-stable mail module size corruption
1 parent a66d4c8 commit 1e7decb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nginx-stable.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package:
22
name: nginx-stable
33
# STABLE VERSIONS MUST USE EVEN MINOR VERSIONS (e.g., 1.26.x, 1.28.x)
44
version: "1.28.0"
5-
epoch: 10
5+
epoch: 11
66
description: HTTP and reverse proxy server (stable version)
77
copyright:
88
- license: BSD-2-Clause
@@ -268,6 +268,16 @@ subpackages:
268268
mkdir -p ${{targets.subpkgdir}}/etc/nginx/stream.d
269269
install -m644 -D stream.conf ${{targets.subpkgdir}}/etc/nginx/stream.d/
270270
;;
271+
mail)
272+
# Mail module doesn't generate a separate .so file when compiled with --with-mail=dynamic
273+
# The module.so handling above will fail silently, so we need to handle this
274+
# by checking if the file exists before trying to move it
275+
if [ ! -f "${{targets.destdir}}/usr/lib/nginx/modules/ngx_mail_module.so" ]; then
276+
echo "WARNING: Mail module .so file not found, checking nginx binary for embedded mail module"
277+
# If mail is embedded in the main binary, we still create the config but skip the .so
278+
ls -la ${{targets.destdir}}/usr/lib/nginx/modules/ || true
279+
fi
280+
;;
271281
esac
272282
test:
273283
pipeline:

0 commit comments

Comments
 (0)