Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs/files: kdelibs-3.5.10-kjs-gcc44.patch kdelibs-3.5.10-kde4-apps.patch kdelibs-3.5.10-khtml.patch 4.1.3-cmake-config.patch
Date: Fri, 29 May 2009 23:39:09
Message-Id: E1MABfG-0006La-3u@stork.gentoo.org
1 tampakrap 09/05/29 23:39:06
2
3 Modified: kdelibs-3.5.10-kde4-apps.patch
4 Added: kdelibs-3.5.10-kjs-gcc44.patch
5 kdelibs-3.5.10-khtml.patch
6 Removed: 4.1.3-cmake-config.patch
7 Log:
8 Revision bump:
9 add patch for kjs when compiled with gcc-4.4, thanks to Robert Forster, bug 270926
10 remove symlink that causes doxygen to hang, bug 264767
11 add patch for khtml, bug 243476
12 restored (updated with kdeprefix) patch to handle kde4 apps in kde3 menu, removed kdeglobals as it completely screws kde3 session when kde4 is installed
13 in /usr, by reavertm
14 (Portage version: 2.2_rc33/cvs/Linux x86_64)
15
16 Revision Changes Path
17 1.2 kde-base/kdelibs/files/kdelibs-3.5.10-kde4-apps.patch
18
19 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-kde4-apps.patch?rev=1.2&view=markup
20 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-kde4-apps.patch?rev=1.2&content-type=text/plain
21 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-kde4-apps.patch?r1=1.1&r2=1.2
22
23 Index: kdelibs-3.5.10-kde4-apps.patch
24 ===================================================================
25 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-kde4-apps.patch,v
26 retrieving revision 1.1
27 retrieving revision 1.2
28 diff -u -r1.1 -r1.2
29 --- kdelibs-3.5.10-kde4-apps.patch 15 May 2009 11:01:34 -0000 1.1
30 +++ kdelibs-3.5.10-kde4-apps.patch 29 May 2009 23:39:06 -0000 1.2
31 @@ -1,28 +1,41 @@
32 ---- kio/kio/kservice.cpp.old 2008-02-13 11:41:06.000000000 +0200
33 -+++ kio/kio/kservice.cpp 2009-05-14 22:55:30.494205205 +0300
34 -@@ -97,6 +97,7 @@
35 +diff -ru ./kio/kio/kservice.cpp ../kdelibs-new/kio/kio/kservice.cpp
36 +--- ./kio/kio/kservice.cpp 2008-02-13 10:41:06.000000000 +0100
37 ++++ ../kdelibs-new/kio/kio/kservice.cpp 2009-05-21 01:53:22.000000000 +0200
38 +@@ -97,6 +97,19 @@
39 m_bValid = true;
40 -
41 +
42 bool absPath = !QDir::isRelativePath(entryPath());
43 -+ bool kde4application = config->fileName().startsWith("/usr/share/applications/kde4/");
44 -
45 ++ QString kde4prefix = config->fileName();
46 ++ QString kde4menusuffix = " (KDE4)";
47 ++ int index = kde4prefix.find("/share/applications/kde4/");
48 ++ bool kde4app = index != -1;
49 ++ QString kdedir;
50 ++ // get kdeprefix and kde version
51 ++ if (kde4app)
52 ++ {
53 ++ kde4prefix.truncate(index);
54 ++ kdedir = kde4prefix.section('/', -1, -1).upper();
55 ++ if (kdedir != "USR")
56 ++ kde4menusuffix = QString(" (KDE-%1)").arg(kdedir);
57 ++ }
58 +
59 config->setDesktopGroup();
60 -
61 -@@ -133,6 +134,8 @@
62 +
63 +@@ -133,6 +146,8 @@
64 if (i != -1)
65 m_strName = m_strName.left(i);
66 }
67 -+ if ( kde4application )
68 -+ m_strName += " (KDE4)";
69 -
70 ++ if (kde4app)
71 ++ m_strName += kde4menusuffix;
72 +
73 m_strType = config->readEntry( "Type" );
74 entryMap.remove("Type");
75 -@@ -196,6 +199,18 @@
76 +@@ -196,6 +211,18 @@
77 name = name.left(pos);
78 -
79 +
80 m_strExec = config->readPathEntry( "Exec" );
81 -+ if ( kde4application && !m_strExec.startsWith("/"))
82 -+ m_strExec = "/usr/bin/"+m_strExec;
83 ++ if (kde4app && !m_strExec.startsWith("/"))
84 ++ m_strExec = kde4prefix + QString("/bin/") + m_strExec;
85 + else if (config->readBoolEntry("X-KDE-SubstituteUID")) {
86 + int space = m_strExec.find(" ");
87 + if (space==-1)
88 @@ -34,33 +47,33 @@
89 + }
90 +
91 entryMap.remove("Exec");
92 -
93 +
94 m_strIcon = config->readEntry( "Icon", "unknown" );
95 -@@ -245,11 +260,15 @@
96 +@@ -245,11 +272,15 @@
97 m_DCOPServiceType = DCOP_None;
98 -
99 +
100 m_strDesktopEntryName = name.lower();
101 -+ if ( kde4application )
102 -+ m_strDesktopEntryName = "kde4-" + m_strDesktopEntryName;
103 -
104 ++ if (kde4app)
105 ++ m_strDesktopEntryName = QString("kde%1-").arg(kdedir.lower()) + m_strDesktopEntryName;
106 +
107 m_bAllowAsDefault = config->readBoolEntry( "AllowDefault", true );
108 entryMap.remove("AllowDefault");
109 -
110 +
111 m_initialPreference = config->readNumEntry( "InitialPreference", 1 );
112 -+ if ( kde4application )
113 ++ if (kde4app)
114 + m_initialPreference = 1;
115 entryMap.remove("InitialPreference");
116 -
117 +
118 // Store all additional entries in the property map.
119 -@@ -260,7 +279,10 @@
120 +@@ -260,7 +291,10 @@
121 for( ; it != entryMap.end();++it)
122 {
123 //qDebug(" Key = %s Data = %s", it.key().latin1(), it.data().latin1());
124 - m_mapProps.insert( it.key(), QVariant( it.data()));
125 + QString key = it.key();
126 -+ if ( kde4application && key == "OnlyShownIn" && it.data() == "KDE;" )
127 ++ if (kde4app && key == "OnlyShownIn" && it.data() == "KDE;")
128 + key = "NotShowIn";
129 + m_mapProps.insert(key, QVariant( it.data()));
130 }
131 }
132 -
133 +
134
135
136
137 1.1 kde-base/kdelibs/files/kdelibs-3.5.10-kjs-gcc44.patch
138
139 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-kjs-gcc44.patch?rev=1.1&view=markup
140 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-kjs-gcc44.patch?rev=1.1&content-type=text/plain
141
142 Index: kdelibs-3.5.10-kjs-gcc44.patch
143 ===================================================================
144 --- kjs/dtoa.cpp.orig 2009-05-26 17:20:54.673539511 +0200
145 +++ kjs/dtoa.cpp 2009-05-26 17:24:20.117023777 +0200
146 @@ -207,11 +207,7 @@ typedef unsigned Long ULong;
147 #endif
148
149 #ifdef MALLOC
150 -#ifdef KR_headers
151 -extern char *MALLOC();
152 -#else
153 extern void *MALLOC(size_t);
154 -#endif
155 #else
156 #define MALLOC malloc
157 #endif
158 @@ -273,12 +269,8 @@ extern "C" {
159 #endif
160
161 #ifndef CONST
162 -#ifdef KR_headers
163 -#define CONST /* blank */
164 -#else
165 #define CONST const
166 #endif
167 -#endif
168
169 #if defined(IEEE_8087) + defined(IEEE_MC68k) + defined(VAX) + defined(IBM) != 1
170 Exactly one of IEEE_8087, IEEE_MC68k, VAX, or IBM should be defined.
171 @@ -286,37 +278,19 @@ Exactly one of IEEE_8087, IEEE_MC68k, VA
172
173 typedef union { double d; ULong L[2]; } U;
174
175 -#ifdef YES_ALIAS
176 -#define dval(x) x
177 +#define dval(x) (x).d
178 #ifdef IEEE_8087
179 -#define word0(x) ((ULong *)&x)[1]
180 -#define word1(x) ((ULong *)&x)[0]
181 +#define word0(x) (x).L[1]
182 +#define word1(x) (x).L[0]
183 #else
184 -#define word0(x) ((ULong *)&x)[0]
185 -#define word1(x) ((ULong *)&x)[1]
186 -#endif
187 -#else
188 -#ifdef IEEE_8087
189 -#define word0(x) ((U*)&x)->L[1]
190 -#define word1(x) ((U*)&x)->L[0]
191 -#else
192 -#define word0(x) ((U*)&x)->L[0]
193 -#define word1(x) ((U*)&x)->L[1]
194 -#endif
195 -#define dval(x) ((U*)&x)->d
196 +#define word0(x) (x).L[0]
197 +#define word1(x) (x).L[1]
198 #endif
199
200 /* The following definition of Storeinc is appropriate for MIPS processors.
201 * An alternative that might be better on some machines is
202 - * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff)
203 */
204 -#if defined(IEEE_8087) + defined(VAX)
205 -#define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \
206 -((unsigned short *)a)[0] = (unsigned short)c, a++)
207 -#else
208 -#define Storeinc(a,b,c) (((unsigned short *)a)[0] = (unsigned short)b, \
209 -((unsigned short *)a)[1] = (unsigned short)c, a++)
210 -#endif
211 +#define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff)
212
213 /* #define P DBL_MANT_DIG */
214 /* Ten_pmax = floor(P*log(2)/log(5)) */
215 @@ -440,11 +414,7 @@ typedef union { double d; ULong L[2]; }
216 #ifdef RND_PRODQUOT
217 #define rounded_product(a,b) a = rnd_prod(a, b)
218 #define rounded_quotient(a,b) a = rnd_quot(a, b)
219 -#ifdef KR_headers
220 -extern double rnd_prod(), rnd_quot();
221 -#else
222 extern double rnd_prod(double, double), rnd_quot(double, double);
223 -#endif
224 #else
225 #define rounded_product(a,b) a *= b
226 #define rounded_quotient(a,b) a /= b
227 @@ -457,11 +427,7 @@ extern double rnd_prod(double, double),
228 #define Pack_32
229 #endif
230
231 -#ifdef KR_headers
232 -#define FFFFFFFF ((((unsigned long)0xffff)<<16)|(unsigned long)0xffff)
233 -#else
234 #define FFFFFFFF 0xffffffffUL
235 -#endif
236
237 #ifdef NO_LONG_LONG
238 #undef ULLong
239 @@ -502,11 +468,7 @@ Bigint {
240
241 static Bigint *
242 Balloc
243 -#ifdef KR_headers
244 - (k) int k;
245 -#else
246 (int k)
247 -#endif
248 {
249 int x;
250 Bigint *rv;
251 @@ -542,11 +504,7 @@ Balloc
252
253 static void
254 Bfree
255 -#ifdef KR_headers
256 - (v) Bigint *v;
257 -#else
258 (Bigint *v)
259 -#endif
260 {
261 if (v) {
262 ACQUIRE_DTOA_LOCK(0);
263 @@ -561,11 +519,7 @@ y->wds*sizeof(Long) + 2*sizeof(int))
264
265 static Bigint *
266 multadd
267 -#ifdef KR_headers
268 - (b, m, a) Bigint *b; int m, a;
269 -#else
270 (Bigint *b, int m, int a) /* multiply by m and add a */
271 -#endif
272 {
273 int i, wds;
274 #ifdef ULLong
275 @@ -618,11 +572,7 @@ multadd
276
277 static Bigint *
278 s2b
279 -#ifdef KR_headers
280 - (s, nd0, nd, y9) CONST char *s; int nd0, nd; ULong y9;
281 -#else
282 (CONST char *s, int nd0, int nd, ULong y9)
283 -#endif
284 {
285 Bigint *b;
286 int i, k;
287 @@ -656,11 +606,7 @@ s2b
288
289 static int
290 hi0bits
291 -#ifdef KR_headers
292 - (x) register ULong x;
293 -#else
294 (register ULong x)
295 -#endif
296 {
297 register int k = 0;
298
299 @@ -690,11 +636,7 @@ hi0bits
300
301 static int
302 lo0bits
303 -#ifdef KR_headers
304 - (y) ULong *y;
305 -#else
306 (ULong *y)
307 -#endif
308 {
309 register int k;
310 register ULong x = *y;
311 @@ -738,11 +680,7 @@ lo0bits
312
313 static Bigint *
314 i2b
315 -#ifdef KR_headers
316 - (i) int i;
317 -#else
318 (int i)
319 -#endif
320 {
321 Bigint *b;
322
323 @@ -754,11 +692,7 @@ i2b
324
325 static Bigint *
326 mult
327 -#ifdef KR_headers
328 - (a, b) Bigint *a, *b;
329 -#else
330 (Bigint *a, Bigint *b)
331 -#endif
332 {
333 Bigint *c;
334 int k, wa, wb, wc;
335 @@ -866,11 +800,7 @@ mult
336
337 static Bigint *
338 pow5mult
339 -#ifdef KR_headers
340 - (b, k) Bigint *b; int k;
341 -#else
342 (Bigint *b, int k)
343 -#endif
344 {
345 Bigint *b1, *p5, *p51;
346 int i;
347 @@ -923,11 +853,7 @@ pow5mult
348
349 static Bigint *
350 lshift
351 -#ifdef KR_headers
352 - (b, k) Bigint *b; int k;
353 -#else
354 (Bigint *b, int k)
355 -#endif
356 {
357 int i, k1, n, n1;
358 Bigint *b1;
359 @@ -983,11 +909,7 @@ lshift
360
361 static int
362 cmp
363 -#ifdef KR_headers
364 - (a, b) Bigint *a, *b;
365 -#else
366 (Bigint *a, Bigint *b)
367 -#endif
368 {
369 ULong *xa, *xa0, *xb, *xb0;
370 int i, j;
371 @@ -1017,11 +939,7 @@ cmp
372
373 static Bigint *
374 diff
375 -#ifdef KR_headers
376 - (a, b) Bigint *a, *b;
377 -#else
378 (Bigint *a, Bigint *b)
379 -#endif
380 {
381 Bigint *c;
382 int i, wa, wb;
383 @@ -1111,15 +1029,12 @@ diff
384
385 static double
386 ulp
387 -#ifdef KR_headers
388 - (x) double x;
389 -#else
390 - (double x)
391 -#endif
392 + (double dx)
393 {
394 register Long L;
395 - double a;
396 + U x, a;
397
398 + dval(x) = dx;
399 L = (word0(x) & Exp_mask) - (P-1)*Exp_msk1;
400 #ifndef Avoid_Underflow
401 #ifndef Sudden_Underflow
402 @@ -1153,15 +1068,11 @@ ulp
403
404 static double
405 b2d
406 -#ifdef KR_headers
407 - (a, e) Bigint *a; int *e;
408 -#else
409 (Bigint *a, int *e)
410 -#endif
411 {
412 ULong *xa, *xa0, w, y, z;
413 int k;
414 - double d;
415 + U d;
416 #ifdef VAX
417 ULong d0, d1;
418 #else
419 @@ -1223,12 +1134,9 @@ b2d
420
421 static Bigint *
422 d2b
423 -#ifdef KR_headers
424 - (d, e, bits) double d; int *e, *bits;
425 -#else
426 - (double d, int *e, int *bits)
427 -#endif
428 + (double dd, int *e, int *bits)
429 {
430 + U d;
431 Bigint *b;
432 int de, k;
433 ULong *x, y, z;
434 @@ -1237,6 +1145,9 @@ d2b
435 #endif
436 #ifdef VAX
437 ULong d0, d1;
438 +#endif
439 + dval(d) = dd;
440 +#ifdef VAX
441 d0 = word0(d) >> 16 | word0(d) << 16;
442 d1 = word1(d) >> 16 | word1(d) << 16;
443 #else
444 @@ -1361,13 +1272,9 @@ d2b
445
446 static double
447 ratio
448 -#ifdef KR_headers
449 - (a, b) Bigint *a, *b;
450 -#else
451 (Bigint *a, Bigint *b)
452 -#endif
453 {
454 - double da, db;
455 + U da, db;
456 int k, ka, kb;
457
458 dval(da) = b2d(a, &ka);
459 @@ -1453,11 +1360,7 @@ static CONST double tinytens[] = { 1e-16
460
461 static int
462 match
463 -#ifdef KR_headers
464 - (sp, t) char **sp, *t;
465 -#else
466 (CONST char **sp, CONST char *t)
467 -#endif
468 {
469 int c, d;
470 CONST char *s = *sp;
471 @@ -1475,11 +1378,7 @@ match
472 #ifndef No_Hex_NaN
473 static void
474 hexnan
475 -#ifdef KR_headers
476 - (rvp, sp) double *rvp; CONST char **sp;
477 -#else
478 - (double *rvp, CONST char **sp)
479 -#endif
480 + (U *rvp, CONST char **sp)
481 {
482 ULong c, x[2];
483 CONST char *s;
484 @@ -1529,11 +1428,7 @@ hexnan
485
486 double
487 kjs_strtod
488 -#ifdef KR_headers
489 - (s00, se) CONST char *s00; char **se;
490 -#else
491 (CONST char *s00, char **se)
492 -#endif
493 {
494 #ifdef Avoid_Underflow
495 int scale;
496 @@ -1541,7 +1436,8 @@ kjs_strtod
497 int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, dsign,
498 e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign;
499 CONST char *s, *s0, *s1;
500 - double aadj, aadj1, adj, rv, rv0;
501 + double aadj, aadj1, adj;
502 + U aadj2, rv, rv0;
503 Long L;
504 ULong y, z;
505 Bigint *bb = NULL, *bb1 = NULL, *bd = NULL, *bd0 = NULL, *bs = NULL, *delta = NULL;
506 @@ -2302,7 +2198,9 @@ kjs_strtod
507 aadj = z;
508 aadj1 = dsign ? aadj : -aadj;
509 }
510 - word0(aadj1) += (2*P+1)*Exp_msk1 - y;
511 + dval(aadj2) = aadj1;
512 + word0(aadj2) += (2*P+1)*Exp_msk1 - y;
513 + aadj1 = dval(aadj2);
514 }
515 adj = aadj1 * ulp(dval(rv));
516 dval(rv) += adj;
517 @@ -2419,11 +2317,7 @@ kjs_strtod
518
519 static int
520 quorem
521 -#ifdef KR_headers
522 - (b, S) Bigint *b, *S;
523 -#else
524 (Bigint *b, Bigint *S)
525 -#endif
526 {
527 int n;
528 ULong *bx, *bxe, q, *sx, *sxe;
529 @@ -2540,11 +2434,7 @@ quorem
530 #endif
531
532 static char *
533 -#ifdef KR_headers
534 -rv_alloc(i) int i;
535 -#else
536 rv_alloc(int i)
537 -#endif
538 {
539 int j, k, *r;
540
541 @@ -2563,11 +2453,7 @@ rv_alloc(int i)
542 }
543
544 static char *
545 -#ifdef KR_headers
546 -nrv_alloc(s, rve, n) char *s, **rve; int n;
547 -#else
548 nrv_alloc(CONST char *s, char **rve, int n)
549 -#endif
550 {
551 char *rv, *t;
552
553 @@ -2585,11 +2471,7 @@ nrv_alloc(CONST char *s, char **rve, int
554 */
555
556 void
557 -#ifdef KR_headers
558 -kjs_freedtoa(s) char *s;
559 -#else
560 kjs_freedtoa(char *s)
561 -#endif
562 {
563 Bigint *b = (Bigint *)((int *)s - 1);
564 b->maxwds = 1 << (b->k = *(int*)b);
565 @@ -2636,12 +2518,7 @@ kjs_freedtoa(char *s)
566
567 char *
568 kjs_dtoa
569 -#ifdef KR_headers
570 - (d, mode, ndigits, decpt, sign, rve)
571 - double d; int mode, ndigits, *decpt, *sign; char **rve;
572 -#else
573 - (double d, int mode, int ndigits, int *decpt, int *sign, char **rve)
574 -#endif
575 + (double dd, int mode, int ndigits, int *decpt, int *sign, char **rve)
576 {
577 /* Arguments ndigits, decpt, sign are similar to those
578 of ecvt and fcvt; trailing zeros are suppressed from
579 @@ -2686,7 +2563,8 @@ kjs_dtoa
580 ULong x;
581 #endif
582 Bigint *b, *b1, *delta, *mlo = NULL, *mhi, *S;
583 - double d2, ds, eps;
584 + U d, d2, eps;
585 + double ds;
586 char *s, *s0;
587 #ifdef Honor_FLT_ROUNDS
588 int rounding;
589 @@ -2702,6 +2580,7 @@ kjs_dtoa
590 }
591 #endif
592
593 + dval(d) = dd;
594 if (word0(d) & Sign_bit) {
595 /* set sign for everything, including 0's and NaNs */
596 *sign = 1;
597
598
599
600
601 1.1 kde-base/kdelibs/files/kdelibs-3.5.10-khtml.patch
602
603 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-khtml.patch?rev=1.1&view=markup
604 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-3.5.10-khtml.patch?rev=1.1&content-type=text/plain
605
606 Index: kdelibs-3.5.10-khtml.patch
607 ===================================================================
608 INDEX: khtml/xml/dom_elementimpl.cpp
609 =============================================================
610 --- khtml.orig/xml/dom_elementimpl.cpp 2007-07-28 04:44:15.000000000 +0200
611 +++ khtml/xml/dom_elementimpl.cpp 2007-07-28 12:38:08.000000000 +0200
612 @@ -66,6 +66,9 @@
613 m_value = value;
614 m_value->ref();
615
616 + if (m_attrId == ATTR_ID)
617 + m_element->addId(DOMString(m_value).string());
618 +
619 m_prefix = prefix;
620 if (m_prefix)
621 m_prefix->ref();