* [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members
@ 2015-01-30 14:33 Vicente Olivert Riera
2015-01-30 14:33 ` [Buildroot] [PATCH 2/2] strace: Enable for MIPS platforms with uClibc Vicente Olivert Riera
2015-02-01 22:23 ` [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-01-30 14:33 UTC (permalink / raw)
To: buildroot
Backport an upstream patch to fix a compilation problem of strace-4.9+
on MIPS platforms with uClibc.
Upstream commit:
http://git.uclibc.org/uClibc/commit/?id=a1b88fe87a9d2be5696247d266f5c4fd20f000bb
Fixes:
http://autobuild.buildroot.net/results/e8f/e8f4965b27c9dcc58d6ec77cdc48b83c218c5bec/
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
.../0066-mips-rename-siginfo-_timer-members.patch | 157 ++++++++++++++++++++
1 files changed, 157 insertions(+), 0 deletions(-)
create mode 100644 package/uclibc/0.9.33.2/0066-mips-rename-siginfo-_timer-members.patch
diff --git a/package/uclibc/0.9.33.2/0066-mips-rename-siginfo-_timer-members.patch b/package/uclibc/0.9.33.2/0066-mips-rename-siginfo-_timer-members.patch
new file mode 100644
index 0000000..8ab7615
--- /dev/null
+++ b/package/uclibc/0.9.33.2/0066-mips-rename-siginfo-_timer-members.patch
@@ -0,0 +1,157 @@
+mips: rename siginfo _timer members
+
+Backport an upstream patch to fix a compilation problem of strace-4.9+
+on MIPS platforms with uClibc.
+
+Upstream commit:
+ http://git.uclibc.org/uClibc/commit/?id=a1b88fe87a9d2be5696247d266f5c4fd20f000bb
+
+Fixes:
+ http://autobuild.buildroot.net/results/e8f/e8f4965b27c9dcc58d6ec77cdc48b83c218c5bec/
+
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+
+From a1b88fe87a9d2be5696247d266f5c4fd20f000bb Mon Sep 17 00:00:00 2001
+From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+Date: Wed, 3 Dec 2014 17:43:25 +0100
+Subject: [PATCH] mips: rename siginfo _timer members
+
+Rename _timer[12] to si_tid and si_overrun to fix compilation of
+strace-4.9+
+
+Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+---
+ libc/sysdeps/linux/mips/bits/siginfo.h | 51 ++++++++++++++++++++-----------
+ 1 files changed, 33 insertions(+), 18 deletions(-)
+
+diff --git a/libc/sysdeps/linux/mips/bits/siginfo.h b/libc/sysdeps/linux/mips/bits/siginfo.h
+index a6e4135..5199d4d 100644
+--- a/libc/sysdeps/linux/mips/bits/siginfo.h
++++ b/libc/sysdeps/linux/mips/bits/siginfo.h
+@@ -69,6 +69,22 @@ typedef struct siginfo
+ __uid_t si_uid; /* Real user ID of sending process. */
+ } _kill;
+
++ /* POSIX.1b timers. */
++ struct
++ {
++ int si_tid; /* Timer ID. */
++ int si_overrun; /* Overrun count. */
++ sigval_t si_sigval; /* Signal value. */
++ } _timer;
++
++ /* POSIX.1b signals. */
++ struct
++ {
++ __pid_t si_pid; /* Sending process ID. */
++ __uid_t si_uid; /* Real user ID of sending process. */
++ sigval_t si_sigval; /* Signal value. */
++ } _rt;
++
+ /* SIGCHLD. */
+ struct
+ {
+@@ -83,29 +99,15 @@ typedef struct siginfo
+ struct
+ {
+ void *si_addr; /* Faulting insn/memory ref. */
++ short int si_addr_lsb; /* Valid LSB of the reported address. */
+ } _sigfault;
+
+ /* SIGPOLL. */
+ struct
+ {
+- int si_band; /* Band event for SIGPOLL. */
++ long int si_band; /* Band event for SIGPOLL. */
+ int si_fd;
+ } _sigpoll;
+-
+- /* POSIX.1b timers. */
+- struct
+- {
+- unsigned int _timer1;
+- unsigned int _timer2;
+- } _timer;
+-
+- /* POSIX.1b signals. */
+- struct
+- {
+- __pid_t si_pid; /* Sending process ID. */
+- __uid_t si_uid; /* Real user ID of sending process. */
+- sigval_t si_sigval; /* Signal value. */
+- } _rt;
+ } _sifields;
+ } siginfo_t;
+
+@@ -113,6 +115,8 @@ typedef struct siginfo
+ /* X/Open requires some more fields with fixed names. */
+ # define si_pid _sifields._kill.si_pid
+ # define si_uid _sifields._kill.si_uid
++# define si_timerid _sifields._timer.si_tid
++# define si_overrun _sifields._timer.si_overrun
+ # define si_status _sifields._sigchld.si_status
+ # define si_utime _sifields._sigchld.si_utime
+ # define si_stime _sifields._sigchld.si_stime
+@@ -120,6 +124,7 @@ typedef struct siginfo
+ # define si_int _sifields._rt.si_sigval.sival_int
+ # define si_ptr _sifields._rt.si_sigval.sival_ptr
+ # define si_addr _sifields._sigfault.si_addr
++# define si_addr_lsb _sifields._sigfault.si_addr_lsb
+ # define si_band _sifields._sigpoll.si_band
+ # define si_fd _sifields._sigpoll.si_fd
+
+@@ -142,13 +147,14 @@ enum
+ # define SI_ASYNCIO SI_ASYNCIO
+ SI_QUEUE, /* Sent by sigqueue. */
+ # define SI_QUEUE SI_QUEUE
+- SI_USER, /* Sent by kill, sigsend, raise. */
++ SI_USER, /* Sent by kill, sigsend. */
+ # define SI_USER SI_USER
+ SI_KERNEL = 0x80 /* Send by kernel. */
+ #define SI_KERNEL SI_KERNEL
+ };
+
+
++# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
+ /* `si_code' values for SIGILL signal. */
+ enum
+ {
+@@ -207,10 +213,16 @@ enum
+ # define BUS_ADRALN BUS_ADRALN
+ BUS_ADRERR, /* Non-existant physical address. */
+ # define BUS_ADRERR BUS_ADRERR
+- BUS_OBJERR /* Object specific hardware error. */
++ BUS_OBJERR, /* Object specific hardware error. */
+ # define BUS_OBJERR BUS_OBJERR
++ BUS_MCEERR_AR, /* Hardware memory error: action required. */
++# define BUS_MCEERR_AR BUS_MCEERR_AR
++ BUS_MCEERR_AO /* Hardware memory error: action optional. */
++# define BUS_MCEERR_AO BUS_MCEERR_AO
+ };
++# endif
+
++# ifdef __USE_XOPEN_EXTENDED
+ /* `si_code' values for SIGTRAP signal. */
+ enum
+ {
+@@ -219,7 +231,9 @@ enum
+ TRAP_TRACE /* Process trace trap. */
+ # define TRAP_TRACE TRAP_TRACE
+ };
++# endif
+
++# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
+ /* `si_code' values for SIGCHLD signal. */
+ enum
+ {
+@@ -253,6 +267,7 @@ enum
+ POLL_HUP /* Device disconnected. */
+ # define POLL_HUP POLL_HUP
+ };
++# endif
+
+ # undef __need_siginfo_t
+ #endif /* !have siginfo_t && (have _SIGNAL_H || need siginfo_t). */
+--
+1.7.1
+
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] strace: Enable for MIPS platforms with uClibc
2015-01-30 14:33 [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Vicente Olivert Riera
@ 2015-01-30 14:33 ` Vicente Olivert Riera
2015-02-01 22:23 ` [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-01-30 14:33 UTC (permalink / raw)
To: buildroot
Enable strace for MIPS platforms with uClibc again since this C library
is now fixed.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
package/strace/Config.in | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/package/strace/Config.in b/package/strace/Config.in
index 07667ed..ad8d308 100644
--- a/package/strace/Config.in
+++ b/package/strace/Config.in
@@ -1,8 +1,6 @@
config BR2_PACKAGE_STRACE
bool "strace"
depends on !BR2_nios2
- depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) \
- && BR2_TOOLCHAIN_USES_UCLIBC)
depends on BR2_LARGEFILE
help
A useful diagnostic, instructional, and debugging tool.
@@ -13,7 +11,3 @@ config BR2_PACKAGE_STRACE
comment "strace needs a toolchain w/ largefile"
depends on !BR2_LARGEFILE
-
-comment "strace is not supported on MIPS using a uClibc toolchain"
- depends on (BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && \
- BR2_TOOLCHAIN_USES_UCLIBC
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members
2015-01-30 14:33 [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Vicente Olivert Riera
2015-01-30 14:33 ` [Buildroot] [PATCH 2/2] strace: Enable for MIPS platforms with uClibc Vicente Olivert Riera
@ 2015-02-01 22:23 ` Thomas Petazzoni
2015-02-02 8:23 ` Vicente Olivert Riera
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-02-01 22:23 UTC (permalink / raw)
To: buildroot
Dear Vicente Olivert Riera,
On Fri, 30 Jan 2015 14:33:52 +0000, Vicente Olivert Riera wrote:
> Backport an upstream patch to fix a compilation problem of strace-4.9+
> on MIPS platforms with uClibc.
>
> Upstream commit:
> http://git.uclibc.org/uClibc/commit/?id=a1b88fe87a9d2be5696247d266f5c4fd20f000bb
>
> Fixes:
> http://autobuild.buildroot.net/results/e8f/e8f4965b27c9dcc58d6ec77cdc48b83c218c5bec/
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Both patches applied.
Can you get ready to submit autobuild-run patches? strace will start
failing on MIPS/uClibc external toolchains, since those don't have the
necessary uClibc patch.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members
2015-02-01 22:23 ` [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Thomas Petazzoni
@ 2015-02-02 8:23 ` Vicente Olivert Riera
0 siblings, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-02-02 8:23 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni,
On 01/02/15 23:23, Thomas Petazzoni wrote:
> Dear Vicente Olivert Riera,
>
> On Fri, 30 Jan 2015 14:33:52 +0000, Vicente Olivert Riera wrote:
>> Backport an upstream patch to fix a compilation problem of strace-4.9+
>> on MIPS platforms with uClibc.
>>
>> Upstream commit:
>> http://git.uclibc.org/uClibc/commit/?id=a1b88fe87a9d2be5696247d266f5c4fd20f000bb
>>
>> Fixes:
>> http://autobuild.buildroot.net/results/e8f/e8f4965b27c9dcc58d6ec77cdc48b83c218c5bec/
>>
>> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>
> Both patches applied.
>
> Can you get ready to submit autobuild-run patches? strace will start
> failing on MIPS/uClibc external toolchains, since those don't have the
> necessary uClibc patch.
Yes, I will do it. Thanks for the reminder.
Best wishes,
--
Vincent
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-02 8:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30 14:33 [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Vicente Olivert Riera
2015-01-30 14:33 ` [Buildroot] [PATCH 2/2] strace: Enable for MIPS platforms with uClibc Vicente Olivert Riera
2015-02-01 22:23 ` [Buildroot] [PATCH 1/2] uclibc/0.9.33.2: Rename MIPS' siginfo _timer members Thomas Petazzoni
2015-02-02 8:23 ` Vicente Olivert Riera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox