[issue1653457] Python misbehaves when installed in / (patch attached)
Chris Webb added the comment: Irit Katriel added the comment: > getpath.c has been rewritten (see Issue45582). reduce is no longer there. Gosh, this is one I originally reported back in the late 1990s and then again mid-2000s! I've carried a patch in my distribution to make python work in /bin and /lib/python for over 25 years - it'll feel like end of an era to finally be able to drop that local patch. Thanks! (Presumably this will land in Python 11 rather than get backported?) Best wishes, Chris. -- ___ Python tracker <https://bugs.python.org/issue1653457> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1653457] Python misbehaves when installed in / (patch attached)
Change by Chris Webb : Removed file: https://bugs.python.org/file17945/paths.patch ___ Python tracker <https://bugs.python.org/issue1653457> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1653457] Python misbehaves when installed in / (patch attached)
Chris Webb added the comment: Fortunately reduce() is static within getpath.c, so it should only be necessary to check the handful of callers in there. I've done this, and am reasonably sure it doesn't break anything. In addition, I've given this patch quite a bit of empirical testing, at least under linux/glibc. This has been a persistent bug in Python since 2004 or earlier, and I've needed the attached fix on our Python builds on all our production servers since then, rebasing for every release from 2.4 to the new 2.7. (Our machines don't have legacy /usr dirs so Python is installed to /bin and /lib.) The exact patch I'm using right now against 2.7 is attached, but it's essentially identical to the one I submitted originally against Python 2.4, and later against Python 2.5. -- keywords: +patch Added file: http://bugs.python.org/file17945/paths.patch ___ Python tracker <http://bugs.python.org/issue1653457> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com