Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2009 16:08:11 +0300
From:      Anatoly Borodin <anatoly.borodin@gmail.com>
To:        bug-followup@freebsd.org
Cc:        python@freebsd.org, miwi@freebsd.org
Subject:   Re: ports/137764: devel/py-setuptools cannot be installed
Message-ID:  <e1e1b0290908160608r7e6db6b0o46439145e8231104@mail.gmail.com>
In-Reply-To: <200908141345.n7EDj3m0050920@freefall.freebsd.org>
References:  <200908141345.n7EDj3m0050920@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e1e1b0290908160608r7e6db6b0o46439145e8231104>