Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion base/comps/components.toml
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.ghc-skylighting]
[components.ghc-socks]
[components.ghc-split]
[components.ghc-srpm-macros]
[components.ghc-streaming-commons]
[components.ghc-strict]
[components.ghc-syb]
Expand Down
24 changes: 24 additions & 0 deletions base/comps/ghc-srpm-macros/ghc-srpm-macros.comp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[components.ghc-srpm-macros]

# Disable building Haskell profiling libraries for all ghc-* SRPMs by flipping
# the `with_ghc_prof` default at the source. Azure Linux does not ship any
# `ghc-*-prof` RPMs; building them adds significant build time and produces
# hundreds of unused subpackages across the Haskell ecosystem.
#
# `macros.ghc-srpm` is consumed at build time by ghc itself and every
# downstream `ghc-*` SRPM via `BuildRequires: ghc-srpm-macros`. Both the
# legacy `%with_ghc_prof` definition and the modern `%bcond ghc_prof` need
# to be flipped to 0 so all consumers see profiling disabled by default.
[[components.ghc-srpm-macros.overlays]]
description = "Disable %with_ghc_prof default in macros.ghc-srpm (AZL ships no ghc-*-prof RPMs)"
type = "file-search-replace"
file = "macros.ghc-srpm"
regex = '%with_ghc_prof 1'
replacement = '%with_ghc_prof 0'

[[components.ghc-srpm-macros.overlays]]
description = "Flip the %bcond ghc_prof default to 0 in macros.ghc-srpm so downstream specs default to no profiling"
type = "file-search-replace"
file = "macros.ghc-srpm"
regex = '%bcond ghc_prof 1'
replacement = '%bcond ghc_prof 0'
Loading
Loading