René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75b9e46d-b8a4-afa6-85ab-2dcfcaadb37b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF48:1F2B:155C0D4:1C6E1BA:6B02077A
html-safe-nonce3ea580004bc34c79cf2a5f201c09d0db4374c08cb06f1c644f84d7e060ec637c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjQ4OjFGMkI6MTU1QzBENDoxQzZFMUJBOjZCMDIwNzdBIiwidmlzaXRvcl9pZCI6IjY5NDQ0MTk0NTg4OTkzODAwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3bc6cbf5cf0ad1c35376a5d94b1ba40812fb178f70e14fc27362652e6b0a86f1
hovercard-subject-tagissue:1337907948
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/95952/issue_layout
twitter:imagehttps://opengraph.githubassets.com/12abc4a7e6712c7e08d17f30c7ae52891d85b4f48f8cfb97d545921f6e5f2e71/python/cpython/issues/95952
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/12abc4a7e6712c7e08d17f30c7ae52891d85b4f48f8cfb97d545921f6e5f2e71/python/cpython/issues/95952
og:image:altBug 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametiran
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/95952#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F95952
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F95952
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/95952
Reloadhttps://github.com/python/cpython/issues/95952
Reloadhttps://github.com/python/cpython/issues/95952
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/95952
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/95952
Makefile / configure.ac: realpath is not available on macOShttps://github.com/python/cpython/issues/95952#top
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
OS-wasihttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-wasi%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/tiran
tiranhttps://github.com/tiran
on Aug 13, 2022https://github.com/python/cpython/issues/95952#issue-1337907948
#95828 (comment)https://github.com/python/cpython/pull/95828#issuecomment-1213579582
GH-95952: Require setting HOSTRUNNER when cross compiling for WASI #138203https://github.com/python/cpython/pull/138203
tiranhttps://github.com/tiran
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Aug 13, 2022https://github.com/python/cpython/issues/95952#event-7183023806
ronaldoussorenhttps://github.com/ronaldoussoren
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
on Aug 15, 2022https://github.com/python/cpython/issues/95952#event-7186721955
https://github.com/ronaldoussoren
ronaldoussorenhttps://github.com/ronaldoussoren
on Aug 15, 2022https://github.com/python/cpython/issues/95952#issuecomment-1214712556
iritkatrielhttps://github.com/iritkatriel
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
on Nov 29, 2023https://github.com/python/cpython/issues/95952#event-11099334072
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
on Nov 30, 2023https://github.com/python/cpython/issues/95952#issuecomment-1833605922
@brettcannonhttps://github.com/brettcannon
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Dec 1, 2023https://github.com/python/cpython/issues/95952#issuecomment-1835020444
@brettcannonhttps://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
not plannedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Dec 1, 2023https://github.com/python/cpython/issues/95952#event-11115471157
https://github.com/ronaldoussoren
ronaldoussorenhttps://github.com/ronaldoussoren
on Dec 1, 2023https://github.com/python/cpython/issues/95952#issuecomment-1835678445
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Dec 1, 2023https://github.com/python/cpython/issues/95952#issuecomment-1836904445
@ronaldoussorenhttps://github.com/ronaldoussoren
cpython/configure.achttps://github.com/python/cpython/blob/939fc6d6eab9b7ea8c244d513610dbdd556503a7/configure.ac#L1417-L1420
939fc6dhttps://github.com/python/cpython/commit/939fc6d6eab9b7ea8c244d513610dbdd556503a7
brettcannonhttps://github.com/brettcannon
on Dec 1, 2023https://github.com/python/cpython/issues/95952#event-11127264268
brettcannonhttps://github.com/brettcannon
OS-wasihttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-wasi%22
on Dec 1, 2023https://github.com/python/cpython/issues/95952#event-11127264717
https://github.com/ronaldoussoren
ronaldoussorenhttps://github.com/ronaldoussoren
on Dec 2, 2023https://github.com/python/cpython/issues/95952#issuecomment-1837114609
@ronaldoussorenhttps://github.com/ronaldoussoren
cpython/configure.achttps://github.com/python/cpython/blob/939fc6d6eab9b7ea8c244d513610dbdd556503a7/configure.ac#L1417-L1420
939fc6dhttps://github.com/python/cpython/commit/939fc6d6eab9b7ea8c244d513610dbdd556503a7
https://github.com/ronaldoussoren
ronaldoussorenhttps://github.com/ronaldoussoren
on Dec 27, 2023https://github.com/python/cpython/issues/95952#issuecomment-1870205151
https://codereview.stackexchange.com/questions/242050/realpath-substitute-with-relative-to-and-relative-base-supporthttps://codereview.stackexchange.com/questions/242050/realpath-substitute-with-relative-to-and-relative-base-support
brettcannonhttps://github.com/brettcannon
on Aug 27, 2025https://github.com/python/cpython/issues/95952#event-19375231638
pythonGH-95952: Require setting `HOSTRUNNER` when cross compiling for…https://github.com/brettcannon/cpython/commit/e47712c900ca2190c308b89b8e62dac25ce239ed
pythonGH-95952https://github.com/python/cpython/issues/95952
e47712chttps://github.com/brettcannon/cpython/commit/e47712c900ca2190c308b89b8e62dac25ce239ed
brettcannonhttps://github.com/brettcannon
on Sep 5, 2025https://github.com/python/cpython/issues/95952#event-19537219475
GH-95952: Require setting `HOSTRUNNER` when cross compiling for WASI (#…https://github.com/python/cpython/commit/bde12919522b0c40fd9eaa2b2681695166497aba
GH-95952https://github.com/python/cpython/issues/95952
#…https://github.com/python/cpython/pull/138203
bde1291https://github.com/python/cpython/commit/bde12919522b0c40fd9eaa2b2681695166497aba
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Sep 5, 2025https://github.com/python/cpython/issues/95952#issuecomment-3259955897
brettcannonhttps://github.com/brettcannon
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 5, 2025https://github.com/python/cpython/issues/95952#event-19537226676
lkollarhttps://github.com/lkollar
on Sep 9, 2025https://github.com/python/cpython/issues/95952#event-19598476413
pythonGH-95952: Require setting `HOSTRUNNER` when cross compiling for…https://github.com/lkollar/cpython/commit/e85bc56a00903a8edb896e6868c4f47ef1050b00
pythonGH-95952https://github.com/python/cpython/issues/95952
e85bc56https://github.com/lkollar/cpython/commit/e85bc56a00903a8edb896e6868c4f47ef1050b00
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/95952
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/95952
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
OS-wasihttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-wasi%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.