[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

Shiz report at bugs.python.org
Sun Jan 19 19:23:41 CET 2014


New submission from Shiz:

As the title states, mkpwent() in pwdmodule.c accesses `pw_gecos`, which is not defined for struct passwd in Bionic, Android's C library.

Attached is a patch that works around the issue by setting the field to None on Android.

----------
components: Cross-Build
files: Python-3.4.0tip-workaround-android-missing-pw_gecos-field.patch
keywords: patch
messages: 208487
nosy: shiz
priority: normal
severity: normal
status: open
title: Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file33550/Python-3.4.0tip-workaround-android-missing-pw_gecos-field.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20306>
_______________________________________


More information about the Python-bugs-list mailing list