Skip to contentSkip to conversation

uclibc: add patch to unbreak sparc non-threaded builds

PATCH New Gustavo Zacarias 2 participants 4 messages Mar 3, 2015 – Mar 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 uclibc: add patch to unbreak sparc non-threaded builds

SPARC non-threaded builds are broken, add patch for uClibc & uClibc-ng to fix it.

Status: upstream uClibc (so likely -ng will follow suit shortly).

---
 ...-guard-tcb-offsets.h-include-with-RESET_P.patch | 31 ++++++++++++++++++++++
 ...-guard-tcb-offsets.h-include-with-RESET_P.patch | 31 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 package/uclibc/0.9.33.2/0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
 create mode 100644 package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
package/uclibc/0.9.33.2/0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch new file +31 -0
new file mode 100644
index 0000000..a98ee68
@@ -0,0 +1,31 @@
+From 857420a3271dc5bbddbe45a9e9878b9dc88fd143 Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <[email protected]>
+Date: Tue, 3 Mar 2015 14:56:17 -0300
+Subject: [PATCH] sparc/clone.S: guard tcb-offsets.h include with RESET_PID
+
+Status: upstream [uClibc]
+
+Otherwise we have a broken scenario with non-threading builds.
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+---
+ libc/sysdeps/linux/sparc/clone.S | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
+index 8d9da5a..1d0e3e6 100644
+--- a/libc/sysdeps/linux/sparc/clone.S
++++ b/libc/sysdeps/linux/sparc/clone.S
+@@ -22,7 +22,9 @@
+ 
+ #include <asm/errno.h>
+ #include <asm/unistd.h>
++#ifdef RESET_PID
+ #include <tcb-offsets.h>
++#endif
+ #include <sysdep.h>
+ 
+ #define CLONE_VM	0x00000100
+-- 
+2.0.5
+
package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch new file +31 -0
new file mode 100644
index 0000000..a98ee68
@@ -0,0 +1,31 @@
+From 857420a3271dc5bbddbe45a9e9878b9dc88fd143 Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <[email protected]>
+Date: Tue, 3 Mar 2015 14:56:17 -0300
+Subject: [PATCH] sparc/clone.S: guard tcb-offsets.h include with RESET_PID
+
+Status: upstream [uClibc]
+
+Otherwise we have a broken scenario with non-threading builds.
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+---
+ libc/sysdeps/linux/sparc/clone.S | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
+index 8d9da5a..1d0e3e6 100644
+--- a/libc/sysdeps/linux/sparc/clone.S
++++ b/libc/sysdeps/linux/sparc/clone.S
+@@ -22,7 +22,9 @@
+ 
+ #include <asm/errno.h>
+ #include <asm/unistd.h>
++#ifdef RESET_PID
+ #include <tcb-offsets.h>
++#endif
+ #include <sysdep.h>
+ 
+ #define CLONE_VM	0x00000100
+-- 
+2.0.5
+
Signature · 1 line
2.0.5
#1 lore raw

PATCH 2/2 uclibc: add hash for uclibc-ng

---
 package/uclibc/uclibc.hash | 2 ++
 1 file changed, 2 insertions(+)
package/uclibc/uclibc.hash +2 -0
index 0fba41a..ad0ca62 100644
@@ -1,4 +1,6 @@
 # Locally calculated after checking pgp signature (vanilla)
 # Locally calculated (ARC)
+# http://downloads.uclibc-ng.org/releases/1.0.0/uClibc-ng-1.0.0.tar.xz.sha256 (uClibc-ng)
 sha256	62333167b79afb0b25a843513288c67b59547acf653e8fbe62ee64e71ebd1587	uClibc-0.9.33.2.tar.xz
 sha256	0a9085a11615296cfe7783f16ff29073393eb330749947adece0eeddb31705a4	uClibc-arc-2014.08.tar.gz
+sha256	56258bfa62e3a70c5d29480ccd8f8d94fc2740233a493d8c66b6e7a37830b9d1	uClibc-ng-1.0.0.tar.xz
Signature · 1 line
2.0.5
#2 lore raw

PATCH 2/2 uclibc: add hash for uclibc-ng

Dear Gustavo Zacarias,

package/uclibc/uclibc.hash line 6

Quoted 6 lines · Gustavo Zacarias

# Locally calculated after checking pgp signature (vanilla) # Locally calculated (ARC)

package/uclibc/uclibc.hash +2 -0
+# http://downloads.uclibc-ng.org/releases/1.0.0/uClibc-ng-1.0.0.tar.xz.sha256 (uClibc-ng)
 sha256	62333167b79afb0b25a843513288c67b59547acf653e8fbe62ee64e71ebd1587	uClibc-0.9.33.2.tar.xz
 sha256	0a9085a11615296cfe7783f16ff29073393eb330749947adece0eeddb31705a4	uClibc-arc-2014.08.tar.gz
+sha256	56258bfa62e3a70c5d29480ccd8f8d94fc2740233a493d8c66b6e7a37830b9d1	uClibc-ng-1.0.0.tar.xz

I've changed the file to have the comment next to the corresponding line, and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 uclibc: add patch to unbreak sparc non-threaded builds

In reply to Gustavo Zacarias

Dear Gustavo Zacarias,

Quoted 6 lines · Gustavo Zacarias

SPARC non-threaded builds are broken, add patch for uClibc & uClibc-ng to fix it.

Status: upstream uClibc (so likely -ng will follow suit shortly).

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com