]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #24481 : enforce sipSetBool definition - ensures GUI compilation
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 1 Jul 2021 14:42:49 +0000 (16:42 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 1 Jul 2021 14:42:49 +0000 (16:42 +0200)
products/patches/sip-5.5.0-sipSetBool.patch [new file with mode: 0644]
products/sip.pyconf

diff --git a/products/patches/sip-5.5.0-sipSetBool.patch b/products/patches/sip-5.5.0-sipSetBool.patch
new file mode 100644 (file)
index 0000000..08dfbee
--- /dev/null
@@ -0,0 +1,30 @@
+diff -Naur sip-5.5.0-PyQt5_sip-12.8.1_ref/sip-5.5.0/sipbuild/module/source/12.7/sipint.h sip-5.5.0-PyQt5_sip-12.8.1_new/sip-5.5.0/sipbuild/module/source/12.7/sipint.h
+--- sip-5.5.0-PyQt5_sip-12.8.1_ref/sip-5.5.0/sipbuild/module/source/12.7/sipint.h      2020-11-23 14:21:33.000000000 +0100
++++ sip-5.5.0-PyQt5_sip-12.8.1_new/sip-5.5.0/sipbuild/module/source/12.7/sipint.h      2021-07-01 15:42:35.397922670 +0200
+@@ -177,9 +177,9 @@
+ void sipOMAddObject(sipObjectMap *om, sipSimpleWrapper *val);
+ int sipOMRemoveObject(sipObjectMap *om, sipSimpleWrapper *val);
+-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
++//#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define sipSetBool(p, v)    (*(_Bool *)(p) = (v))
+-#endif
++//#endif
+ #ifdef __cplusplus
+diff -Naur sip-5.5.0-PyQt5_sip-12.8.1_ref/sip-5.5.0/sipbuild/module/source/12.8/sipint.h sip-5.5.0-PyQt5_sip-12.8.1_new/sip-5.5.0/sipbuild/module/source/12.8/sipint.h
+--- sip-5.5.0-PyQt5_sip-12.8.1_ref/sip-5.5.0/sipbuild/module/source/12.8/sipint.h      2020-11-23 14:21:33.000000000 +0100
++++ sip-5.5.0-PyQt5_sip-12.8.1_new/sip-5.5.0/sipbuild/module/source/12.8/sipint.h      2021-07-01 15:42:19.981784592 +0200
+@@ -177,9 +177,9 @@
+ void sipOMAddObject(sipObjectMap *om, sipSimpleWrapper *val);
+ int sipOMRemoveObject(sipObjectMap *om, sipSimpleWrapper *val);
+-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
++//#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define sipSetBool(p, v)    (*(_Bool *)(p) = (v))
+-#endif
++//#endif
+ #ifdef __cplusplus
index 58c058afa5c915fe0650235291986456464418e8..c489f257fa57b335e90389a0b8d22c6a4fb15d7b 100644 (file)
@@ -4,6 +4,7 @@ default :
     build_source : "script"
     compil_script :  $name + $VARS.scriptExtension
     get_source : "archive"
+    patches : []
     system_info : 
     {
         rpm : []
@@ -29,6 +30,7 @@ version_5_5_0 :
 {
     compil_script :  'sip-5.5.0' + $VARS.scriptExtension
     archive_info : {archive_name : "sip-5.5.0-PyQt5_sip-12.8.1.tar.gz"}
+    patches : ['sip-5.5.0-sipSetBool.patch']
 }
 
 version_4_19_24 :