[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/PYTHON3 PATCH 03/12] patches: Fix build issues


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 13 Sep 2019 15:53:44 +0300
  • Cc: felipe.huici@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
  • Delivery-date: Fri, 13 Sep 2019 12:54:16 +0000
  • Ironport-phdr: 9a23:EOLdkBLIOZBFNzrU49mcpTZWNBhigK39O0sv0rFitYgfKf/xwZ3uMQTl6Ol3ixeRBMOHsqkC07Wd7v2oGTRZp8rY6jZaKN0EfiRGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJ6KevvB4Hdkdm82fys9J3PeQVIgye2ba9vIBmsogjdq8cbjZF+JqszxRfEontFcPlSyW90OF6fhRnx6tqu8JJ57yhcp/ct/NNcXKvneKg1UaZWByk8PWAv483ruxjDTQ+R6XYZT24bjBlGDRXb4R/jRpv+vTf0ueR72CmBIM35Vqs0Vii476dqUxDnliEKPCMk/W7Ni8xwiKVboA+9pxF63oXZbp2ZOOZ4c6jAe94RWGhPUdtLVyFZAo2ycZYBAeQCM+hfrYb9qUADoQeiCQS2GO/i0CNEimPw0KYn0+ohCwbG3Ak4Et8Qt3TUt8n1NKYUUeuoyqfI0C3Db+5L0jr69IfIdQshoe2NXbJ2a8bRzVQvFxvYjliLtYPlJCmZ1vwQs2eA9eZgT+WvhnchpgpsoTav3t8hhpTGi44I0FzJ9iV0zJwrKdGmSkN3e9CpHINNuyyVKod6WMAvTmFytCokxLALt4S3cDUFxZg5wRPUduaJfJKS4h35UeacOTJ4hHV4d72hnxuy6k2gyvHkVsmzzVZKsjJJktnSuXAJ0Bze8taHSv5n8Ueg3TaDzRzc6vpeLUAsiKrUMIQtwqQ3lpYLsETDGDH5mFnugaOLeUgo5/Kk5ufnb7n8uJOQKY15hhvwP6g2n8ywG+U4MgwAX2iB/uS80aXu8lH+QLVRkv02k6/ZvIreJcQGvq65HhRY3Zo46xqlFzemzc8XkWMdLFJCYB6HlZTmO0nSIPDkCveym1GskDZtx/DHOb3hGYzBIWXdn7f/Y7l971VRyA4yzdBE+5JUEasNIf3tVU/3rtDYCQU5MwOsyeb9FNp9zp8eWX6IAqKBPqPdr1uI5uM3I+aSfoMVuCv9K/k56P7vlnI5n0EScrWt3ZQNc3+0BOppI1iBa3r2ntgBCXsKvhY5TOHyll2CVSRcaGuqUK0m4DE0FZimApnCRoy3m7OOxjq0HppXZmBbEV2MCmvod5iZVPsWci2dPtRhniYZVbi5UIAtzwuutAipg4Zge+/V/Cwfrtfv2cZ448XXlAou7npkAsLb1HuCHE9umWZdbDgtwKF56Whg0krLhaN/mOBZE5pX+utUegwhc4bBxapgDIahCUr6Yt6VRQP+EZ2dCjYrQ4dpzg==
  • Ironport-sdr: V6EZfpWPpHXw4Ni3z1xVpec2qLFLi01QIdLZ3zSu1MuNof+F/YmmyG58ABhGtVeE4DnMxJNCAR cd0smvO3zJCg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

From: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>

* Undefine HAVE_FORK and HAVE_EXECV
* Fix cast for pthread_t

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 ...1-Undefine-HAVE_FORK-and-HAVE_EXECVE.patch | 26 ++++++++++++++++
 patches/0002-Add-cast-for-pthread_t.patch     | 30 +++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 patches/0001-Undefine-HAVE_FORK-and-HAVE_EXECVE.patch
 create mode 100644 patches/0002-Add-cast-for-pthread_t.patch

diff --git a/patches/0001-Undefine-HAVE_FORK-and-HAVE_EXECVE.patch 
b/patches/0001-Undefine-HAVE_FORK-and-HAVE_EXECVE.patch
new file mode 100644
index 0000000..84a494f
--- /dev/null
+++ b/patches/0001-Undefine-HAVE_FORK-and-HAVE_EXECVE.patch
@@ -0,0 +1,26 @@
+From 47e57bc46cab3c92f4137bf183534d593ebea211 Mon Sep 17 00:00:00 2001
+From: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+Date: Mon, 2 Sep 2019 04:23:30 +0300
+Subject: [PATCH 1/1] Undefine HAVE_FORK and HAVE_EXECVE
+
+Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+---
+ Modules/posixmodule.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
+index b758e76..aed9e22 100644
+--- a/Modules/posixmodule.c
++++ b/Modules/posixmodule.c
+@@ -175,8 +175,6 @@ corresponding Unix manual entries for more information on 
calls.");
+ #define fsync _commit
+ #else
+ /* Unix functions that the configure script doesn't check for */
+-#define HAVE_EXECV      1
+-#define HAVE_FORK       1
+ #if defined(__USLC__) && defined(__SCO_VERSION__)       /* SCO UDK Compiler */
+ #define HAVE_FORK1      1
+ #endif
+-- 
+2.20.1
+
diff --git a/patches/0002-Add-cast-for-pthread_t.patch 
b/patches/0002-Add-cast-for-pthread_t.patch
new file mode 100644
index 0000000..817ac15
--- /dev/null
+++ b/patches/0002-Add-cast-for-pthread_t.patch
@@ -0,0 +1,30 @@
+From 710f3978a9a10690882f28757d3f4a95c17f4f6a Mon Sep 17 00:00:00 2001
+From: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+Date: Mon, 2 Sep 2019 04:27:46 +0300
+Subject: [PATCH 1/1] Add cast for pthread_t
+
+Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+---
+ Python/thread_pthread.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
+index f79f9b9..cbf114a 100644
+--- a/Python/thread_pthread.h
++++ b/Python/thread_pthread.h
+@@ -258,7 +258,12 @@ PyThread_get_thread_ident(void)
+     if (!initialized)
+         PyThread_init_thread();
+     threadid = pthread_self();
++
++#if SIZEOF_PTHREAD_T <= SIZEOF_LONG
+     return (unsigned long) threadid;
++#else
++    return (unsigned long) *(unsigned long *) &threadid;
++#endif
+ }
+ 
+ void
+-- 
+2.20.1
+
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.