Skip to content

Bump version bounds of dependencies on Cabal. Refs #213. #223

Merged
ivanperez-keera merged 8 commits intonasa:developfrom
kaBeech:develop-bump-cabal-versions
Feb 1, 2025
Merged

Bump version bounds of dependencies on Cabal. Refs #213. #223
ivanperez-keera merged 8 commits intonasa:developfrom
kaBeech:develop-bump-cabal-versions

Conversation

@kaBeech
Copy link
Contributor

@kaBeech kaBeech commented Feb 1, 2025

This commit modifies version bounds of all libraries depending directly on Cabal to allow installation with Cabal 3.14, the most recent version of Cabal that does not require a change to the Haskell code, per the desired result and proposed solution in #213.

These changes enable Ogma to be used in Debian sid.

…nasa#213.

In order to keep Ogma effectively working in the current Haskell ecosystem, as
well as new versions of GHC, we need to extend the versions of dependencies
that Ogma can be installed with. More specifically, we currently impose a
restriction on Cabal to be lower than version 3.9, which is preventing Ogma
from being used in Debian sid.

This commit modifies version bounds of ogma-language-c to allow installation
with Cabal 3.14, the most recent version of Cabal that does not require a
change to the Haskell code.
…efs nasa#213.

In order to keep Ogma effectively working in the current Haskell ecosystem, as
well as new versions of GHC, we need to extend the versions of dependencies
that Ogma can be installed with. More specifically, we currently impose a
restriction on Cabal to be lower than version 3.9, which is preventing Ogma
from being used in Debian sid.

This commit modifies version bounds of ogma-language-smv to allow installation
with Cabal 3.14, the most recent version of Cabal that does not require a
change to the Haskell code.
…al. Refs nasa#213.

In order to keep Ogma effectively working in the current Haskell ecosystem, as
well as new versions of GHC, we need to extend the versions of dependencies
that Ogma can be installed with. More specifically, we currently impose a
restriction on Cabal to be lower than version 3.9, which is preventing Ogma
from being used in Debian sid.

This commit modifies version bounds of ogma-language-cocospec to allow
installation with Cabal 3.14, the most recent version of Cabal that does not
require a change to the Haskell code.
…a#213.

In order to keep Ogma effectively working in the current Haskell ecosystem, as
well as new versions of GHC, we need to extend the versions of dependencies
that Ogma can be installed with. More specifically, we currently impose a
restriction on Cabal to be lower than version 3.9, which is preventing Ogma
from being used in Debian sid.

This commit modifies version bounds of ogma-extra to allow installation with
Cabal 3.14, the most recent version of Cabal that does not require a change to
the Haskell code.
@ivanperez-keera
Copy link
Member

Change Manager: Verified that:

  • Solution is implemented:
    • The code proposed compiles and passes all tests. Details:
    • The solution proposed produces the expected result. Details:
      The following dockerfile installs Ogma using Cabal >= 3.14, after which it prints the message "Success":
      FROM ubuntu:focal
      
      RUN apt-get update
      
      RUN apt-get install --yes \
            curl g++ gcc git libgmp3-dev libz-dev make
      
      RUN mkdir -p $HOME/.local/bin
      ENV PATH=$PATH:/root/.local/bin/
      
      RUN curl https://downloads.haskell.org/~ghcup/0.1.17.7/x86_64-linux-ghcup-0.1.17.7 -o $HOME/.local/bin/ghcup
      RUN chmod a+x $HOME/.local/bin/ghcup
      
      ENV PATH=$PATH:/root/.ghcup/bin/
      RUN ghcup install ghc 9.6
      RUN ghcup install cabal 3.12
      RUN ghcup set ghc 9.6.6
      RUN cabal update
      
      SHELL ["/bin/bash", "-c"]
      CMD git clone $REPO \
          && cd $NAME \
          && git checkout $COMMIT \
          && cabal v1-install alex happy \
          && cabal v1-install BNFC \
          && cabal v1-install ogma-**/ --constraint='Cabal>=3.14' \
          && echo Success
      Command (substitute variables based on new path after merge):
      $ docker run -e "REPO=https://github.com/kaBeech/ogma" -e "NAME=ogma" -e "COMMIT=26276b51471ab57fbc004e37fa0c946479b6323a" -it ogma-verify-213
      
  • Implementation is documented. Details:
    No updates needed; change is to version numbers only.
  • Change history is clear.
  • Commit messages are clear.
  • Changelogs are updated.
  • Examples are updated. Details:
    No updates needed; change is to version numbers only.
  • Author is internal or has provided signed CLA.
  • Required version bumps are evaluated. Details:
    Bump not needed; change extends, but does not restrict, the range of versions compatible with Copilot.

@ivanperez-keera ivanperez-keera merged commit f5e4f24 into nasa:develop Feb 1, 2025
2 checks passed
@kaBeech kaBeech deleted the develop-bump-cabal-versions branch February 2, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants