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

Felix Yan felixonmars at archlinux.org
Mon Sep 2 08:06:06 UTC 2019


    Date: Monday, September 2, 2019 @ 08:06:05
  Author: felixonmars
Revision: 506799

upgpkg: semver 6.3.0-2

fix file owner (FS#63396)

Modified:
  semver/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-02 08:05:28 UTC (rev 506798)
+++ PKGBUILD	2019-09-02 08:06:05 UTC (rev 506799)
@@ -2,7 +2,7 @@
 
 pkgname=semver
 pkgver=6.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc='The semantic version parser used by npm.'
 arch=('any')
 url='https://github.com/npm/node-semver'
@@ -16,6 +16,14 @@
 package() {
   npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
 
+  # 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"
+
   install -d "$pkgdir"/usr/share/licenses/$pkgname
   ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }


More information about the arch-commits mailing list