Comment 3 for bug 236190

Revision history for this message
Zooko Wilcox-O'Hearn (zooko) wrote :

As reported on the setuptools roundup -- http://bugs.python.org/setuptools/issue16 -- if one tries to install pyOpenSSL-0.6.tar.gz using Python's tarfile.py (instead of GNU tar) to unpack the tarball, then you get an exception that ends with this:

"/usr/local/stow/python-release25-maint-2008-05-30/lib/python2.5/tarfile.py",
line 1656, in _extract_member
    self.chmod(tarinfo, targetpath)
  File
"/usr/local/stow/python-release25-maint-2008-05-30/lib/python2.5/tarfile.py",
line 1777, in chmod
    raise ExtractError("could not change mode of %s to mode %o (octal),
exception: %s" % (targetpath, tarinfo.mode, e))
tarfile.ExtractError: could not change mode of
/tmp/easy_install-4yCggq/pyOpenSSL-0.6 to mode 2755 (octal), exception: [Errno
1] Operation not permitted: '/tmp/easy_install-4yCggq/pyOpenSSL-0.6'

Inspection shows that the pyOpenSSL-0.6.tar.gz has the g+s bit set on all of its directories. Unsetting that bit and generating a new tarball makes this problem stop happening. Resetting that bit and regenerating a new tarball makes this problem come back.

Exarkun mentioned on IRC that he wasn't going to generate a new pyOpenSSL-0.6.tar.gz, so I made one for him, attached.

Also attached is the result of find . -type f | sha256sum, which does not differ between this tarball and the original one.