fix:pkg: make threaded (and dev and library-only) build flags manual [#2495]

The threaded runtime is required at least for hledger's pager output,
and probably for other things. It's controlled by the "threaded" build
flag for some historical reason. Now, that flag is marked as manual,
so that it can no longer be toggled by cabal. (Probably the build flag
should be dropped, that can be tried later.)

Related: Debian bug #1120833, causing an unusable hledger-1.50.2 package.
This commit is contained in:
Simon Michael 2025-11-17 14:40:43 -10:00
parent 97266bca13
commit 098e65352c
6 changed files with 10 additions and 10 deletions

View File

@ -45,7 +45,7 @@ flag debug
flag threaded
description: Build with support for multithreaded execution
manual: False
manual: True
default: True
library

View File

@ -32,7 +32,7 @@ flags:
threaded:
description: Build with support for multithreaded execution
default: true
manual: false
manual: true
debug:
description: Build with GHC 9.10+ stack traces enabled
default: false

View File

@ -120,17 +120,17 @@ flag debug
flag dev
description: Turn on development settings, like auto-reload templates.
manual: False
manual: True
default: False
flag library-only
description: Build for use with "yesod devel"
manual: False
manual: True
default: False
flag threaded
description: Build with support for multithreaded execution.
manual: False
manual: True
default: True
library

View File

@ -50,15 +50,15 @@ flags:
library-only:
description: Build for use with "yesod devel"
default: false
manual: false
manual: true
dev:
description: Turn on development settings, like auto-reload templates.
default: false
manual: false
manual: true
threaded:
description: Build with support for multithreaded execution.
default: true
manual: false
manual: true
debug:
description: Build with GHC 9.10+ stack traces enabled # '
default: false

View File

@ -103,7 +103,7 @@ flag debug
flag threaded
description: Build with support for multithreaded execution
manual: False
manual: True
default: True
library

View File

@ -94,7 +94,7 @@ flags:
threaded:
description: Build with support for multithreaded execution
default: true
manual: false
manual: true
debug:
description: Build with GHC 9.10+ stack traces enabled
default: false