Index | Thread | Search

From:
Stuart Cassoff <exokoide@yahoo.ca>
Subject:
Re: databases/sqlite3-tcl port and tcl9
To:
Stuart Henderson <stu@spacehopper.org>
Cc:
Chris Billington <emulti@disroot.org>, ports@openbsd.org
Date:
Tue, 16 Jun 2026 11:34:24 -0400

Download raw body.

Thread
On Tue, 16 Jun 2026, Stuart Henderson wrote:

Yeah, let's go with the simple hack for now.

re duplication: There could be other files (docs, examples).
Anyway, I'll continue to try things.


Stu


> 
> this is getting a lot more hairy than i like...(i.e. it comes under the
> "other options" in "probably better than other options" that I mentioned
> before). it's in the same sort of area as bootstrap ports etc and we
> have various problems with those.
> 
> > diff -Nurp /usr/ports//databases/sqlite3-tcl/pkg/PLIST ./pkg/PLIST
> > --- /usr/ports//databases/sqlite3-tcl/pkg/PLIST	Wed Nov 19 15:31:24 2025
> > +++ ./pkg/PLIST	Mon Jun 15 08:33:41 2026
> > @@ -1,6 +1,7 @@
> >  @pkgpath databases/sqlite3,-tcl
> >  lib/tcl/sqlite3/
> >  @so lib/tcl/sqlite3/libsqlite${VER}.so
> > +@so lib/tcl/sqlite3/libtcl9sqlite${VER}.so
> >  lib/tcl/sqlite3/pkgIndex.tcl
> >  @man man/mann/sqlite3.n
> >  share/examples/sqlite3-tcl/
> 
> how horrible would it be to use a different directory for tcl8/tcl9
> (e.g. lib/tcl9/...) to avoid the duplication?
> 
> or I suppose it might be possible to do this:
> 
> FLAVOR=tcl8 -> packaging only lib/tcl/sqlite3/libsqlite${VER}.so
> 
> FLAVOR=tcl9 -> packaging only lib/tcl/sqlite3/libtcl9sqlite${VER}.so
> 
> default -> depends on ,tcl8 and ,tcl9, and provides the other files
> (pkgIndex/manuals/etc)
> 
> multi version support for libraries for languages in ports is really
> tricky to do nicely.
> 
>