[Git][haskell-team/package-plan][master] resolv: Patch for newer tasty

Ilias Tsitsimpis gitlab at salsa.debian.org
Mon Oct 22 16:18:21 BST 2018


Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / package-plan


Commits:
cef81b7a by Ilias Tsitsimpis at 2018-10-22T15:14:03Z
resolv: Patch for newer tasty

- - - - -


5 changed files:

- + additional-cabals/resolv-0.1.1.1.cabal
- packages.txt
- + patches/resolv/0.1.1.1/newer-deps
- + patches/resolv/0.1.1.1/newer-tasty
- + patches/resolv/0.1.1.1/series


Changes:

=====================================
additional-cabals/resolv-0.1.1.1.cabal
=====================================
@@ -0,0 +1,105 @@
+cabal-version:       1.12
+
+name:                resolv
+version:             0.1.1.1
+
+synopsis:            Domain Name Service (DNS) lookup via the libresolv standard library routines
+description: {
+
+This package implements an API for accessing
+the [Domain Name Service (DNS)](https://tools.ietf.org/html/rfc1035)
+resolver service via the standard @libresolv@ system library (whose
+API is often available directly via the standard @libc@ C library) on
+Unix systems.
+.
+This package also includes support for decoding message record types
+as defined in the following RFCs:
+.
+- [RFC 1035](https://tools.ietf.org/html/rfc1035): Domain Names - Implementation And Specification
+- [RFC 1183](https://tools.ietf.org/html/rfc1183): New DNS RR Definitions
+- [RFC 2782](https://tools.ietf.org/html/rfc2782): A DNS RR for specifying the location of services (DNS SRV)
+- [RFC 2915](https://tools.ietf.org/html/rfc2915): The Naming Authority Pointer (NAPTR) DNS Resource Record
+- [RFC 3596](https://tools.ietf.org/html/rfc3596): DNS Extensions to Support IP Version 6
+- [RFC 4034](https://tools.ietf.org/html/rfc4034): Resource Records for the DNS Security Extensions
+- [RFC 4255](https://tools.ietf.org/html/rfc4255): Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints
+- [RFC 4408](https://tools.ietf.org/html/rfc4408): Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1
+- [RFC 5155](https://tools.ietf.org/html/rfc5155): DNS Security (DNSSEC) Hashed Authenticated Denial of Existence
+- [RFC 6844](https://tools.ietf.org/html/rfc6844): DNS Certification Authority Authorization (CAA) Resource Record
+- [RFC 6891](https://tools.ietf.org/html/rfc6891): Extension Mechanisms for DNS (EDNS(0))
+- [RFC 7553](https://tools.ietf.org/html/rfc7553): The Uniform Resource Identifier (URI) DNS Resource Record
+
+}
+
+license:             GPL-3
+license-file:        LICENSE
+author:              Herbert Valerio Riedel
+maintainer:          hvr at gnu.org
+category:            Network
+build-type:          Configure
+bug-reports:         https://github.com/hvr/resolv/issues
+extra-source-files:  ChangeLog.md
+
+extra-source-files:  cbits/hs_resolv.h
+                     cbits/hs_resolv_config.h.in
+                     testdata/msg/*.bin
+                     testdata/msg/*.show
+                     resolv.buildinfo.in
+                     configure
+
+extra-tmp-files:     autom4te.cache
+                     config.log
+                     config.status
+                     resolv.buildinfo
+                     cbits/hs_resolv_config.h
+
+tested-with: GHC==8.2.1, GHC==8.0.2, GHC==7.10.3, GHC==7.10.1, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
+
+source-repository head
+  type:              git
+  location:          https://github.com/hvr/resolv.git
+
+library
+  default-language:  Haskell2010
+  other-extensions:  BangPatterns
+                     CApiFFI
+                     CPP
+                     DeriveDataTypeable
+                     DeriveFoldable
+                     DeriveFunctor
+                     DeriveTraversable
+                     GeneralizedNewtypeDeriving
+                     OverloadedStrings
+                     RecordWildCards
+                     Trustworthy
+
+  hs-source-dirs:    src
+  exposed-modules:   Network.DNS
+  other-modules:     Network.DNS.Message
+                     Network.DNS.FFI
+                     Compat
+
+  build-depends:     base              >= 4.5 && <4.11
+                   , base16-bytestring == 0.1.*
+                   , binary            >= 0.7.3 && < 0.9
+                   , bytestring        >= 0.9.2 && < 0.11
+                   , containers        >= 0.4.2.1 && < 0.6
+
+  ghc-options:       -Wall
+  include-dirs:      cbits
+
+test-suite resolv.
+  default-language:    Haskell2010
+  hs-source-dirs:      src-test
+  main-is:             Tests1.hs
+  type:                exitcode-stdio-1.0
+
+  -- dependencies whose version constraints are inherited via lib:resolv component
+  build-depends: resolv
+               , base
+               , bytestring
+
+  -- additional dependencies not inherited
+  build-depends: tasty         >= 0.11.2  && < 0.12
+               , tasty-hunit   >= 0.9.2   && < 0.10
+               , directory     >= 1.1.0.2 && < 1.4
+               , filepath      >= 1.3.0   && < 1.5


=====================================
packages.txt
=====================================
@@ -751,7 +751,7 @@ relational-query-HDBC 0.7.1.1
 relational-record 0.2.2.0
 relational-schemas 0.1.6.2
 repa 3.4.1.3
-resolv 0.1.1.1 notest # resolv-0.1.1.1:test => tasty<0.12
+resolv 0.1.1.1
 resource-pool 0.2.3.2
 resourcet 1.2.1
 retry 0.7.7.0


=====================================
patches/resolv/0.1.1.1/newer-deps
=====================================
@@ -0,0 +1,18 @@
+Index: b/resolv.cabal
+===================================================================
+--- a/resolv.cabal
++++ b/resolv.cabal
+@@ -78,11 +78,11 @@ library
+                      Network.DNS.FFI
+                      Compat
+ 
+-  build-depends:     base              >= 4.5 && <4.11
++  build-depends:     base              >= 4.5 && <4.13
+                    , base16-bytestring == 0.1.*
+                    , binary            >= 0.7.3 && < 0.9
+                    , bytestring        >= 0.9.2 && < 0.11
+-                   , containers        >= 0.4.2.1 && < 0.6
++                   , containers        >= 0.4.2.1 && < 0.7
+ 
+   ghc-options:       -Wall
+   include-dirs:      cbits


=====================================
patches/resolv/0.1.1.1/newer-tasty
=====================================
@@ -0,0 +1,38 @@
+From 976d4d0540595df06bafac476ca804b3392680b7 Mon Sep 17 00:00:00 2001
+From: Chaitanya Koparkar <ckoparkar at gmail.com>
+Date: Mon, 21 May 2018 10:16:19 -0400
+Subject: [PATCH] Support current versions of tasty and tasty-hunit
+
+Fixes #1.
+---
+ resolv.cabal       | 4 ++--
+ src-test/Tests1.hs | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/resolv.cabal b/resolv.cabal
+index 6da2282..f6d4ce9 100644
+--- a/resolv.cabal
++++ b/resolv.cabal
+@@ -99,7 +99,7 @@ test-suite resolv.
+                , bytestring
+ 
+   -- additional dependencies not inherited
+-  build-depends: tasty         >= 0.11.2  && < 0.12
+-               , tasty-hunit   >= 0.9.2   && < 0.10
++  build-depends: tasty         >= 1.1     && < 1.2
++               , tasty-hunit   >= 0.10    && < 0.11
+                , directory     >= 1.1.0.2 && < 1.4
+                , filepath      >= 1.3.0   && < 1.5
+diff --git a/src-test/Tests1.hs b/src-test/Tests1.hs
+index 23e086f..20d995a 100644
+--- a/src-test/Tests1.hs
++++ b/src-test/Tests1.hs
+@@ -78,7 +78,7 @@ mkQueryRawText1 = T.testCase "mkQueryRawText1" $ do
+   assertEqShow (pure ()) (head (DNS.msgQD msg)) (DNS.MsgQuestion (DNS.Name "www.google.com.") (DNS.Type 1) (DNS.Class 1))
+ 
+ assertJust :: String -> Maybe a -> IO a
+-assertJust msg Nothing  = E.throwIO (T.HUnitFailure msg)
++assertJust msg Nothing  = T.assertFailure msg
+ assertJust _   (Just v) = A.pure v
+ 
+ assertEqShow :: Show a => IO () -> a -> a -> T.Assertion


=====================================
patches/resolv/0.1.1.1/series
=====================================
@@ -0,0 +1,2 @@
+newer-deps
+newer-tasty



View it on GitLab: https://salsa.debian.org/haskell-team/package-plan/commit/cef81b7aec545509b0565aa94232784f50ce8083

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/package-plan/commit/cef81b7aec545509b0565aa94232784f50ce8083
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20181022/f7127c21/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list