New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #38611 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

py27-futures @2.1.3_3: installs unreadable egg files

Reported by: md14-macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: phw@…, stromnov@…
Port: py-futures

Description

The py27-futures @2.1.3_3 port installs egg files with mode 600 instead of 644. The problem seems to have been introduced in r104687.

$ port installed py27-futures
The following ports are currently installed:
  py27-futures @2.1.3_3 (active)
$ ls -l /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/futures-2.1.3-py2.7.egg-info
total 40
-rw-------  1 root  wheel  737 Mar 31 12:26 PKG-INFO
-rw-------  1 root  wheel  515 Mar 31 12:26 SOURCES.txt
-rw-------  1 root  wheel    1 Mar 31 12:26 dependency_links.txt
-rw-------  1 root  wheel    1 Apr 28  2012 not-zip-safe
-rw-------  1 root  wheel   19 Mar 31 12:26 top_level.txt

This causes the installation of unrelated ports to fail.

$ sudo port -vs install py27-matplotlib
--->  Computing dependencies for py27-matplotlib.
--->  Fetching distfiles for py27-matplotlib
--->  Verifying checksum(s) for py27-matplotlib
--->  Checksumming matplotlib-1.2.0.tar.gz
--->  Extracting py27-matplotlib
--->  Extracting matplotlib-1.2.0.tar.gz
--->  Applying patches to py27-matplotlib
--->  Applying patch-setupext.py.diff
patching file setupext.py
--->  Applying patch-setup.cfg.diff
patching file setup.cfg
--->  Configuring py27-matplotlib
--->  Building py27-matplotlib
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
basedirlist is: ['/opt/local']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.0
                python: 2.7.3 (default, Mar 23 2013, 12:21:14)  [GCC 4.2.1
                        (Apple Inc. build 5666) (dot 3)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.7.0
             freetype2: 15.0.9

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.5.14
               Tkinter: Tkinter: 81008, Tk: 8.6, Tcl: 8.6
                  Gtk+: gtk+: 2.24.17, glib: 2.36.0, pygtk: 2.24.0,
                        pygobject: 2.28.6
       Mac OS X native: yes
                    Qt: no
                   Qt4: no
                PySide: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              dateutil: 1.5
Traceback (most recent call last):
  File "setup.py", line 204, in <module>
    provide_pytz = check_provide_pytz()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib/py27-matplotlib/work/matplotlib-1.2.0/setupext.py", line 478, in check_provide_pytz
    import pytz
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pytz/__init__.py", line 35, in <module>
    from pkg_resources import resource_stream
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2825, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 710, in subscribe
    callback(dist)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2825, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2257, in activate
    self.insert_on(path)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2364, in insert_on
    self.check_version_conflict()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2403, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2251, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1219, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1211, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1326, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/futures-2.1.3-py2.7.egg-info/top_level.txt'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib/py27-matplotlib/work/matplotlib-1.2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Exit code: 1
Error: org.macports.build for port py27-matplotlib returned: command execution failed
Warning: targets not executed for py27-matplotlib: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port py27-matplotlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib/py27-matplotlib/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-matplotlib failed

If I uninstall py27-futures, the installation of py27-matplotlib succeeds.

Change History

comment:1 Changed 17 months ago by stromnov@…

  • Status changed from new to closed
  • Resolution set to fixed

Thanks!

Fixed in r104690.

Note: See TracTickets for help on using tickets.