Description
Description
The Cabal packages in Ogma were written for an older version of Cabal. Currently, they only state a dependency on BNFC as part of a custom-setup
section. However, this is sub-ideal because alex
and happy
are also needed, and Cabal fails to detect that requirement, and also fails to install BNFC and make it available before it tries to compile Ogma. This makes the installation instructions overly complicated (all three of those packages need to be installed by hand first), and makes Hackage report that Ogma as a whole cannot be built, resulting in the following message in the build log:
/bin/sh: 1: bnfc: not found
Type
- Management: Update Cabal packages to specify tool dependencies in a way that makes Cabal install them automatically.
Additional context
None.
Requester
- Ivan Perez.
Method to check presence of bug
Not applicable (not a bug).
Expected result
Ogma can be installed from command-line without having to manually specify that alex
, happy
or bnfc
need to be installed first.
Desired result
Ogma can be installed from command-line without having to manually specify that alex
, happy
or bnfc
need to be installed first.
Proposed solution
Modify Cabal packages to add BNFC:bnfc
, alex:alex
and happy:happy
in the build-tool-depends
in the libraries that use it.
Further notes
None.