Opened 11 years ago

Closed 6 years ago

#41546 closed defect (fixed)

py33-psycopg2 +universal isn't universal

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.2.99
Keywords: Cc:
Port: py-psycopg2

Description

py32-psycopg2 and py33-psycopg2 installed with the universal variant don't actually install universal software. The other subports do. Not sure if this is a bug in this port, the python portgroup, or the python ports.

$ port -v installed subportof:py-psycopg2
The following ports are currently installed:
  py25-psycopg2 @2.5.1_0+postgresql93+universal (active) platform='darwin 13' archs='i386 x86_64'
  py26-psycopg2 @2.5.1_0+postgresql93+universal (active) platform='darwin 13' archs='i386 x86_64'
  py27-psycopg2 @2.5.1_0+postgresql93+universal (active) platform='darwin 13' archs='i386 x86_64'
  py31-psycopg2 @2.5.1_0+postgresql93+universal (active) platform='darwin 13' archs='i386 x86_64'
  py32-psycopg2 @2.5.1_0+postgresql93+universal (active) platform='darwin 13' archs='i386 x86_64'
  py33-psycopg2 @2.5.1_0+postgresql93+universal (active) platform='darwin 13' archs='i386 x86_64'
$ port contents subportof:py-psycopg2 | grep '\.so$' | xargs lipo -info
Architectures in the fat file: /opt/local/lib/python2.5/site-packages/psycopg2/_psycopg.so are: x86_64 i386 
Architectures in the fat file: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/psycopg2/_psycopg.so are: x86_64 i386 
Architectures in the fat file: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so are: x86_64 i386 
Architectures in the fat file: /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/psycopg2/_psycopg.so are: x86_64 i386 
Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/psycopg2/_psycopg.so is architecture: x86_64
Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/psycopg2/_psycopg.so is architecture: x86_64
$

Attachments (1)

universal_destroot.log (83.5 KB) - added by nerdling (Jeremy Lavergne) 11 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by nerdling (Jeremy Lavergne)

Status: newassigned

comment:2 Changed 11 years ago by nerdling (Jeremy Lavergne)

During destroot an architecture is lost:

Architectures in the fat file: work/psycopg2-2.5.1/build/lib.macosx-10.9-intel-3.3/psycopg2/_psycopg.so are: x86_64 i386 
Non-fat file: work/psycopg2-2.5.1/build/lib.macosx-10.9-x86_64-3.3/psycopg2/_psycopg.so is architecture: x86_64

comment:3 Changed 11 years ago by nerdling (Jeremy Lavergne)

Specifically, during destroot I only see x86_64 folders in commands being run and nothing from intel folders. See universal_destroot.log.

Changed 11 years ago by nerdling (Jeremy Lavergne)

Attachment: universal_destroot.log added

comment:4 Changed 6 years ago by nerdling (Jeremy Lavergne)

It appears that python module determines how it wants to build based on the Python that's being used. Since that's the case, we're likely stuck in a non-universal situation.

comment:5 Changed 6 years ago by nerdling (Jeremy Lavergne)

Status: assignedaccepted

comment:6 Changed 6 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: acceptedclosed

In af00890c927633f639ae3e4e1f8fb40468cca725/macports-ports (master):

py-psycopg2:

  • disable universal variant, closes #41546
  • update postgres variants
Note: See TracTickets for help on using tickets.