opensuse-haskell / configuration

Configuration and patches that guide the generation of the Haskell projects at openSUSE.

Home Page:https://build.opensuse.org/project/show/devel:languages:haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haskell for openSUSE

To generate the Haskell OBS repositories for openSUSE Linux, perform the following steps:

  1. Clone this repository with the --recursive flag or, alternatively, run

     $ git submodule update --init
    

    in your checked-out copy.

  2. Check out the devel:languages:haskell:ghc-8.10.x and devel:languages:haskell:ghc-9.2.x and OBS repositories in a _build/ sub-directory by running:

     $ mkdir -p _build
     $ osc co devel:languages:haskell:ghc-8.10.x -o _build/ghc-8.10.x
     $ osc co devel:languages:haskell:ghc-9.2.x -o _build/ghc-9.2.x
    
  3. Run cabal update.

  4. Execute cabal run -- cabal2obs to re-generate all spec files. Note that the initial run of the build system might take a while. Once the initial build has succeeded, further re-runs will be very fast.

  5. Inspect the build/ghc-* hierarchies with osc status and osc diff to make sure that all generated changes look reasonable. There should be no modifications in any of these projects:

    • ghc
    • ghc-bootstrap
    • ghc-rpm-macros
  6. Commit:

     $ pushd _build/ghc-8.10.x && ../../tools/commit && popd
     $ pushd _build/ghc-9.2.x && ../../tools/commit && popd
    

About

Configuration and patches that guide the generation of the Haskell projects at openSUSE.

https://build.opensuse.org/project/show/devel:languages:haskell

License:GNU General Public License v3.0


Languages

Language:Haskell 97.1%Language:Shell 2.9%Language:Dhall 0.0%