[arch-commits] Commit in pm2/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Oct 16 06:19:04 UTC 2019
Date: Wednesday, October 16, 2019 @ 06:19:02
Author: felixonmars
Revision: 516280
upgpkg: pm2 4.0.0-1
Modified:
pm2/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-16 06:16:52 UTC (rev 516279)
+++ PKGBUILD 2019-10-16 06:19:02 UTC (rev 516280)
@@ -1,7 +1,7 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=pm2
-pkgver=3.5.1
+pkgver=4.0.0
pkgrel=1
pkgdesc='Production process manager for Node.JS applications with a built-in load balancer'
arch=('any')
@@ -13,7 +13,7 @@
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz
pm2.service)
noextract=($pkgname-$pkgver.tgz)
-sha512sums=('a433c17ad6c8e3c243ca7c66b523cd48a44393f2d16e1b07ac9fd64822950f54d43676fa5cd31ee86cceec308d8a3241bdd690faed56c4db9dc6a13195776113'
+sha512sums=('3cb272ddec7da51aed3f6002b3da8ee39306124fff01f60dd608c1be51acef6e41e75a393e44fc6463f460816739b6b7c51cec8085c6e20fc77fa81fced88d49'
'0d80c16d4694511cc19970a3eb4a2e10f706a58c5cdc554809e12a12093a5b29ff6d30027cbe8646f837a42e40f7d9b7fe2853f96a76a38f47ddc14833f141ef')
package() {
@@ -20,9 +20,14 @@
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
install -Dm644 pm2.service "$pkgdir"/usr/lib/systemd/system/pm2.service
- # 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
cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
for dep in semver; do
More information about the arch-commits
mailing list