Bug 298005 - [NEW PORT] archivers/unhare -- extract files bundled by Bun from a binary
Summary: [NEW PORT] archivers/unhare -- extract files bundled by Bun from a binary
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Michael Osipov
URL:
Keywords:
Depends on:
Blocks: 298047
  Show dependency tree / graph
 
Reported: 2026-08-28 02:07 UTC by Mikhail Teterin
Modified: 2026-09-14 05:36 UTC (History)
3 users (show)

See Also:


Attachments
New port installing release 1.0.1 (2.74 KB, patch)
2026-08-28 02:07 UTC, Mikhail Teterin
no flags Details | Diff
New port installing release 1.1 (2.73 KB, patch)
2026-08-29 05:14 UTC, Mikhail Teterin
no flags Details | Diff
New port installing release 1.1.1 (2.74 KB, patch)
2026-09-01 00:59 UTC, Mikhail Teterin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2026-08-28 02:07:10 UTC
Created attachment 274195 [details]
New port installing release 1.0.1

unhare extracts the filesystem that Bun embeds in a standalone
executable. It finds the bundle through the ELF section holding it, or
by scanning the whole file where there is no such section -- which is
what the Mach-O and PE executables Bun builds on other systems need --
and writes the bundled modules out as ordinary files.
Comment 1 Mikhail Teterin freebsd_committer freebsd_triage 2026-08-29 05:14:03 UTC
Created attachment 274222 [details]
New port installing release 1.1
Comment 2 Mikhail Teterin freebsd_committer freebsd_triage 2026-09-01 00:59:06 UTC
Created attachment 274323 [details]
New port installing release 1.1.1
Comment 3 Michael Osipov freebsd_committer freebsd_triage 2026-09-12 17:42:31 UTC
The port maintainer is not correct, is this you? If yes, why not your @FreeBSD.org address?
Comment 4 Mikhail Teterin freebsd_committer freebsd_triage 2026-09-12 19:26:20 UTC
(In reply to Michael Osipov from comment #3)
That’s the address I use for all ports I maintain…
Comment 5 Michael Osipov freebsd_committer freebsd_triage 2026-09-12 19:31:53 UTC
fuz,

we have discussed such a case briefly at the Hackathon in Berlin and that we don't want such mismatches. WDYT?
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2026-09-13 04:44:24 UTC
New ports are not allowed.
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2026-09-13 04:46:54 UTC
@bapt, please approve this as a new dependency of misc/claude-code.
Comment 8 Robert Clausecker freebsd_committer freebsd_triage 2026-09-13 09:20:35 UTC
(In reply to Michael Osipov from comment #5)

mi doesn't have a commit bit (anymore).
He has been using this external address due to complications in accessing mail on mi@FreeBSD.org.  I suppose it's fine.
Comment 9 commit-hook freebsd_committer freebsd_triage 2026-09-13 09:56:13 UTC
A commit in branch main references this bug:

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

commit 0c790035b4e42878ae34f1495134906cb7fa017a
Author:     Mikhail Teterin <mi@FreeBSD.org>
AuthorDate: 2026-09-01 00:52:54 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-09-13 09:55:00 +0000

    archivers/unhare: new port

    unhare extracts the filesystem that Bun embeds in a standalone
    executable. It finds the bundle through the ELF section holding it, or
    by scanning the whole file where there is no such section -- which is
    what the Mach-O and PE executables Bun builds on other systems need --
    and writes the bundled modules out as ordinary files.

    PR:             298005

 archivers/Makefile               |  1 +
 archivers/unhare/Makefile (new)  | 22 ++++++++++++++++++++++
 archivers/unhare/distinfo (new)  |  3 +++
 archivers/unhare/pkg-descr (new) |  5 +++++
 4 files changed, 31 insertions(+)
Comment 10 Mikhail Teterin freebsd_committer freebsd_triage 2026-09-14 04:03:31 UTC
(In reply to Yuri Victorovich from comment #6)
> New ports are not allowed.

Has there been a new rule introduced? By whom?
Comment 11 Yuri Victorovich freebsd_committer freebsd_triage 2026-09-14 05:36:10 UTC
(In reply to Mikhail Teterin from comment #10)

Yes, by portmgr.
A maintainer can't add new ports unless he is not overloaded.
The definition of overloading is >8% of outdated ports in any day in the last 30 days.
But new dependency ports is an exemption.