Skip to content

Commit b33faba

Browse files
committed
fix: add override_dh_shlibdeps to debian/rules
The DEB_DH_SHLIBDEPS_ARGS_ALL environment variable doesn't propagate through debuild to dh_shlibdeps. Instead, patch debian/rules directly with an override_dh_shlibdeps target to pass --ignore-missing-info for the libs2n.so dependency which is built from source.
1 parent 37df61c commit b33faba

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

schedmd/slurm/25.11/ubuntu24.04/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,16 @@ EOR
7979

8080
# Patch debian/rules to add --with-s2n to dh_auto_configure options
8181
# The s2n library is installed to /usr/local, so we pass the explicit path
82+
# Also add override for dh_shlibdeps to ignore missing dependency info for libs2n.so
8283
RUN <<EOR
8384
set -xeuo pipefail
8485
sed -i 's|\(dh_auto_configure --\)|\1 --with-s2n=/usr/local|' ${SLURM_DIR}/debian/rules
86+
# Add dh_shlibdeps override to ignore missing libs2n.so dependency info
87+
cat >> ${SLURM_DIR}/debian/rules << 'EOF'
88+
89+
override_dh_shlibdeps:
90+
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
91+
EOF
8592
EOR
8693

8794
# Ref: https://slurm.schedmd.com/quickstart_admin.html#debuild
@@ -92,8 +99,6 @@ set -xeuo pipefail
9299
mk-build-deps -ir --tool='apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends' ${SLURM_DIR}/debian/control
93100
# Set library path so configure's AC_RUN_IFELSE test can find libs2n.so
94101
export LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH:-}"
95-
# Tell dh_shlibdeps to ignore missing dependency info for libs2n.so (installed from source, not a package)
96-
export DEB_DH_SHLIBDEPS_ARGS_ALL="--dpkg-shlibdeps-params=--ignore-missing-info"
97102
( cd ${SLURM_DIR} && debuild -b -uc -us )
98103
EOR
99104

0 commit comments

Comments
 (0)