diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-11-19 22:59:35 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-02 18:14:06 -0500 |
commit | fab2579e63bb317d4c266d7b949cf96ad6e5d17b (patch) | |
tree | f74e0fe7c0e7596ecb6aa94ebfa9be363d0305b6 /hadrian/src | |
parent | 44c088631f2d14f25c9cefeee174db4576b4c5cc (diff) | |
download | haskell-fab2579e63bb317d4c266d7b949cf96ad6e5d17b.tar.gz |
hadrian: Don't rely on realpath in bindist Makefile
As noted in #19963, `realpath` is not specified by POSIX and therefore
cannot be assumed to be available. Here we provide a POSIX shell
implementation of `realpath`, due to Julian Ospald and others.
Closes #19963.
Diffstat (limited to 'hadrian/src')
-rw-r--r-- | hadrian/src/Rules/BinaryDist.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hadrian/src/Rules/BinaryDist.hs b/hadrian/src/Rules/BinaryDist.hs index c86d42d8f0..914039d9e8 100644 --- a/hadrian/src/Rules/BinaryDist.hs +++ b/hadrian/src/Rules/BinaryDist.hs @@ -337,9 +337,10 @@ compressorExtension Bzip2 = "bz2" -- @./configure [...] && make install@ workflow. bindistInstallFiles :: [FilePath] bindistInstallFiles = - [ "config.sub", "config.guess", "install-sh", "mk" -/- "config.mk.in" - , "mk" -/- "install.mk.in", "mk" -/- "project.mk", "README" - , "INSTALL" ] + [ "config.sub", "config.guess", "install-sh" + , "mk" -/- "config.mk.in", "mk" -/- "install.mk.in", "mk" -/- "project.mk" + , "mk" -/- "relpath.sh" + , "README", "INSTALL" ] -- | This auxiliary function gives us a top-level 'Filepath' that we can 'need' -- for all libraries and programs that are needed for a complete build. |