Title: cross-build for android, alway says git tag is dirty · Issue #139256 · python/cpython · GitHub
Open Graph Title: cross-build for android, alway says git tag is dirty · Issue #139256 · python/cpython
X Title: cross-build for android, alway says git tag is dirty · Issue #139256 · python/cpython
Description: Bug report Bug description: Follow cpython/Android/README.md to cross-build for android python Android/android.py configure-build && \ python Android/android.py make-build && \ python Android/android.py configure-host aarch64-linux-andro...
Open Graph Description: Bug report Bug description: Follow cpython/Android/README.md to cross-build for android python Android/android.py configure-build && \ python Android/android.py make-build && \ python Android/andro...
X Description: Bug report Bug description: Follow cpython/Android/README.md to cross-build for android python Android/android.py configure-build && \ python Android/android.py make-build && \ pyth...
Opengraph URL: https://github.com/python/cpython/issues/139256
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cross-build for android, alway says git tag is dirty","articleBody":"# Bug report\n\n### Bug description:\n\nFollow `cpython/Android/README.md` to cross-build for android\n```shell\n python Android/android.py configure-build && \\\n python Android/android.py make-build && \\\n python Android/android.py configure-host aarch64-linux-android && \\\n python Android/android.py make-host aarch64-linux-android\n```\nAnd the sys._git show dirty.\n```\n>>> import sys\n>>> sys._git\n('CPython', 'heads/3.13-dirty', '5775c00')\n>>>\n```\nPlease notice the `dirty`.\n\nAnd the reason is maybe the git command to calc the tag, in cross-build direcotry it's always dirty even though the work directory is clean.\n\n```\n➜ aarch64-linux-android git:(3.13) pwd\n/home/foo/source/cpython/cross-build/aarch64-linux-android\n➜ aarch64-linux-android git:(3.13) git --git-dir ../.././.git describe --all --always --dirty\nheads/3.13-dirty\n➜ aarch64-linux-android git:(3.13) cd ../..\n➜ cpython git:(3.13) git --git-dir ./.git describe --all --always --dirty\nheads/3.13\n```\n\nWhich is called by `cpython/cross-build/aarch64-linux-android/Makefile`\n```\nModules/getbuildinfo.o: $(PARSER_OBJS) \\\n $(OBJECT_OBJS) \\\n $(PYTHON_OBJS) \\\n $(MODULE_OBJS) \\\n $(MODOBJS) \\\n $(DTRACE_OBJS) \\\n $(srcdir)/Modules/getbuildinfo.c\n $(CC) -c $(PY_CORE_CFLAGS) \\\n -DGITVERSION=\"\\\"`LC_ALL=C $(GITVERSION)`\\\"\" \\\n -DGITTAG=\"\\\"`LC_ALL=C $(GITTAG)`\\\"\" \\\n -DGITBRANCH=\"\\\"`LC_ALL=C $(GITBRANCH)`\\\"\" \\\n -o $@ $(srcdir)/Modules/getbuildinfo.c\n\nGITTAG= git --git-dir $(srcdir)/.git describe --all --always --dirty\nsrcdir= ../..\n```\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/huhuang03","@type":"Person","name":"huhuang03"},"datePublished":"2025-09-23T06:12:16Z","url":"https://github.com/python/cpython/issues/139256"}
| 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:41b19905-1f62-181c-7b21-0060d81e8517 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B974:119A4:140774F:1A955E3:6AFEAEC1 |
| html-safe-nonce | 94842e0a9713d93dc396ff950d87d3154bf5d38ebe579953054f0d2313148490 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTc0OjExOUE0OjE0MDc3NEY6MUE5NTVFMzo2QUZFQUVDMSIsInZpc2l0b3JfaWQiOiIxMzc5MTI1NDg0MjU5MDM4MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bca482c50724cbb5319aa067712aeb18e5b37742efe3bf3f8f1044153d048023 |
| hovercard-subject-tag | issue:3443845050 |
| 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/139256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac4b5729dc421ff5b3dbfa2b232fd20e1f7e24b6f1eaf94316eed0005b714eeb/python/cpython/issues/139256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac4b5729dc421ff5b3dbfa2b232fd20e1f7e24b6f1eaf94316eed0005b714eeb/python/cpython/issues/139256 |
| og:image:alt | Bug report Bug description: Follow cpython/Android/README.md to cross-build for android python Android/android.py configure-build && \ python Android/android.py make-build && \ python Android/andro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | huhuang03 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e |
| 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 | 3f25273206cd841171bca0002261ae4c9757d934 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width