[arch-commits] Commit in gulp/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jul 31 19:23:07 UTC 2020


    Date: Friday, July 31, 2020 @ 19:23:07
  Author: felixonmars
Revision: 666348

upgpkg: gulp 4.0.2-3: fix npm brokenness (FS#67438)

Modified:
  gulp/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-31 19:22:41 UTC (rev 666347)
+++ PKGBUILD	2020-07-31 19:23:07 UTC (rev 666348)
@@ -3,7 +3,7 @@
 
 pkgname=gulp
 pkgver=4.0.2
-pkgrel=2
+pkgrel=3
 pkgdesc="The streaming build system"
 arch=('any')
 url="https://gulpjs.com/"
@@ -20,9 +20,14 @@
   mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
   ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
 
-  # Fix permissions
-  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+  # 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
   cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
   for dep in semver; do


More information about the arch-commits mailing list