Skip to content

NetBSD: All functionality fails; "-S" is not a portable option to env #1418

Description

@stephen-smith

Spago 1.0.4 installed via npm fails to do anything on NetBSD:

-bash-5.3$ npx spago build
env: unknown option -- S

Usage: env [-0i] [-C dir] [-u name] [--] \
           [name=value ...] [--] \
           [utility [arg ...] ]
-bash-5.3$ npx spago --help
env: unknown option -- S

Usage: env [-0i] [-C dir] [-u name] [--] \
           [name=value ...] [--] \
           [utility [arg ...] ]
-bash-5.3$ npx spago
env: unknown option -- S

Usage: env [-0i] [-C dir] [-u name] [--] \
           [name=value ...] [--] \
           [utility [arg ...] ]

I tried the version of spago from pkg_src first, but that's the old dhall-spago instead of the current yaml-spago.

I could not find an equivalent to -S in the env(1) man page on NetBSD.

Changing the fix-bundle script in spago's package.json to a no-op, and undoing the change to spago's bin/bundle.js caused the build to succeed:

[641 of 642] Compiling Test.Main
[642 of 642] Compiling Main
           Src   Lib   All
Warnings     0     0     0
Errors       0     0     0

✓ Build succeeded.
-bash-5.3$ grep fix-bundle node_modules/spago/package.json
    "fix-bundle": ":",
    "bundle": "spago bundle -p spago-bin && npm run fix-bundle",
    "prepublishOnly": "spago build && ./bin/index.dev.js bundle -p spago-bin && npm run fix-bundle && ./bin/index.dev.js bundle -p docs-search-client-halogen",
-bash-5.3$ head -n 1 node_modules/spago/bin/bundle.js
#!/usr/bin/env node

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions