diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-04-19 11:46:12 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-22 02:16:00 -0400 |
commit | dd5fecb0e2990b192d92f4dfd7519ecb33164fad (patch) | |
tree | 2f07272da50e30bd4137abcf497e4565208bb1ad /hadrian | |
parent | 5ac9b32112facbf0630313c002f8c9b6ac1c986a (diff) | |
download | haskell-dd5fecb0e2990b192d92f4dfd7519ecb33164fad.tar.gz |
hadrian: Don't rely on xxx not being present in installation path
Previously Hadrian's installation makefile would assume that the string
`xxx` did not appear in the installation path. This would of course
break for some users.
Fixes #21402.
Diffstat (limited to 'hadrian')
-rw-r--r-- | hadrian/bindist/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile index bac7011a84..d4e52f8c65 100644 --- a/hadrian/bindist/Makefile +++ b/hadrian/bindist/Makefile @@ -205,12 +205,12 @@ install_wrappers: install_bin_libdir $(foreach p, $(BINARY_NAMES),\ $(call installscript,$p,$(WrapperBinsDir)/$p,$(WrapperBinsDir),$(ActualBinsDir),$(ActualBinsDir)/$p,$(ActualLibsDir),$(docdir),$(includedir))) -PKG_CONFS = $(shell find "$(ActualLibsDir)/package.conf.d" -name '*.conf' | sed 's: :xxx:g') +PKG_CONFS = $(shell find "$(ActualLibsDir)/package.conf.d" -name '*.conf' | sed "s: :\0xxx\0:g") update_package_db: install_bin install_lib @echo "$(PKG_CONFS)" @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:xxx: :g'),$(docdir),$(shell mk/relpath.sh "$(ActualLibsDir)" "$(docdir)"))) + $(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)"))) '$(WrapperBinsDir)/$(CrossCompilePrefix)ghc-pkg' recache install_mingw: |