You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# BLD_CONFIG_BUILD_FOLDER_NAME="myapp2"; #if you want it compiling in a diff folder
17
17
# BLD_CONFIG_BUILD_DEBUG=1
@@ -29,6 +29,13 @@ fi
29
29
30
30
if [[ -z$SKIP_STEP||$SKIP_STEP=="our_patch" ]];then
31
31
apply_our_repo_patch;# Applies from patches folder repo_BUILD_NAME.patch to the sources
32
+
P11_FILE="cligen/cligen/code.py"
33
+
if [[ -e"${P11_FILE}" ]];then
34
+
if grep -q "^struct {struct_name} {global_name};""${P11_FILE}";then
35
+
ex sed -i -E 's/^struct \{struct_name\} \{global_name\};/struct {struct_name} {global_name} ;\n#undef write/'"${P11_FILE}"# fix issue where write is refined to _write but then .write on a struct has problems
36
+
echo"Fixed ${P11_FILE} for _write bug"
37
+
fi
38
+
fi
32
39
fi
33
40
34
41
if [[ $BLD_CONFIG_GNU_LIBS_USED-eq"1" ]];then
@@ -72,13 +79,7 @@ fi
72
79
else
73
80
setup_build_env;
74
81
fi
75
-
P11_FILE="src/p11tool-options.c"
76
-
if [[ -e"${P11_FILE}" ]];then
77
-
if grep -Fq " p11tool_options;""${P11_FILE}";then
78
-
sed -i -E 's/ p11tool_options;/ p11tool_options ;\n#undef write/'"${P11_FILE}"# fix issue where write is refined to _write but then .write on a struct has problems
0 commit comments