uclibc/0.9.33.2: Rename MIPS' siginfo _timer members
PATCH 1/2 uclibc/0.9.33.2: Rename MIPS' 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/
--- .../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
package/uclibc/0.9.33.2/0066-mips-rename-siginfo-_timer-members.patch new file +157 -0
@@ -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 <[email protected]> + +From a1b88fe87a9d2be5696247d266f5c4fd20f000bb Mon Sep 17 00:00:00 2001 +From: Bernhard Reutner-Fischer <[email protected]> +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 <[email protected]> +--- + 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 +
Signature · 1 line
1.7.1
PATCH 2/2 strace: Enable for MIPS platforms with uClibc
Enable strace for MIPS platforms with uClibc again since this C library is now fixed.
--- package/strace/Config.in | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
package/strace/Config.in +0 -6
@@ -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
Signature · 1 line
1.7.1
PATCH 1/2 uclibc/0.9.33.2: Rename MIPS' siginfo _timer members
In reply to Vicente Olivert RieraDear Vicente Olivert Riera,
Quoted 10 lines · Vicente Olivert Riera
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=a1b88fe87a9d2be5696247d266f5c4fd20f000bbFixes:
http://autobuild.buildroot.net/results/e8f/e8f4965b27c9dcc58d6ec77cdc48b83c218c5bec/Signed-off-by Vicente Olivert Riera <[email protected]>
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/2 uclibc/0.9.33.2: Rename MIPS' siginfo _timer members
Dear Thomas Petazzoni,
Quoted 12 lines · Thomas Petazzoni
Dear Vicente Olivert Riera,
Quoted 9 lines · Vicente Olivert Riera
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=a1b88fe87a9d2be5696247d266f5c4fd20f000bbFixes:
http://autobuild.buildroot.net/results/e8f/e8f4965b27c9dcc58d6ec77cdc48b83c218c5bec/
Quoted 7 lines
Quoted 1 line
Signed-off-by Vicente Olivert Riera <[email protected]>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