Skip to content

[RFC] fix(ghc-srpm-macros): disable Haskell profiling libraries#17105

Draft
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/remove-ghc-ghc-prof
Draft

[RFC] fix(ghc-srpm-macros): disable Haskell profiling libraries#17105
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/remove-ghc-ghc-prof

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

Azure Linux does not ship any ghc-*-prof RPMs. Building them roughly doubles the build time of every Haskell package and produces ~290 unused subpackages across the ecosystem.

Flip the with_ghc_prof defaults in macros.ghc-srpm so all ghc-* SRPMs (ghc itself plus the cabal-rpm generated downstream specs that gate %files prof on %if %{with ghc_prof}) skip building their profiling subpackages by default.

Also drop the corresponding ghc-*-prof entries (and the ghc-prof metapackage) from sdk.packages.toml so the SDK package list reflects what actually ships.

Verified: ghc-srpm-macros builds; in a mock chroot with the new RPM installed, rpm --eval '%{?with_ghc_prof}' returns 0.

Azure Linux does not ship any ghc-*-prof RPMs. Building them roughly
doubles the build time of every Haskell package and produces ~290
unused subpackages across the ecosystem.

Flip the `with_ghc_prof` defaults in macros.ghc-srpm so all ghc-*
SRPMs (ghc itself plus the cabal-rpm generated downstream specs that
gate `%files prof` on `%if %{with ghc_prof}`) skip building their
profiling subpackages by default.

Also drop the corresponding ghc-*-prof entries (and the ghc-prof
metapackage) from sdk.packages.toml so the SDK package list reflects
what actually ships.

Verified: ghc-srpm-macros builds; in a mock chroot with the new RPM
installed, `rpm --eval '%{?with_ghc_prof}'` returns `0`.
@christopherco christopherco changed the title fix(ghc-srpm-macros): disable Haskell profiling libraries RFC: fix(ghc-srpm-macros): disable Haskell profiling libraries May 9, 2026
@christopherco christopherco changed the title RFC: fix(ghc-srpm-macros): disable Haskell profiling libraries [RFC] fix(ghc-srpm-macros): disable Haskell profiling libraries May 9, 2026
@reubeno
Copy link
Copy Markdown
Member

reubeno commented May 9, 2026

Change looks pretty good.

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