Bug#1081069: ghc: Don't do tests on crossbuild
Samuel Thibault
sthibault at debian.org
Mon Sep 9 18:37:27 BST 2024
Ilias Tsitsimpis, le lun. 09 sept. 2024 20:30:56 +0300, a ecrit:
> On Sat, Sep 07, 2024 at 11:05PM, Samuel Thibault wrote:
> > --- debian/rules.original 2024-09-07 23:04:14.489645147 +0200
> > +++ debian/rules 2024-09-07 23:04:15.401631651 +0200
> > @@ -165,6 +165,7 @@
> >
> > override_dh_auto_test:
> > ifeq (NO,$(BUILD_CROSS))
> > +ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
> > # Do some very simple tests that the compiler actually works
> > rm -rf debian/testghc
> > mkdir debian/testghc
> > @@ -180,6 +181,7 @@
> > @inplace/bin/ghc-stage2 --info
> > @printf "====END GHC INFO OUTPUT====\n"
> > endif
> > +endif
>
> I don't think we can simply add
>
> ifeq (NO,$(BUILD_CROSS))
>
> here. This will be equivalent to a logical AND, whereas we are looking
> for an OR.
? No, we want an AND: if we're not cross-building, and there's no
nocheck flag, we run the testsuite.
Samuel
More information about the Pkg-haskell-maintainers
mailing list