-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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]: Failed to build package 'coreutils' #21113
Comments
For testing purposes, the compiler error could be workaround with adding |
Emmm... I'll investigate it. |
@Biswa96 Using
And
|
The tar package seems to be affected by the same problem. |
@licy183 If it is any helpful, this is the output when setting
|
The similar issue probably affects any program that uses gnulib. I have applied a workaround in gnulib's time.in.h as following. @@ -997,6 +916,9 @@
(timezone_t) NULL stands for UTC. */
typedef struct tm_zone *timezone_t;
+#endif
+
+#if __ANDROID_API__ < 35
/* tzalloc (name)
Returns a time zone object for the given time zone NAME. This object
represents the time zone that other functions would use it the TZ But that workaround need to be done in every package. Also, it needs changes in autotools file to compile the actual function definition in time_rz.c. Another workaround would be to implement the time functions in NDK. The required functions are - tzalloc, tzfree, localtime_rz, mktime_z. |
@TomJo2000 I use GitHub Actions to bulk test building packages |
Maybe we should patching sysroot and drop the declaration of |
Does gnulib's time.in.h need to be patched also after proposed toolchain patch in #21120? |
No. That toolchain patch already hides timezone_t. So, gnulib will use its own stuff. |
Problem description
Since the NDK was bumped to version 27, compiling
coreutils
gives this errorWhat steps will reproduce the bug?
coreutils
should be inPACKAGES
inbuild-bootstraps.sh
:What is the expected behavior?
No response
System information
The text was updated successfully, but these errors were encountered: