Skip to content

Commit

Permalink
DWE-3790: Updates for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Flood Ryan A authored and Flood Ryan A committed Oct 12, 2023
1 parent 539553e commit 5f80b0a
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1,213 deletions.
5 changes: 2 additions & 3 deletions Android/build_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import subprocess
from typing import List
import subprocess
import patch

from util import ARCHITECTURES, BASE, SYSROOT, env_vars, ndk_unified_toolchain, parse_args

import patch

class Package:
def __init__(self, target_arch_name: str, android_api_level: int):
self.target_arch_name = target_arch_name
Expand All @@ -35,7 +34,7 @@ def configure(self):
'--disable-shared',
] + getattr(self, 'configure_args', []))

pset = patch.fromfile('Android/patchTrampc.patch')
pset = patch.fromfile('Android/trampc.patch')
pset.apply()

def make(self):
Expand Down
20 changes: 20 additions & 0 deletions Android/grph.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- /android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/grp.h 2023-10-05 20:43:06.000000000 -0500
+++ /android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/grp.h 2023-10-11 15:13:45.525034100 -0500
@@ -52,12 +52,12 @@

/* Note: Android has thousands and thousands of ids to iterate through. */

-#if __ANDROID_API__ >= 26
-struct group* _Nullable getgrent(void) __INTRODUCED_IN(26);
+#if __ANDROID_API__ >= 23
+struct group* _Nullable getgrent(void) __INTRODUCED_IN(23);

-void setgrent(void) __INTRODUCED_IN(26);
-void endgrent(void) __INTRODUCED_IN(26);
-#endif /* __ANDROID_API__ >= 26 */
+void setgrent(void) __INTRODUCED_IN(23);
+void endgrent(void) __INTRODUCED_IN(23);
+#endif /* __ANDROID_API__ >= 23 */


#if __ANDROID_API__ >= 24
Loading

0 comments on commit 5f80b0a

Please sign in to comment.