be5invis / Iosevka

Versatile typeface for code, from code.
http://be5invis.github.io/Iosevka
SIL Open Font License 1.1
19.3k stars 577 forks source link

Build fails on Arch Linux during thinoblique: ELIFECYCLE; Composite {user} cannot be resolved: bar,v-bar-natural-slope #722

Closed AndydeCleyre closed 4 years ago

AndydeCleyre commented 4 years ago

Trying to build with custom build plans on Arch Linux fails, as detailed below.


Debug Log ``` 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/usr/bin/node', 1 verbose cli '/bin/npm', 1 verbose cli 'run', 1 verbose cli 'build', 1 verbose cli '--', 1 verbose cli 'ttf::iosevka-term-custom' 1 verbose cli ] 2 info using npm@6.14.8 3 info using node@v15.1.0 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle iosevka@4.0.0-alpha.1~prebuild: iosevka@4.0.0-alpha.1 6 info lifecycle iosevka@4.0.0-alpha.1~build: iosevka@4.0.0-alpha.1 7 verbose lifecycle iosevka@4.0.0-alpha.1~build: unsafe-perm in lifecycle true 8 verbose lifecycle iosevka@4.0.0-alpha.1~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/andy/Code/aur/archbuilder_iosevka/pkgs/ttf-iosevka-term-custom-git/src/Iosevka/node_modules/.bin:/home/andy/.local/share/venvs/467578928fd9abd7b822b64bded36f2c/venv/bin:/home/andy/bin:/home/andy/.local/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/jvm/default/bin 9 verbose lifecycle iosevka@4.0.0-alpha.1~build: CWD: /home/andy/Code/aur/archbuilder_iosevka/pkgs/ttf-iosevka-term-custom-git/src/Iosevka 10 silly lifecycle iosevka@4.0.0-alpha.1~build: Args: [ '-c', 'verda -f verdafile.js "ttf::iosevka-term-custom"' ] 11 silly lifecycle iosevka@4.0.0-alpha.1~build: Returned: code: 1 signal: null 12 info lifecycle iosevka@4.0.0-alpha.1~build: Failed to exec build script 13 verbose stack Error: iosevka@4.0.0-alpha.1 build: `verda -f verdafile.js "ttf::iosevka-term-custom"` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (node:events:327:20) 13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (node:events:327:20) 13 verbose stack at maybeClose (node:internal/child_process:1055:16) 13 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5) 14 verbose pkgid iosevka@4.0.0-alpha.1 15 verbose cwd /home/andy/Code/aur/archbuilder_iosevka/pkgs/ttf-iosevka-term-custom-git/src/Iosevka 16 verbose Linux 5.9.6-zen1-1-zen 17 verbose argv "/usr/bin/node" "/bin/npm" "run" "build" "--" "ttf::iosevka-term-custom" 18 verbose node v15.1.0 19 verbose npm v6.14.8 20 error code ELIFECYCLE 21 error errno 1 22 error iosevka@4.0.0-alpha.1 build: `verda -f verdafile.js "ttf::iosevka-term-custom"` 22 error Exit status 1 23 error Failed at the iosevka@4.0.0-alpha.1 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ] ```
PKGBUILD ```bash # Maintainer: Andy Kluger # Contributor: Markus Weimar _pkgname=ttf-iosevka-term-custom pkgname=${_pkgname}-git pkgver=r2089.115f5b19 pkgrel=1 pkgdesc='A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.' arch=('any') url='https://be5invis.github.io/Iosevka/' license=('custom:OFL') makedepends=('git' 'nodejs>=12.16.0' 'npm' 'ttfautohint') depends=() conflicts=(${_pkgname}) provides=(${_pkgname}) replaces=('ttf-iosevka-termlig-custom-git') source=( 'git+https://github.com/be5invis/Iosevka' 'private-build-plans.toml.example' ) sha256sums=( 'SKIP' '132530ab6290715e1b31b7743c13e8e06af2df189739bf5ef29d3558f615a154' ) pkgver() { cd Iosevka printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { buildplans="$HOME/.config/iosevka/private-build-plans.toml" if [[ -f "$buildplans" ]]; then cp "$buildplans" Iosevka/ else echo ">>> $buildplans not found, using private-build-plans.toml.example" cp private-build-plans.toml.example Iosevka/private-build-plans.toml fi } build() { cd Iosevka npm install npm update npm run build -- ttf::${_pkgname#*-} } package() { install -d "${pkgdir}/usr/share/fonts/TTF" install -m644 Iosevka/dist/*/ttf/*.ttf "${pkgdir}/usr/share/fonts/TTF/" install -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 Iosevka/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/" } ```
be5invis commented 4 years ago

Change

bar = "v-bar-natural-slope"

into

bar = 'natural-slope'

in your configuration.

AndydeCleyre commented 4 years ago

Whoops, thank you!