Hello community, here is the log from the commit of package ghc-asn1-encoding for openSUSE:Factory checked in at 2017-04-11 09:42:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-asn1-encoding (Old) and /work/SRC/openSUSE:Factory/.ghc-asn1-encoding.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-asn1-encoding" Tue Apr 11 09:42:00 2017 rev:6 rq:485105 version:0.9.5 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-asn1-encoding/ghc-asn1-encoding.changes 2016-07-21 07:59:33.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-asn1-encoding.new/ghc-asn1-encoding.changes 2017-04-11 09:42:11.162314703 +0200 @@ -1,0 +2,5 @@ +Tue Mar 7 11:19:27 UTC 2017 - [email protected] + +- Update to version 0.9.5 with cabal2obs. + +------------------------------------------------------------------- Old: ---- asn1-encoding-0.9.4.tar.gz New: ---- asn1-encoding-0.9.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-asn1-encoding.spec ++++++ --- /var/tmp/diff_new_pack.OTQDfo/_old 2017-04-11 09:42:12.706096624 +0200 +++ /var/tmp/diff_new_pack.OTQDfo/_new 2017-04-11 09:42:12.706096624 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-asn1-encoding # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,15 +19,14 @@ %global pkg_name asn1-encoding %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.9.4 +Version: 0.9.5 Release: 0 Summary: ASN1 data reader and writer in RAW, BER and DER forms License: BSD-3-Clause -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-asn1-types-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-hourglass-devel @@ -39,7 +38,6 @@ BuildRequires: ghc-tasty-quickcheck-devel BuildRequires: ghc-text-devel %endif -# End cabal-rpm deps %description ASN1 data reader and writer in raw form with supports for high level forms of @@ -59,20 +57,14 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++++++ asn1-encoding-0.9.4.tar.gz -> asn1-encoding-0.9.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-encoding-0.9.4/Data/ASN1/BinaryEncoding/Parse.hs new/asn1-encoding-0.9.5/Data/ASN1/BinaryEncoding/Parse.hs --- old/asn1-encoding-0.9.4/Data/ASN1/BinaryEncoding/Parse.hs 2016-06-12 08:05:07.000000000 +0200 +++ new/asn1-encoding-0.9.5/Data/ASN1/BinaryEncoding/Parse.hs 2017-03-02 07:50:07.000000000 +0100 @@ -124,7 +124,7 @@ , remBytes) go (ParseState stackEnd (ExpectPrimitive len cont) pos) bs = case runGetPrimitive cont len pos bs of - Fail _ -> error "primitive parsing failed" + Fail _ -> Left ParsingPartial Partial f -> Right (([], ParseState stackEnd (ExpectPrimitive len $ Just f) pos), B.empty) Done p nPos remBytes -> Right (([Primitive p], ParseState stackEnd (ExpectHeader Nothing) nPos), remBytes) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-encoding-0.9.4/Data/ASN1/Error.hs new/asn1-encoding-0.9.5/Data/ASN1/Error.hs --- old/asn1-encoding-0.9.4/Data/ASN1/Error.hs 2016-06-12 08:05:07.000000000 +0200 +++ new/asn1-encoding-0.9.5/Data/ASN1/Error.hs 2017-03-02 08:02:34.000000000 +0100 @@ -25,6 +25,7 @@ | ParsingPartial -- ^ Parsing is not finished, there is construction unended. | TypeNotImplemented String -- ^ Decoding of a type that is not implemented. Contribution welcome. | TypeDecodingFailed String -- ^ Decoding of a knowed type failed. + | TypePrimitiveInvalid String -- ^ Invalid primitive type | PolicyFailed String String -- ^ Policy failed including the name of the policy and the reason. deriving (Typeable, Show, Eq) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-encoding-0.9.4/Data/ASN1/Prim.hs new/asn1-encoding-0.9.5/Data/ASN1/Prim.hs --- old/asn1-encoding-0.9.4/Data/ASN1/Prim.hs 2016-06-12 08:05:07.000000000 +0200 +++ new/asn1-encoding-0.9.5/Data/ASN1/Prim.hs 2017-03-02 08:03:16.000000000 +0100 @@ -169,8 +169,8 @@ decodePrimitive (ASN1Header Universal 0xb _ _) _ = Left $ TypeNotImplemented "EMBEDDED PDV" decodePrimitive (ASN1Header Universal 0xc _ _) p = getCharacterString UTF8 p decodePrimitive (ASN1Header Universal 0xd _ _) _ = Left $ TypeNotImplemented "RELATIVE-OID" -decodePrimitive (ASN1Header Universal 0x10 _ _) _ = error "sequence not a primitive" -decodePrimitive (ASN1Header Universal 0x11 _ _) _ = error "set not a primitive" +decodePrimitive (ASN1Header Universal 0x10 _ _) _ = Left $ TypePrimitiveInvalid "sequence" +decodePrimitive (ASN1Header Universal 0x11 _ _) _ = Left $ TypePrimitiveInvalid "set" decodePrimitive (ASN1Header Universal 0x12 _ _) p = getCharacterString Numeric p decodePrimitive (ASN1Header Universal 0x13 _ _) p = getCharacterString Printable p decodePrimitive (ASN1Header Universal 0x14 _ _) p = getCharacterString T61 p diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-encoding-0.9.4/Data/ASN1/Serialize.hs new/asn1-encoding-0.9.5/Data/ASN1/Serialize.hs --- old/asn1-encoding-0.9.4/Data/ASN1/Serialize.hs 2016-06-12 08:05:07.000000000 +0200 +++ new/asn1-encoding-0.9.5/Data/ASN1/Serialize.hs 2017-03-02 07:13:08.000000000 +0100 @@ -37,7 +37,7 @@ getTagLong :: Get ASN1Tag getTagLong = do t <- fromIntegral <$> getWord8 - when (t == 0x80) $ error "not canonical encoding of tag" + when (t == 0x80) $ fail "non canonical encoding of long tag" if testBit t 7 then loop (clearBit t 7) else return t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asn1-encoding-0.9.4/asn1-encoding.cabal new/asn1-encoding-0.9.5/asn1-encoding.cabal --- old/asn1-encoding-0.9.4/asn1-encoding.cabal 2016-06-12 08:05:07.000000000 +0200 +++ new/asn1-encoding-0.9.5/asn1-encoding.cabal 2017-03-02 08:06:48.000000000 +0100 @@ -1,5 +1,5 @@ Name: asn1-encoding -Version: 0.9.4 +Version: 0.9.5 Synopsis: ASN1 data reader and writer in RAW, BER and DER forms Description: ASN1 data reader and writer in raw form with supports for high level forms of ASN1 (BER, and DER).
