Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: packaging: ac_cv_func_getpw{nam,uid} being set to no while available #15889

Open
xtkoba opened this issue Apr 1, 2023 · 0 comments
Open
Labels
bug report Something is not working properly. packaging Issue related to building packages, not affecting end users directly. untriaged

Comments

@xtkoba
Copy link
Contributor

xtkoba commented Apr 1, 2023

Problem description

Currently Autoconf cache variables ac_cv_func_getpw{nam,uid} are set to no:

export ac_cv_func_getpwnam=no
export ac_cv_func_getpwuid=no

which seemingly contradicts NDK patch for pwd.h that defines getpw{nam,uid}:

+#define getpwnam android_polyfill_getpwnam
+#define getpwuid android_polyfill_getpwuid

Is this intentional?

I noticed this because this affects the build of libcurl (more precisely only curl subpackage) with clang16-porting. The configure script of libcurl tries to check deeper for getpwuid by means of linking against libc without declaration (just like fget{c,s}_unlocked for mutt package: e95d6a8), which succeeds without clang16-porting but fails with it.

What steps will reproduce the bug?

Maybe build some package that depends on ac_cv_func_getpw{nam,uid}.

What is the expected behavior?

Maybe ac_cv_func_getpw{nam,uid} should be set to yes.

System information

Irrelevant.

@xtkoba xtkoba added bug report Something is not working properly. packaging Issue related to building packages, not affecting end users directly. untriaged labels Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly. packaging Issue related to building packages, not affecting end users directly. untriaged
Projects
None yet
Development

No branches or pull requests

1 participant