Package Details: ssb-patchwork 3.18.1-1

Git Clone URL: https://aur.archlinux.org/ssb-patchwork.git (read-only, click to copy)
Package Base: ssb-patchwork
Description: A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB)
Upstream URL: https://github.com/ssbc/patchwork
Keywords: decentralized gossip network patchwork scuttlebutt ssb
Licenses: AGPL3
Submitter: dlandau
Maintainer: dlandau (pypper, christianbundy, zozs)
Last Packager: zozs
Votes: 20
Popularity: 0.000001
First Submitted: 2017-09-09 19:25 (UTC)
Last Updated: 2021-04-11 20:05 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

christianbundy commented on 2019-11-28 16:28 (UTC)

zozs: Oops, thanks for the comment, I've just pushed a fix. Please let me know if this gives you any trouble!

zozs commented on 2019-11-27 20:22 (UTC)

There seems to be some errors regarding the required version of electron. The depends=() array contains electron6, while the build() function, as well as /usr/bin/ssb-patchwork (i.e. run.sh) contains electron4, causing the build to fail (or /usr/bin/ssb-patchwork to not run) if electron4 not happens to be installed on the system by sheer luck.

Everything works if all instances of electron4 is replaced with electron6.

dhole commented on 2019-11-06 19:55 (UTC)

Running v3.16.2 failed on my Arch Linux due to a missing npm dependency: "ssb-caps". Here's the diff of the changes that I made to add the missing dependency (which seems to be missing from upstream):

diff --git a/PKGBUILD b/PKGBUILD
index 9961cbc..9b3def3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 pkgname=ssb-patchwork
 _upstream=patchwork
 pkgver=3.16.2
-pkgrel=1
+pkgrel=2
 pkgdesc="A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB)"
 arch=('i686' 'x86_64')
 url="https://github.com/ssbc/patchwork"
@@ -16,12 +16,14 @@ source=(
 "https://github.com/ssbc/${_upstream}/archive/v${pkgver}.tar.gz"
 'run.sh'
 "${pkgname}.desktop"
+"missing-dependency.patch"
 )

 sha256sums=(
 '7bf634bbc56fbd3db18efa8ac8bcbdfa348520944c481dfc1d08c0f35eb30881'
 '5db66d7942606df5f48ea0db2d90b584fa3a984bc2de7bb678d25897f64e3a2f'
 'b226436970db40030ad03e9cd847c103aa534d775cd81212308e86a23917d76a'
+'SKIP'
 )


@@ -31,6 +33,7 @@ build() {
     # Remove postinstall script that rebuilds for Electron
     # Instead we just build correctly the first time
     sed -i '/postinstall/d' package.json
+    patch -Np0 -i "${srcdir}/missing-dependency.patch"

     # Electron's version.
     export npm_config_target=$(electron4 -v)
diff --git a/missing-dependency.patch b/missing-dependency.patch
new file mode 100644
index 0000000..bc0bd24
--- /dev/null
+++ b/missing-dependency.patch
@@ -0,0 +1,10 @@
+--- package.json.orig  2019-11-06 20:14:28.542628997 +0100
++++ package.json       2019-11-06 20:15:04.316149411 +0100
+@@ -70,6 +70,7 @@
+     "ssb-backlinks": "^0.7.3",
+     "ssb-blob-files": "^1.1.6",
+     "ssb-blobs": "^1.2.2",
++    "ssb-caps": "^1.1.0",
+     "ssb-client": "^4.7.8",
+     "ssb-config": "github:ssbc/ssb-config#auto-config-incoming",
+     "ssb-db": "^19.3.0",

beroal commented on 2019-06-05 10:08 (UTC) (edited on 2019-06-05 10:08 (UTC) by beroal)

"env" does not output any variable name containing "NODE". Sorry, I know nothing about Node.js, Electron, or NPM, so probably, I am doing something wrong. Should we move this discussion to the forums? BTW, should this package depend on "electron" or "electron2"? "PKGBUILD" is running the "electron" command which the "electron2" package does not contain. Versions:

electron 4.1.4-1
electron2 2.0.18-1
node-gyp 4.0.0-1
nodejs 11.15.0-1
npm 6.9.0-1

christianbundy commented on 2019-06-05 01:25 (UTC)

@beroal: Sorry to hear you're having a rough time trying to get this installed. Could you check the output of env and ensure you don't have any NODE_ options set? The PKGBUILD should be setting a different Node version (to target Electron) and I don't think it should be trying to download headers for Node.js 11.15.0 at all.

beroal commented on 2019-06-04 22:15 (UTC)

@Powersource I tried to build in a clean directory. The same error.

Powersource commented on 2019-06-04 21:56 (UTC)

@beroal It "works for me". Could you try clearing that build dir, downloading & installing stuff again, and see if it works then?

beroal commented on 2019-06-04 18:38 (UTC)

I can't compile this.

==> Making package: ssb-patchwork 3.12.0-1 (Tue 04 Jun 2019 09:37:18 PM EEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v3.12.0.tar.gz
  -> Found run.sh
  -> Found ssb-patchwork.desktop
==> Validating source files with sha512sums...
    v3.12.0.tar.gz ... Passed
    run.sh ... Passed
    ssb-patchwork.desktop ... Passed
==> Extracting sources...
  -> Extracting v3.12.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...

(electron:28977): Gtk-WARNING **: 21:37:18.739: cannot open display:

> @felixrieseberg/spellchecker@4.0.8 install /var/abs/local/ssb-patchwork/src/patchwork-3.12.0/node_modules/@felixrieseberg/spellchecker > node-gyp rebuild

gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: 404 response downloading https://atom.io/download/electron/v11.15.0/node-v11.15.0-headers.tar.gz gyp ERR! stack at Request.<anonymous> (/usr/lib/node_modules/node-gyp/lib/install.js:204:14) gyp ERR! stack at Request.emit (events.js:198:15) gyp ERR! stack at Request.onRequestResponse (/usr/lib/node_modules/node-gyp/node_modules/request/request.js:1066:10) gyp ERR! stack at ClientRequest.emit (events.js:193:13) gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:560:23) gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:113:17) gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:447:22) gyp ERR! stack at TLSSocket.emit (events.js:193:13) gyp ERR! stack at addChunk (_stream_readable.js:295:12) gyp ERR! stack at readableAddChunk (_stream_readable.js:276:11) gyp ERR! System Linux 5.1.6-arch1-1-ARCH gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /var/abs/local/ssb-patchwork/src/patchwork-3.12.0/node_modules/@felixrieseberg/spellchecker gyp ERR! node -v v11.15.0 gyp ERR! node-gyp -v v4.0.0 gyp ERR! not ok npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @felixrieseberg/spellchecker@4.0.8 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @felixrieseberg/spellchecker@4.0.8 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/compile/.electron-gyp/.npm/_logs/2019-06-04T18_37_30_087Z-debug.log ==> ERROR: A failure occurred in build(). Aborting...

makeworld commented on 2019-03-18 00:34 (UTC)

Error installing with the new update:

In file included from /home/makeworld/.node-gyp/iojs-2.0.18/src/node.h:63,
                 from ../binding.cc:1:
/home/makeworld/.node-gyp/iojs-2.0.18/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/makeworld/.node-gyp/iojs-2.0.18/src/node_object_wrap.h:85:78:   required from here
/home/makeworld/.node-gyp/iojs-2.0.18/deps/v8/include/v8.h:9199:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/makeworld/.node-gyp/iojs-2.0.18/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:66:61:   required from here
/home/makeworld/.node-gyp/iojs-2.0.18/deps/v8/include/v8.h:9199:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [sodium.target.mk:117: Release/obj.target/sodium/binding.o] Error 1
make: Leaving directory '/home/makeworld/.cache/yay/ssb-patchwork/src/patchwork-3.11.5/node_modules/sodium-native/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 5.0.0-arch1-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/makeworld/.cache/yay/ssb-patchwork/src/patchwork-3.11.5/node_modules/sodium-native
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sodium-native@2.2.2 install: `node-gyp-build "node preinstall.js" "node postinstall.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sodium-native@2.2.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/makeworld/.npm/_logs/2019-03-18T00_30_07_658Z-debug.log
==> ERROR: A failure occurred in build().
    Aborting...
Error making: ssb-patchwork

christianbundy commented on 2019-02-13 16:37 (UTC)

Nevermind, it looks like I was using a Node LTS whereas you two were most likely using nodejs latest. I've pushed a fix that just installs for the Electron version, whereas previously we were installing for your current Node version and then rebuilding for the Electron version.