commit ghc-zip-archive for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-zip-archive for openSUSE:Factory checked in at 2024-04-21 20:29:38 Comparing /work/SRC/openSUSE:Factory/ghc-zip-archive (Old) and /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.26366 (New) Package is "ghc-zip-archive" Sun Apr 21 20:29:38 2024 rev:24 rq:1169526 version:0.4.3.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-zip-archive/ghc-zip-archive.changes 2024-03-20 21:16:41.067189807 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.26366/ghc-zip-archive.changes 2024-04-21 20:30:54.033892236 +0200 @@ -1,0 +2,10 @@ +Tue Apr 9 16:45:10 UTC 2024 - Peter Simons + +- Update zip-archive to version 0.4.3.2. + zip-archive 0.4.3.2 + +* readEntry: Fix computation of modification time (#67). + It should be a UNIX time (seconds since UNIX epoch), but + computed relative to the local time zone, not UTC. + +--- Old: zip-archive-0.4.3.1.tar.gz New: zip-archive-0.4.3.2.tar.gz Other differences: -- ++ ghc-zip-archive.spec ++ --- /var/tmp/diff_new_pack.Vd6Nwh/_old 2024-04-21 20:30:54.553911326 +0200 +++ /var/tmp/diff_new_pack.Vd6Nwh/_new 2024-04-21 20:30:54.557911473 +0200 @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version:0.4.3.1 +Version:0.4.3.2 Release:0 Summary:Library for creating and modifying zip archives License:BSD-3-Clause ++ zip-archive-0.4.3.1.tar.gz -> zip-archive-0.4.3.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.3.1/changelog new/zip-archive-0.4.3.2/changelog --- old/zip-archive-0.4.3.1/changelog 2001-09-09 03:46:40.0 +0200 +++ new/zip-archive-0.4.3.2/changelog 2001-09-09 03:46:40.0 +0200 @@ -1,3 +1,9 @@ +zip-archive 0.4.3.2 + + * readEntry: Fix computation of modification time (#67). +It should be a UNIX time (seconds since UNIX epoch), but +computed relative to the local time zone, not UTC. + zip-archive 0.4.3.1 * Use streaming decompress to identify extent of compressed data (#66). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.3.1/src/Codec/Archive/Zip.hs new/zip-archive-0.4.3.2/src/Codec/Archive/Zip.hs --- old/zip-archive-0.4.3.1/src/Codec/Archive/Zip.hs2001-09-09 03:46:40.0 +0200 +++ new/zip-archive-0.4.3.2/src/Codec/Archive/Zip.hs2001-09-09 03:46:40.0 +0200 @@ -72,8 +72,9 @@ import Data.Time.Calendar ( toGregorian, fromGregorian ) import Data.Time.Clock ( UTCTime(..) ) +import Data.Time.LocalTime ( TimeZone(..), TimeOfDay(..), timeToTimeOfDay, + getTimeZone ) import Data.Time.Clock.POSIX ( posixSecondsToUTCTime, utcTimeToPOSIXSeconds ) -import Data.Time.LocalTime ( TimeOfDay(..), timeToTimeOfDay ) import Data.Bits ( shiftL, shiftR, (.&.), (.|.), xor, testBit ) import Data.Binary import Data.Binary.Get @@ -85,7 +86,7 @@ import System.FilePath import System.Directory (doesDirectoryExist, getDirectoryContents, -createDirectoryIfMissing, getModificationTime) +createDirectoryIfMissing, getModificationTime,) import Control.Monad ( when, unless, zipWithM_ ) import qualified Control.Exception as E import System.IO ( stderr, hPutStrLn ) @@ -315,7 +316,11 @@ return B.empty else B.fromStrict <$> S.readFile path - modEpochTime <- (floor . utcTimeToPOSIXSeconds) <$> getModificationTime path + modTime <- getModificationTime path + tzone <- getTimeZone modTime + let modEpochTime = -- UNIX time computed relative to LOCAL time zone! (#67) +floor (utcTimeToPOSIXSeconds modTime) + + fromIntegral (timeZoneMinutes tzone * 60) let entry = toEntry path' modEpochTime contents entryE <- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.3.1/zip-archive.cabal new/zip-archive-0.4.3.2/zip-archive.cabal --- old/zip-archive-0.4.3.1/zip-archive.cabal 2001-09-09 03:46:40.0 +0200 +++ new/zip-archive-0.4.3.2/zip-archive.cabal 2001-09-09 03:46:40.0 +0200 @@ -1,5 +1,5 @@ Name:zip-archive -Version: 0.4.3.1 +Version: 0.4.3.2 Cabal-Version: 2.0 Build-type: Simple Synopsis:Library for creating and modifying zip archives.
commit ghc-zip-archive for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-zip-archive for openSUSE:Factory checked in at 2023-04-04 21:25:11 Comparing /work/SRC/openSUSE:Factory/ghc-zip-archive (Old) and /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.19717 (New) Package is "ghc-zip-archive" Tue Apr 4 21:25:11 2023 rev:22 rq:1076146 version:0.4.3 Changes: --- /work/SRC/openSUSE:Factory/ghc-zip-archive/ghc-zip-archive.changes 2022-10-13 15:45:00.471073222 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.19717/ghc-zip-archive.changes 2023-04-04 21:25:24.674892950 +0200 @@ -1,0 +2,18 @@ +Thu Mar 30 17:09:13 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +--- +Sat Mar 4 06:27:44 UTC 2023 - Peter Simons + +- Update zip-archive to version 0.4.3. + zip-archive 0.4.3 + +* Improve code for retrieving compressed data of unknown length (#63). + Do not assume we'll have the signature 0x08074b50 that is + sometimes used for the data description, because it is not + in the spec and is not always used. +* Make some record fields strict. +* Require binary >= 0.7.2, remove some CPP + +--- Old: zip-archive-0.4.2.2.tar.gz New: zip-archive-0.4.3.tar.gz Other differences: -- ++ ghc-zip-archive.spec ++ --- /var/tmp/diff_new_pack.Tirtq4/_old 2023-04-04 21:25:25.194895903 +0200 +++ /var/tmp/diff_new_pack.Tirtq4/_new 2023-04-04 21:25:25.198895925 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-zip-archive # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,10 @@ %global pkg_name zip-archive +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version:0.4.2.2 +Version:0.4.3 Release:0 Summary:Library for creating and modifying zip archives License:BSD-3-Clause @@ -27,24 +28,42 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-array-devel +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof BuildRequires: ghc-binary-devel +BuildRequires: ghc-binary-prof BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof BuildRequires: ghc-digest-devel +BuildRequires: ghc-digest-prof BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof BuildRequires: ghc-pretty-devel +BuildRequires: ghc-pretty-prof BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof BuildRequires: ghc-time-devel +BuildRequires: ghc-time-prof BuildRequires: ghc-unix-devel +BuildRequires: ghc-unix-prof BuildRequires: ghc-zlib-devel +BuildRequires: ghc-zlib-prof ExcludeArch:%{ix86} %if %{with tests} BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof BuildRequires: ghc-process-devel +BuildRequires: ghc-process-prof BuildRequires: ghc-temporary-devel +BuildRequires: ghc-temporary-prof %endif %description @@ -79,6 +98,22 @@ %description devel This package provides the Haskell %{pkg_name} library development files. +%package -n ghc-%{pkg_name}-doc +Summary:Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary:Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements:(ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + %prep %autosetup -n %{pkg_name}-%{version} @@ -103,4 +138,9 @@ %files devel -f %{name}-devel.files %doc README.markdown changelog +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + %changelog ++ zip-archive-0.4.2.2.tar.gz -> zip-archive-0.4.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
commit ghc-zip-archive for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-zip-archive for openSUSE:Factory checked in at 2022-10-13 15:44:23 Comparing /work/SRC/openSUSE:Factory/ghc-zip-archive (Old) and /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.2275 (New) Package is "ghc-zip-archive" Thu Oct 13 15:44:23 2022 rev:21 rq:1009723 version:0.4.2.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-zip-archive/ghc-zip-archive.changes 2022-08-01 21:29:13.097453230 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.2275/ghc-zip-archive.changes 2022-10-13 15:45:00.471073222 +0200 @@ -1,0 +2,9 @@ +Mon Sep 26 00:39:14 UTC 2022 - Peter Simons + +- Update zip-archive to version 0.4.2.2. + zip-archive 0.4.2.2 + +* Use `command -v` before trying `which` in the test suite (#62). + `command` is a bash builtin, but for busybox we'll need `which`. + +--- Old: zip-archive-0.4.2.1.tar.gz New: zip-archive-0.4.2.2.tar.gz Other differences: -- ++ ghc-zip-archive.spec ++ --- /var/tmp/diff_new_pack.Spwn7m/_old 2022-10-13 15:45:01.075074401 +0200 +++ /var/tmp/diff_new_pack.Spwn7m/_new 2022-10-13 15:45:01.075074401 +0200 @@ -19,7 +19,7 @@ %global pkg_name zip-archive %bcond_with tests Name: ghc-%{pkg_name} -Version:0.4.2.1 +Version:0.4.2.2 Release:0 Summary:Library for creating and modifying zip archives License:BSD-3-Clause ++ zip-archive-0.4.2.1.tar.gz -> zip-archive-0.4.2.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.2.1/changelog new/zip-archive-0.4.2.2/changelog --- old/zip-archive-0.4.2.1/changelog 2022-03-03 01:29:35.0 +0100 +++ new/zip-archive-0.4.2.2/changelog 2001-09-09 03:46:40.0 +0200 @@ -1,3 +1,8 @@ +zip-archive 0.4.2.2 + + * Use `command -v` before trying `which` in the test suite (#62). +`command` is a bash builtin, but for busybox we'll need `which`. + zip-archive 0.4.2.1 * Fix Windows build regression (#61). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.2.1/tests/test-zip-archive.hs new/zip-archive-0.4.2.2/tests/test-zip-archive.hs --- old/zip-archive-0.4.2.1/tests/test-zip-archive.hs 2022-03-03 01:17:35.0 +0100 +++ new/zip-archive-0.4.2.2/tests/test-zip-archive.hs 2001-09-09 03:46:40.0 +0200 @@ -1,11 +1,12 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE CPP #-} +{-# LANGUAGE ScopedTypeVariables #-} -- Test suite for Codec.Archive.Zip -- runghc Test.hs import Codec.Archive.Zip import Control.Monad (unless) -import Control.Exception (try) +import Control.Exception (try, catch, SomeException) import System.Directory hiding (isSymbolicLink) import Test.HUnit.Base import Test.HUnit.Text @@ -51,7 +52,8 @@ main :: IO Counts main = withTempDirectory "." "test-zip-archive." $ \tmpDir -> do #ifndef _WINDOWS - ec <- rawSystem "which" ["unzip"] + ec <- catch (rawSystem "command" ["-v", "unzip"]) + (\(_ :: SomeException) -> rawSystem "which" ["unzip"]) let unzipInPath = ec == ExitSuccess unless unzipInPath $ putStrLn "\n\nunzip is not in path; skipping testArchiveAndUnzip\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.2.1/zip-archive.cabal new/zip-archive-0.4.2.2/zip-archive.cabal --- old/zip-archive-0.4.2.1/zip-archive.cabal 2022-03-03 01:29:00.0 +0100 +++ new/zip-archive-0.4.2.2/zip-archive.cabal 2001-09-09 03:46:40.0 +0200 @@ -1,5 +1,5 @@ Name:zip-archive -Version: 0.4.2.1 +Version: 0.4.2.2 Cabal-Version: 2.0 Build-type: Simple Synopsis:Library for creating and modifying zip archives.
commit ghc-zip-archive for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-zip-archive for openSUSE:Factory checked in at 2022-08-01 21:29:05 Comparing /work/SRC/openSUSE:Factory/ghc-zip-archive (Old) and /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.1533 (New) Package is "ghc-zip-archive" Mon Aug 1 21:29:05 2022 rev:20 rq:985834 version:0.4.2.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-zip-archive/ghc-zip-archive.changes 2020-12-22 11:49:47.322023616 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-zip-archive.new.1533/ghc-zip-archive.changes 2022-08-01 21:29:13.097453230 +0200 @@ -1,0 +2,31 @@ +Thu Mar 3 00:30:15 UTC 2022 - Peter Simons + +- Update zip-archive to version 0.4.2.1. + zip-archive 0.4.2.1 + +* Fix Windows build regression (#61). + + zip-archive 0.4.2 + +* Fix problem with files with colon (#89). +* Remove build-tools. This was used to indicate that the 'unzip' + executable was needed for testing, but it was never intended to be used + this way and now the field is deprecated. The current test suite + simply skips the test using the unzip executable (with a warning) if + 'unzip' is not in the path. +* Remove existing symlinks when extracting zip files with symlinks (#60, + Vikrem). Previously, writeEntry would raise an error if it tried to + create a symlink and a symlink already existed at that path. This + behavior was inconsistent with its behavior for regular files, which + it overwrote without comment. This commit causes symlinks to be replaced + by writeEntry instead of an error being raised. +* Remove binary < 0.6 CPP. It's no longer needed because we don't support + binary < 0.6. Also use manySig instead of many, to get better error + messages. +* Add type annotation for printf. +* Better checking for unsafe paths (#55). This method allows things like + `foo/bar/../../baz`. +* Require base >= 4.5 (#56) +* Add GitHub CI. + +--- Old: zip-archive-0.4.1.tar.gz zip-archive.cabal New: zip-archive-0.4.2.1.tar.gz Other differences: -- ++ ghc-zip-archive.spec ++ --- /var/tmp/diff_new_pack.UE0QiA/_old 2022-08-01 21:29:13.513454424 +0200 +++ /var/tmp/diff_new_pack.UE0QiA/_new 2022-08-01 21:29:13.517454435 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-zip-archive # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,12 @@ %global pkg_name zip-archive %bcond_with tests Name: ghc-%{pkg_name} -Version:0.4.1 +Version:0.4.2.1 Release:0 Summary:Library for creating and modifying zip archives License:BSD-3-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/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-array-devel BuildRequires: ghc-binary-devel @@ -82,7 +81,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++ zip-archive-0.4.1.tar.gz -> zip-archive-0.4.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zip-archive-0.4.1/changelog new/zip-archive-0.4.2.1/changelog --- old/zip-archive-0.4.1/changelog 2019-04-23 08:10:30.0 +0200 +++ new/zip-archive-0.4.2.1/changelog 2022-03-03 01:29:35.0 +0100 @@ -1,3 +1,30 @@ +zip-archive 0.4.2.1 + + * Fix Windows build regression (#61). + +zip-archive 0.4.2 + + * Fix problem with files with colon (#89). + * Remove build-tools. This was used to indicate that the 'unzip' +executable was needed for testing, but it was never intended to be used +this way and now the field is deprecated. The current test suite +simply skips the test using the unzip executable (with a warning) if +'unzip' is not in the path. + * Remove existing symlinks when extracting zip files with symlinks (#60, +Vikrem). Previously, writeEntry would raise an error if it tried to +create a symlink and a symlink already existed at that path. This +behavior was inconsistent with its behavior for regular files, which +it overwrote without comment. This commit causes symlinks to be replaced +by writeEntry instead of an error being raised. + *