Package Details: abricotine 0.5.0-1

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: 8
Popularity: 1.399486
First Submitted: 2016-02-24 09:47
Last Updated: 2017-03-15 20:40

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

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!

heddson commented on 2016-07-02 23:34

JohnRobson: Sorry I can't reproduce your issue. I'm running npm v3.10.3 and Linux 4.6.2-1-ARCH, but don't know if that makes any difference..

Abricotine just updated to 0.3.3, maybe that works for you.

JohnRobson commented on 2016-07-02 12:06

npm ERR! Linux 4.6.3-1-ARCH
npm ERR! argv "/usr/bin/node" "/sbin/npm" "install"
npm ERR! node v6.2.2
npm ERR! npm v3.10.2
npm ERR! code ELIFECYCLE

npm ERR! nslog@3.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nslog@3.0.0 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 nslog 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 nslog
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nslog
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/yaourt-tmp-us/aur-abricotine/src/Abricotine-0.3.2/npm-debug.log
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build abricotine.

All comments