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

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


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 23 Sep 2019 12:58:41 +0300
  • Cc: felipe.huici@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
  • Delivery-date: Mon, 23 Sep 2019 09:59:06 +0000
  • Ironport-phdr: 9a23:UU2CERxEzgIdMsrXCy+O+j09IxM/srCxBDY+r6Qd2ukVIJqq85mqBkHD//Il1AaPAdyAragUwLCO++C4ACpcuMzH6ChDOLV3FDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3OgV6PPn6FZDPhMqrye+y54fTYwJVjzahfL9+Nhq7oRjfu8UMn4dvKak9xgXVrnBVf+ha2X5kKUickhrh+Mu85oJv/zhVt/k868NOTKL2crgiQ7dFFjomKWc15MPqtRnHUwSC42YXX3sVnBRVHQXL9Qn2UZjtvCT0sOp9wzSaMtbtTb8oQzSi7rxkRwHuhSwaKjM26mDXish3jKJGvBKsogF0zoDIbI2JMvd1Y6XQds4YS2VcRMZcTyxPDJ2hYYUBDOQPOuRXr4fmqlcSsRezHxWgCfnzxjNUgHL9wK000/4mEQHDxAEtAdUOsG/IrNX0MqcZTOa7zLTQzTXecvhb3ivy6I/TchA9oPGMW6h8cc7MyUk3CgPIlUmfqZf/MzONy+QCqHKX7/BnVe+2jWMstgJ/oiC3y8sxhYTFm5gZx1PE+Clj3oo5O9+1RFR1bNK8DZdduDyWO5F1T84iWW1kpig3x7MctZKmcyUG1pIqzAPFZfOdaYiH+BfjWf6UITd/mX1qZqqyhw238Ui80u38UdS00EpSoipFjNbMsncN2gTN6siCUPR9/0Oh1SyT2ADI8O1EOV00mrHBJ547xb48jpsTsULdES/qgEj6kaCbelg+9uWr6+nreKvqqoGeOoNuhAzyKqEulda+AeQ8PAgORW+b+eGk2bL/+k35W6lKjvwwkqXDtJDaONwbprOiDgBJyYYv8Q6/Dyq939gCh3kHK0pJeAibgIjxJ1HOPPf4AO+6g1StljdrxvfGPqb4DprQMHfDjqnufbJm5k5YyQoz1sxf54lOBrAOPv3zXFX9tNvCDh82Kwa02froCM1h1oMCXmKCGqGZP73WsV+J/uIgPfOAZI8IuDb8N/cl5uXjjXknllABeammx4AYZGqmEfR7O0+Ze2bjgs8dEWcWuQozVPLqiFmYXjFOf3m9RaQ86SwhCI24DIfPXJuij6ac0ye8H51We3tLCkuQEXf1aoqIQe0DZz6JIsN7jzwETaOuR5U71RGp50fGzO9iL+zV/TZduZ/92dxd4+zIiQp05TFyScOH3DKjVWZxy0gPXCM32uhbvFRgggOI1rNkgvoeEcFL+ttCSUEiKJSa1essWIO6YR7IYtrcEAXued6hGzxkFt8=
  • Ironport-sdr: xCt9zLo4iYk0uCyF5kyQgwIMcrEJ3sTM6CWPbb/SAGF7ON2ldGNySja4A8JN08Xv+1f8co34Np m2tq/FCzfREQ==
  • 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®.