python3-pygments: fix world writable files

This commit is contained in:
Danny Rawlins 2020-11-21 12:39:23 +11:00
parent 9507108527
commit 01034c4da1
3 changed files with 13 additions and 10 deletions

View File

@ -5,12 +5,12 @@ drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.7/
drwxr-xr-x root/root usr/lib/python3.7/site-packages/
drwxr-xr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/
-rwxrwxrwx root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/PKG-INFO
-rwxrwxrwx root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/SOURCES.txt
-rwxrwxrwx root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/dependency_links.txt
-rwxrwxrwx root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/entry_points.txt
-rwxrwxrwx root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/not-zip-safe
-rwxrwxrwx root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/top_level.txt
-rwxrwxr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/PKG-INFO
-rwxrwxr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/SOURCES.txt
-rwxrwxr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/dependency_links.txt
-rwxrwxr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/entry_points.txt
-rwxrwxr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/not-zip-safe
-rwxrwxr-x root/root usr/lib/python3.7/site-packages/Pygments-2.7.2-py3.7.egg-info/top_level.txt
drwxr-xr-x root/root usr/lib/python3.7/site-packages/pygments/
-rw-r--r-- root/root usr/lib/python3.7/site-packages/pygments/__init__.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/pygments/__main__.py

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3yaKBhZwJj2I2AgXqajMISE1MtpWN5qzh1352y0GCGfKn2/drL+T4zloWamBgT9KV/Ugvs4RRHmGTQkVPsU4JAI=
SHA256 (Pkgfile) = 9cda8ef0f3d16f6c5c7f31094ebedb27ac173db590da7191c38db54a6cfb9968
SHA256 (.footprint) = 85d12292eb0ed4b7c66d13cc4ea33f1bb4008ca45d0e0e9fa5418fb179bf5769
RWSagIOpLGJF3xY9CIXGpRL/Vr4ForF2EIsjLtt4tKCTIh7weidv599hmyukCtLJZPzQKJvskTdtoOthzcGF+PKXBwdwsN+hIAU=
SHA256 (Pkgfile) = 8b6dee86c5ab1b478ab7cc2baa3cfd21fb6216c054bc2b5eff038917271996b6
SHA256 (.footprint) = 1b8353e150051bed2ddce7dabebc7909a97fae9b8fac62e91f0af3af22d72cfa
SHA256 (Pygments-2.7.2.tar.gz) = 381985fcc551eb9d37c52088a32914e00517e57f4a21609f48141ba08e193fa0

View File

@ -5,7 +5,7 @@
name=python3-pygments
version=2.7.2
release=1
release=2
source=(https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-$version.tar.gz)
build() {
@ -13,4 +13,7 @@ build() {
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
# why setuptools why?
find $PKG/usr/lib/python3.7/site-packages -type f -exec chmod o-w '{}' \+
}