Ticket #23653 (closed defect: worksforme)
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: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.

