giac-1.7.0-53 compilation fails without micropython

Bugs

Modérateur : xcasadmin

fbissey
Messages : 8
Inscription : sam. juin 24, 2017 9:56 pm

giac-1.7.0-53 compilation fails without micropython

Message par fbissey » 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

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;
Découvert en mettant à jour pour Gentoo 8)

parisse
Messages : 5742
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: giac-1.7.0-53 compilation fails without micropython

Message par parisse » jeu. mars 24, 2022 6:48 am

En effet, c'est corrige pour la prochaine release, merci!

Répondre