[Pkg-dia-team] Bug#504251: Suggested patch isn't applicable to all OSes
jamessan at debian.org
Thu Dec 4 20:23:47 UTC 2008
As I discovered while discussing the Python path patch with Vim's
upstream, the patch I suggested to fix these bugs only works if the
libc follows SUS' definition of how realpath(3) works.
Specifically, it must return NULL when given an empty string for the
path. At least FreeBSD instead returns the current working directory of
the process, which means that removing the empty elements from
sys.path no longer has an effect.
When sending bug reports to your respective upstream, I'd suggest either
adjusting the patch to simply remove the first element of sys.path or
give a garbage path to PySys_SetArgv and explicitly filter that out of
sys.path (as was done by Vim's upstream).
 - http://bugs.debian.org/493937
 - http://www.opengroup.org/onlinepubs/009695399/functions/realpath.html
 - http://www.freebsd.org/cgi/query-pr.cgi?pr=128933
 - http://ftp.vim.org/pub/vim/patches/7.2/7.2.045
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-dia-team/attachments/20081204/8c8badfa/attachment.pgp
More information about the Pkg-dia-team