On Wed, 18 Feb 2026 15:19:46 +0000
Stuart Henderson <[email protected]> wrote:

> On 2026/02/16 21:53, Thomas Frohwein wrote:
> > > Proposed structure:
> > > 
> > >   Pack Version    PkgPath:                Bin Name
> > >   ------------    -------
> > > -------- pack1 (3.x)      games/godot/pack1       godot3
> > >   pack2 (4.4x)    games/godot/pack2       godot44
> > >   pack3 (4.5+)    games/godot/pack3
> > > godot{,-editor}  
> 
> seems sane
> 
> maybe worth a pkg-readme for whatever you get from "pkg_add godot"
> (i.e. currently pack3) explaining about the pack formats and multiple
> version layout?

When I test it locally, I get this:

$ TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all doas pkg_add -n godot
doas ([email protected]) password:
Ambiguous: choose package for godot
a       0: <None>
        1: godot-3.6.2p0
        2: godot-4.4.1
        3: godot-4.6.1
Your choice:

I added the same README explaining this for all versions; it's in the
new tarball.

> > > - Warning: @option no-default-conflict without @conflict (I
> > > followed examples of games/love/* and games/libgdx/*). I 
> > > - Do I need to add REVISION=0 to godot-3.6.2 in pack1/ now (to
> > >   distinguish it from 3.6.2 in games/godot)?  
> 
> yes, because plist changes:
> 
> 1. the binaries are renamed, and
> 2. there is an additional pkgpath (i.e. the implicit
> games/godot/pack1) compared to previous

done
 
> > > - Installing the editor (now in pack3/) fails now with a
> > > collision of the desktop-file-utils stuff which would be
> > > intentionally named the same. Would set quirks to update from
> > > games/godot,-tools and games/godot4,-editor to
> > > games/godot/pack3,-editor. The editor works though (have tested
> > > it with a separate way to build/run).  
> 
> pack3/pkg/PLIST-main needs to conflict with the old godot-3, I think
> this should do the trick
> 
> @conflict godot-<3.6.2p0

done

New tarball attached.

Also to clarify, after import/update, I'm planning on the following
quirks:

        godot-tools => godot-editor
        godot4 => godot

Attachment: godot-multiversion-readmes.tgz
Description: application/compressed-tar

Reply via email to