Skip to content

Update to minizip 1.2.13#515

Merged
kristelmerilain merged 3 commits intoopen-eid:masterfrom
klemensn:update-minizip
Jan 10, 2023
Merged

Update to minizip 1.2.13#515
kristelmerilain merged 3 commits intoopen-eid:masterfrom
klemensn:update-minizip

Conversation

@klemensn
Copy link
Copy Markdown
Contributor

https://github.com/madler/zlib/releases/tag/v1.2.13

Noticed by building libdigidocpp 3.14.11 on OpenBSD where we still have
to pass CFLAGS += -DIOAPI_NO_64 as off_t is always 64-bit.

1.2.13 contains a fix for this but libdigidocpp would fail to build, i.e.
it still ships an old version.

https://github.com/madler/zlib/releases/tag/v1.2.13

Noticed by building libdigidocpp 3.14.11 on OpenBSD where we still have
to pass `CFLAGS += -DIOAPI_NO_64` as off_t is always 64-bit.

1.2.13 contains a fix for this but libdigidocpp would fail to build, i.e.
it still ships an old version.
@klemensn klemensn marked this pull request as draft December 22, 2022 09:19
@klemensn
Copy link
Copy Markdown
Contributor Author

But now the build fails, I'll update with a fix shortly.

zip.h's `struct zip_fileinfo` member `tm_zip tmz_date` changed member
types from to `int`, so drop the cast as all `struct tm` members are
`int` already.

Fixes the following:
```
/usr/ports/pobj/libdigidocpp-3.14.11/libdigidocpp-3.14.11/src/util/ZipSerialize.cpp:186:11: error: non-constant-expression cannot be narrowed from type 'uInt' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
        { uInt(time.tm_sec), uInt(time.tm_min), uInt(time.tm_hour),
          ^~~~~~~~~~~~~~~~~
/usr/ports/pobj/libdigidocpp-3.14.11/libdigidocpp-3.14.11/src/util/ZipSerialize.cpp:186:11: note: insert an explicit cast to silence this issue
        { uInt(time.tm_sec), uInt(time.tm_min), uInt(time.tm_hour),
          ^~~~~~~~~~~~~~~~~
          static_cast<int>()
```
@klemensn klemensn marked this pull request as ready for review December 22, 2022 09:34
@kristelmerilain kristelmerilain requested a review from metsma January 4, 2023 17:32
@klemensn klemensn requested a review from metsma January 4, 2023 19:49
Spotted by Raul Metsma during review.
@kristelmerilain kristelmerilain merged commit dfa4bc5 into open-eid:master Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants