Skip to content

Commit d3c0002

Browse files
committed
archivers/hs-zip-archive: Update to 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. zip-archive 0.4.3.1 * Use streaming decompress to identify extent of compressed data (#66). This fixes a problem that arises for local files with bit 3 of the general purpose bit flag set. In this case, we don't get information up front about the size of the compressed data. So how do we know where the compressed data ends? Previously, we tried to determine this by looking for the signature of the data descriptor. But the data descriptor doesn't always HAVE a signature, and it is also possible for signatures to occur accidentally in the compressed data itself (#65). Instead, we now use the streaming decompression interface from zlib's Internal module to identify where the compressed data ends. Fixes both #65 and #25.
1 parent 0abfe5c commit d3c0002

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

archivers/hs-zip-archive/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# $NetBSD: Makefile,v 1.10 2023/11/02 06:36:10 pho Exp $
1+
# $NetBSD: Makefile,v 1.11 2024/04/29 04:04:12 pho Exp $
22

3-
DISTNAME= zip-archive-0.4.3
4-
PKGREVISION= 1
3+
DISTNAME= zip-archive-0.4.3.2
54
CATEGORIES= archivers
65

76
MAINTAINER= zecrazytux@zecrazytux.net

archivers/hs-zip-archive/PLIST

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.4 2023/10/27 08:33:32 pho Exp $
1+
@comment $NetBSD: PLIST,v 1.5 2024/04/29 04:04:12 pho Exp $
22
${PLIST.shlibs}lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
33
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Codec/Archive/Zip.dyn_hi
44
lib/${HS_PLATFORM}/${HS_PKGID}/Codec/Archive/Zip.hi
@@ -10,12 +10,10 @@ lib/zip-archive-${PKGVERSION}/${HS_VERSION}/package-id
1010
share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/LICENSE
1111
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/Codec-Archive-Zip.html
1212
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/doc-index.html
13-
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/doc-index.json
1413
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/haddock-bundle.min.js
1514
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/index.html
1615
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/linuwial.css
1716
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/meta.json
1817
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/quick-jump.css
19-
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/quick-jump.min.js
2018
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/synopsis.png
2119
${PLIST.doc}share/doc/${HS_PLATFORM}/zip-archive-${PKGVERSION}/html/zip-archive.haddock

archivers/hs-zip-archive/buildlink3.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $NetBSD: buildlink3.mk,v 1.10 2023/11/02 06:36:10 pho Exp $
1+
# $NetBSD: buildlink3.mk,v 1.11 2024/04/29 04:04:12 pho Exp $
22

33
BUILDLINK_TREE+= hs-zip-archive
44

55
.if !defined(HS_ZIP_ARCHIVE_BUILDLINK3_MK)
66
HS_ZIP_ARCHIVE_BUILDLINK3_MK:=
77

88
BUILDLINK_API_DEPENDS.hs-zip-archive+= hs-zip-archive>=0.4.3
9-
BUILDLINK_ABI_DEPENDS.hs-zip-archive+= hs-zip-archive>=0.4.3nb1
9+
BUILDLINK_ABI_DEPENDS.hs-zip-archive+= hs-zip-archive>=0.4.3.2
1010
BUILDLINK_PKGSRCDIR.hs-zip-archive?= ../../archivers/hs-zip-archive
1111

1212
.include "../../security/hs-digest/buildlink3.mk"

archivers/hs-zip-archive/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.5 2023/10/27 08:33:32 pho Exp $
1+
$NetBSD: distinfo,v 1.6 2024/04/29 04:04:12 pho Exp $
22

3-
BLAKE2s (zip-archive-0.4.3.tar.gz) = da357ecdd5562cecdcd50eb475ff9f72ed789cd7db93599d9382b64ac8ab16b9
4-
SHA512 (zip-archive-0.4.3.tar.gz) = b98791a22d0dc4b499653bbd88254cff86108bd3a13b59a107cc54e36dc0702c2934eb4b497cbc6239235a45b3486006e52d27faa5af589a124443f8938670ad
5-
Size (zip-archive-0.4.3.tar.gz) = 22161 bytes
3+
BLAKE2s (zip-archive-0.4.3.2.tar.gz) = 845b7469435379ac0015f6e0aa867d1a5f8e519db0d7fc739a31b27705cbc84c
4+
SHA512 (zip-archive-0.4.3.2.tar.gz) = 8062598d6403e4f6ebbbb9db09ea04ecb58d4223d38e8b017d5050847d5194fa64c6abeb3d518f1e3bec963b641be8d7bd949a562b69b59feffb8c1e3e69aff6
5+
Size (zip-archive-0.4.3.2.tar.gz) = 22806 bytes

0 commit comments

Comments
 (0)