This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author trent
Recipients trent
Date 2012-11-08.16:48:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352393326.63.0.0902907389394.issue16442@psf.upfronthosting.co.za>
In-reply-to
Content
Two immediate issues identified whilst trying to build on HP-UX and IRIX:

1.  Our source is wildly inconsistent with regards to using PATH_MAX versus MAXPATHLEN.

2.  The current logic in osdefs.h is insufficient for ensuring one or the other always has a value (complicated by issue 1 above).

Christian alluded to introducing a PY_PATH_MAX define, which I like.  So, my proposal is to fix the logic in osdefs.h so that it works on a wider range of platforms, with the end goal of defining PY_PATH_MAX, then replacing all occurrences of PATH_MAX|MAXPATHLEN in our tree with the new PY_PATH_MAX.

(It's worth mentioning that, technically, we shouldn't be using PATH_MAX or MAXPATHLEN.  We should be using pathconf(..., _PC_PATH_CONF) to determine the maximum length of the underlying filesystem at runtime and dynamically allocating buffers based on that value.

However, that's a huge, non-trivial change.  For another day.)
History
Date User Action Args
2012-11-08 16:48:46trentsetrecipients: + trent
2012-11-08 16:48:46trentsetmessageid: <1352393326.63.0.0902907389394.issue16442@psf.upfronthosting.co.za>
2012-11-08 16:48:46trentlinkissue16442 messages
2012-11-08 16:48:45trentcreate