Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-zlib for openSUSE:Factory 
checked in at 2024-12-20 23:11:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-zlib (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-zlib.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-zlib"

Fri Dec 20 23:11:17 2024 rev:31 rq:1231494 version:0.7.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-zlib/ghc-zlib.changes        2024-07-02 
18:16:41.131936836 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-zlib.new.1881/ghc-zlib.changes      
2024-12-20 23:12:12.068382757 +0100
@@ -1,0 +2,14 @@
+Sun Nov 24 20:39:41 UTC 2024 - Peter Simons <[email protected]>
+
+- Update zlib to version 0.7.1.0 revision 2.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+-------------------------------------------------------------------
+Wed Jun 26 20:42:43 UTC 2024 - Peter Simons <[email protected]>
+
+- Update zlib to version 0.7.1.0 revision 1.
+  Upstream has renamed and modified the change log file(s) in this
+  release. Unfortunately, the automatic updater cannot reliable
+  determine relevant entries for this release.
+
+-------------------------------------------------------------------

Old:
----
  zlib-0.6.3.0.tar.gz

New:
----
  zlib-0.7.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-zlib.spec ++++++
--- /var/tmp/diff_new_pack.zoOPXg/_old  2024-12-20 23:12:13.628447092 +0100
+++ /var/tmp/diff_new_pack.zoOPXg/_new  2024-12-20 23:12:13.644447752 +0100
@@ -20,20 +20,21 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.6.3.0
+Version:        0.7.1.0
 Release:        0
 Summary:        Compression and decompression in the gzip and zlib formats
 License:        BSD-2-Clause
 URL:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/5.cabal#/%{pkg_name}.cabal
+Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
 BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-rpm-macros
-BuildRequires:  zlib-devel
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(zlib)
 ExcludeArch:    %{ix86}
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
@@ -58,7 +59,8 @@
 Summary:        Haskell %{pkg_name} library development files
 Requires:       %{name} = %{version}-%{release}
 Requires:       ghc-compiler = %{ghc_version}
-Requires:       zlib-devel
+Requires:       pkgconfig
+Requires:       pkgconfig(zlib)
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
 
@@ -104,7 +106,7 @@
 %license LICENSE
 
 %files devel -f %{name}-devel.files
-%doc README.md changelog examples
+%doc README.md changelog.md examples
 
 %files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
 %license LICENSE

++++++ zlib-0.6.3.0.tar.gz -> zlib-0.7.1.0.tar.gz ++++++
++++ 23128 lines of diff (skipped)

++++++ zlib.cabal ++++++
--- /var/tmp/diff_new_pack.zoOPXg/_old  2024-12-20 23:12:14.120467382 +0100
+++ /var/tmp/diff_new_pack.zoOPXg/_new  2024-12-20 23:12:14.124467547 +0100
@@ -1,7 +1,7 @@
 cabal-version:   >= 1.10
 name:            zlib
-version:         0.6.3.0
-x-revision:      5
+version:         0.7.1.0
+x-revision: 2
 
 copyright:       (c) 2006-2016 Duncan Coutts
 license:         BSD3
@@ -23,13 +23,7 @@
                  provides access to the full zlib feature set.
 build-type:      Simple
 
-tested-with:     GHC == 7.0.4
-               , GHC == 7.2.2
-               , GHC == 7.4.2
-               , GHC == 7.6.3
-               , GHC == 7.8.4
-               , GHC == 7.10.3
-               , GHC == 8.0.2
+tested-with:     GHC == 8.0.2
                , GHC == 8.2.2
                , GHC == 8.4.4
                , GHC == 8.6.5
@@ -37,16 +31,15 @@
                , GHC == 8.10.7
                , GHC == 9.0.2
                , GHC == 9.2.8
-               , GHC == 9.4.7
-               , GHC == 9.6.3
-               , GHC == 9.8.1
+               , GHC == 9.4.8
+               , GHC == 9.6.5
+               , GHC == 9.8.2
+               , GHC == 9.10.1
 
-extra-source-files: changelog
+extra-source-files: changelog.md
                     README.md
-                    -- zlib C sources (for Windows)
-                    cbits/crc32.h cbits/inffast.h cbits/inflate.h
-                    cbits/trees.h cbits/deflate.h cbits/inffixed.h
-                    cbits/inftrees.h cbits/zutil.h cbits/gzguts.h
+                    -- extra headers
+                    cbits-extra/hs-zlib.h
                     -- test data files
                     test/data/bad-crc.gz test/data/custom-dict.zlib
                     test/data/custom-dict.zlib-dict test/data/hello.gz
@@ -59,23 +52,23 @@
   location: https://github.com/haskell/zlib.git
 
 flag non-blocking-ffi
-  default:     False
+  default:     True
   manual:      True
   description: The (de)compression calls can sometimes take a long time, which
                prevents other Haskell threads running. Enabling this flag
                avoids this unfairness, but with greater overall cost.
 
 flag pkg-config
-  default:     False
-  manual:      True
-  description: Use @pkg-config(1)@ to locate foreign @zlib@ library.
+  default:     True
+  manual:      False
+  description: Use @pkg-config@ executable to locate foreign @zlib@ library.
 
 flag bundled-c-zlib
   default:     False
   manual:      True
-  description: Use the bundled zlib C sources. Requires pkg-config to be False.
-               For windows, this is the default.
-
+  description: Use @zlib-clib@ package with C sources instead of a system 
library.
+               C sources are used for GHCJS and WASM unconditionally
+               and on Windows unless @pkg-config@ flag is on.
 
 library
   exposed-modules: Codec.Compression.GZip,
@@ -85,45 +78,46 @@
   other-modules:   Codec.Compression.Zlib.Stream,
                    Codec.Compression.Zlib.ByteStringCompat
 
-  if impl(ghc < 7)
-    default-language: Haskell98
-    default-extensions: PatternGuards
-  else
-    default-language: Haskell2010
+  default-language: Haskell2010
 
   other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
                     DeriveDataTypeable
-  if impl(ghc >= 7.2)
-    other-extensions: DeriveGeneric
-  if impl(ghc >= 7.6)
-    other-extensions: CApiFFI
+  other-extensions: DeriveGeneric
+  other-extensions: CApiFFI
 
-  build-depends:   base >= 4 && < 4.21,
+  build-depends:   base >= 4.9 && < 4.22,
                    bytestring >= 0.9 && < 0.13
-  if impl(ghc >= 7.0 && < 8.0.3)
-    build-depends: ghc-prim
 
-  includes:        zlib.h
+  build-tools:     hsc2hs >= 0.67 && < 0.69
+  if os(windows) && impl(ghc < 8.4)
+    build-tools:     hsc2hs < 0.68.5
+    -- GHC 7 ships hsc2hs-0.67
+
+  -- use `includes:` to include them when compiling
+  includes:        zlib.h hs-zlib.h
+  include-dirs:    cbits-extra
+  c-sources:       cbits-extra/hs-zlib.c
   ghc-options:     -Wall -fwarn-tabs
   if flag(non-blocking-ffi)
     cpp-options:   -DNON_BLOCKING_FFI
-  if flag(pkg-config) && !impl(ghcjs) && !os(ghcjs)
-    -- NB: pkg-config is available on windows as well when using msys2
-    pkgconfig-depends: zlib
+
+  -- Cross-platform builds (such as JS and WASM) must have access
+  -- to C sources, so using zlib-clib unconditionally.
+  --
+  -- On Windows, zlib is shipped as part of GHC's mingw/lib directory,
+  -- which GHC always includes in its linker search path. However,
+  -- there is no guarantee that zlib1.dll (the corresponding shared library)
+  -- will be available on the user's PATH at runtime, making it risky to 
depend upon
+  -- (see https://github.com/haskell/zlib/issues/65 for what can go wrong).
+  -- Thus, we resort to zlib-clib unless pkg-config is available.
+  if flag(bundled-c-zlib) || impl(ghcjs) || os(ghcjs) || arch(wasm32) || 
(!flag(pkg-config) && os(windows))
+    build-depends: zlib-clib < 2
   else
-    -- don't use pkg-config
-    if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs)
-      -- Normally we use the the standard system zlib.
-      extra-libraries: z
+    if flag(pkg-config)
+      -- NB: pkg-config is available on windows as well when using msys2
+      pkgconfig-depends: zlib
     else
-      -- However for the benefit of users of Windows (which does not have zlib
-      -- by default) we bundle a complete copy of the C sources of zlib-1.2.11
-      c-sources:   cbits/adler32.c cbits/compress.c cbits/crc32.c
-                   cbits/deflate.c cbits/infback.c
-                   cbits/inffast.c cbits/inflate.c cbits/inftrees.c
-                   cbits/trees.c cbits/uncompr.c cbits/zutil.c
-      include-dirs:  cbits
-      install-includes: zlib.h zconf.h
+      extra-libraries: z
 
 test-suite tests
   type: exitcode-stdio-1.0
@@ -136,6 +130,6 @@
   build-depends:   base, bytestring, zlib,
                    QuickCheck       == 2.*,
                    tasty            >= 0.8 && < 1.6,
-                   tasty-quickcheck >= 0.8 && < 0.12
+                   tasty-quickcheck >= 0.8 && < 1
   ghc-options:     -Wall
 

Reply via email to