Hello community, here is the log from the commit of package ghc-libyaml for openSUSE:Factory checked in at 2019-12-27 13:54:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-libyaml (Old) and /work/SRC/openSUSE:Factory/.ghc-libyaml.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-libyaml" Fri Dec 27 13:54:39 2019 rev:3 rq:759438 version:0.1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-libyaml/ghc-libyaml.changes 2019-02-24 17:18:45.500414663 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-libyaml.new.6675/ghc-libyaml.changes 2019-12-27 13:54:45.952698816 +0100 @@ -1,0 +2,13 @@ +Fri Nov 8 16:14:08 UTC 2019 - Peter Simons <[email protected]> + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Thu Nov 7 06:42:01 UTC 2019 - [email protected] + +- Update libyaml to version 0.1.1.1. + ## 0.1.1.1 + + * Work around GHC 8.6.5 issue on Windows preventing truncated files. [#178](https://github.com/snoyberg/yaml/issues/178) + +------------------------------------------------------------------- Old: ---- libyaml-0.1.1.0.tar.gz New: ---- libyaml-0.1.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-libyaml.spec ++++++ --- /var/tmp/diff_new_pack.UpTYbz/_old 2019-12-27 13:54:47.600699613 +0100 +++ /var/tmp/diff_new_pack.UpTYbz/_new 2019-12-27 13:54:47.600699613 +0100 @@ -18,11 +18,10 @@ %global pkg_name libyaml Name: ghc-%{pkg_name} -Version: 0.1.1.0 +Version: 0.1.1.1 Release: 0 Summary: Low-level, streaming YAML interface License: BSD-3-Clause -Group: Development/Libraries/Haskell 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 @@ -38,7 +37,6 @@ %package devel Summary: Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires: libyaml-devel ++++++ libyaml-0.1.1.0.tar.gz -> libyaml-0.1.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyaml-0.1.1.0/ChangeLog.md new/libyaml-0.1.1.1/ChangeLog.md --- old/libyaml-0.1.1.0/ChangeLog.md 2019-02-12 09:55:32.000000000 +0100 +++ new/libyaml-0.1.1.1/ChangeLog.md 2019-11-06 11:12:13.000000000 +0100 @@ -1,5 +1,9 @@ # Changelog for libyaml +## 0.1.1.1 + +* Work around GHC 8.6.5 issue on Windows preventing truncated files. [#178](https://github.com/snoyberg/yaml/issues/178) + ## 0.1.1.0 * Add options to `FormatOptions` to govern when tags rendered explicitly and when they are left implicit. [#165](https://github.com/snoyberg/yaml/issues/165) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyaml-0.1.1.0/libyaml.cabal new/libyaml-0.1.1.1/libyaml.cabal --- old/libyaml-0.1.1.0/libyaml.cabal 2019-02-12 09:55:57.000000000 +0100 +++ new/libyaml-0.1.1.1/libyaml.cabal 2019-11-06 11:13:08.000000000 +0100 @@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.31.1. +-- This file has been generated from package.yaml by hpack version 0.31.2. -- -- see: https://github.com/sol/hpack -- --- hash: d20fe3a9f7ef759a6555e0219f0728d8a3d1f073384d6d705d588c1160f3743e +-- hash: d35e8c4d317f96574fdc8b6a72f99c2244dacbb949ce1609e8dd56ddbe89a108 name: libyaml -version: 0.1.1.0 +version: 0.1.1.1 synopsis: Low-level, streaming YAML interface. description: README and API documentation are available at <https://www.stackage.org/package/libyaml> category: Text @@ -77,4 +77,6 @@ yaml if os(windows) cpp-options: -DWINDOWS + build-depends: + directory default-language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyaml-0.1.1.0/src/Text/Libyaml.hs new/libyaml-0.1.1.1/src/Text/Libyaml.hs --- old/libyaml-0.1.1.0/src/Text/Libyaml.hs 2019-02-12 09:55:54.000000000 +0100 +++ new/libyaml-0.1.1.1/src/Text/Libyaml.hs 2019-11-06 11:12:13.000000000 +0100 @@ -7,6 +7,7 @@ {-# LANGUAGE RankNTypes #-} {-# LANGUAGE CPP #-} {-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE ScopedTypeVariables #-} -- | Low-level, streaming YAML interface. For a higher-level interface, see -- "Data.Yaml". @@ -69,6 +70,11 @@ import qualified Data.ByteString.Internal as B import qualified Data.ByteString.Unsafe as BU +#if WINDOWS && __GLASGOW_HASKELL__ >= 806 +import System.Directory (removeFile) +import qualified Control.Exception +#endif + data Event = EventStreamStart | EventStreamEnd @@ -788,6 +794,11 @@ bracketP getFile c_fclose $ \file -> runEmitter opts (alloc file) (\u _ -> return u) where getFile = do +#if WINDOWS && __GLASGOW_HASKELL__ >= 806 + -- See: https://github.com/snoyberg/yaml/issues/178#issuecomment-550180027 + removeFile filePath `Control.Exception.catch` + (\(_ :: Control.Exception.IOException) -> pure ()) +#endif file <- openFile filePath write_flags "w" if file == nullPtr then throwIO $ YamlException $ "could not open file for write: " ++ filePath
