Skip to content

Hadrian bindist duplicates bin/ executables

Summary

When building and installing ghc-9.4.1 with hadrian binary-dist-dir duplicate bin/ files are installed (eg ghc and ghc-9.4.1, etc)

Steps to reproduce

Hadrian install of ghc-9.4.1 using bindist, I end up with:

  /usr/lib64/ghc-9.4.1/bin:
  total used in directory 60904 available 325.5 GiB
  drwxr-xr-x. 1 root root      484 Aug 12 19:05 .
  drwxr-xr-x. 1 root root       12 Aug 12 19:05 ..
  -rwxr-xr-x. 1 root root  1930800 Aug 11 16:43 ghc
  -rwxr-xr-x. 1 root root  1930808 Aug 11 16:43 ghc-9.4.1
  -rwxr-xr-x. 1 root root 22762232 Aug 11 16:43 ghc-iserv
  -rwxr-xr-x. 1 root root    29440 Aug 11 16:43 ghc-iserv-dyn
  -rwxr-xr-x. 1 root root    29448 Aug 11 16:43 ghc-iserv-dyn-ghc-9.4.1
  -rwxr-xr-x. 1 root root 22762240 Aug 11 16:43 ghc-iserv-ghc-9.4.1
  -rwxr-xr-x. 1 root root   407584 Aug 11 16:43 ghc-pkg
  -rwxr-xr-x. 1 root root   407592 Aug 11 16:43 ghc-pkg-9.4.1
  -rwxr-xr-x. 1 root root  4797616 Aug 11 16:43 haddock
  -rwxr-xr-x. 1 root root  4797624 Aug 11 16:43 haddock-ghc-9.4.1
  -rwxr-xr-x. 1 root root    38640 Aug 11 16:43 hp2ps
  -rwxr-xr-x. 1 root root    38656 Aug 11 16:43 hp2ps-ghc-9.4.1
  -rwxr-xr-x. 1 root root   511520 Aug 11 16:43 hpc
  -rwxr-xr-x. 1 root root   511528 Aug 11 16:43 hpc-ghc-9.4.1
  -rwxr-xr-x. 1 root root   580912 Aug 11 16:43 hsc2hs
  -rwxr-xr-x. 1 root root   580920 Aug 11 16:43 hsc2hs-ghc-9.4.1
  -rwxr-xr-x. 1 root root    43136 Aug 11 16:43 runghc
  -rwxr-xr-x. 1 root root    43144 Aug 11 16:43 runghc-9.4.1
  -rwxr-xr-x. 1 root root    43144 Aug 11 16:43 runhaskell
  -rwxr-xr-x. 1 root root    43144 Aug 11 16:43 runhaskell-9.4.1
  -rwxr-xr-x. 1 root root    12440 Aug 11 16:43 unlit
  -rwxr-xr-x. 1 root root    12448 Aug 11 16:43 unlit-ghc-9.4.1

https://koji.fedoraproject.org/koji/taskinfo?taskID=90875876

Expected behavior

For 9.2.4 the directory looks like that:

  /usr/lib64/ghc-9.2.4/bin:
  total used in directory 28796 available 325.5 GiB
  drwxr-xr-x. 1 root root      484 Aug  2 10:04 .
  drwxr-xr-x. 1 root root       26 Aug  2 10:04 ..
  lrwxrwxrwx. 1 root root        9 Jul 31 03:34 ghc -> ghc-9.2.4
  -rwxr-xr-x. 1 root root  1536800 Jul 31 03:34 ghc-9.2.4
  lrwxrwxrwx. 1 root root       19 Jul 31 03:34 ghc-iserv -> ghc-iserv-ghc-9.2.4
  lrwxrwxrwx. 1 root root       23 Jul 31 03:34 ghc-iserv-dyn -> ghc-iserv-dyn-ghc-9.2.4
  -rwxr-xr-x. 1 root root    29336 Jul 31 03:34 ghc-iserv-dyn-ghc-9.2.4
  -rwxr-xr-x. 1 root root 21680936 Jul 31 03:34 ghc-iserv-ghc-9.2.4
  lrwxrwxrwx. 1 root root       13 Jul 31 03:34 ghc-pkg -> ghc-pkg-9.2.4
  -rwxr-xr-x. 1 root root   404992 Jul 31 03:34 ghc-pkg-9.2.4
  lrwxrwxrwx. 1 root root       17 Jul 31 03:34 haddock -> haddock-ghc-9.2.4
  -rwxr-xr-x. 1 root root  4560480 Jul 31 03:34 haddock-ghc-9.2.4
  lrwxrwxrwx. 1 root root       15 Jul 31 03:34 hp2ps -> hp2ps-ghc-9.2.4
  -rwxr-xr-x. 1 root root    38656 Jul 31 03:34 hp2ps-ghc-9.2.4
  lrwxrwxrwx. 1 root root       13 Jul 31 03:34 hpc -> hpc-ghc-9.2.4
  -rwxr-xr-x. 1 root root   512584 Jul 31 03:34 hpc-ghc-9.2.4
  lrwxrwxrwx. 1 root root       16 Jul 31 03:34 hsc2hs -> hsc2hs-ghc-9.2.4
  -rwxr-xr-x. 1 root root   591016 Jul 31 03:34 hsc2hs-ghc-9.2.4
  lrwxrwxrwx. 1 root root       12 Jul 31 03:34 runghc -> runghc-9.2.4
  -rwxr-xr-x. 1 root root    43040 Jul 31 03:34 runghc-9.2.4
  lrwxrwxrwx. 1 root root       12 Jul 31 03:34 runhaskell -> runghc-9.2.4
  lrwxrwxrwx. 1 root root       12 Jul 31 03:34 runhaskell-9.2.4 -> runghc-9.2.4
  lrwxrwxrwx. 1 root root       15 Jul 31 03:34 unlit -> unlit-ghc-9.2.4
  -rwxr-xr-x. 1 root root    12448 Jul 31 03:34 unlit-ghc-9.2.4

(I have a vague recollection I might even have been involved in this.)

It might just be a change missing in the 9.4 branch, possibly?

Environment

  • GHC version used: 9.4.1

Optional:

  • Operating System: Fedora Linux
  • System Architecture: (x86_64)
Edited by Jens Petersen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information