New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23653 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

py26-sqlite: wrong test.dir on Intel

Reported by: ryandesign@… Owned by: snc@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: py26-sqlite

Description

I just simplified the way py26-sqlite defines its test.dir in r63629 but I've now discovered it's not actually correct on Intel (at least not on my Mac on Snow Leopard). The port builds the directory name using ${os.arch} (which is "i386" on Intel) but py26-sqlite builds the directory name containing "intel".

--->  Building py26-sqlite
DEBUG: Executing org.macports.build (py26-sqlite)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_python_py26-sqlite/work/pysqlite-2.5.6" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build'
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-2.6
creating build/lib.macosx-10.6-intel-2.6/pysqlite2
--->  Testing py26-sqlite
DEBUG: Executing org.macports.test (py26-sqlite)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_python_py26-sqlite/work/pysqlite-2.5.6/build/lib.macosx-10.6-i386-2.6" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 -c 'from pysqlite2.test import test; test()' test'
sh: line 0: cd: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_python_py26-sqlite/work/pysqlite-2.5.6/build/lib.macosx-10.6-i386-2.6: No such file or directory

Change History

comment:1 Changed 3 years ago by snc@…

  • Status changed from new to assigned

comment:2 Changed 3 years ago by snc@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r63937.

comment:3 in reply to: ↑ description Changed 3 years ago by ryandesign@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

It still doesn't work.

Replying to ryandesign@…:

The port builds the [test.dir] directory name using ${os.arch} (which is "i386" on Intel) but py26-sqlite builds the directory name containing "intel".

With r63937 you're now using ${configure.build_arch} instead of ${os.arch}, so now you're looking for either "x86_64" or "i386" in the directory name, but as I said, the directory name actually contains the string "intel". I'm guessing on ppc64, the directory name doesn't contain "ppc64" either, though I haven't checked this because I don't have a G5.

comment:4 Changed 3 years ago by snc@…

March 5 the version was updated. Did the version update fix this problem for you?

comment:5 Changed 3 years ago by snc@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

The package built lib.macosx-10.6-x86_64-2.6 and 213 tests ran successfully for me. Closing.

Note: See TracTickets for help on using tickets.