diff --git a/srcpkgs/yarn-bin/patches/yarn.patch b/srcpkgs/yarn-bin/patches/yarn.patch index 4587c31d859..8733e4bdad4 100644 --- a/srcpkgs/yarn-bin/patches/yarn.patch +++ b/srcpkgs/yarn-bin/patches/yarn.patch @@ -1,11 +1,20 @@ ---- bin/yarn.js.orig 2017-09-14 18:50:29.701379167 -0500 -+++ bin/yarn.js 2017-09-14 17:27:32.749746288 -0500 -@@ -11,7 +11,7 @@ - console.error('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.'); - process.exitCode = 1; +--- bin/yarn.js.orig 2018-09-18 14:33:30.318123244 -0700 ++++ bin/yarn.js 2018-09-18 14:35:10.715515522 -0700 +@@ -12,7 +12,7 @@ + process.exit(1); // eslint-disable-line no-process-exit } else { -- var dirPath = '../lib/'; -+ var dirPath = '/usr/lib/yarn/'; - var v8CompileCachePath = dirPath + 'v8-compile-cache'; - var fs = require('fs'); - // We don't have/need this on legacy builds and dev builds + try { +- require(__dirname + '/../lib/v8-compile-cache.js'); ++ require('/usr/lib/yarn/v8-compile-cache.js'); + } catch (err) { + // We don't have/need this on legacy builds and dev builds + } +@@ -21,7 +21,7 @@ + // `require.main === module` check inside `cli/index.js` will always + // be truthy when built with webpack :( + // `lib/cli` may be `lib/cli/index.js` or `lib/cli.js` depending on the build. +- var cli = require(__dirname + '/../lib/cli'); ++ var cli = require('/usr/lib/yarn/cli'); + if (!cli.autoRun) { + cli.default().catch(function(error) { + console.error(error.stack || error.message || error); diff --git a/srcpkgs/yarn-bin/template b/srcpkgs/yarn-bin/template index dce66f3a959..0cbe8022a73 100644 --- a/srcpkgs/yarn-bin/template +++ b/srcpkgs/yarn-bin/template @@ -1,6 +1,6 @@ # Template file for 'yarn-bin' pkgname=yarn-bin -version=1.9.4 +version=1.10.0 revision=1 depends="virtual?nodejs-runtime" short_desc="Fast, reliable, and secure dependency management - precompiled binaries" @@ -9,7 +9,7 @@ license="2-cause-BSD" homepage="https://yarnpkg.com/" distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz" conflicts="yarn>=0" -checksum=7667eb715077b4bad8e2a832e7084e0e6f1ba54d7280dc573c8f7031a7fb093e +checksum=83277bd505c7f4009c13077266020c97298727de7edf67af5ca66eccae9d4632 do_extract() { tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc}