ports/137764: devel/py-setuptools cannot be installed

Anatoly Borodin anatoly.borodin at gmail.com
Sun Aug 16 13:08:33 UTC 2009


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