atom
atom copied to clipboard
Arch Linux: Scripts do not work properly when called from PKGBUILD
Hello all,
meanwhile, the atom
build process has, fortunately, been simplified significantly. Thanks a lot to everybody who contributed there!
Literally, all you have to do is
git clone https://github.com/atom-community/atom.git
cd atom
script/bootstrap
script/build --no-bootstrap
What I do not understand is why that does not work if invoked from a PKGBUILD
file using the makepkg
tool.
In particular, script/bootstrap
fails when called from PKGBUILD
:
internal/modules/cjs/loader.js:1187
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: /opt/.cache/yay/atom/src/atom/apm/node_modules/atom-package-manager/node_modules/git-utils/build/Release/git.node: undefined symbol: git_net_url_is_default_port
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1187:18)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/opt/.cache/yay/atom/src/atom/apm/node_modules/atom-package-manager/node_modules/git-utils/src/git.js:3:22)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
Error: Command failed: /opt/.cache/yay/atom/src/atom/apm/node_modules/atom-package-manager/bin/apm --version
at checkExecSyncError (node:child_process:828:11)
at Object.execFileSync (node:child_process:863:15)
at installApm (/opt/.cache/yay/atom/src/atom/script/lib/install-apm.js:20:18)
at /opt/.cache/yay/atom/src/atom/script/script-runner/node_modules/threads/dist/worker/index.js:109:26
at Generator.next (<anonymous>)
at /opt/.cache/yay/atom/src/atom/script/script-runner/node_modules/threads/dist/worker/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/opt/.cache/yay/atom/src/atom/script/script-runner/node_modules/threads/dist/worker/index.js:4:12)
at runFunction (/opt/.cache/yay/atom/src/atom/script/script-runner/node_modules/threads/dist/worker/index.js:106:12)
When script/bootstrap
is run directly from the terminal, that error does not occur. Why?
Interestingly, if I run script/bootstrap
subsequently from PKGBUILD
using makepkg -f
, it completes successfully as well.