Opened 4 years ago

Closed 4 years ago

#52687 closed defect (fixed)

py-pycparser: files installed without world-readable permissions, causes import of setuptools to fail

Reported by: ned-deily (Ned Deily) Owned by: stromnov (Andrew Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: py-pycparser

Description

New failures noted trying to update to py*-pycparser @2.16. Note, installing from source to non-standard prefix:

$ sudo port install py35-pycparser
--->  Computing dependencies for py35-pycparser
--->  Fetching distfiles for py35-pycparser
--->  Verifying checksums for py35-pycparser
--->  Extracting py35-pycparser
--->  Configuring py35-pycparser
--->  Building py35-pycparser
--->  Staging py35-pycparser into destroot
--->  Installing py35-pycparser @2.16_0
--->  Activating py35-pycparser @2.16_0
--->  Cleaning py35-pycparser
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.
$ /macports/bin/python3.5
Python 3.5.2 (default, Oct 13 2016, 13:45:55)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/__init__.py", line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
[...]
  File "/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1470, in get_metadata
    value = self._get(self._fn(self.egg_info, name))
  File "/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1579, in _get
    with open(path, 'rb') as stream:
PermissionError: [Errno 13] Permission denied: '/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pycparser-2.16-py3.5.egg-info/PKG-INFO'
>>>
$ ls -l '/macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pycparser-2.16-py3.5.egg-info/PKG-INFO'
-rw-r-----  1 root  wheel  602 Oct 23 18:44 /macports/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pycparser-2.16-py3.5.egg-info/PKG-INFO

Same behavior with py27-pyrcparser

Change History (6)

comment:1 Changed 4 years ago by ned-deily (Ned Deily)

s/pyrcparser/pycparser/

comment:2 Changed 4 years ago by larryv (Lawrence Velázquez)

Cc: stromnov removed
Owner: changed from macports-tickets@… to stromnov
Port: py27-pycparser,py35-pycparserpy27-pycparser py35-pycparser
Status: newassigned
Summary: py*-pyrcparser files installed without world-readable permissions, causes import of setuptools to failpy-pycparser: files installed without world-readable permissions, causes import of setuptools to fail

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Port: py-pycparser added; py27-pycparser py35-pycparser removed

Description mentions py*-.

comment:4 Changed 4 years ago by ned-deily (Ned Deily)

Thanks, r154196 seems to fix things.

comment:5 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

comment:6 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: assignedclosed

closes per commit in comment #3

Note: See TracTickets for help on using tickets.