remove vendored http-client-restricted

Removed vendored copy of http-client-restricted, and removed the
HttpClientRestricted build flag that avoided that dependency.

http-client-restricted is in Debian stable, and the i386ancient build also
uses it, so I think this vendored copy is no longer needed.

Sponsored-by: Noam Kremen on Patreon
This commit is contained in:
Joey Hess 2022-03-22 11:50:06 -04:00
parent c0185f0848
commit 982eb7ed0d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
7 changed files with 4 additions and 23 deletions

View file

@ -6,8 +6,6 @@
- Licensed under the GNU AGPL version 3 or higher.
-}
{-# LANGUAGE CPP #-}
module Annex.Url (
withUrlOptions,
withUrlOptionsPromptingCreds,
@ -36,11 +34,7 @@ import qualified Annex
import qualified Utility.Url as U
import Utility.Hash (IncrementalVerifier)
import Utility.IPAddress
#ifdef WITH_HTTP_CLIENT_RESTRICTED
import Network.HTTP.Client.Restricted
#else
import Utility.HttpManagerRestricted
#endif
import Utility.Metered
import Git.Credential
import qualified BuildInfo

View file

@ -35,6 +35,8 @@ git-annex (10.20220223) UNRELEASED; urgency=medium
standalone linux tarball or OSX app.
* test: Runs tests in parallel to speed up the test suite.
* test: Added --jobs option.
* Removed vendored copy of http-client-restricted, and removed the
HttpClientRestricted build flag that avoided that dependency.
-- Joey Hess <id@joeyh.name> Wed, 23 Feb 2022 14:14:09 -0400

View file

@ -9,7 +9,6 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
module Utility.Url (
newManager,
@ -46,11 +45,7 @@ module Utility.Url (
import Common
import Utility.Debug
import Utility.Metered
#ifdef WITH_HTTP_CLIENT_RESTRICTED
import Network.HTTP.Client.Restricted
#else
import Utility.HttpManagerRestricted
#endif
import Utility.IPAddress
import qualified Utility.RawFilePath as R
import Utility.Hash (IncrementalVerifier(..))

1
debian/control vendored
View file

@ -56,6 +56,7 @@ Build-Depends:
libghc-case-insensitive-dev,
libghc-http-types-dev,
libghc-http-conduit-dev,
libghc-http-client-restricted-dev,
libghc-blaze-builder-dev,
libghc-crypto-api-dev,
libghc-network-multicast-dev,

View file

@ -292,10 +292,6 @@ Flag GitLfs
Description: Build with git-lfs library (rather than vendored copy)
Default: True
Flag HttpClientRestricted
Description: Build with http-client-restricted library (rather than vendored copy)
Default: True
source-repository head
type: git
location: git://git-annex.branchable.com/
@ -348,6 +344,7 @@ Executable git-annex
http-client-tls,
http-types (>= 0.7),
http-conduit (>= 2.3.0),
http-client-restricted (>= 0.0.2),
conduit,
time (>= 1.5.0),
old-locale,
@ -425,12 +422,6 @@ Executable git-annex
else
Other-Modules: Utility.GitLFS
if flag(HttpClientRestricted)
Build-Depends: http-client-restricted (>= 0.0.2)
CPP-Options: -DWITH_HTTP_CLIENT_RESTRICTED
else
Other-Modules: Utility.HttpManagerRestricted
if flag(Assistant) && ! os(solaris) && ! os(gnu)
Build-Depends: mountpoints
CPP-Options: -DWITH_ASSISTANT

View file

@ -11,7 +11,6 @@ flags:
benchmark: true
networkbsd: true
gitlfs: true
httpclientrestricted: true
packages:
- '.'
resolver: lts-18.13

View file

@ -11,7 +11,6 @@ flags:
benchmark: false
networkbsd: true
gitlfs: true
httpclientrestricted: true
packages:
- '.'
extra-deps: