From: Ilias Tsitsimpis Date: Mon, 19 Feb 2024 16:12:25 +0000 (+0100) Subject: Use realpath instead of custom script X-Git-Tag: archive/raspbian/9.6.6-2+rpi1~2^2^2^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2ea914e34f82b4b3c8f3a28d8dd93418609efb37;p=ghc.git Use realpath instead of custom script Use realpath instead of the custom script, which is broken. As an example, $ ./mk/relpath.sh /usr/lib/ghc/lib /usr/lib/ghc-doc ..-doc $ realpath --relative-to=/usr/lib/ghc/lib /usr/lib/ghc-doc ../../ghc-doc Gbp-Pq: Name hadrian-relpath --- diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile index eb5333c1..acbb94e0 100644 --- a/hadrian/bindist/Makefile +++ b/hadrian/bindist/Makefile @@ -229,7 +229,7 @@ update_package_db: install_bin install_lib $(INSTALL_DATA) mk/system-cxx-std-lib-1.0.conf "$(DESTDIR)$(ActualLibsDir)/package.conf.d" @echo "Updating the package DB" $(foreach p, $(PKG_CONFS),\ - $(call patchpackageconf,$(shell echo $(notdir $p) | sed 's/-\([0-9]*[0-9]\.\)*conf//g'),$(shell echo "$p" | sed 's:\0xxx\0: :g'),$(docdir),$(shell mk/relpath.sh "$(ActualLibsDir)" "$(docdir)"),$(shell echo $(notdir $p) | sed 's/.conf//g'))) + $(call patchpackageconf,$(shell echo $(notdir $p) | sed 's/-\([0-9]*[0-9]\.\)*conf//g'),$(shell echo "$p" | sed 's:\0xxx\0: :g'),$(docdir),$(shell realpath -z --relative-to="$(ActualLibsDir)" "$(docdir)"),$(shell echo $(notdir $p) | sed 's/.conf//g'))) '$(DESTDIR)$(ActualBinsDir)/$(CrossCompilePrefix)ghc-pkg' --global-package-db "$(DESTDIR)$(ActualLibsDir)/package.conf.d" recache install_mingw: