ssbc / patchwork

A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB).
https://www.scuttlebutt.nz
GNU Affero General Public License v3.0
3.59k stars 334 forks source link

build fails on Debian stable/jessie #468

Closed anarcat closed 5 years ago

anarcat commented 7 years ago

i get this trying to install patchwork here:

[998]anarcat@angela:patchwork$ npm install
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN prefer global ssb-marked@0.7.2 should be installed with -g
npm WARN prefer global node-gyp@3.6.0 should be installed with -g
npm WARN prefer global node-ninja@1.0.2 should be installed with -g

> @paulcbetts/spellchecker@4.0.5 install /home/anarcat/dist/patchwork/node_modules/@paulcbetts/spellchecker
> node-gyp rebuild

make: Entering directory '/home/anarcat/dist/patchwork/node_modules/@paulcbetts/spellchecker/build'
  CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/md5.o
In file included from ../vendor/hunspell/src/base/strings/string_piece.h:32:0,
                 from ../vendor/hunspell/src/base/md5.h:12,
                 from ../vendor/hunspell/src/base/md5.cc:24:
../vendor/hunspell/src/base/strings/string16.h:71:3: warning: identifier ‘static_assert’ is a keyword in C++11 [-Wc++0x-compat]
   static_assert(sizeof(int_type) > sizeof(char_type),
   ^
In file included from ../vendor/hunspell/src/base/md5.h:12:0,
                 from ../vendor/hunspell/src/base/md5.cc:24:
../vendor/hunspell/src/base/strings/string_piece.h:200:5: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
     ptr_ = length_ > 0 ? &*begin : nullptr;
     ^
In file included from ../vendor/hunspell/src/base/strings/string_piece.h:32:0,
                 from ../vendor/hunspell/src/base/md5.h:12,
                 from ../vendor/hunspell/src/base/md5.cc:24:
../vendor/hunspell/src/base/strings/string16.h:71:17: error: expected identifier before ‘sizeof’
   static_assert(sizeof(int_type) > sizeof(char_type),
                 ^
../vendor/hunspell/src/base/strings/string16.h:71:17: error: expected ‘,’ or ‘...’ before ‘sizeof’
../vendor/hunspell/src/base/strings/string16.h:72:55: error: ISO C++ forbids declaration of ‘static_assert’ with no type [-fpermissive]
                 "int must be larger than 16 bits wide");
                                                       ^
In file included from ../vendor/hunspell/src/base/md5.h:12:0,
                 from ../vendor/hunspell/src/base/md5.cc:24:
../vendor/hunspell/src/base/strings/string_piece.h: In constructor ‘base::BasicStringPiece<STRING_TYPE>::BasicStringPiece(const typename STRING_TYPE::const_iterator&, const typename STRING_TYPE::const_iterator&)’:
../vendor/hunspell/src/base/strings/string_piece.h:200:36: error: ‘nullptr’ was not declared in this scope
     ptr_ = length_ > 0 ? &*begin : nullptr;
                                    ^
hunspell.target.mk:114: recipe for target 'Release/obj.target/hunspell/vendor/hunspell/src/base/md5.o' failed
make: *** [Release/obj.target/hunspell/vendor/hunspell/src/base/md5.o] Error 1
make: Leaving directory '/home/anarcat/dist/patchwork/node_modules/@paulcbetts/spellchecker/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.9.0-0.bpo.2-amd64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/anarcat/dist/patchwork/node_modules/@paulcbetts/spellchecker
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
ssb-patchwork@3.2.2 /home/anarcat/dist/patchwork
├── atomic-file@0.1.0 
├─┬ bulk-require@1.0.0 
│ └─┬ glob@3.2.11 
│   ├── inherits@2.0.3 
│   └─┬ minimatch@0.3.0 
│     ├── lru-cache@2.7.3 
│     └── sigmund@1.0.1 
├── catch-links@2.0.1 
├── compare-version@0.1.2 
├── data-uri-to-buffer@0.0.4 
├── deep-equal@1.0.1 
├─┬ depject@3.2.0 
│ └── libnested@1.2.1 
├─┬ depnest@1.3.0 
│ └─┬ es2040@1.2.5 
│   ├─┬ babel-core@6.24.0 
│   │ ├─┬ babel-code-frame@6.22.0 
│   │ │ ├── esutils@2.0.2 
│   │ │ └── js-tokens@3.0.1 
│   │ ├─┬ babel-generator@6.24.0 
│   │ │ ├─┬ detect-indent@4.0.0 
│   │ │ │ └─┬ repeating@2.0.1 
│   │ │ │   └── is-finite@1.0.2 
│   │ │ ├── jsesc@1.3.0 
│   │ │ └── trim-right@1.0.1 
│   │ ├── babel-helpers@6.23.0 
│   │ ├── babel-messages@6.23.0 
│   │ ├─┬ babel-register@6.24.0 
│   │ │ ├── core-js@2.4.1 
│   │ │ ├── home-or-tmp@2.0.0 
│   │ │ └── source-map-support@0.4.14 
│   │ ├─┬ babel-runtime@6.23.0 
│   │ │ └── regenerator-runtime@0.10.3 
│   │ ├── babel-template@6.23.0 
│   │ ├─┬ babel-traverse@6.23.1 
│   │ │ ├── globals@9.17.0 
│   │ │ └─┬ invariant@2.2.2 
│   │ │   └── loose-envify@1.3.1 
│   │ ├─┬ babel-types@6.23.0 
│   │ │ └── to-fast-properties@1.0.2 
│   │ ├── babylon@6.16.1 
│   │ ├── convert-source-map@1.5.0 
│   │ ├── json5@0.5.1 
│   │ ├── lodash@4.17.4 
│   │ ├─┬ minimatch@3.0.3 
│   │ │ └─┬ brace-expansion@1.1.6 
│   │ │   ├── balanced-match@0.4.2 
│   │ │   └── concat-map@0.0.1 
│   │ ├── path-is-absolute@1.0.1 
│   │ ├── private@0.1.7 
│   │ ├── slash@1.0.0 
│   │ └── source-map@0.5.6 
│   ├─┬ babel-preset-es2040@1.1.1 
│   │ ├── babel-plugin-check-es2015-constants@6.22.0 
│   │ ├── babel-plugin-transform-es2015-arrow-functions@6.22.0 
│   │ ├── babel-plugin-transform-es2015-block-scoping@6.23.0 
│   │ ├── babel-plugin-transform-es2015-computed-properties@6.22.0 
│   │ ├── babel-plugin-transform-es2015-destructuring@6.23.0 
│   │ ├─┬ babel-plugin-transform-es2015-parameters@6.23.0 
│   │ │ ├─┬ babel-helper-call-delegate@6.22.0 
│   │ │ │ └── babel-helper-hoist-variables@6.22.0 
│   │ │ └── babel-helper-get-function-arity@6.22.0 
│   │ ├── babel-plugin-transform-es2015-shorthand-properties@6.22.0 
│   │ ├── babel-plugin-transform-es2015-spread@6.22.0 
│   │ └── babel-plugin-transform-es2015-template-literals@6.22.0 
│   └─┬ through2@2.0.3 
│     └─┬ readable-stream@2.2.6 
│       ├── buffer-shims@1.0.0 
│       ├── core-util-is@1.0.2 
│       ├── isarray@1.0.0 
│       ├── process-nextick-args@1.0.7 
│       ├── string_decoder@0.10.31 
│       └── util-deprecate@1.0.2 
├─┬ electron@1.4.16 
│ ├─┬ electron-download@3.3.0 
│ │ ├─┬ debug@2.6.3 
│ │ │ └── ms@0.7.2 
│ │ ├─┬ fs-extra@0.30.0 
│ │ │ └── klaw@1.3.1 
│ │ ├── home-path@1.0.5 
│ │ ├── minimist@1.2.0 
│ │ ├─┬ nugget@2.0.1 
│ │ │ ├── minimist@1.2.0 
│ │ │ ├─┬ pretty-bytes@1.0.4 
│ │ │ │ ├── get-stdin@4.0.1 
│ │ │ │ └─┬ meow@3.7.0 
│ │ │ │   ├── camelcase-keys@2.1.0 
│ │ │ │   ├── decamelize@1.2.0 
│ │ │ │   ├─┬ loud-rejection@1.6.0 
│ │ │ │   │ └─┬ currently-unhandled@0.4.1 
│ │ │ │   │   └── array-find-index@1.0.2 
│ │ │ │   ├── map-obj@1.0.1 
│ │ │ │   ├── minimist@1.2.0 
│ │ │ │   ├─┬ normalize-package-data@2.3.6 
│ │ │ │   │ ├── hosted-git-info@2.4.1 
│ │ │ │   │ ├─┬ is-builtin-module@1.0.0 
│ │ │ │   │ │ └── builtin-modules@1.1.1 
│ │ │ │   │ └─┬ validate-npm-package-license@3.0.1 
│ │ │ │   │   ├─┬ spdx-correct@1.0.2 
│ │ │ │   │   │ └── spdx-license-ids@1.2.2 
│ │ │ │   │   └── spdx-expression-parse@1.0.4 
│ │ │ │   ├─┬ read-pkg-up@1.0.1 
│ │ │ │   │ ├── find-up@1.1.2 
│ │ │ │   │ └─┬ read-pkg@1.1.0 
│ │ │ │   │   ├─┬ load-json-file@1.1.0 
│ │ │ │   │   │ ├─┬ parse-json@2.2.0 
│ │ │ │   │   │ │ └─┬ error-ex@1.3.1 
│ │ │ │   │   │ │   └── is-arrayish@0.2.1 
│ │ │ │   │   │ └─┬ strip-bom@2.0.0 
│ │ │ │   │   │   └── is-utf8@0.2.1 
│ │ │ │   │   └── path-type@1.1.0 
│ │ │ │   ├─┬ redent@1.0.0 
│ │ │ │   │ ├── indent-string@2.1.0 
│ │ │ │   │ └── strip-indent@1.0.1 
│ │ │ │   └── trim-newlines@1.0.0 
│ │ │ ├─┬ progress-stream@1.2.0 
│ │ │ │ ├── speedometer@0.1.4 
│ │ │ │ └─┬ through2@0.2.3 
│ │ │ │   ├─┬ readable-stream@1.1.14 
│ │ │ │   │ └── isarray@0.0.1 
│ │ │ │   └─┬ xtend@2.1.2 
│ │ │ │     └── object-keys@0.4.0 
│ │ │ ├─┬ request@2.81.0 
│ │ │ │ ├── aws-sign2@0.6.0 
│ │ │ │ ├── aws4@1.6.0 
│ │ │ │ ├── caseless@0.12.0 
│ │ │ │ ├─┬ combined-stream@1.0.5 
│ │ │ │ │ └── delayed-stream@1.0.0 
│ │ │ │ ├── extend@3.0.0 
│ │ │ │ ├── forever-agent@0.6.1 
│ │ │ │ ├─┬ form-data@2.1.2 
│ │ │ │ │ └── asynckit@0.4.0 
│ │ │ │ ├─┬ har-validator@4.2.1 
│ │ │ │ │ ├─┬ ajv@4.11.5 
│ │ │ │ │ │ ├── co@4.6.0 
│ │ │ │ │ │ └─┬ json-stable-stringify@1.0.1 
│ │ │ │ │ │   └── jsonify@0.0.0 
│ │ │ │ │ └── har-schema@1.0.5 
│ │ │ │ ├─┬ hawk@3.1.3 
│ │ │ │ │ ├── boom@2.10.1 
│ │ │ │ │ ├── cryptiles@2.0.5 
│ │ │ │ │ ├── hoek@2.16.3 
│ │ │ │ │ └── sntp@1.0.9 
│ │ │ │ ├─┬ http-signature@1.1.1 
│ │ │ │ │ ├── assert-plus@0.2.0 
│ │ │ │ │ ├─┬ jsprim@1.4.0 
│ │ │ │ │ │ ├── assert-plus@1.0.0 
│ │ │ │ │ │ ├── extsprintf@1.0.2 
│ │ │ │ │ │ ├── json-schema@0.2.3 
│ │ │ │ │ │ └── verror@1.3.6 
│ │ │ │ │ └─┬ sshpk@1.11.0 
│ │ │ │ │   ├── asn1@0.2.3 
│ │ │ │ │   ├── assert-plus@1.0.0 
│ │ │ │ │   ├── bcrypt-pbkdf@1.0.1 
│ │ │ │ │   ├─┬ dashdash@1.14.1 
│ │ │ │ │   │ └── assert-plus@1.0.0 
│ │ │ │ │   ├── ecc-jsbn@0.1.1 
│ │ │ │ │   ├─┬ getpass@0.1.6 
│ │ │ │ │   │ └── assert-plus@1.0.0 
│ │ │ │ │   ├── jodid25519@1.0.2 
│ │ │ │ │   └── jsbn@0.1.1 
│ │ │ │ ├── is-typedarray@1.0.0 
│ │ │ │ ├── isstream@0.1.2 
│ │ │ │ ├── json-stringify-safe@5.0.1 
│ │ │ │ ├─┬ mime-types@2.1.15 
│ │ │ │ │ └── mime-db@1.27.0 
│ │ │ │ ├── oauth-sign@0.8.2 
│ │ │ │ ├── performance-now@0.2.0 
│ │ │ │ ├── qs@6.4.0 
│ │ │ │ ├── safe-buffer@5.0.1 
│ │ │ │ ├── stringstream@0.0.5 
│ │ │ │ ├─┬ tough-cookie@2.3.2 
│ │ │ │ │ └── punycode@1.4.1 
│ │ │ │ ├── tunnel-agent@0.6.0 
│ │ │ │ └── uuid@3.0.1 
│ │ │ ├─┬ single-line-log@1.1.2 
│ │ │ │ └─┬ string-width@1.0.2 
│ │ │ │   ├── code-point-at@1.1.0 
│ │ │ │   └─┬ is-fullwidth-code-point@1.0.0 
│ │ │ │     └── number-is-nan@1.0.1 
│ │ │ └── throttleit@0.0.2 
│ │ ├─┬ path-exists@2.1.0 
│ │ │ └─┬ pinkie-promise@2.0.1 
│ │ │   └── pinkie@2.0.4 
│ │ ├─┬ rc@1.2.1 
│ │ │ ├── ini@1.3.4 
│ │ │ ├── minimist@1.2.0 
│ │ │ └── strip-json-comments@2.0.1 
│ │ ├── semver@5.3.0 
│ │ └─┬ sumchecker@1.3.1 
│ │   └── es6-promise@4.1.0 
│ └─┬ extract-zip@1.6.0 
│   ├─┬ concat-stream@1.5.0 
│   │ ├── readable-stream@2.0.6 
│   │ └── typedarray@0.0.6 
│   ├── debug@0.7.4 
│   ├── mkdirp@0.5.0 
│   └─┬ yauzl@2.4.1 
│     └─┬ fd-slicer@1.0.1 
│       └── pend@1.2.0 
├── electron-default-menu@1.0.0 
├─┬ electron-window-state@4.1.0 
│ ├─┬ jsonfile@2.4.0 
│ │ └── graceful-fs@4.1.11 
│ └─┬ mkdirp@0.5.1 
│   └── minimist@0.0.8 
├── graphmitter@1.7.0 
├── has-network@0.0.0 
├── insert-css@1.0.0 
├─┬ is-visible@2.1.1 
│ ├── iselement@1.1.4 
│ └── style-properties@1.3.1 
├─┬ level@1.6.0 
│ ├─┬ level-packager@1.2.1 
│ │ └─┬ levelup@1.3.5 
│ │   ├─┬ deferred-leveldown@1.2.1 
│ │   │ └── abstract-leveldown@2.4.1 
│ │   ├── level-codec@6.1.0 
│ │   ├─┬ level-errors@1.0.4 
│ │   │ └─┬ errno@0.1.4 
│ │   │   └── prr@0.0.0 
│ │   ├─┬ level-iterator-stream@1.3.1 
│ │   │ └─┬ readable-stream@1.1.14 
│ │   │   └── isarray@0.0.1 
│ │   ├── prr@1.0.1 
│ │   └── semver@5.1.1 
│ └─┬ leveldown@1.6.0 
│   ├── abstract-leveldown@2.6.1 
│   ├── bindings@1.2.1 
│   ├── fast-future@1.0.2 
│   ├── nan@2.5.1 
│   └─┬ prebuild-install@2.1.1 
│     ├── expand-template@1.0.3 
│     ├── github-from-package@0.0.0 
│     ├── minimist@1.2.0 
│     ├── node-abi@2.0.0 
│     ├── noop-logger@0.1.1 
│     ├─┬ npmlog@4.0.2 
│     │ ├─┬ are-we-there-yet@1.1.2 
│     │ │ └── delegates@1.0.0 
│     │ ├── console-control-strings@1.1.0 
│     │ ├─┬ gauge@2.7.3 
│     │ │ ├── aproba@1.1.1 
│     │ │ ├── has-unicode@2.0.1 
│     │ │ ├── signal-exit@3.0.2 
│     │ │ └── wide-align@1.1.0 
│     │ └── set-blocking@2.0.0 
│     ├─┬ pump@1.0.2 
│     │ └── end-of-stream@1.4.0 
│     ├─┬ simple-get@1.4.3 
│     │ └── unzip-response@1.0.2 
│     ├─┬ tar-fs@1.15.2 
│     │ ├── chownr@1.0.1 
│     │ └─┬ tar-stream@1.5.2 
│     │   └── bl@1.2.0 
│     └── tunnel-agent@0.4.3 
├─┬ level-memview@0.0.0 
│ ├─┬ level-live-stream@1.4.12 
│ │ ├─┬ level-sublevel@6.6.1 
│ │ │ ├─┬ levelup@0.19.1 
│ │ │ │ ├── bl@0.8.2 
│ │ │ │ ├─┬ deferred-leveldown@0.2.0 
│ │ │ │ │ └─┬ abstract-leveldown@0.12.4 
│ │ │ │ │   └── xtend@3.0.0 
│ │ │ │ ├── prr@0.0.0 
│ │ │ │ ├─┬ readable-stream@1.0.34 
│ │ │ │ │ └── isarray@0.0.1 
│ │ │ │ └── xtend@3.0.0 
│ │ │ └── pull-level@2.0.3 
│ │ ├── pull-level@2.0.3 
│ │ └── pull-stream-to-stream@1.2.6 
│ ├─┬ pull-level@1.2.0 
│ │ ├── level-post@1.0.5 
│ │ ├─┬ pull-pushable@1.1.4 
│ │ │ └── pull-stream@2.18.3 
│ │ ├─┬ pull-stream@2.28.4 
│ │ │ └── pull-core@1.1.0 
│ │ ├─┬ pull-window@2.1.4 
│ │ │ └── looper@2.0.0 
│ │ └─┬ stream-to-pull-stream@1.3.1 
│ │   └── pull-core@1.0.0 
│ └─┬ pull-stream@2.26.1 
│   └── pull-core@1.1.0 
├─┬ map-filter-reduce@3.0.3 
│ ├── binary-search@1.3.2 
│ ├── pull-sink-through@0.0.0 
│ └── typewiselite@1.0.0 
├─┬ micro-css@2.0.1 
│ └─┬ optimist@0.6.1 
│   └── wordwrap@0.0.3 
├─┬ mutant@3.18.0 
│ ├── browser-split@0.0.1 
│ └── xtend@4.0.1 
├─┬ mutant-pull-reduce@1.1.0 
│ └── pull-stream@3.5.0 
├─┬ non-private-ip@1.4.2 
│ └── ip@0.3.3 
├── on-change-network@0.0.2 
├── on-wakeup@1.0.1 
├─┬ patchcore@0.4.10 
│ ├─┬ bulkify@1.4.2 
│ │ ├── concat-stream@1.6.0 
│ │ ├─┬ static-module@1.3.1 
│ │ │ ├─┬ concat-stream@1.4.10 
│ │ │ │ └── readable-stream@1.1.14 
│ │ │ ├─┬ duplexer2@0.0.2 
│ │ │ │ └─┬ readable-stream@1.1.14 
│ │ │ │   └── isarray@0.0.1 
│ │ │ ├─┬ escodegen@1.3.3 
│ │ │ │ ├── esprima@1.1.1 
│ │ │ │ ├── estraverse@1.5.1 
│ │ │ │ ├── esutils@1.0.0 
│ │ │ │ └─┬ source-map@0.1.43 
│ │ │ │   └── amdefine@1.0.1 
│ │ │ ├─┬ falafel@1.2.0 
│ │ │ │ ├── acorn@1.2.2 
│ │ │ │ ├── foreach@2.0.5 
│ │ │ │ ├── isarray@0.0.1 
│ │ │ │ └── object-keys@1.0.11 
│ │ │ ├─┬ has@1.0.1 
│ │ │ │ └── function-bind@1.1.0 
│ │ │ ├── object-inspect@0.4.0 
│ │ │ ├─┬ quote-stream@0.0.0 
│ │ │ │ └─┬ through2@0.4.2 
│ │ │ │   ├─┬ readable-stream@1.0.34 
│ │ │ │   │ └── isarray@0.0.1 
│ │ │ │   └─┬ xtend@2.1.2 
│ │ │ │     └── object-keys@0.4.0 
│ │ │ ├─┬ readable-stream@1.0.34 
│ │ │ │ └── isarray@0.0.1 
│ │ │ ├── shallow-copy@0.0.1 
│ │ │ ├─┬ static-eval@0.2.4 
│ │ │ │ └─┬ escodegen@0.0.28 
│ │ │ │   ├── esprima@1.0.4 
│ │ │ │   └── estraverse@1.3.2 
│ │ │ └─┬ through2@0.4.2 
│ │ │   └─┬ xtend@2.1.2 
│ │ │     └── object-keys@0.4.0 
│ │ └─┬ through2@0.4.2 
│ │   ├─┬ readable-stream@1.0.34 
│ │   │ └── isarray@0.0.1 
│ │   └─┬ xtend@2.1.2 
│ │     └── object-keys@0.4.0 
│ ├── color-hash@1.0.3 
│ ├── emoji-named-characters@1.0.2 
│ ├── human-time@0.0.1 
│ ├── pull-cat@1.1.11 
│ ├── pull-reconnect@0.0.3 
│ ├── pull-stream@3.5.0 
│ ├── simple-mime@0.1.0 
│ ├── split-buffer@1.0.0 
│ ├─┬ ssb-client@4.4.0 
│ │ ├─┬ multiserver@1.9.0 
│ │ │ ├─┬ pull-ws@3.2.8 
│ │ │ │ ├── relative-url@1.0.2 
│ │ │ │ └─┬ ws@1.1.4 
│ │ │ │   ├── options@0.0.6 
│ │ │ │   └── ultron@1.0.2 
│ │ │ ├─┬ secret-handshake@1.1.4 
│ │ │ │ ├─┬ pull-box-stream@1.0.12 
│ │ │ │ │ └── increment-buffer@1.0.1 
│ │ │ │ └─┬ pull-handshake@1.1.4 
│ │ │ │   └── pull-pair@1.1.0 
│ │ │ ├── separator-escape@0.0.0 
│ │ │ └─┬ socks@1.1.9 
│ │ │   ├── ip@1.1.5 
│ │ │   └── smart-buffer@1.1.15 
│ │ └─┬ ssb-keys@6.1.2 
│ │   ├── deep-equal@0.2.2 
│ │   └── hmac@1.0.1 
│ ├─┬ ssb-config@2.2.0 
│ │ ├── deep-extend@0.4.1 
│ │ └── os-homedir@1.0.2 
│ ├─┬ ssb-feed@2.3.0 
│ │ └── monotonic-timestamp@0.0.9 
│ ├── ssb-markdown@3.3.0 
│ └── ssb-marked@0.7.2 
├── pull-abortable@4.1.0 
├── pull-defer@0.2.2 
├─┬ pull-file@1.0.0 
│ └── pull-utf8-decoder@1.0.2 
├─┬ pull-identify-filetype@1.1.0 
│ └── pull-stream@2.28.4 
├── pull-next@0.0.2 
├── pull-notify@0.1.1 
├── pull-pause@0.0.0 
├── pull-ping@2.0.2 
├── pull-pushable@2.0.1 
├─┬ pull-scroll@1.0.3  (git://github.com/mmckegg/pull-scroll.git#0fddc085fc82cfce9f3ccfd4096fce99843a1e51)
│ └── obv@0.0.1 
├── pull-stream@3.4.5 
├─┬ scuttlebot@9.4.7  (git://github.com/ssbc/scuttlebot.git#6c16948e4f8487e5bf2c4df17b0564391d4b0ddf)
│ ├── atomic-file@0.0.1 
│ ├── bash-color@0.0.4 
│ ├── broadcast-stream@0.0.0 
│ ├─┬ cont@1.0.3 
│ │ ├── continuable@1.2.0 
│ │ ├─┬ continuable-para@1.2.0 
│ │ │ ├─┬ continuable-hash@0.1.4 
│ │ │ │ └── continuable@1.1.8 
│ │ │ └─┬ continuable-list@0.1.6 
│ │ │   └── continuable@1.1.8 
│ │ └── continuable-series@1.2.0 
│ ├── explain-error@1.0.3 
│ ├── has-network@0.0.1 
│ ├─┬ mdmanifest@1.0.8 
│ │ ├── minimist@1.2.0 
│ │ ├─┬ remark@3.2.3 
│ │ │ ├── camelcase@2.1.1 
│ │ │ ├── ccount@1.0.1 
│ │ │ ├─┬ chalk@1.1.3 
│ │ │ │ ├── ansi-styles@2.2.1 
│ │ │ │ ├── escape-string-regexp@1.0.5 
│ │ │ │ ├─┬ has-ansi@2.0.0 
│ │ │ │ │ └── ansi-regex@2.1.1 
│ │ │ │ ├── strip-ansi@3.0.1 
│ │ │ │ └── supports-color@2.0.0 
│ │ │ ├─┬ chokidar@1.6.1 
│ │ │ │ ├─┬ anymatch@1.3.0 
│ │ │ │ │ └─┬ micromatch@2.3.11 
│ │ │ │ │   ├─┬ arr-diff@2.0.0 
│ │ │ │ │   │ └── arr-flatten@1.0.1 
│ │ │ │ │   ├── array-unique@0.2.1 
│ │ │ │ │   ├─┬ braces@1.8.5 
│ │ │ │ │   │ ├─┬ expand-range@1.8.2 
│ │ │ │ │   │ │ └─┬ fill-range@2.2.3 
│ │ │ │ │   │ │   ├── is-number@2.1.0 
│ │ │ │ │   │ │   ├── isobject@2.1.0 
│ │ │ │ │   │ │   └── randomatic@1.1.6 
│ │ │ │ │   │ ├── preserve@0.2.0 
│ │ │ │ │   │ └── repeat-element@1.1.2 
│ │ │ │ │   ├─┬ expand-brackets@0.1.5 
│ │ │ │ │   │ └── is-posix-bracket@0.1.1 
│ │ │ │ │   ├── extglob@0.3.2 
│ │ │ │ │   ├── filename-regex@2.0.0 
│ │ │ │ │   ├─┬ kind-of@3.1.0 
│ │ │ │ │   │ └── is-buffer@1.1.5 
│ │ │ │ │   ├─┬ normalize-path@2.1.1 
│ │ │ │ │   │ └── remove-trailing-separator@1.0.1 
│ │ │ │ │   ├─┬ object.omit@2.0.1 
│ │ │ │ │   │ ├─┬ for-own@0.1.5 
│ │ │ │ │   │ │ └── for-in@1.0.2 
│ │ │ │ │   │ └── is-extendable@0.1.1 
│ │ │ │ │   ├─┬ parse-glob@3.0.4 
│ │ │ │ │   │ ├── glob-base@0.3.0 
│ │ │ │ │   │ └── is-dotfile@1.0.2 
│ │ │ │ │   └─┬ regex-cache@0.4.3 
│ │ │ │ │     ├── is-equal-shallow@0.1.3 
│ │ │ │ │     └── is-primitive@2.0.0 
│ │ │ │ ├── async-each@1.0.1 
│ │ │ │ ├── glob-parent@2.0.0 
│ │ │ │ ├─┬ is-binary-path@1.0.1 
│ │ │ │ │ └── binary-extensions@1.8.0 
│ │ │ │ ├─┬ is-glob@2.0.1 
│ │ │ │ │ └── is-extglob@1.0.0 
│ │ │ │ └─┬ readdirp@2.1.0 
│ │ │ │   ├── minimatch@3.0.3 
│ │ │ │   └── set-immediate-shim@1.0.1 
│ │ │ ├── collapse-white-space@1.0.2 
│ │ │ ├─┬ commander@2.9.0 
│ │ │ │ └── graceful-readlink@1.0.1 
│ │ │ ├── elegant-spinner@1.0.1 
│ │ │ ├── extend.js@0.0.2 
│ │ │ ├── glob@6.0.4 
│ │ │ ├─┬ globby@4.1.0 
│ │ │ │ ├─┬ array-union@1.0.2 
│ │ │ │ │ └── array-uniq@1.0.3 
│ │ │ │ ├── arrify@1.0.1 
│ │ │ │ ├─┬ glob@6.0.4 
│ │ │ │ │ └── minimatch@3.0.3 
│ │ │ │ └── pify@2.3.0 
│ │ │ ├── he@0.5.0 
│ │ │ ├─┬ log-update@1.0.2 
│ │ │ │ ├── ansi-escapes@1.4.0 
│ │ │ │ └─┬ cli-cursor@1.0.2 
│ │ │ │   └─┬ restore-cursor@1.0.1 
│ │ │ │     ├── exit-hook@1.1.1 
│ │ │ │     └── onetime@1.1.0 
│ │ │ ├── longest-streak@1.0.0 
│ │ │ ├── markdown-table@0.4.0 
│ │ │ ├── minimatch@3.0.3 
│ │ │ ├─┬ npm-prefix@1.2.0 
│ │ │ │ ├── shellsubstitute@1.2.0 
│ │ │ │ └── untildify@2.1.0 
│ │ │ ├─┬ parse-entities@1.1.0 
│ │ │ │ ├── character-entities@1.2.0 
│ │ │ │ ├── character-entities-legacy@1.1.0 
│ │ │ │ ├── character-reference-invalid@1.1.0 
│ │ │ │ ├─┬ is-alphanumerical@1.0.0 
│ │ │ │ │ └── is-alphabetical@1.0.0 
│ │ │ │ ├── is-decimal@1.0.0 
│ │ │ │ └── is-hexadecimal@1.0.0 
│ │ │ ├── repeat-string@1.6.1 
│ │ │ ├─┬ stringify-entities@1.3.0 
│ │ │ │ └── character-entities-html4@1.1.0 
│ │ │ ├── to-vfile@1.0.0 
│ │ │ ├── trim@0.0.1 
│ │ │ ├── trim-trailing-lines@1.1.0 
│ │ │ ├─┬ unified@2.1.4 
│ │ │ │ ├── attach-ware@1.1.1 
│ │ │ │ ├── bail@1.0.1 
│ │ │ │ └── unherit@1.1.0 
│ │ │ ├── user-home@2.0.0 
│ │ │ ├── vfile@1.4.0 
│ │ │ ├── vfile-find-down@1.0.0 
│ │ │ ├── vfile-find-up@1.0.0 
│ │ │ ├─┬ vfile-reporter@1.5.0 
│ │ │ │ ├── log-symbols@1.0.2 
│ │ │ │ ├─┬ plur@2.1.2 
│ │ │ │ │ └── irregular-plurals@1.2.0 
│ │ │ │ ├── text-table@0.2.0 
│ │ │ │ └── vfile-sort@1.0.0 
│ │ │ └─┬ ware@1.3.0 
│ │ │   └─┬ wrap-fn@0.1.5 
│ │ │     └── co@3.1.0 
│ │ ├─┬ remark-html@2.0.2 
│ │ │ ├── detab@1.0.2 
│ │ │ ├── normalize-uri@1.1.0 
│ │ │ ├── object-assign@4.1.1 
│ │ │ ├── trim-lines@1.1.0 
│ │ │ └── unist-util-visit@1.1.1 
│ │ └── word-wrap@1.2.1 
│ ├── minimist@1.2.0 
│ ├─┬ multiblob@1.10.2 
│ │ ├── blake2s@1.0.1 
│ │ ├── pull-file@0.5.0 
│ │ ├─┬ pull-glob@1.0.6 
│ │ │ └─┬ pull-fs@1.1.6 
│ │ │   ├── pull-file@0.5.0 
│ │ │   └── pull-traverse@1.0.3 
│ │ ├── pull-live@1.0.1 
│ │ ├── pull-notify@0.0.2 
│ │ ├── pull-write-file@0.2.4 
│ │ ├─┬ rc@0.5.5 
│ │ │ ├── deep-extend@0.2.11 
│ │ │ └── strip-json-comments@0.1.3 
│ │ └── rimraf@2.2.8 
│ ├── multicb@1.2.1 
│ ├─┬ muxrpc@6.3.3 
│ │ ├── packet-stream@2.0.1 
│ │ ├─┬ packet-stream-codec@1.1.1 
│ │ │ ├── pull-reader@1.2.9 
│ │ │ └─┬ pull-through@1.0.18 
│ │ │   └── looper@3.0.0 
│ │ └── pull-goodbye@0.0.1 
│ ├─┬ muxrpc-validation@2.0.1 
│ │ └── pull-stream@2.28.4 
│ ├─┬ muxrpcli@1.1.0 
│ │ ├── minimist@1.2.0 
│ │ └── pull-stream@2.28.4 
│ ├─┬ mv@2.1.1 
│ │ ├── ncp@2.0.0 
│ │ └─┬ rimraf@2.4.5 
│ │   └─┬ glob@6.0.4 
│ │     └── minimatch@3.0.3 
│ ├── non-private-ip@1.1.0 
│ ├─┬ observ-debounce@1.1.1 
│ │ └── observ@0.2.0 
│ ├─┬ osenv@0.1.4 
│ │ └── os-tmpdir@1.0.2 
│ ├─┬ pull-inactivity@2.1.2 
│ │ └── pull-abortable@4.0.0 
│ ├── pull-level@2.0.3 
│ ├── pull-many@1.0.8 
│ ├── pull-paramap@1.2.1 
│ ├── pull-stream-to-stream@1.3.4 
│ ├── pull-stringify@1.2.2 
│ ├─┬ rimraf@2.6.1 
│ │ └─┬ glob@7.1.1 
│ │   ├── fs.realpath@1.0.0 
│ │   ├─┬ inflight@1.0.6 
│ │   │ └── wrappy@1.0.2 
│ │   ├── minimatch@3.0.3 
│ │   └── once@1.4.0 
│ ├─┬ secret-stack@3.2.2 
│ │ ├── hoox@0.0.1 
│ │ └── map-merge@1.1.0 
│ ├─┬ secure-scuttlebutt@15.5.2 
│ │ ├─┬ bytewise@1.1.0 
│ │ │ ├─┬ bytewise-core@1.2.3 
│ │ │ │ └── typewise-core@1.2.0 
│ │ │ └── typewise@1.0.3 
│ │ ├── deep-equal@0.2.2 
│ │ ├─┬ level-peek@2.0.2 
│ │ │ └── pull-level@2.0.3 
│ │ ├── ltgt@2.0.0 
│ │ ├── pull-level@2.0.3 
│ │ └── pull-write@1.1.1 
│ ├─┬ ssb-ws@1.0.1 
│ │ ├── emoji-server@1.0.0 
│ │ ├── multiblob-http@0.2.0 
│ │ ├── ssb-sort@0.0.0 
│ │ ├── stack@0.1.0 
│ │ └─┬ web-bootloader@0.1.2 
│ │   ├── arraybuffer-base64@1.0.0 
│ │   ├─┬ binary-xhr@0.0.2 
│ │   │ └── inherits@1.0.0 
│ │   ├── hyperfile@1.1.1 
│ │   └── hyperprogress@0.1.1 
│ ├─┬ stream-to-pull-stream@1.7.2 
│ │ └── looper@3.0.0 
│ └── zerr@1.0.4 
├── sorted-array-functions@1.0.0 
├── ssb-avatar@0.2.0 
├─┬ ssb-blobs@0.1.8 
│ └── pull-level@1.5.2 
├─┬ ssb-keys@7.0.6 
│ ├─┬ chloride@2.2.4 
│ │ ├── is-electron@2.0.0 
│ │ ├─┬ sodium-browserify@1.2.1 
│ │ │ ├─┬ libsodium-wrappers@0.2.12 
│ │ │ │ └── libsodium@0.2.12 
│ │ │ ├── sha.js@2.4.5 
│ │ │ └── tweetnacl@0.14.5 
│ │ ├─┬ sodium-browserify-tweetnacl@0.2.3 
│ │ │ ├─┬ chloride-test@1.1.1 
│ │ │ │ └── json-buffer@2.0.11 
│ │ │ ├── ed2curve@0.1.4 
│ │ │ ├── sha.js@2.4.8 
│ │ │ └── tweetnacl-auth@0.3.1 
│ │ └─┬ sodium-prebuilt@1.0.22 
│ │   ├── nan@2.6.1 
│ │   └─┬ prebuild@4.5.0 
│ │     ├── async@1.5.2 
│ │     ├─┬ execspawn@1.0.1 
│ │     │ └── util-extend@1.0.3 
│ │     ├─┬ ghreleases@1.0.5 
│ │     │ ├── after@0.8.2 
│ │     │ ├── ghrepos@2.0.0 
│ │     │ ├─┬ ghutils@3.2.1 
│ │     │ │ └─┬ jsonist@1.3.0 
│ │     │ │   ├─┬ bl@1.0.3 
│ │     │ │   │ └── readable-stream@2.0.6 
│ │     │ │   └─┬ hyperquest@1.2.0 
│ │     │ │     └─┬ through2@0.6.5 
│ │     │ │       └─┬ readable-stream@1.0.34 
│ │     │ │         └── isarray@0.0.1 
│ │     │ └── url-template@2.0.8 
│ │     ├── minimist@1.2.0 
│ │     ├─┬ node-gyp@3.6.0 
│ │     │ ├── fstream@1.0.11 
│ │     │ ├── glob@7.1.1 
│ │     │ ├── minimatch@3.0.3 
│ │     │ ├─┬ nopt@3.0.6 
│ │     │ │ └── abbrev@1.1.0 
│ │     │ ├── semver@5.3.0 
│ │     │ ├─┬ tar@2.2.1 
│ │     │ │ └── block-stream@0.0.9 
│ │     │ └─┬ which@1.2.14 
│ │     │   └── isexe@2.0.0 
│ │     ├─┬ node-ninja@1.0.2 
│ │     │ ├── minimatch@3.0.3 
│ │     │ ├─┬ npmlog@2.0.4 
│ │     │ │ └── gauge@1.2.7 
│ │     │ └─┬ path-array@1.0.1 
│ │     │   └─┬ array-index@1.0.0 
│ │     │     └─┬ es6-symbol@3.1.1 
│ │     │       ├── d@1.0.0 
│ │     │       └─┬ es5-ext@0.10.15 
│ │     │         ├─┬ es6-iterator@2.0.1 
│ │     │         │ └── d@1.0.0 
│ │     │         └── es6-symbol@3.1.1 
│ │     └─┬ npmlog@2.0.4 
│ │       ├── ansi@0.3.1 
│ │       └─┬ gauge@1.2.7 
│ │         ├── lodash.pad@4.5.1 
│ │         ├── lodash.padend@4.6.1 
│ │         └── lodash.padstart@4.6.1 
│ └── private-box@0.2.1 
├─┬ ssb-mentions@0.1.2 
│ └── ssb-marked@0.5.4 
├── ssb-msgs@5.2.0 
├─┬ ssb-query@0.1.2 
│ └─┬ streamview-links@2.1.1 
│   ├── ltgt@2.1.3 
│   └── pull-level@2.0.3 
├─┬ ssb-ref@2.6.2 
│ ├── ip@1.1.5 
│ └── is-valid-domain@0.0.2 
├── ssb-sort@1.0.0 
├── statistics@3.3.0 
├─┬ suggest-box@2.2.3 
│ ├─┬ hyperscript@1.4.7 
│ │ ├── browser-split@0.0.0 
│ │ ├─┬ class-list@0.1.1 
│ │ │ └── indexof@0.0.1 
│ │ └── html-element@1.3.0 
│ └── textarea-caret-position@0.1.1 
└── text-node-searcher@1.1.1 

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1
npm WARN ssb-patchwork@3.2.2 No repository field.
npm WARN ssb-patchwork@3.2.2 license should be a valid SPDX license expression
npm ERR! Linux 4.9.0-0.bpo.2-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.29
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! @paulcbetts/spellchecker@4.0.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @paulcbetts/spellchecker@4.0.5 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @paulcbetts/spellchecker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs @paulcbetts/spellchecker
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls @paulcbetts/spellchecker
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/anarcat/dist/patchwork/npm-debug.log

i tried compiling from scratch because the Appimage binary wouldn't work either:

$ ./patchwork-3.2.2-linux-x86_64.AppImage
Log level: notice
RELOAD INDEX: undefined
RELOAD INDEX: undefined
Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /tmp/.org.chromium.Chromium.ge7EEy)
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:583:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:187:18)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/tmp/.mount_Dl72K3/usr/bin/resources/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:31)

a UI pops up that asks me if i want to register the app in my menus, i said no and it just gave me a blank window. maybe it's doing something funny, i don't know...

ahdinosaur commented 7 years ago

@anarcat have you installed these dependencies?

sudo apt-get install libxext-dev libxtst-dev libxkbfile-dev g++ m4 automake libtool
ahdinosaur commented 7 years ago

i run Debian stable/jessie and it works for me, so i wonder what's different in our environments.

ahdinosaur commented 7 years ago

@anarcat ah yep, i can confirm the same error when i run the .AppImage:

Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /tmp/.org.chromium.Chromium.o20JC0)
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:583:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:187:18)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/tmp/.mount_w3fyvp/usr/bin/resources/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:31)

normally i run Patchwork from the git repo and build locally.

@mmckegg what environment do you build these images in?

anarcat commented 7 years ago

yes, i did.

mmckegg commented 7 years ago

@ahdinosaur OH NO! Not this again. Built on elementaryOS (which is ubuntu > debian).

Can you build it on your system and republish? I remember something similar to this a while back.

https://github.com/mmckegg/patchwork-next/issues/1#issuecomment-258320322

It turned out to be a problem with leveldown not depending on things correctly. I wonder if it's the same problem with keyboard-layout?

ahdinosaur commented 7 years ago

nice find @mmckegg, was looking for that issue since i vaguely remembered this happening before. will do and see if that helps @anarcat. i'm also running a clean npm install to see if anything breaks (edit: nothing broke).

ahdinosaur commented 7 years ago

oh also @anarcat, i notice

gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v3.4.0

from https://github.com/ssbc/patchwork/issues/458#issuecomment-292363650, you might need to upgrade your node version, although i'm not sure what is the minimum required version, we're using the long-term stable version node@6.

ahdinosaur commented 7 years ago

hey @anarcat, can you try https://github.com/ssbc/patchwork/releases/download/v3.2.2/patchwork-3.2.2-linux-x86_64-1.AppImage?

ahdinosaur commented 7 years ago

or i also built the linux image for 3.3.0: https://github.com/ssbc/patchwork/releases/tag/v3.3.0.

anarcat commented 7 years ago

On 2017-04-07 00:09:24, Mikey wrote:

i'm run Debian stable/jessie and it works for me, so i wonder what's different in our environments.

i may have some stuff from backports or stretch, but not much - it shouldn't make a difference, IMHO.

now, what i suspect is that you guys build with a more recent nodejs environment than me. ;) i have node.js 0.10.29~dfsg-2 and npm 1.4.21+ds-2. i understand this environment is moving fast and would totally understand if (say) i need to use the node.js backport (~4.7.2), but then that would need to be clarified in the docs!

I did try to upgrade node.js to the backports, but it seems something is broken on the debian side:

$ sudo LANG=C apt install -t jessie-backports nodejs Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: libssl-dev libssl1.0.0 libuv1 The following packages will be REMOVED: node-gyp nodejs-dev npm The following NEW packages will be installed: libuv1 The following packages will be upgraded: libssl-dev libssl1.0.0 nodejs 3 upgraded, 1 newly installed, 3 to remove and 544 not upgraded. Need to get 6421 kB of archives. After this operation, 9778 kB of additional disk space will be used. Do you want to continue? [Y/n]

So I'm not sure where to go with this. Should I open a separate issue about the appimage stuff? That would seem like the biggest blocker...

a. -- Striving for social justice is the most valuable thing to do in life

ahdinosaur commented 7 years ago

@anarcat to clarify: are you saying the above linked AppImage builds didn't work for you?

ahdinosaur commented 7 years ago

and yes, i reckon we should test what versions of node this does work on and add it to the README.

ahdinosaur commented 7 years ago

ah yep, using node@0.10 failed for me too.

anarcat commented 7 years ago

On 2017-04-07 08:06:35, Mikey wrote:

or i also built the linux image for 3.3.0: https://github.com/ssbc/patchwork/releases/tag/v3.3.0.

that works for me, thanks!

probonopd commented 7 years ago

/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21'

This means that the software needs a newer libstdc++.so.6 than what is provided by the system. If you compile on an older build system, it should work.

christianbundy commented 5 years ago

that works for me, thanks!

I'm taking this to mean that the problem is resolved, please reopen if that's not the case!