+ /usr/lib/rpm/check-rpaths
:
ERROR 0001: file '/usr/lib64/ghc-9.6.6/lib/libHSdigest-0.0.2.1-EXQLl7EOUopLcWJlJWaOr-ghc9.6.6.so' contains a standard runpath '/usr/lib64' in [/usr/lib64/ghc-9.6.6/lib/x86_64-linux-ghc-9.6.6:/usr/lib64]
ERROR 0001: file '/usr/lib64/ghc-9.6.6/lib/libHSyesod-1.6.2.1-8tHwkPWZJUX8yU5pD0ck2v-ghc9.6.6.so' contains a standard runpath '/usr/lib64' in [/usr/lib64:/usr/lib64/ghc-9.6.6/lib/x86_64-linux-ghc-9.6.6:/usr/lib64/ghc-9.6.6/lib]
Packages to be installed into flatpaks are built with the /app prefix
but build-only dependencies use the system packages in /usr. Since ghc
falls into the latter category, installation path macros must not be
used to reference their installed location.
prevents warning errors: eg for ghc9.4:
ls: cannot access '~/fedora/haskell/ghc9.4/BUILDROOT/ghc9.4-9.4.0.20220721-7.fc37.x86_64/usr/share/licenses/ghc9.4-Cabal': No such file or directory
etc, though not actually harmful
Needed for ghcX.Y which builds hadrian using %ghc_bin_build
which accidently disabled debuginfo as a side-effect,
which lead to ghcX.Y-compiler .build-id file conflicts:
Error: Transaction test error:
file /usr/lib/.build-id/4e/f85f81abfd9c031a34af8117ab8e14fcbae536 from install of ghc9.4-compiler-9.4.0.20220623-5.fc36.x86_64 conflicts with file from package ghc9.2-compiler-9.2.3-10.fc36.x86_64
due to missing debuginfo data
This allows using the ghclibdir for checking for prof libs,
avoiding collisions with other ghcX.Y-*-prof files:
Processing files: ghc-doctemplates-prof-0.9-7.fc37.x86_64
/usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
/usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
/usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments