Bug 1190949

Summary: hedgewars won't build with ghc 7.8.4
Product: [Fedora] Fedora Reporter: Bruno Wolff III <bruno>
Component: hedgewarsAssignee: Hans de Goede <hdegoede>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bos, bruno, haskell-devel, hdegoede, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hedgewars-0.9.21.1-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-27 09:22:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1192866    
Bug Blocks:    

Description Bruno Wolff III 2015-02-10 04:45:06 UTC
Description of problem:

While this isn't a bug in ghc I need some ghc expertise to get hedgewars building again in rawhide.

An example fsiled build log is at https://kojipkgs.fedoraproject.org//work/tasks/7888/8877888/build.log

The problem code is from a patch to work around not having Text.Show.ByteString in Fedora. The snippet that appears to be the problem is:

exceptionMask:: ((forall a. IO a -> IO a) -> IO b) -> IO b
exceptionMask io = do
    b <- blocked
    if b then io id else block (io unblock)

Any help with this would be appreciated.

I'll switch the bug to hedgewars. The initial assignment to ghc is to copy some ghc experts.

Comment 1 Bruno Wolff III 2015-02-15 16:26:00 UTC
It might be best to just get bytestring-show into Fedora. That saves patching Hedgewars as a work around and could provide a benefit to others. It seems to be BSD licensed.

Comment 2 Bruno Wolff III 2015-02-16 00:48:32 UTC
I took a look at packaging bytestring-show, but it has errors. It looks like it expects booleans to promote to integers.
A scratch build is here: http://koji.fedoraproject.org/koji/taskinfo?taskID=8942962

Comment 3 Bruno Wolff III 2015-02-16 00:51:16 UTC
The Debian package version shows a higher version number, maybe I found an old version?

Comment 4 Bruno Wolff III 2015-02-16 01:23:33 UTC
I have made a review request for ghc-bytestring-show as bug 1192866 .

Comment 5 Bruno Wolff III 2015-02-17 16:27:08 UTC
hedgewars has now been built in rawhide using ghc-bytestring-show. But, I'd like to do the same for f22, f21 and f20 before closing this.

Comment 6 Fedora Update System 2015-02-17 17:48:19 UTC
ghc-bytestring-show-0.3.5.6-2.fc21, hedgewars-0.9.21.1-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/hedgewars-0.9.21.1-3.fc21,ghc-bytestring-show-0.3.5.6-2.fc21

Comment 7 Fedora Update System 2015-02-17 17:49:14 UTC
hedgewars-0.9.21.1-3.fc20, ghc-bytestring-show-0.3.5.6-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/hedgewars-0.9.21.1-3.fc20,ghc-bytestring-show-0.3.5.6-2.fc20

Comment 8 Fedora Update System 2015-02-19 02:58:18 UTC
ghc-bytestring-show-0.3.5.6-2.fc21, hedgewars-0.9.21.1-3.fc21 has been pushed to the Fedora 21 testing repository.

Comment 9 Fedora Update System 2015-02-27 09:22:41 UTC
hedgewars-0.9.21.1-3.fc20, ghc-bytestring-show-0.3.5.6-2.fc20 has been pushed to the Fedora 20 stable repository.

Comment 10 Fedora Update System 2015-02-27 09:25:17 UTC
ghc-bytestring-show-0.3.5.6-2.fc21, hedgewars-0.9.21.1-3.fc21 has been pushed to the Fedora 21 stable repository.