chiark / gitweb /
d/rules: shlibdeps: dereference symlinks before matching
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jan 2025 19:04:12 +0000 (19:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jan 2025 20:08:50 +0000 (20:08 +0000)
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 <ijackson@chiark.greenend.org.uk>
debian/rules

index 61aabf0b4c81d36b8bf5b95a1007b29c27e934f7..56ac6a4b945b3e4439a763b1fb5c46984ccb5a26 100755 (executable)
@@ -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) \