ports/137764: devel/py-setuptools cannot be installed
Anatoly Borodin
anatoly.borodin at gmail.com
Sun Aug 16 13:40:09 UTC 2009
The following reply was made to PR ports/137764; it has been noted by GNATS.
From: Anatoly Borodin <anatoly.borodin at gmail.com>
To: bug-followup at freebsd.org
Cc: python at freebsd.org, miwi at freebsd.org
Subject: Re: ports/137764: devel/py-setuptools cannot be installed
Date: Sun, 16 Aug 2009 16:08:11 +0300
I've found the reason: I use ZFS.
The error message is produced by the shutil.copystat function.
#cat /usr/local/lib/python2.6/shutil.py
...
def copystat(src, dst):
"""Copy all stat info (mode bits, atime, mtime, flags) from src to dst"""
st = os.stat(src)
mode = stat.S_IMODE(st.st_mode)
if hasattr(os, 'utime'):
os.utime(dst, (st.st_atime, st.st_mtime))
if hasattr(os, 'chmod'):
os.chmod(dst, mode)
if hasattr(os, 'chflags') and hasattr(st, 'st_flags'):
os.chflags(dst, st.st_flags)
...
FreeBSD has flags, but ZFS where /usr/local resides doesn't support them.
It may be related to one of the recent update to the code ZFS - at
some point mv started to give messages like
# rm -f /var/tmp/t ; touch /tmp/t ; mv /tmp/t /var/tmp
mv: /var/tmp/t: set flags (was: 00000000): Invalid argument
See also http://www.google.com.ua/search?q=zfs+%22set+flags+(was%3A%22+%22Invalid+argument%22
More information about the freebsd-python
mailing list