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

[Minios-devel] [UNIKRAFT/PYTHON3 PATCH v2 02/13] patches: Fix build issues


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 23 Sep 2019 12:47:03 +0300
  • Cc: felipe.huici@xxxxxxxxx, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
  • Delivery-date: Mon, 23 Sep 2019 09:47:38 +0000
  • Ironport-phdr: 9a23:gYbVtBHsKnhNt88l9qijnZ1GYnF86YWxBRYc798ds5kLTJ7ypM+wAkXT6L1XgUPTWs2DsrQY0rGQ6fCrADxIoc7Y9ixbKtoUD15NoP5VtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaz6FYHIksu4yf259YHNbAVUnjq9Zq55IAmroQnLucQanIVvJrwvxhbKrXdEZudbzn5sKV6Pghrw/Mi98IN9/yhKp/4t68tMWrjmcqolSrBVEC4oOH0v6s3xshnDQwqP5n8CXWgTjxFFHQvL4gzkU5noqif1ufZz1yecPc3tULA7Qi+i4LtxSB/pkygIKTg0+3zKh8NqjaJbpBWhpwFjw4PRfYqYOuZycr/bcNgHQ2dKQ8RfWDFbAo6kb4UBEfcPM+hboYf6pVQOowCzCRWwCO711jNFnGP60bE83u88EQ/GxgsgH9cWvXnKq9X1L7sSUeGzzKLVyzvDcutW2Srg44XPbh8hpuqMXa5xccrX00UvEx7Fjk2NqYH+IzyVzf4Bs3CG7+V7T+6vkWknphh3rzOyxckskpHEip8ax1zZ7yl0w4Y4KcemREJlY9OoCpVduzmHO4Z5X88uWWJltSYgxrEYt5O2cjIGxIkoyhLBbfGMbpKG7Qj5VOmLJDd1nHdleLWiiBms6UWg0ej8VtWs0FZNsypFjsHAtnAT2BzX7ciKUuV9/kK71jaO0wDf8P1LIVsumarDNp4u2aQ8loAUsUjbHy/2nlv5jLOOe0k59eWk9v7rb7bmq5OGKYN4lAPzPr4gl8CnBOQ3KAkOX2yV+eSm073j+FX0T6lNjv0tjqnZsZbaKd4fpq6kGw9Vz50u5AqkDzu8yNQYgGIIIEhfeBKAl4TpIU3BIOjkDfejhFShiDJrx/HAPr3gBZXNNWHPn6r/crZj9UFczBE+zdRe55JPFrEBO+j/W0Dvu9zeFBM5NBa0w+n/AtVnyoweQX6PArOeMK7Kv1+H+OYvI+iUZIALojr9K+Ul5//ygn84glIde7em0ocTaH+iBftqOVuWYWf0iNcbDWgKphY+TPDtiFCaTz5TY2y9UL8k6T4hDoKpEJ3DSZ6sgLCbxyi0BIBZZmdHClCRCnrobJmEW+oRZy6IOMBujicEWaK8S485zh6irhX6y700ZtbTrygZs5Pkz5156vPekTk29CdoFIKN3mfLSHt7zU0SQDpj96dkvU17gnOeybUw1/dfDsBS4bVNTx8nHZXHifRnAZboXVSSLZ+yVF+6T4D+UnkKRdUrzopWbg==
  • Ironport-sdr: qJ9/g8Kddd6I+NWGOg5EDV0sheWNf1+tr1IKgw7v8SHjhBzStBfTe3HgFbp/WLLX4aiTb96Zdt LGmuAJjdSXmQ==
  • 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®.