Your message dated Tue, 16 May 2017 11:04:42 +0000 with message-id <[email protected]> and subject line Bug#862728: fixed in hedgewars 0.9.22-dfsg-12 has caused the Debian Bug report #862728, regarding hedgewars: FTBFS on architectures without freepascal to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 862728: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862728 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: hedgewars Version: 0.9.22-dfsg-11 Severity: important Tags: patch Hi, On architectures which do not have a freepascal compiler (such as mips*, ppc64el, s390x, etc), hedgewars FTBFS with this error: > /«PKGBUILDDIR»/tools/pas2c/Pas2C.hs:300:5: error: > * Non type-variable argument > in the constraint: MonadState RenderState m > (Use FlexibleContexts to permit this) > * When checking the inferred type > injectNamespace :: forall (m :: * -> *). > MonadState RenderState m => > Identifier -> m () > In an equation for `uses2C': > uses2C uses@(Uses unitIds) > = do { mapM_ > injectNamespace (Identifier "pas2cSystem" undefined : > unitIds); > mapM_ injectNamespace (Identifier "pas2cRedo" undefined : > unitIds); > mapM_ (id2C IOInsert . setBaseType BTUnit) unitIds; > .... } > where > injectNamespace (Identifier i _) > = do { getNS <- gets (flip Map.lookup . namespaces); > .... } > tools/pas2c/CMakeFiles/pas2c.dir/build.make:63: recipe for target 'bin/pas2c' > failed This is a bug in the Pas2C script which does not compile with newer version of GHC. It's fixed by these 2 upstream commits: 6f45bb989ab48671cd6cedc820fde9dee94d3960 ("pas2c: Tentatively fix the build") 83f87ace0bcaf9112773fd918254f500624819b6 ("Use less weird options") I applied the attached combined patch and hedgewars now builds on mips64el. Unfortunately I have no mips64el machines with graphics cards. I tried to run hedgewars using X11 forwarding and I could start playing a game for about 10 seconds before my X server crashed :/ (unlikely to be a bug in hedgewars). Thanks, James--- a/tools/pas2c/Pas2C.hs +++ b/tools/pas2c/Pas2C.hs @@ -297,6 +297,7 @@ uses2C uses@(Uses unitIds) = do mapM_ (id2C IOInsert . setBaseType BTUnit) unitIds return $ vcat . map (\i -> text $ "#include \"" ++ i ++ ".h\"") $ uses2List uses where + injectNamespace :: Identifier -> State RenderState () injectNamespace (Identifier i _) = do getNS <- gets (flip Map.lookup . namespaces) modify (\s -> s{currentScope = Map.unionWith (++) (fromMaybe Map.empty (getNS i)) $ currentScope s}) --- a/tools/pas2c/PascalParser.hs +++ b/tools/pas2c/PascalParser.hs @@ -239,10 +239,10 @@ rangeDecl = choice [ ] <?> "range declaration" where rangeft = do - e1 <- initExpression - string' ".." - e2 <- initExpression - return $ RangeFromTo e1 e2 + e1 <- initExpression + string' ".." + e2 <- initExpression + return $ RangeFromTo e1 e2 typeVarDeclaration :: Bool -> Parsec String u [TypeVarDeclaration] typeVarDeclaration isImpl = (liftM concat . many . choice) [
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---Source: hedgewars Source-Version: 0.9.22-dfsg-12 We believe that the bug you reported is fixed in the latest version of hedgewars, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Gianfranco Costamagna <[email protected]> (supplier of updated hedgewars package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Fri, 27 Jan 2017 14:28:40 +0100 Source: hedgewars Binary: hedgewars hedgewars-data Architecture: source Version: 0.9.22-dfsg-12 Distribution: experimental Urgency: medium Maintainer: Debian Games Team <[email protected]> Changed-By: Gianfranco Costamagna <[email protected]> Description: hedgewars - Funny turn-based artillery game, featuring fighting hedgehogs! hedgewars-data - Data files for hedgewars Closes: 859525 862728 Changes: hedgewars (0.9.22-dfsg-12) experimental; urgency=medium . [ Gianfranco Costamagna ] * Switch links in https mode * Stop depending on ttf-wqy-zenhei, switch to fonts-wqy-zenhei (Closes: #859525). Thanks Boyuan Yang! . [ James Cowgill <[email protected]> ] * debian/patches/pas2c-ghc8.patch: fix build where fpc is not available (Closes: #862728) Checksums-Sha1: e0ffa546e22a1c3097401b4f572e7ff3a7b81487 2882 hedgewars_0.9.22-dfsg-12.dsc 9c354ab8d294b2e75a773962a8f448e5bebcb283 82088 hedgewars_0.9.22-dfsg-12.debian.tar.xz Checksums-Sha256: dd5fe73bdeca56e42e26ca8932be697af78c27c823a66a243a593832ffc694b4 2882 hedgewars_0.9.22-dfsg-12.dsc 2941e3a267132100ea7088bd67b14151e1a9e50e5022d60d0709eeaab5d28c24 82088 hedgewars_0.9.22-dfsg-12.debian.tar.xz Files: 5bdd0610566dfa153575d659132abf38 2882 games optional hedgewars_0.9.22-dfsg-12.dsc 007933eb92e8009d5edb3acb686f726e 82088 games optional hedgewars_0.9.22-dfsg-12.debian.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJZGtiIAAoJEPNPCXROn13ZiTsQAIl8Ww1MiWjDqtL0Fuh4gQO0 1m1Z7tMbeyFgqOn9A+1JoH/lhPfmoN6s+p2YU60IvYwAvTbLFhGWUPYprOIjocor 4pgyuFQ95E12S+3xdgPFXpcOwnoHU4Dy/9c6ckcH5VqBjq21f7H7SnGr7oC6+6QM 6R8SCTrYT1BXQETZm0XLxvkO5y2slyLGRq4Tu5qbpiWuhvJHiN6dKO5HkG3S6EUh lOvElLQWOdgHlpDa1VZmtGxpkeVIwR6rMaX/TuITT7cNVk909RWoxqFQJZJBIXAA 2K9aM2LRt4aixoGHSOvVPUyHuXJgL+ZDNnk4VZB5uIfEvA0hwAdo8Ak2tk8skll7 XRtBRML3Ic8RodhRAr9Y9WXESwJYofi34nake5UF6YKQ2QfWL91SyQkEhqFBuEUq o5YxZHzJJAK1XmHP3Fdgd42j96bnirzjKaTziUr0yvQrTXxYusTMtEMO+2Yco6R3 A7CjhEIWj4F0lAKAGIap93/w3KV1mhKCynhWgCp8pjpISR9HqfD4TAPk9VCSCT3M l+LLnuUYmEDby5htCPWOKIWx7tXqe4wuGkLF/CaxXsTUfEb+5jrwe7OPIjjIY19b T254Mcbyj93V7ou4FpUluFzWexgivqLfXDSND6Z1kOIsPPriENdekoZJK0nVc0Ox 0NZu9yODG/8bGLUQPqv4 =0NYG -----END PGP SIGNATURE-----
--- End Message ---

