From: Ian Jackson Date: Sun, 12 Jan 2025 19:04:12 +0000 (+0000) Subject: d/rules: shlibdeps: dereference symlinks before matching X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=66dd20887ac3f1061aa944a2a54c98fd33092941;p=chiark-utils.git d/rules: shlibdeps: dereference symlinks before matching We are about to adopt the dh sequencer, which rules dh_link before dh_shlibdeps. This means that this rune detects the xacpi-simple symlink, which isn't handled by the case. Rather than adding duplicate entries, call readlink and match on the results. Signed-off-by: Ian Jackson --- diff --git a/debian/rules b/debian/rules index 61aabf0..56ac6a4 100755 --- a/debian/rules +++ b/debian/rules @@ -126,7 +126,8 @@ binary-arch: build binary-prep dh_shlibdeps -p chiark-really set -e; for f in $d/chiark-utils-bin/usr/bin/*; do \ - case "$$f" in \ + fn="$$f"; if test -L "$$f"; then fn=$$(realpath "$$fn"); fi; \ + case "$$fn" in \ */xbatmon-simple|*/xduplic-copier) \ d=Suggests ;; \ */watershed|*/summer|*/cgi-fcgi-interp|*/prefork-interp) \