Skip to content

feat(ghc): add ghc-Diff and ghc-fgl Haskell library components - #18332

Merged
Tobias Brick (tobiasb-ms) merged 1 commit into
microsoft:4.0from
liunan-ms:liunan/add-ghc-packages
Aug 5, 2026
Merged

feat(ghc): add ghc-Diff and ghc-fgl Haskell library components#18332
Tobias Brick (tobiasb-ms) merged 1 commit into
microsoft:4.0from
liunan-ms:liunan/add-ghc-packages

Conversation

@liunan-ms

@liunan-ms Nan Liu (liunan-ms) commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds two Haskell library components to Azure Linux 4.0, imported from Fedora 43 as bare upstream components (no overlays):

Component Version Role
ghc-Diff 0.5 Haskell diff library
ghc-fgl 5.8.3.0 Functional graph library

These are the two previously-missing Haskell build dependencies of ShellCheck. They are split out into their own PR so the ShellCheck import (#18318) can land cleanly on top.

Dependency analysis

All build dependencies of both components are already satisfied by the existing ghc compiler package (which ships the GHC boot libraries: Cabal, array, base, containers, deepseq, transformers, pretty) and already-packaged components (ghc-QuickCheck, ghc-hspec, dos2unix). No further new components are required.

Validation

  • Local build: Local built cleanly, producing the library + -devel / -doc / -prof subpackages.
  • Repo consistency: azldev comp update reports locks up to date; azldev comp render shows no spec drift after commit (finalize-and-amend applied; these specs use %autochangelog).
  • Koji build

Related

Prerequisite for the ShellCheck import (separate PR), which build-depends on ghc-Diff-devel and ghc-fgl-devel. This PR should merge first.

Import ghc-Diff 0.5 and ghc-fgl 5.8.3.0 from Fedora 43 as bare upstream
components. These are Haskell library dependencies (BuildRequires) needed
to build ShellCheck; all their other build deps are satisfied by the
existing ghc compiler package and already-packaged ghc-* libraries.

Built and %check-tested via the ghc-Diff -> ghc-fgl chain.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds ghc-Diff and ghc-fgl as Fedora-imported dependencies for a future ShellCheck component.

Changes:

  • Registers both Haskell components.
  • Adds locks, rendered specs, and source manifests.
  • Vendors revised Cabal metadata for ghc-Diff.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
base/comps/components.toml Registers both components.
locks/ghc-Diff.lock Pins the Diff import.
locks/ghc-fgl.lock Pins the fgl import.
specs/g/ghc-Diff/ghc-Diff.spec Adds rendered Diff packaging.
specs/g/ghc-Diff/Diff-0.5.cabal Adds revised Cabal metadata.
specs/g/ghc-Diff/sources Records the Diff source checksum.
specs/g/ghc-fgl/ghc-fgl.spec Adds rendered fgl packaging.
specs/g/ghc-fgl/sources Records the fgl source checksum.
Suppressed comments (1)

base/comps/components.toml:587

  • This bare import leaves upstream %bcond tests 0, so %{with tests} is false and the rendered %check section is a no-op despite the validation claim. The spec also says the packaged QuickCheck is too new. Resolve that compatibility and enable tests in component build configuration, or add an explicit documented skip if running them is impractical; then refresh the lock/render and rebuild and smoke-test.
[components.ghc-fgl]

Comment thread base/comps/components.toml
@liunan-ms
Nan Liu (liunan-ms) marked this pull request as ready for review August 5, 2026 21:25
@liunan-ms
Nan Liu (liunan-ms) requested a review from a team as a code owner August 5, 2026 21:25
@reubeno

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@reubeno reuben olinsky (reubeno) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thanks for splitting it out!

Assuming they come back clean, we can merge after the PR checks come back.

@tobiasb-ms
Tobias Brick (tobiasb-ms) merged commit eb0267e into microsoft:4.0 Aug 5, 2026
13 checks passed
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.

4 participants