Opened 13 years ago

Closed 13 years ago

#32643 closed defect (fixed)

py27-hgsubversion installs files with incorrect permissions

Reported by: nonstop.server@… Owned by: titus@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: akitada@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: py27-hgsubversion

Description

An upgrade of port py27-nose failed due to an I/O error on a file from port py27-hgsubversion.

IOError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/top_level.txt'

It seems that some files from port py27-hgsubversion are missing read permission for other.

% ls -ahl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/            
total 48
drwxr-xr-x   7 root  wheel   238B Dec 16 15:02 .
drwxr-xr-x  69 root  wheel   2.3K Dec 16 15:02 ..
-rw-r-----   1 root  wheel   3.6K Dec 16 15:02 PKG-INFO
-rw-r-----   1 root  wheel   5.2K Dec 16 15:02 SOURCES.txt
-rw-r-----   1 root  wheel     1B Dec 16 15:02 dependency_links.txt
-rw-r--r--   1 root  wheel    16B Dec 16 15:02 requires.txt
-rw-r-----   1 root  wheel    13B Dec 16 15:02 top_level.txt

After granting those files read permission for other

% cd /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/
% sudo chmod o+r PKG-INFO SOURCES.txt dependency_links.txt top_level.txt

the upgrade for py27-nose was performed successful.
note: the main.log was no longer available, but the terminal output is attached to the ticket

Attachments (3)

macports_py27-nose_upgrade.log (309.4 KB) - added by nonstop.server@… 13 years ago.
macports_py27-hgsubversion_install.log (182.7 KB) - added by nonstop.server@… 13 years ago.
py27-hgsubversion.Portfile.diff (690 bytes) - added by titus@… 13 years ago.
fix permissions for egg-info

Download all attachments as: .zip

Change History (9)

Changed 13 years ago by nonstop.server@…

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: akitada@… mcalhoun@… added; akitada@… removed
Owner: changed from macports-tickets@… to titus@…
Port: py27-nose removed
Summary: py27-nose @1.1.2_0 Error: Unable to upgrade port: 1py27-hgsubversion installs files with incorrect permissions

comment:2 Changed 13 years ago by titus@…

I don't have a specific idea yet, but on my system it looks like this:

$ ls -ahl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info
-rw-r--r--  1 root  wheel   3,6K 23 Dez 19:29 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info
$ ls -ahl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/
ls: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/: Not a directory

What is port contents py27-hgsubversion saying on your system?

Changed 13 years ago by nonstop.server@…

comment:3 Changed 13 years ago by nonstop.server@…

Replying to titus@…:

What is port contents py27-hgsubversion saying on your system?

The port contains the following files on my system:

% port contents py27-hgsubversion
Port py27-hgsubversion contains:
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/PKG-INFO
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/SOURCES.txt
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/dependency_links.txt
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/requires.txt
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/top_level.txt
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/__version__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/__version__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/editor.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/editor.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/maps.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/maps.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/pushmod.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/pushmod.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/replay.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/replay.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/stupid.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/stupid.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svncommands.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svncommands.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnexternals.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnexternals.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnmeta.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnmeta.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnrepo.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnrepo.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/common.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/common.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/subvertpy_wrapper.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/subvertpy_wrapper.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/svn_swig_wrapper.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/svnwrap/svn_swig_wrapper.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/util.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/util.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/wrappers.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion/wrappers.pyc

I still have the terminal output from the installation of py27-hgsubversion.
I'll attach it to the ticket for your inspection, maybe it will be helpful to you.

Changed 13 years ago by titus@…

fix permissions for egg-info

comment:4 Changed 13 years ago by titus@…

Mind to test the attached patch, please?

comment:5 in reply to:  4 Changed 13 years ago by nonstop.server@…

Replying to titus@…:

Mind to test the attached patch, please?

Thank you, the patch works fine!
After a reinstall of the port with the patch applied, the files are installed with the correct permissions.

% ls -hl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgsubversion-1.3-py2.7.egg-info/
total 48
-rw-r--r--  1 root  wheel   3.6K Dec 27 11:11 PKG-INFO
-rw-r--r--  1 root  wheel   5.2K Dec 27 11:11 SOURCES.txt
-rw-r--r--  1 root  wheel     1B Dec 27 11:11 dependency_links.txt
-rw-r--r--  1 root  wheel    16B Dec 27 11:11 requires.txt
-rw-r--r--  1 root  wheel    13B Dec 27 11:11 top_level.txt

comment:6 Changed 13 years ago by titus@…

Resolution: fixed
Status: newclosed

committed in r88296.

Thanks for testing.

Note: See TracTickets for help on using tickets.