classification
Title: HP-UX libraries not included
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: adiroiban, neologix, python-dev
Priority: normal Keywords: patch

Created on 2012-04-12 02:07 by adiroiban, last changed 2012-04-12 17:58 by neologix. This issue is now closed.

Files
File name Uploaded Description Edit
hpux-libs.diff adiroiban, 2012-04-12 02:07 review
Messages (5)
msg158099 - (view) Author: Adi Roiban (adiroiban) Date: 2012-04-12 02:07
Hi,

I am trying to build Python on HP-UXiv3.

HP-UX also keeps libs in /usr/lib/hpux64 and /usr/lib/hpux32.

I have attached a patch for searching these folders.

----

The patch is against the latest version of cpython.

I have tests the change on Python 2.5.6.

Cheers,
Adi
msg158120 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-04-12 11:28
Hello Adi,

Thanks for your patch.

Just a detail:

"""
         if platform == 'hp-ux11':
             lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32']
"""

Wouldn't it be more robust as:
"""
         if platform.startswith('hp-ux'):
             lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32']
"""

So that it works with older and (potenttially) future HP-UX releases?
msg158121 - (view) Author: Adi Roiban (adiroiban) Date: 2012-04-12 11:41
Hi,

startswith('hp-ux') should also work as in real world it should be synonym with hp-ux11 ... see my reasoning below

I used 'hp-ux11' since this was the system I have access to and can test and I was not brave enought to assume that the patch will work on future or past version.

According to wikipedia HP-UX 11.00 was relesed in 1997... and I see a trend to change the minor version number . Latest is 11.31 released in 2007...

HPUX 10 is from 1995 and I am not sure if Python will work at all on such a system.

As a side node, i think that  HPUX will slowly die and we will not see an HP-UX 12.

Cheers,
Adi
msg158153 - (view) Author: Roundup Robot (python-dev) Date: 2012-04-12 17:13
New changeset 807f331f973d by Charles-François Natali in branch '3.2':
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
http://hg.python.org/cpython/rev/807f331f973d

New changeset 9481e801ae7c by Charles-François Natali in branch 'default':
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
http://hg.python.org/cpython/rev/9481e801ae7c

New changeset cc2e3c6d2669 by Charles-François Natali in branch '2.7':
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
http://hg.python.org/cpython/rev/cc2e3c6d2669
msg158156 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-04-12 17:58
Committed, thanks!
History
Date User Action Args
2012-04-12 17:58:47neologixsetstatus: open -> closed
resolution: fixed
messages: + msg158156

stage: patch review -> resolved
2012-04-12 17:13:50python-devsetnosy: + python-dev
messages: + msg158153
2012-04-12 11:41:59adiroibansetmessages: + msg158121
2012-04-12 11:28:04neologixsetnosy: + neologix

messages: + msg158120
stage: patch review
2012-04-12 02:07:29adiroibancreate