We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba5edfc commit 3ceea30Copy full SHA for 3ceea30
1 file changed
build-packages.sh
@@ -87,9 +87,13 @@ EOF
87
88
iteration="1"
89
cd dist
90
+glibc_version=$(ldd -v "$bin" | awk '/GLIBC_/ {gsub(/[()]/, "", $2); print $2}' | grep -v GLIBC_PRIVATE | sort -V | tail -n1)
91
+cxxabi_version=$(strings "$bin" | grep -oP 'CXXABI_\d+\.\d+(\.\d+)?' | sort -V | tail -n1)
92
93
fpm -s dir -t rpm -n frankenphp -v "${FRANKENPHP_VERSION}" \
94
--config-files /etc/frankenphp/Caddyfile \
95
+ --depends "libc.so.6(${glibc_version})(64bit)" \
96
+ --depends "libstdc++.so.6(${cxxabi_version})(64bit)" \
97
"$bin=/usr/bin/frankenphp" \
98
"./frankenphp.service=/usr/lib/systemd/system/frankenphp.service" \
99
"./Caddyfile=/etc/frankenphp/Caddyfile"
0 commit comments