René's URL Explorer Experiment


Title: Android: ship stdlib grp module (Termux-style getgrent stub) — needed by proot-distro in Flet container apps · Issue #45 · flet-dev/python-build · GitHub

Open Graph Title: Android: ship stdlib grp module (Termux-style getgrent stub) — needed by proot-distro in Flet container apps · Issue #45 · flet-dev/python-build

X Title: Android: ship stdlib grp module (Termux-style getgrent stub) — needed by proot-distro in Flet container apps · Issue #45 · flet-dev/python-build

Description: Request: build grp into the Android CPython (all ABIs, 3.12 + 3.13+), so import grp works in serious_python apps. Context: I maintain a Flet Android app that wraps proot-distro (Linux containers on-device; related package request: flet-d...

Open Graph Description: Request: build grp into the Android CPython (all ABIs, 3.12 + 3.13+), so import grp works in serious_python apps. Context: I maintain a Flet Android app that wraps proot-distro (Linux containers on...

X Description: Request: build grp into the Android CPython (all ABIs, 3.12 + 3.13+), so import grp works in serious_python apps. Context: I maintain a Flet Android app that wraps proot-distro (Linux containers on...

Opengraph URL: https://github.com/flet-dev/python-build/issues/45

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android: ship stdlib grp module (Termux-style getgrent stub) — needed by proot-distro in Flet container apps","articleBody":"\n**Request:** build `grp` into the Android CPython (all ABIs, 3.12 + 3.13+), so `import grp` works in serious_python apps.\n\n**Context:** I maintain a Flet Android app that wraps [proot-distro](https://github.com/termux/proot-distro) (Linux containers on-device; related package request: flet-dev/flet#discussions/6979). `proot-distro` does `import grp` + `import pwd` unconditionally in `proot_distro/helpers/rootfs.py` and calls `pwd.getpwuid(uid).pw_name` / `grp.getgrgid(g).gr_name` when registering Android uid/gid entries into a container's `/etc/passwd`/`group`. On the Flet Android runtime (CPython 3.14) this fails: `ModuleNotFoundError: No module named 'grp'`.\n\n**Why it's missing (verified):** CPython gates the module in `configure.ac`:\n\n```\nPY_STDLIB_MOD([grp], [], [test \"$ac_cv_func_getgrent\" = \"yes\" && { test \"$ac_cv_func_getgrgid\" = \"yes\" || test \"$ac_cv_func_getgrgid_r\" = \"yes\"; }])\n```\n\nBionic only provides `getgrent`/`setgrent`/`endgrent` since **API 26** (`__INTRODUCED_IN(26)` in `grp.h`; `getgrgid_r` has been there since API 24), while `flet-dev/python-build` targets `api_level=24`. On the 3.12 legacy flow the repo additionally forces it off via `android/patches/grp.patch` (`Linux-android) py_cv_module_grp=n/a`, inherited from Chaquopy: \"we can't build the grp module, because getgrent and setgrent aren't available until API level 26\"). On 3.13+ the exclusion happens naturally at the configure gate. `Doc/library/grp.rst` documents \"not Android\"; note `pwd` is *not* Android-excluded and appears to build fine.\n\n**Precedent — Termux ships `grp`:** they hit the identical regression on their 3.12→3.13 upgrade (termux/termux-packages#28684, `ModuleNotFoundError: No module named 'grp'`) and fixed it (PR termux/termux-packages#28768) by forcing `ac_cv_func_getgrent=yes` in `packages/python/build.sh` plus an NDK header patch (`ndk-patches/30/grp.h.patch`) that replaces the API-26 declarations with inline stubs:\n\n```c\nstatic struct group* _Nullable getgrent(void) { return 0; }\nstatic void setgrent(void) {}\nstatic void endgrent(void) {}\n```\n\nResult: real `getgrgid`/`getgrnam` through Bionic (working since API 24), while `getgrall()` returns `[]`. Chaquopy, Kivy's python-for-android, and Kodi instead treat `grp` as unsupported — Termux is the working counterexample.\n\n**Ask:** adopt the Termux approach for the Android target: keep min-API 24, but ship `grp` with a `getgrent`-family fallback (build-time stub + `ac_cv_func_getgrent=yes`, or an equivalent in `Modules/grpmodule.c`) so `getgrgid`/`getgrnam` work and `getgrall()` degrades to `[]` on API 24–25. Ideally also drop/replace `android/patches/grp.patch` on the 3.12 flow accordingly.\n\nI can test a pre-release build on-device immediately (`import grp; grp.getgrgid(os.getgid())` under Android 16, arm64-v8a). Meanwhile my app ships a 20-line `sys.modules` shim for the two calls proot-distro makes, so this is a durability request, not a blocker for me.","author":{"url":"https://github.com/Nwokike","@type":"Person","name":"Nwokike"},"datePublished":"2026-10-16T15:01:00Z","url":"https://github.com/flet-dev/python-build/issues/45"}

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:1dfdff90-eaf6-79c3-e893-9cbe285df4b9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB96:381141:92EE8:CE994:6AFD7A7F
html-safe-nonce730a67a56215dc9e459d558bab4b28322d2765fe174c8a8aa0a422eda513b3fe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjk2OjM4MTE0MTo5MkVFODpDRTk5NDo2QUZEN0E3RiIsInZpc2l0b3JfaWQiOiI0NzE4ODY4MzgwNzkzMDEwODE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3fba00b802b461a7ab916bebdbccf004d354efef68df8758108a9f59992408a2
hovercard-subject-tagissue:5886367225
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/flet-dev/python-build/45/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ca4a2e909d00aeb3977ba10d60825e1e7bda7f71a99df73fd65525f3c8e479be/flet-dev/python-build/issues/45
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ca4a2e909d00aeb3977ba10d60825e1e7bda7f71a99df73fd65525f3c8e479be/flet-dev/python-build/issues/45
og:image:altRequest: build grp into the Android CPython (all ABIs, 3.12 + 3.13+), so import grp works in serious_python apps. Context: I maintain a Flet Android app that wraps proot-distro (Linux containers on...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNwokike
hostnamegithub.com
expected-hostnamegithub.com
None544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e
turbo-cache-controlno-preview
go-importgithub.com/flet-dev/python-build git https://github.com/flet-dev/python-build.git
octolytics-dimension-user_id102273996
octolytics-dimension-user_loginflet-dev
octolytics-dimension-repository_id789833008
octolytics-dimension-repository_nwoflet-dev/python-build
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id789833008
octolytics-dimension-repository_network_root_nwoflet-dev/python-build
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
release71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/flet-dev/python-build/issues/45#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fflet-dev%2Fpython-build%2Fissues%2F45
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%2Fflet-dev%2Fpython-build%2Fissues%2F45
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=flet-dev%2Fpython-build
Reloadhttps://github.com/flet-dev/python-build/issues/45
Reloadhttps://github.com/flet-dev/python-build/issues/45
Reloadhttps://github.com/flet-dev/python-build/issues/45
flet-devhttps://github.com/flet-dev
python-buildhttps://github.com/flet-dev/python-build
Codehttps://github.com/flet-dev/python-build
Issues2 (2)https://github.com/flet-dev/python-build/issues
Pull requestshttps://github.com/flet-dev/python-build/pulls
Actionshttps://github.com/flet-dev/python-build/actions
Projectshttps://github.com/flet-dev/python-build/projects
Security and qualityhttps://github.com/flet-dev/python-build/security
Insightshttps://github.com/flet-dev/python-build/insights
https://github.com/flet-dev/python-build
New issuehttps://github.com/login?return_to=https://github.com/flet-dev/python-build/issues/45
New issuehttps://github.com/login?return_to=https://github.com/flet-dev/python-build/issues/45
Android: ship stdlib grp module (Termux-style getgrent stub) — needed by proot-distro in Flet container appshttps://github.com/flet-dev/python-build/issues/45#top
https://github.com/Nwokike
Nwokikehttps://github.com/Nwokike
on Oct 16, 2026https://github.com/flet-dev/python-build/issues/45#issue-5886367225
proot-distrohttps://github.com/termux/proot-distro
termux/termux-packages#28684https://github.com/termux/termux-packages/issues/28684
termux/termux-packages#28768https://github.com/termux/termux-packages/pull/28768
Nwokikehttps://github.com/Nwokike
on Oct 16, 2026https://github.com/flet-dev/python-build/issues/45#event-33456855765
spike-5: PTY-backed ProotSession (owner's example pattern) + grp rese…https://github.com/Nwokike/proot-distro/commit/f997d32d1e5cc6f1589d2a18a6db627a9b751ae9
f997d32https://github.com/Nwokike/proot-distro/commit/f997d32d1e5cc6f1589d2a18a6db627a9b751ae9
Sign up for freehttps://github.com/signup?return_to=https://github.com/flet-dev/python-build/issues/45
Sign in to commenthttps://github.com/login?return_to=https://github.com/flet-dev/python-build/issues/45
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.