• Error when trying to install syncdoom - unable to find get-binary.js

    From Keyop Troy@1:103/705 to GitLab issue in main/sbbs on Sun Aug 30 16:31:01 2026
    open https://gitlab.synchro.net/main/sbbs/-/issues/1231

    I'm getting the error show in this capture:

    https://pastebin.com/DmR6J53y

    According to Deuce this error is due to relative path calculation issue:

    <@Deuce> Wait, is it /sbbs or /opt/sbbs?
    <@Deuce> "/sbbs/exec/jsexec install-xtrn ../xtrn/syncdoom" vs "Installing /opt/sbbs/xtrn/syncdoom/install-xtrn.ini use Ctrl-C to abort"
    <@Deuce> Maybe an old binary and/or a bad SBBSCTRL setting?
    <Keyop> I have a symlink /sbbs points to /opt/sbbs
    <Keyop> so I usually use /sbbs
    <@Deuce> So, install-xtrn.js does relative path calculation, and with two valid names, you can't get there from here... try: /sbbs/exec/jsexec install-xtrn /sbbs/xtrn/syncdoom
    <Keyop> Ah yes that works - ty :)
    <@Deuce> Not sure if we have a realpath() in JS...
    <@Deuce> Yeah, with not realpath(), a fix would need one of a few different hack things... I'll let DigitalMan sort that out, but it's worth filing an issue for.

    Please let me know if you require any additional information.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Sep 13 17:18:34 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1231#note_10357

    This should be fixed by two commits on master:

    - fe67561ea4 — install-xtrn.js now uses the absolute install directory for `[pre-exec:]`/`[exec:]`, `[copy:]`, and `[ini:]` file access. The path relative to `ctrl_dir` is kept only for values written to config files. The failure came from `relpath.get()` getting `/sbbs/ctrl/` (symlink spelling) and `/opt/sbbs/xtrn/syncdoom` (physical path, via `getcwd()`), producing `../../opt/sbbs/xtrn/syncdoom/`, which doesn't resolve from the physical working directory.
    - 8981051fd4 — a relative path argument (e.g. `../xtrn/syncdoom`) is now resolved against `ctrl_dir` first, so both paths use the same spelling and `xtrn.ini` gets the portable `startup_dir=../xtrn/syncdoom/` rather than `../../opt/sbbs/xtrn/syncdoom/`.

    These were tested on Windows, which can't reproduce the symlink case. @Keyop, could you update `exec/install-xtrn.js` and confirm that `/sbbs/exec/jsexec install-xtrn ../xtrn/syncdoom` now works, and that the SyncDOOM entry in `ctrl/xtrn.ini` has `startup_dir=../xtrn/syncdoom/`?

    — *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)