Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413397 - dev-lang/python-2.7.3 shutil breaks on chflags
Summary: dev-lang/python-2.7.3 shutil breaks on chflags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: http://hg.python.org/cpython/rev/e12e...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-24 17:41 UTC by Fabian Groffen
Modified: 2012-05-11 06:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2012-04-24 17:41:42 UTC
Most likely introduced by http://bugs.python.org/issue8746

% repoman commit -m "Marked ~x{86,64}-macos"

RepoMan scours the neighborhood...
>>> Creating Manifest for /net/ra/export/gentoo/gentoo-x86/media-libs/libjpeg-turbo

Note: use --include-dev (-d) to check dependencies for 'dev' profiles



--- ./ChangeLog
+++ ./ChangeLog
@@ -4,0 +5,4 @@
+  24 Apr 2012; Fabian Groffen <grobian@gentoo.org>
+  libjpeg-turbo-1.2.0-r1.ebuild:
+  Marked ~x{86,64}-macos
+

Traceback (most recent call last):
  File "/Library/Gentoo/usr/bin/repoman", line 2536, in <module>
    pretend=options.pretend)
  File "/Library/Gentoo/usr/lib/portage/pym/repoman/utilities.py", line 857, in UpdateChangeLog
    shutil.move(clnew_path, cl_path)
  File "/Library/Gentoo/usr/lib/portage/pym/portage/__init__.py", line 231, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
  File "/Library/Gentoo/usr/lib/python2.7/shutil.py", line 299, in move
    copy2(src, real_dst)
  File "/Library/Gentoo/usr/lib/python2.7/shutil.py", line 129, in copy2
    copystat(src, dst)
  File "/Library/Gentoo/usr/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 45] Operation not supported: './ChangeLog'


Problem is absent in 2.7.2
Comment 1 Fabian Groffen gentoo-dev 2012-04-24 18:01:20 UTC
Problem reported upstream with minimal testcase.
Comment 2 Fabian Groffen gentoo-dev 2012-04-26 17:55:44 UTC
This can be patched by adding ENOTSUP to Modules/errnomodule.c, and using ENOTSUP instead of EOPNOTSUPP in shutil.py.
Comment 3 Fabian Groffen gentoo-dev 2012-05-11 06:42:55 UTC
@python, could you please include this patch on your next patchbump, iff this is for 2.7.3 (e.g -r2)?