Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638060 - python3 shutil.copytree does not work on musl
Summary: python3 shutil.copytree does not work on musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL: https://bugs.python.org/issue28627
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-18 21:47 UTC by Matthew Thode ( prometheanfire )
Modified: 2021-11-22 12:17 UTC (History)
2 users (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 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-11-18 21:47:49 UTC
python2 works though

looks like a couple of possible fixes though.

https://github.com/asottile/cpython/commit/61095aa54e9e159a6e67da570615dc81d6bb2d6a
https://github.com/asottile/cpython/commit/ad495d0b10255c488a1afc3eb12b0f49b19919fd

and upstr

Reproducible: Always

Steps to Reproduce:
# ls -l symlinks_in_here/
total 0
-rw-r--r-- 1 root root 0 Nov 16 05:41 real_file
lrwxrwxrwx 1 root root 9 Nov 16 05:41 sym_file -> real_file

# python3
Python 3.5.4 (default, Nov  1 2017, 02:35:39)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copytree('symlinks_in_here', '1', symlinks=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/shutil.py", line 359, in copytree
    raise Error(errors)
shutil.Error: [('symlinks_in_here/sym_file', '1/sym_file', "[Errno 95] Not supported: '1/sym_file'")]
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-13 03:58:12 UTC
still broken :(

# python
Python 3.6.5 (default, Oct 22 2018, 02:31:47) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copytree('symlinks_in_here', '1', symlinks=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/shutil.py", line 359, in copytree
    raise Error(errors)
shutil.Error: [('symlinks_in_here/sym_file', '1/sym_file', "[Errno 95] Not supported: '1/sym_file'")]
>>> 


# ls -l symlinks_in_here/
total 0
-rw-r--r-- 1 root root 0 Jun 13 03:56 real_file
lrwxrwxrwx 1 root root 9 Jun 13 03:56 sym_file -> real_file
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-13 03:58:43 UTC
as of py3.6.5
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-06-13 05:05:44 UTC
https://bugs.python.org/issue34652 looks like the updated bug, says solved, maybe a newer version of python is needed?

confirmed

FIXED in 3.6.8 and 3.7.3 and 2.7.16
BROKEN in 3.5.7

so, when stable it's fixed, but not stable yet