[arch-commits] Commit in node-gyp/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Sep 2 08:05:18 UTC 2019
Date: Monday, September 2, 2019 @ 08:05:18
Author: felixonmars
Revision: 506795
upgpkg: node-gyp 5.0.2-2
fix file owner (FS#63396)
Modified:
node-gyp/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-02 08:04:28 UTC (rev 506794)
+++ PKGBUILD 2019-09-02 08:05:18 UTC (rev 506795)
@@ -2,7 +2,7 @@
pkgname=node-gyp
pkgver=5.0.2
-pkgrel=1
+pkgrel=2
pkgdesc='Node.js native addon build tool'
arch=('any')
url='https://github.com/nodejs/node-gyp'
@@ -16,9 +16,14 @@
package() {
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
- # Why 777? :/
+ # Non-deterministic race in npm gives 777 permissions to random directories.
+ # See https://github.com/npm/npm/issues/9359 for details.
chmod -R u=rwX,go=rX "$pkgdir"
+ # npm installs package.json owned by build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "$pkgdir"
+
# Experimental dedup
rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/semver
More information about the arch-commits
mailing list