Bug 547867

Summary: %{ghc_version} doesn't expand properly
Product: [Fedora] Fedora Reporter: Jochen Schmitt <jochen>
Component: ghc-rpm-macrosAssignee: Jens Petersen <petersen>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: rawhideCC: haskell-devel, loupgaroublond, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-14 09:06:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jochen Schmitt 2009-12-15 20:42:20 UTC
I want to tryout ghc-6.12.1 on my system and have installed ghc-rpm-macros-0.3.0-1 on my system.

Because I have trouble to compile my packages, I have try out the following command:

$ rpm -q --eval '%{ghc_version}'

and got the following output:

error: Recursion depth(17) greater than max(16)
 15<                               (empty)
 14<                             (empty)
 13<                           (empty)
 12<                         (empty)
 11<                       (empty)
 10<                     (empty)
  9<                   (empty)
  8<                 (empty)
  7<               (empty)
  6<             (empty)
  5<           (empty)
  4<         (empty)
  3<       (empty)
  2<     (empty)
  1<   (empty)
  0< (empty)

If I type 

$ ghc --numeric-version

I will get

6.12.1

which I expected for

$ rpm -q --eval '%{ghc_version}'

Best Regards:

Jochen Schmitt

Comment 1 Jens Petersen 2009-12-15 21:36:03 UTC
Thanks for the report - I have a fix that will be coming out in rawhide
shortly now that cvs and koji are back after the move. :)

Comment 2 Jens Petersen 2009-12-15 21:56:56 UTC
Please try 0.3.1 building now:

http://koji.fedoraproject.org/koji/taskinfo?taskID=1874097

Comment 3 Jens Petersen 2009-12-15 22:00:30 UTC
or better http://koji.fedoraproject.org/koji/buildinfo?buildID=147239

Comment 4 Jens Petersen 2009-12-16 00:11:07 UTC
Though I think I need to warn and post to fedora-haskell-list
that there will likely be some more adjustments to the macros
and an update needed for cabal2spec for 6.12.1.

So you may want to hold off testing a little longer if want
something stable to work against, but early testing is welcome. :)