1 |
vapier 08/02/22 03:44:12 |
2 |
|
3 |
Added: strace-4.5.16-sparc-times.patch |
4 |
Log: |
5 |
Fix building on sparc with -O3 #204457. |
6 |
(Portage version: 2.2_pre2) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-util/strace/files/strace-4.5.16-sparc-times.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/strace/files/strace-4.5.16-sparc-times.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/strace/files/strace-4.5.16-sparc-times.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: strace-4.5.16-sparc-times.patch |
15 |
=================================================================== |
16 |
http://bugs.gentoo.org/204457 |
17 |
|
18 |
------- Comment #5 From SpanKY 2008-01-06 18:08:07 0000 [reply] ------- |
19 |
|
20 |
i dont have any way of actually run time testing this, but the fix is probably: |
21 |
- tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime)); |
22 |
- tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime)); |
23 |
- tprintf("st_ctime=%s}", sprinttime(statbuf.st_ctime)); |
24 |
+ tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime.tv_sec)); |
25 |
+ tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime.tv_sec)); |
26 |
+ tprintf("st_ctime=%s}", sprinttime(statbuf.st_ctime.tv_sec)); |
27 |
|
28 |
sprinttime() takes a time_t which represents the time (in seconds). the time |
29 |
members of the solstatbuf are the time (in seconds) as well as nanosecond |
30 |
granularity. since sprinttime() doesnt include nanosecond granularity, we dont |
31 |
care about that part of the time. |
32 |
|
33 |
someone needs to find a sparc system running with the personality required and |
34 |
exercise this difference |
35 |
|
36 |
--- strace-4.5.16/file.c |
37 |
+++ strace-4.5.16/file.c |
38 |
@@ -766,9 +766,9 @@ |
39 |
break; |
40 |
} |
41 |
if (!abbrev(tcp)) { |
42 |
- tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime)); |
43 |
- tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime)); |
44 |
- tprintf("st_ctime=%s}", sprinttime(statbuf.st_ctime)); |
45 |
+ tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime.tv_sec)); |
46 |
+ tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime.tv_sec)); |
47 |
+ tprintf("st_ctime=%s}", sprinttime(statbuf.st_ctime.tv_sec)); |
48 |
} |
49 |
else |
50 |
tprintf("...}"); |
51 |
|
52 |
|
53 |
|
54 |
-- |
55 |
gentoo-commits@l.g.o mailing list |