Title: Makefile / configure.ac: realpath is not available on macOS · Issue #95952 · python/cpython · GitHub
Open Graph Title: Makefile / configure.ac: realpath is not available on macOS · Issue #95952 · python/cpython
X Title: Makefile / configure.ac: realpath is not available on macOS · Issue #95952 · python/cpython
Description: Bug report Makefile.pre.in and configure.ac are using the realpath command for some targets. For example WASI HOSTRUNNER uses realpath --relative-to to get the working directory relative to the srcdir root directory. macOS seems to lack ...
Open Graph Description: Bug report Makefile.pre.in and configure.ac are using the realpath command for some targets. For example WASI HOSTRUNNER uses realpath --relative-to to get the working directory relative to the src...
X Description: Bug report Makefile.pre.in and configure.ac are using the realpath command for some targets. For example WASI HOSTRUNNER uses realpath --relative-to to get the working directory relative to the src...
Opengraph URL: https://github.com/python/cpython/issues/95952
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Makefile / configure.ac: realpath is not available on macOS","articleBody":"# Bug report\r\n\r\n`Makefile.pre.in` and `configure.ac` are using the `realpath` command for some targets. For example WASI `HOSTRUNNER` uses `realpath --relative-to` to get the working directory relative to the srcdir root directory. macOS seems to lack realpath, breaking WASI tests, see https://github.com/python/cpython/pull/95828#issuecomment-1213579582\r\n\r\nFor WASI HOSTRUNNER we need to replace realpath somehow. Or find a different approach to fix testing with OOT builds. The HOSTRUNNER for WASI is complicated because we have to make `srcdir` available to WASI runtime environment. `--mapdir /::$(srcdir)` maps the srcdir to root `/` inside the runtime environment. wasmtime sets cwd to `/`, so our logic to find `pybuilddir.txt` does not work. That's why the HOSTRUNNER sets `--env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib`, which resolves to `--env PYTHONPATH=/builddir/wasi/build/lib.wasi-wasm32-3.12:/Lib` on my system. The prefix depends on the OOT builddir. The suffix is read from pybuilddir.txt, which is generated at the end of the build process.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-138203\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/tiran","@type":"Person","name":"tiran"},"datePublished":"2022-08-13T08:58:07Z","url":"https://github.com/python/cpython/issues/95952"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75b9e46d-b8a4-afa6-85ab-2dcfcaadb37b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF48:1F2B:155C0D4:1C6E1BA:6B02077A |
| html-safe-nonce | 3ea580004bc34c79cf2a5f201c09d0db4374c08cb06f1c644f84d7e060ec637c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjQ4OjFGMkI6MTU1QzBENDoxQzZFMUJBOjZCMDIwNzdBIiwidmlzaXRvcl9pZCI6IjY5NDQ0MTk0NTg4OTkzODAwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3bc6cbf5cf0ad1c35376a5d94b1ba40812fb178f70e14fc27362652e6b0a86f1 |
| hovercard-subject-tag | issue:1337907948 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/95952/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12abc4a7e6712c7e08d17f30c7ae52891d85b4f48f8cfb97d545921f6e5f2e71/python/cpython/issues/95952 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12abc4a7e6712c7e08d17f30c7ae52891d85b4f48f8cfb97d545921f6e5f2e71/python/cpython/issues/95952 |
| og:image:alt | Bug report Makefile.pre.in and configure.ac are using the realpath command for some targets. For example WASI HOSTRUNNER uses realpath --relative-to to get the working directory relative to the src... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tiran |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width