commit ghc-zlib for openSUSE:Factory
Hello community,
here is the log from the commit of package ghc-zlib for openSUSE:Factory checked in at 2018-05-30 12:16:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-zlib (Old)
and /work/SRC/openSUSE:Factory/.ghc-zlib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-zlib"
Wed May 30 12:16:15 2018 rev:13 rq:607960 version:0.6.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-zlib/ghc-zlib.changes 2017-09-15 22:28:42.441474337 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-zlib.new/ghc-zlib.changes 2018-05-30 12:28:01.988751775 +0200
@@ -1,0 +2,8 @@
+Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
+
+- Update zlib to version 0.6.2.
+ * New cabal flag 'pkg-config' for discovering 'zlib` via pkg-config(1) (#16)
+ * Use CApiFFI where available for cross-compile friendliness (#14)
+ * Change the window bits range from 8..15 to 9..15 (#11)
+
+-------------------------------------------------------------------
Old:
----
zlib-0.6.1.2.tar.gz
New:
----
zlib-0.6.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-zlib.spec ++++++
--- /var/tmp/diff_new_pack.910Pnz/_old 2018-05-30 12:28:02.748724932 +0200
+++ /var/tmp/diff_new_pack.910Pnz/_new 2018-05-30 12:28:02.752724789 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-zlib
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,7 +19,7 @@
%global pkg_name zlib
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.6.1.2
+Version: 0.6.2
Release: 0
Summary: Compression and decompression in the gzip and zlib formats
License: BSD-2-Clause
@@ -78,7 +78,7 @@
%ghc_pkg_recache
%files -f %{name}.files
-%doc LICENSE
+%license LICENSE
%files devel -f %{name}-devel.files
%doc changelog examples
++++++ zlib-0.6.1.2.tar.gz -> zlib-0.6.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zlib-0.6.1.2/Codec/Compression/Zlib/Stream.hsc new/zlib-0.6.2/Codec/Compression/Zlib/Stream.hsc
--- old/zlib-0.6.1.2/Codec/Compression/Zlib/Stream.hsc 2016-10-23 20:13:38.000000000 +0200
+++ new/zlib-0.6.2/Codec/Compression/Zlib/Stream.hsc 2018-03-08 16:13:31.000000000 +0100
@@ -2,6 +2,9 @@
#if __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE DeriveGeneric #-}
#endif
+#if __GLASGOW_HASKELL__ >= 706
+{-# LANGUAGE CApiFFI #-}
+#endif
-----------------------------------------------------------------------------
-- |
-- Copyright : (c) 2006-2015 Duncan Coutts
@@ -709,8 +712,8 @@
-- usage.
--
-- The compression window size is the value of the the window bits raised to
--- the power 2. The window bits must be in the range @8..15@ which corresponds
--- to compression window sizes of 256b to 32Kb. The default is 15 which is also
+-- the power 2. The window bits must be in the range @9..15@ which corresponds
+-- to compression window sizes of 512b to 32Kb. The default is 15 which is also
-- the maximum size.
--
-- The total amount of memory used depends on the window bits and the
@@ -737,19 +740,19 @@
defaultWindowBits :: WindowBits
defaultWindowBits = WindowBits 15
--- | A specific compression window size, specified in bits in the range @8..15@
+-- | A specific compression window size, specified in bits in the range @9..15@
--
windowBits :: Int -> WindowBits
windowBits n
- | n >= 8 && n <= 15 = WindowBits n
- | otherwise = error "WindowBits must be in the range 8..15"
+ | n >= 9 && n <= 15 = WindowBits n
+ | otherwise = error "WindowBits must be in the range 9..15"
fromWindowBits :: Format -> WindowBits-> CInt
fromWindowBits format bits = (formatModifier format) (checkWindowBits bits)
where checkWindowBits DefaultWindowBits = 15
checkWindowBits (WindowBits n)
- | n >= 8 && n <= 15 = fromIntegral n
- | otherwise = error "WindowBits must be in the range 8..15"
+ | n >= 9 && n <= 15 = fromIntegral n
+ | otherwise = error "WindowBits must be in the range 9..15"
formatModifier Zlib = id
formatModifier GZip = (+16)
formatModifier GZipOrZlib = (+32)
@@ -1008,6 +1011,10 @@
--
-- So we define c_inflateInit2 and c_deflateInit2 here as wrappers around
-- their _ counterparts and pass the extra args.
+--
+-- As of GHC 7.6, we can import macros directly using the CApiFFI extension.
+-- This avoids the need for the hsc2hs #{const_str} construct, which means
+-- hsc2hs can run in cross-compilation mode.
##ifdef NON_BLOCKING_FFI
##define SAFTY safe
@@ -1015,6 +1022,14 @@
##define SAFTY unsafe
##endif
+#if __GLASGOW_HASKELL__ >= 706
+foreign import capi unsafe "zlib.h inflateInit2"
+ c_inflateInit2 :: StreamState -> CInt -> IO CInt
+
+foreign import capi unsafe "zlib.h deflateInit2"
+ c_deflateInit2 :: StreamState
+ -> CInt -> CInt -> CInt -> CInt -> CInt -> IO CInt
+#else
foreign import ccall unsafe "zlib.h inflateInit2_"
c_inflateInit2_ :: StreamState -> CInt -> Ptr CChar -> CInt -> IO CInt
@@ -1023,15 +1038,6 @@
withCAString #{const_str ZLIB_VERSION} $ \versionStr ->
c_inflateInit2_ z n versionStr (#{const sizeof(z_stream)} :: CInt)
-foreign import ccall SAFTY "zlib.h inflate"
- c_inflate :: StreamState -> CInt -> IO CInt
-
-foreign import ccall unsafe "zlib.h &inflateEnd"
- c_inflateEnd :: FinalizerPtr StreamState
-
-foreign import ccall unsafe "zlib.h inflateReset"
- c_inflateReset :: StreamState -> IO CInt
-
foreign import ccall unsafe "zlib.h deflateInit2_"
c_deflateInit2_ :: StreamState
-> CInt -> CInt -> CInt -> CInt -> CInt
@@ -1043,6 +1049,16 @@
c_deflateInit2 z a b c d e =
withCAString #{const_str ZLIB_VERSION} $ \versionStr ->
c_deflateInit2_ z a b c d e versionStr (#{const sizeof(z_stream)} :: CInt)
+#endif
+
+foreign import ccall SAFTY "zlib.h inflate"
+ c_inflate :: StreamState -> CInt -> IO CInt
+
+foreign import ccall unsafe "zlib.h &inflateEnd"
+ c_inflateEnd :: FinalizerPtr StreamState
+
+foreign import ccall unsafe "zlib.h inflateReset"
+ c_inflateReset :: StreamState -> IO CInt
foreign import ccall unsafe "zlib.h deflateSetDictionary"
c_deflateSetDictionary :: StreamState
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zlib-0.6.1.2/changelog new/zlib-0.6.2/changelog
--- old/zlib-0.6.1.2/changelog 2016-10-23 20:13:38.000000000 +0200
+++ new/zlib-0.6.2/changelog 2018-03-08 16:13:31.000000000 +0100
@@ -1,3 +1,9 @@
+0.6.2 Herbert Valerio Riedel
participants (1)
-
root