[arch-commits] Commit in stylus/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Jan 3 13:50:35 UTC 2020
Date: Friday, January 3, 2020 @ 13:50:34
Author: felixonmars
Revision: 547158
upgpkg: stylus 0.54.7-2
fix broken permissions
Modified:
stylus/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-03 13:50:33 UTC (rev 547157)
+++ PKGBUILD 2020-01-03 13:50:34 UTC (rev 547158)
@@ -3,7 +3,7 @@
pkgname=stylus
pkgdesc='Robust, expressive, and feature-rich CSS superset'
pkgver=0.54.7
-pkgrel=1
+pkgrel=2
arch=('any')
url='https://github.com/stylus/stylus'
license=('MIT')
@@ -15,6 +15,15 @@
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"
+
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
ln -s "../../../lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
More information about the arch-commits
mailing list