giac-1.7.0-53 compilation fails without micropython
Publié : mer. mars 23, 2022 12:38 am
Le fichier src/icas.cc contient du code qui utilise micropython mais n'est pas proprement protégé. Si giac est configuré sans micropython, la compilation va se planter. Le patch ci dessous fixe le problème
Découvert en mettant à jour pour Gentoo 
Code : Tout sélectionner
diff --git a/src/icas.cc b/src/icas.cc
index 806b3ca..24f784d 100644
--- a/src/icas.cc
+++ b/src/icas.cc
@@ -1810,6 +1810,7 @@ int main(int ARGC, char *ARGV[]){
cerr << "// Setting tex log" << '\n';
show_tex=true;
}
+#ifdef HAVE_LIBMICROPYTHON
if (getenv("GIAC_MICROPY")){
cerr << "Micropython mode\n";
python_compat(4 | python_compat(contextptr),contextptr);
@@ -1821,6 +1822,7 @@ int main(int ARGC, char *ARGV[]){
return 0;
}
}
+#endif
#ifdef HAVE_LIBREADLINE
if (ARGC==1){
int taillemax=1000;
