ghcjs / ghcjs-boot

boot libraries for ghcjs - deprecated as of GHC 8.2
5 stars 30 forks source link

wrong primitive submodule #21

Closed tonyday567 closed 9 years ago

tonyday567 commented 9 years ago

I think that bos/mwc-random#48 is due to an incorrect primitive submodule hook.

luite commented 9 years ago

is this on the 7.10 branch?

tonyday567 commented 9 years ago

Yes. installed with ghcjs-boot --dev --ghcjs-boot-dev-branch ghc-7.10

tonyday567 commented 9 years ago

Guessing that haskell/primitive@29cb0db59803c9d9181f7c4ce35ef1c6cbc6ccfb was the released one for 0.5.4.0, and subsequent commits were experimental.

luite commented 9 years ago

sounds plausible. I've set the master and ghc-7.10 branch to that commit.

imalsogreg commented 9 years ago

Thanks for the detective work. Yes, haskell/primitive@4592a2d had a breaking change without a version bump. Linking to haskell/primitive@29cb0db brings us back to the release commit for primitive 0.5.4.

Running ghcjs-boot --dev --ghcjs-boot-dev-branch ghc-7.10 I am getting thing error:

applying patch: patches/primitive.patch
/home/greghale/.ghcjs/x86_64-linux-0.1.0-7.10.1/ghcjs/ghcjs-boot/boot/primitive$ [git]: /usr/bin/git "apply" "../../patches/primitive.patch"
/usr/bin/git apply ../../patches/primitive.patch
error: patch failed: primitive.cabal:37
error: primitive.cabal: patch does not apply
ghcjs-boot: error running: /usr/bin/git apply ../../patches/primitive.patch
exit status: 1
stderr: error: patch failed: primitive.cabal:37
error: primitive.cabal: patch does not apply

Yes, the patch file at https://github.com/ghcjs/ghcjs-boot/blob/ghc-7.10/patches/primitive.patch doesn't match the file it's trying to patch.

luite commented 9 years ago

Ah that patch shouldn't really be there I think, for ghc 7.10 it should probably include primitive 0.6 instead, rather than bumping bounds on older released packages (0.6 didn't exist yet when i started the ghc 7.10 branch)

luite commented 9 years ago

Hm, actually that patch should be ok, since hvr did the same change in a metadata edit on hackage

imalsogreg commented 9 years ago

Ok. I assumed ghcjs was somehow tied to primitive-0.5.4, but if you can support primitive 0.6 instead, seems all the better!

luite commented 9 years ago

I've updated the 0.5.4.0 patch, which should make it work again. It should be bumped to 0.6 at some point, but I'll have to do a bit more testing for that.

imalsogreg commented 9 years ago

Everything working. A thousand thanks!