1 |
vapier 07/09/09 16:27:09 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 6600_mips_librt-mips.patch |
5 |
Log: |
6 |
forward port librt symbol again |
7 |
|
8 |
Revision Changes Path |
9 |
1.3 src/patchsets/glibc/2.6.1/README.history |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.6.1/README.history?rev=1.3&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.6.1/README.history?rev=1.3&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.6.1/README.history?r1=1.2&r2=1.3 |
14 |
|
15 |
Index: README.history |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/2.6.1/README.history,v |
18 |
retrieving revision 1.2 |
19 |
retrieving revision 1.3 |
20 |
diff -u -r1.2 -r1.3 |
21 |
--- README.history 8 Aug 2007 21:47:14 -0000 1.2 |
22 |
+++ README.history 9 Sep 2007 16:27:08 -0000 1.3 |
23 |
@@ -1,5 +1,7 @@ |
24 |
1.1 [pending] |
25 |
+ 1020_all_glibc-inet-headers.patch |
26 |
+ + 6600_mips_librt-mips.patch |
27 |
+ + 6650_all_glibc-mips_gnu-hash_support.patch |
28 |
|
29 |
1.0 01.08.2007 |
30 |
+ 0010_all_glibc-ssp-compat.patch |
31 |
|
32 |
|
33 |
|
34 |
1.1 src/patchsets/glibc/2.6.1/6600_mips_librt-mips.patch |
35 |
|
36 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.6.1/6600_mips_librt-mips.patch?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.6.1/6600_mips_librt-mips.patch?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: 6600_mips_librt-mips.patch |
40 |
=================================================================== |
41 |
we kind of screwed ourselves into a corner by having the clock symbols |
42 |
exported only with the glibc-2.0 version ... this patch fixes the |
43 |
export so all new binaries built against librt will use the correct |
44 |
glibc-2.2 symbol version |
45 |
|
46 |
one day, we'll just drop this on the floor (maybe after 2006.1) |
47 |
|
48 |
--- ports/sysdeps/unix/sysv/linux/mips/Versions |
49 |
+++ ports/sysdeps/unix/sysv/linux/mips/Versions |
50 |
@@ -34,3 +34,9 @@ |
51 |
_test_and_set; |
52 |
} |
53 |
} |
54 |
+librt { |
55 |
+ GLIBC_2.0 { |
56 |
+ # c* |
57 |
+ clock_gettime; clock_settime; |
58 |
+ } |
59 |
+} |
60 |
--- Versions.def |
61 |
+++ Versions.def |
62 |
@@ -90,6 +90,7 @@ |
63 |
GLIBC_PRIVATE |
64 |
} |
65 |
librt { |
66 |
+ GLIBC_2.0 |
67 |
GLIBC_2.1 |
68 |
GLIBC_2.2 |
69 |
GLIBC_2.3 |
70 |
--- sysdeps/unix/clock_gettime.c |
71 |
+++ sysdeps/unix/clock_gettime.c |
72 |
@@ -23,6 +23,7 @@ |
73 |
#include <sys/time.h> |
74 |
#include <libc-internal.h> |
75 |
#include <ldsodefs.h> |
76 |
+#include <shlib-compat.h> |
77 |
|
78 |
|
79 |
#if HP_TIMING_AVAIL |
80 |
@@ -90,7 +91,7 @@ |
81 |
|
82 |
/* Get current value of CLOCK and store it in TP. */ |
83 |
int |
84 |
-clock_gettime (clockid_t clock_id, struct timespec *tp) |
85 |
+__clock_gettime (clockid_t clock_id, struct timespec *tp) |
86 |
{ |
87 |
int retval = -1; |
88 |
struct timeval tv; |
89 |
@@ -131,4 +132,10 @@ |
90 |
|
91 |
return retval; |
92 |
} |
93 |
-librt_hidden_def (clock_gettime) |
94 |
+versioned_symbol (librt, __clock_gettime, clock_gettime, GLIBC_2_2); |
95 |
+librt_hidden_ver (__clock_gettime, clock_gettime) |
96 |
+ |
97 |
+#if defined __mips__ && defined SHARED |
98 |
+strong_alias (__clock_gettime, __mips_clock_gettime) |
99 |
+compat_symbol (librt, __mips_clock_gettime, clock_gettime, GLIBC_2_0); |
100 |
+#endif |
101 |
--- sysdeps/unix/clock_settime.c |
102 |
+++ sysdeps/unix/clock_settime.c |
103 |
@@ -21,6 +21,7 @@ |
104 |
#include <sys/time.h> |
105 |
#include <libc-internal.h> |
106 |
#include <ldsodefs.h> |
107 |
+#include <shlib-compat.h> |
108 |
|
109 |
|
110 |
#if HP_TIMING_AVAIL |
111 |
@@ -38,7 +39,7 @@ |
112 |
|
113 |
/* Set CLOCK to value TP. */ |
114 |
int |
115 |
-clock_settime (clockid_t clock_id, const struct timespec *tp) |
116 |
+__clock_settime (clockid_t clock_id, const struct timespec *tp) |
117 |
{ |
118 |
int retval; |
119 |
|
120 |
@@ -123,3 +124,9 @@ |
121 |
|
122 |
return retval; |
123 |
} |
124 |
+versioned_symbol (librt, __clock_settime, clock_settime, GLIBC_2_2); |
125 |
+ |
126 |
+#if defined __mips__ && defined SHARED |
127 |
+strong_alias (__clock_settime, __mips_clock_settime) |
128 |
+compat_symbol (librt, __mips_clock_settime, clock_settime, GLIBC_2_0); |
129 |
+#endif |
130 |
|
131 |
|
132 |
|
133 |
-- |
134 |
gentoo-commits@g.o mailing list |