Bug 293749 - archivers/zipmix: update to 20260309, pet pkg-fallout
Summary: archivers/zipmix: update to 20260309, pet pkg-fallout
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: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-11 21:45 UTC by Chris Hutchinson
Modified: 2026-05-01 18:55 UTC (History)
3 users (show)

See Also:
portmaster: maintainer-feedback+


Attachments
update to 20260309 (3.11 KB, patch)
2026-03-11 21:45 UTC, Chris Hutchinson
portmaster: maintainer-approval+
Details | Diff
update archivers/zipmix and add LICENSE (4.66 KB, patch)
2026-04-26 08:34 UTC, Chris Hutchinson
portmaster: maintainer-approval+
Details | Diff
archivers/zipmix: DEPRECATE. No longer supported upstream. (885 bytes, patch)
2026-04-30 23:58 UTC, Chris Hutchinson
portmaster: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hutchinson 2026-03-11 21:45:45 UTC
Created attachment 268736 [details]
update to 20260309

Update archivers/zipmix to 20260309.
This is pretty much a rewrite [1]. I knew this day was
coming soon and pkg-fallout told me it was time to
modernize this port. So I did. There's too much to
list here. But in summary;
 - add additional includes (covers more archs)
 - Remove  dangerous pointer casts
 - 64-bit file offsets/sizes (off_t / int64_t + fseeko/ftello)
 - Safer parsing (byte-by-byte little-endian reads, no unaligned *(long*))
 - Better string handling (strcasecmp / _stricmp)
 - Safer temp file creation
 - Basic bounds checking
 - Use off_t + fseeko/ftello for large file support (up to ~2–4 GB depending on platform)
 - Safe little-endian field readers (no more *(long*)&)
 - Proper case-insensitive compare (forward, not backward)
 - Better memory/realloc safety
 - Removed Win98/ancient DOS cruft
 - Unified string functions (strcasecmp family)
 - Basic error checking + clearer messages
 - Still no external libraries (keeps spirit of original)
 - Used consistent naming (u16_zero)
 - Fixed some printf format specifiers to use PRIu64 / PRId64 where appropriate (for off_t)
 - Minor indentation / comment alignment

Changes
Makefile
distinfo
Removes
files/Makefile
files/patch-zipmix.c

NOTE:
This still has no LICENSE. I emailed the author a
proposal to use a BSD 1 or 2 clause. I'll add whichever
is decided after his reply.

Thanks!

1.) https://BSDforge.com/projects/source/archivers/zipmix/zipmix.c.diff
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2026-04-24 14:09:13 UTC
Will edit in the license hunk from bug #287823 attachment #264964 [details].
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2026-04-25 06:52:26 UTC
Can we stop accepting one man forks that aren't related upstream?
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2026-04-25 08:04:37 UTC
(In reply to Daniel Engberg from comment #2)

Upstream has been inactive for 19 years (i.e. it's dead) and I trust Chris Hutchinson with the fixes his patch adds.
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2026-04-25 21:16:58 UTC
(In reply to Robert Clausecker from comment #3)
It has been up with several committers that we shouldn't do this (for obvious reasons). If anything use a another name to highlight that it's not the same as upstream and additionally in this case more less a rewrite.
Comment 5 Chris Hutchinson 2026-04-26 07:21:05 UTC
Sorry for the delay. I contacted the author. But his
response was quite late. He's uninterested in this
any more. He gave me a copy of a newer version he
had (2016) but it doesn't build either. So I spent
a little time with the version on the site and came
up with something that will build on most any
platform and modern compiler. I've added a (BSD)
license as well. I'll post the git diff now.

Thanks!
Comment 6 Robert Clausecker freebsd_committer freebsd_triage 2026-04-26 08:32:26 UTC
(In reply to Chris Hutchinson from comment #5)

Great!

In this case, I recommend you upload the copy to some source code hoster and make it a public fork.

(In reply to Daniel Engberg from comment #4)

Clearly we never ship forks that continue development of projects with dead upstream ever.

There's a difference if it's a fork of a project that is still going strong, but that's not the case here.  More of a “someone picks up a dead project, makes it work on current systems.”
Comment 7 Chris Hutchinson 2026-04-26 08:34:48 UTC
Created attachment 270132 [details]
update archivers/zipmix and add LICENSE

git diff attached updates archivers/zipmix, adds LICENSE
and pets package fallout.

This update updates the code to "modern times". eg;
Modernized I/O, parsing, 64-bit offsets, safer code (memory safe).
I've kept the original authors clever algos and credited him
for the work. As well as myself for my current rework and
licensed it under a BSD 2 clause license.

Changes:
Makefile
distinfo
pkg-descr
removed files/ as patches are no longer required.

Tested on 13.5,14,15,16.
All tests return OK.

Thanks!
Comment 8 Chris Hutchinson 2026-04-26 08:38:47 UTC
(In reply to Robert Clausecker from comment #6)
Thanks, Robert!
Your advice makes good sense. As it's 1:30am here.
I'll push it onto Codeberg and adjust the patch I
just submitted accordingly. But not till I've got
some sleep. :)

Thanks, again!
Comment 9 Robert Clausecker freebsd_committer freebsd_triage 2026-04-26 08:39:05 UTC
(In reply to Chris Hutchinson from comment #7)

Does any of the original code remain?  If yes, did you clear the license change with upstream?
Comment 10 Daniel Engberg freebsd_committer freebsd_triage 2026-04-26 08:44:24 UTC
(In reply to Robert Clausecker from comment #6)
No, it's not. There's a reason why forks (especially unrecognized ones) and/or continuations distinguish themselves from the original project and this is also (as submitter himself claimed) a rewrite [1]. There have been multiple discussions where it's been agreed (by committers) that we should clearly distinguish from original projects.

1: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293749#c0

Retire the port or add another one although one could argue the usefulness in 2026...
Comment 11 Robert Clausecker freebsd_committer freebsd_triage 2026-04-26 08:48:47 UTC
(In reply to Daniel Engberg from comment #10)

@submitter, would you mind coming up with a new name for the project to make diizzy happy?  Maybe zipmerge?
Comment 12 Chris Hutchinson 2026-04-26 08:50:31 UTC
(In reply to Robert Clausecker from comment #11)
Sure. ;)
Comment 13 Robert Clausecker freebsd_committer freebsd_triage 2026-04-26 10:13:34 UTC
(In reply to Chris Hutchinson from comment #12)

Ok, then please make diizzy happy and submit your update as a new port under the new name.  And please make a statement on the relicensing and what the original author said about it (if any of his code remains).
Comment 14 Chris Hutchinson 2026-04-26 18:35:06 UTC
(In reply to Robert Clausecker from comment #13)
Will do.
Comment 15 Chris Hutchinson 2026-04-30 23:58:25 UTC
Created attachment 270295 [details]
archivers/zipmix: DEPRECATE. No longer supported upstream.

I picked up this port because I thought its
implimentation was a novel comcept and one I
could easily extend to additional compression
algorithms. It was originally written for MSDOS
and later for win32. A patch had to be created
to permit it's build/use on any other platform.
Somehow, I never seemed to get around to it.
Something else always seemed more important.
Fast forward; 11yrs. later. package fallout let
me know the time was now to do something. So I
took some time and rewrote it in such a way that
it would be safe andd useful on *any* platform for
the forseeable future and allow me to add support
for additional compression algorithms. I then
contacted the original author and submitted my
work. After a long wait his response was that
he might take a look at it and gave me a copy of
his latest version (circa; 2016). Which turned
out to be nearly identical and only useful on
a (dated) win32 platform. So. Since I already
took the time to rewrite this and see additional
potential for it. I'm just going to introduce it
as a different utility -- Archmerge (I'm *wide*
open for a better name!).
It's a trivial utility, only some 500 lines --
not any bigger than many of the shell scripts I
frequently write. But I find its potential to
handle virtually *any* archive reason enough to
continue developing it.

tl;dr
The git diff attached to bug #294920 introduces
archivers/archmerge. Inspired by the soon to be
depreciated archivers/zipmix. You can track it
on Codeberg.

The utility comes licensed under a BSD2CLAUSE
license.

I think I've covered all the bases here.

Thanks!
Comment 16 Robert Clausecker freebsd_committer freebsd_triage 2026-05-01 09:25:53 UTC
(In reply to Chris Hutchinson from comment #15)

Will land your deprecation (although with an extended deadline to 2026-06-30) and new port.
Comment 17 commit-hook freebsd_committer freebsd_triage 2026-05-01 18:54:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=06b2705ce694a919466f567b60cdcc253f767d29

commit 06b2705ce694a919466f567b60cdcc253f767d29
Author:     Chris Hutchinson <portmaster@BSDforge.com>
AuthorDate: 2026-04-30 06:47:48 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-05-01 18:53:46 +0000

    archivers/archmerge: NEW PORT, replaces archivers/zipmix

    Different compression programs result in different
    compression ratios and compress different types of files
    unequally.
    Archmerge will take the best files from each archive and
    create a new output file, which is guaranteed to be equal
    to, or smaller in size than both of the input files. Archmerge
    can also be used to perform boolean operations on archives,
    such as merging 2 archives together, or updating a new file.

    NOTE: in it's current incarnation. Archmerge only operates on
    zip archives. Additional compression algorithms and techniques
    will be added soon.

    WWW: https://codeberg.org/BSDforge/archmerge

    PR:             294920, 293749

 archivers/Makefile                  |  1 +
 archivers/archmerge/Makefile (new)  | 24 ++++++++++++++++++++++++
 archivers/archmerge/distinfo (new)  |  3 +++
 archivers/archmerge/pkg-descr (new) | 12 ++++++++++++
 4 files changed, 40 insertions(+)
Comment 18 commit-hook freebsd_committer freebsd_triage 2026-05-01 18:54:10 UTC
A commit in branch main references this bug:

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

commit ca4eb00533284bc43faced1f3fb6dcaef0944832
Author:     Chris Hutchinson <portmaster@BSDforge.com>
AuthorDate: 2026-04-30 02:09:17 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-05-01 18:53:46 +0000

    archivers/zipmix: DEPRECATE. No longer supported upstream.

    Replaced by archivers/archmerge.

    PR:             293749

 archivers/zipmix/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 19 Robert Clausecker freebsd_committer freebsd_triage 2026-05-01 18:55:29 UTC
Thank you for your contribution.