Bug#1042078: ghc: Should not run inplace/bin/ghc-stage2 for cross-builds

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Jul 26 11:31:43 BST 2023


Source: ghc
Version: 9.0.2-4
Severity: normal
User: helmutg at debian.org
Usertags: rebootstrap
X-Debbugs-Cc: helmutg at debian.org

Hi!

The debian/rules file for GHC has the following section:

# Sort out the binaries                                                                                                                                            
if inplace/bin/ghc-stage2 --info | grep '"Have interpreter","NO"'; then \
    cd debian/tmp/usr/bin ;rm -f ghci* runghc* runhaskell*; \
fi

This will obviously fail when performing a cross-build.

Hence, this part should only be run if the condition "ifeq (NO,$(BUILD_CROSS))" is met.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-haskell-maintainers mailing list