Page MenuHomeFreeBSD

Improve cabal-extract for USE_GITHUB/USE_GITLAB cases
ClosedPublic

Authored by arrowd on Apr 27 2021, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 30, 11:43 PM
Unknown Object (File)
Tue, Dec 30, 2:07 PM
Unknown Object (File)
Dec 20 2025, 9:29 AM
Unknown Object (File)
Dec 20 2025, 9:29 AM
Unknown Object (File)
Dec 14 2025, 6:07 PM
Unknown Object (File)
Nov 21 2025, 12:12 AM
Unknown Object (File)
Nov 21 2025, 12:10 AM
Unknown Object (File)
Nov 21 2025, 12:05 AM
Subscribers
None

Details

Summary

The cabal-extract is an auxiliary target that is intended to be run
interactively by the port developer. It populates Cabal cache and then tries
to fetch the main distribution file from Hackage package database. However,
some packages reside on GitHub and other hostings, in which case this target
fails. I modified it in such way that it does the usual make extract in this
case, but preserve Cabal cache.

I'm a but unsure about .if expresions I added. Maybe they can be made more concise?

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable