Bug 279593 - archivers/minizip-ng: Update to 4.0.6
Summary: archivers/minizip-ng: Update to 4.0.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Loïc Bartoletti
URL: https://github.com/zlib-ng/minizip-ng...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-08 16:20 UTC by Vladimir Druzenko
Modified: 2024-06-10 20:25 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (lbartoletti)


Attachments
v1 (1.89 KB, patch)
2024-06-08 16:20 UTC, Vladimir Druzenko
no flags Details | Diff
v2 (1.92 KB, patch)
2024-06-09 13:43 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-08 16:20:25 UTC
Created attachment 251293 [details]
v1

Upstream prefer to use archivers/zlib-ng instead of old zlib - add it in LIB_DEPENDS.
While here pet portclippy.
Tested build in poudriere 13.3 amd64, i386 and on live system 13.3, 14.1 amd64.
Also test build consumer graphics/opencolorio in poudriere 13.3 amd64.
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-06-08 17:38:55 UTC
Please keep the current layout in Makefile as it much better than what portclippy suggests and it isn't always "right".

Does zlib-ng pick the correct library by itself?
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-09 12:44:56 UTC
(In reply to Daniel Engberg from comment #1)
1. Can you show full list of the variables in port's Makefile with correct order?
Didn't find this in the FreeBSD Porter's Handbook.
On the other side porclippy and portlint was recommended by my former mentors.

2. If I understood the question correctly, then:
https://github.com/zlib-ng/minizip-ng/blob/4.0.6/CMakeLists.txt#L173
Search for both ZLIBNG and ZLIB, if find ZLIBNG, then pick it and ignore ZLIB.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2024-06-09 12:51:37 UTC
1. I don't have a complete list, just look at some well established ports and you'll get the idea

2. Pass CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_ZLIB to make sure
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-09 13:43:44 UTC
Created attachment 251319 [details]
v2

(In reply to Daniel Engberg from comment #3)
1. I read Makefiles from hundreds ports - everywhere is different.
If there is a complete list in the correct order, then this would close all such questions.
But while it’s not there, I’m using the method recommended by my mentors.

2. Thanks, added (tested).
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-06-10 20:24:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7473cd3f759b96609a8448ef1969296bad5f467b

commit 7473cd3f759b96609a8448ef1969296bad5f467b
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-06-10 20:21:10 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-06-10 20:21:10 +0000

    archivers/minizip-ng: udpate to 4.0.6

    Changelog:
    https://github.com/zlib-ng/minizip-ng/releases/tag/4.0.6

    Upstream prefer to use archivers/zlib-ng instead of old zlib - add it in
    LIB_DEPENDS and prevent search old zlib.
    While here pet portclippy.

    PR:             279593
    Approved by:    lbartoletti (maintainer, via IRC)

 archivers/minizip-ng/Makefile  | 9 +++++----
 archivers/minizip-ng/distinfo  | 6 +++---
 archivers/minizip-ng/pkg-plist | 2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)