git-annex.cabal: Move webapp build deps under the Assistant build flag so
git-annex can be built again without yesod etc installed.
Commit
78440ca37d75039d5eadd52eafbcd1751daba70a got rid of the webapp build
flag to work around what was apparently a cabal bug. It moved the webapp
build deps to the main build-depends list. But that prevents building
git-annex when yesod etc are not installed.
Putting them under the Assistant build flag seems to not tickle that cabal
bug, and lets git-annex build automatically with the assistant disabled
when the webapp build deps are not installed.
I hypotehesize that the problem may have involved build-depends nested
behind two build flags. Also, cabal clean may need to be run in order
for cabal to find the right solution after this change, when building in
a directory where cabal configure had been run before.
Also moved 3 modules that are needed to build git-annex w/o the assistant
out from under the Assistant build flag.
Sponsored-by: Brock Spratlen on Patreon
* info: Fix reversion in last release involving handling of unsupported
input by continuing to handle any other inputs, before exiting nonzero
at the end.
+ * git-annex.cabal: Move webapp build deps under the Assistant build flag
+ so git-annex can be built again without yesod etc installed.
-- Joey Hess <id@joeyh.name> Tue, 14 Feb 2023 14:11:11 -0400
aws (>= 0.20),
DAV (>= 1.0),
network (>= 3.0.0.0),
- network-bsd,
- mountpoints,
- yesod (>= 1.4.3),
- yesod-static (>= 1.5.1),
- yesod-form (>= 1.4.8),
- yesod-core (>= 1.6.0),
- path-pieces (>= 0.2.1),
- warp (>= 3.2.8),
- warp-tls (>= 3.2.2),
- wai,
- wai-extra,
- blaze-builder,
- clientsession,
- template-haskell,
- shakespeare (>= 2.0.11)
+ network-bsd
CC-Options: -Wall
GHC-Options: -Wall -fno-warn-tabs -Wincomplete-uni-patterns
Default-Language: Haskell2010
if flag(Assistant) && ! os(solaris) && ! os(gnu)
CPP-Options: -DWITH_ASSISTANT -DWITH_WEBAPP
+ Build-Depends:
+ mountpoints,
+ yesod (>= 1.4.3),
+ yesod-static (>= 1.5.1),
+ yesod-form (>= 1.4.8),
+ yesod-core (>= 1.6.0),
+ path-pieces (>= 0.2.1),
+ warp (>= 3.2.8),
+ warp-tls (>= 3.2.2),
+ wai,
+ wai-extra,
+ blaze-builder,
+ clientsession,
+ template-haskell,
+ shakespeare (>= 2.0.11)
Other-Modules:
Assistant
Assistant.Alert
Assistant.Fsck
Assistant.Gpg
Assistant.Install
- Assistant.Install.AutoStart
- Assistant.Install.Menu
Assistant.MakeRemote
Assistant.MakeRepo
Assistant.Monad
Command.Watch
Command.WebApp
Utility.Mounts
- Utility.OSX
Utility.Yesod
Utility.WebApp
Annex.WorkerPool
Annex.WorkTree
Annex.YoutubeDl
+ Assistant.Install.AutoStart
+ Assistant.Install.Menu
Backend
Backend.External
Backend.Hash
Utility.Network
Utility.NotificationBroadcaster
Utility.OptParse
+ Utility.OSX
Utility.PID
Utility.PartialPrelude
Utility.Path