I really would like to have a working OpenSCAD in 7.8, if folks could
help.
I worked around the big problem below, but did not attach a new tarball.
On Wed, Sep 24, 2025 at 12:36:26PM -0700, Andrew Hewus Fresh wrote:
> With the latest release of OpenSCAD being broken in the ports tree, I
> started working on a port of a "nightly" snapshot. Since they changed a
> _lot_ of stuff, I started from scratch, although I did try to minimize
> the diff with the existing port.
>
> It is attached, but changes will be reflected in my cvs until I can get
> it tuned up well enough to get committed.
> (Like I just spotted a capital letter starting a COMMENT)
>
> https://cvs.afresh1.com/cgi-bin/cvsweb/mystuff-openscad/
>
> You can check it out with:
> $ cvs -d anoncvs@cvs.afresh1.com:/cvs co mystuff-openscad
>
> # cvs.afresh1.com:22 SSH-2.0-OpenSSH_10.0
> cvs.afresh1.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEO0ueW3ls9JtH6QDEKbTqciaGHeGXZyfncyVvbNe2/I
>
> Then either symlink or `mv mystuff-openscad /usr/ports/mystuff` and
> either rename/remove the old /usr/ports/cad/openscad or add
> `PORTSDIR_PATH=/usr/ports/mystuff:/usr/ports` to /etc/mk.conf.
>
>
> Some notes on why this is a WIP (the first is the important one).
>
> * In cad/openscad, I patched out boost::dll::program_location similarly
> to how cad/prusaslicer did it, but running without the fully qualified
> path doesn't work, that value is not correct and it doesn't find
> share/openscad.
My idea for this is to put the binary in libexec/openscad and a shell
script that execs it with the full path as bin/openscad:
$ cat /usr/local/bin/openscad
#!/bin/sh
exec /usr/local/libexec/openscad "$@"
See:
https://cvs.afresh1.com/cgi-bin/cvsweb/mystuff-openscad/cad/openscad/Makefile?rev=1.6&content-type=text/x-cvsweb-markup
This seems to work, in that the "resource path" gets set correctly when
running an unqualified "openscad" that uses the PATH to find it, but it
seems like an ugly hack. Is there a better solution?
I didn't find a good one with boost's program_location not working on
OpenBSD.
> * I patched out the "joystick" support, because AFAICT only i386 has a
> joystick driver. I'm not sure, but it seems weird.
> * It might be useful to figure out how to enable libhidapi though.
> * I include an (unused) port of devel/mimalloc, which is optional and I
> don't _think_ we want it.
> * I can't seem to get cad/clipper2 tests to work, not a big deal
> * This is specifically the clipper2/CPP, should the port name reflect
> that, with the opportunity to provide multi-packages in the future?
> * sanitizers-cmake is weird, they don't do releases I guess,
> not sure how best to handle that. Would it be better to do the way I
> am getting MCAD?
>
>
> Beyond those specific comments, just the regular "what could be
> improved?"
>
--
andrew
Unix is very simple,
but it takes a genius to understand the simplicity.
-- Dennis Ritchie
No comments:
Post a Comment