Package Details: abricotine 0.5.0-2

Git Clone URL: https://aur.archlinux.org/abricotine.git (read-only)
Package Base: abricotine
Description: A markdown editor with inline preview
Upstream URL: http://abricotine.brrd.fr
Licenses: GPL3
Submitter: heddson
Maintainer: heddson
Last Packager: heddson
Votes: 9
Popularity: 0.066760
First Submitted: 2016-02-24 09:47
Last Updated: 2017-07-15 22:23

Latest Comments

heddson commented on 2017-07-15 22:25

Thanks! Added gconf as a dependency.

MatteoCampinoti9 commented on 2017-07-01 16:42

'gconf' should be added as dependency. Didn't have it installed and it outputted "abricotine: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory"

dhead666 commented on 2017-01-22 08:17

@heddson you need to use the assignment operator with --devdir (e.g. --devdir="${srcdir}/devdir" ) in contrast to the --cache switch which requires space between variable to key, but it partially works, only for .electron-gyp while it supposed to put also the headers from.node-gyp there.

I haven't confirmed it with the code but I remember reading in some pr comment that anything that npm doesn't understand it just pass and doesn't parse by itself, so I guess it is why the assignment sign is needed, to follow the variable passing format required by node-gyp (see Command Options in https://github.com/nodejs/node-gyp/blob/master/README.md ).

heddson commented on 2017-01-22 00:58

Yeah, I couldn't get --devdir to work.. but NODE_GYP_BUILD_DIR looks promising!

Updated the PKGBUILD.

dhead666 commented on 2017-01-21 16:54

@heddson use --cache command switch as it's specific npm variable, and doesn't affect/seeping to the built package. $HOME is too generic and might have undesired effect (though probably not but it's not a good packaging practice in my taste)

in theory --devdir flag should set the .npm-gyp folder but it doesn't seem to work correctly.
https://github.com/nodejs/node-gyp/pull/916

another related gh pr that worth keeping an eye on is https://github.com/nodejs/node-gyp/pull/919

heddson commented on 2017-01-20 18:55

dhead666: Thanks for that tip! --cache works great.

I tried to find a good way to remove the other dot-folders (.electron...). The only way I found was setting HOME="${srcdir}/cache" in the PKGBUILD. I suppose that's not very good packaging practice either, but it's effective :) . Removes everything. I acually don't get why makepkg uses the users home-dir..

What do you think would be best, --cache or setting HOME?

dhead666 commented on 2017-01-19 11:44

please add --cache "${srcdir}/npm-cache" flag so as default the package won't let npm to litter $HOME with unnecessary thousand of files.

we can manually set ~/.npmrc but I think it's a bad packaging practice to leave it like that.

p.s. this still leaves ~/{.electron,.electron-gyp,.node-gyp}

heddson commented on 2016-09-18 21:54

gnacho: I updated the .desktop file. Reinstall the pkg and it should work.

z3ntu: I read the comments on the github issue. Stange. Works fine here.. But I'm glad you found a workaround!

gnacho commented on 2016-09-16 15:37

How to use by default to open .md files? Gnome 3.22 doesn't show it in the list of programs... :(

z3ntu commented on 2016-07-08 08:32

python2 is a (build) dependency!

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:449:14)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:353:11
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:16)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)

EDIT: After manually installing python2 (NOT python(3)!) I get the error in a completely clean chroot (where every build should work): http://pastebin.com/4htppbXX
See https://github.com/brrd/Abricotine/issues/63#issuecomment-231308863 for more info.

EDIT 2: I have found a workaround for now! Install https://aur.archlinux.org/packages/nodejs-electron-rebuild/ (or "npm install -g electron-rebuild") and build this!

All comments