Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/vte/files: vte-0.28.2-interix.patch
Date: Mon, 30 Jul 2012 13:52:07
Message-Id: 20120730135156.8977D2004B@flycatcher.gentoo.org
1 ottxor 12/07/30 13:51:56
2
3 Added: vte-0.28.2-interix.patch
4 Log:
5 added prefix support (bug #428564)
6
7 (Portage version: 2.2.0_alpha120/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 x11-libs/vte/files/vte-0.28.2-interix.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/vte/files/vte-0.28.2-interix.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/vte/files/vte-0.28.2-interix.patch?rev=1.1&content-type=text/plain
14
15 Index: vte-0.28.2-interix.patch
16 ===================================================================
17 reported upstream: https://bugzilla.gnome.org/show_bug.cgi?id=652290
18
19 diff -ru vte-0.26.2.orig/configure.in vte-0.26.2/configure.in
20 --- vte-0.26.2.orig/configure.in 2011-08-17 08:30:55 +0200
21 +++ vte-0.26.2/configure.in 2011-08-17 08:35:42 +0200
22 @@ -362,7 +362,11 @@
23 AC_DEFINE(HAVE_RECVMSG,1,[Define if you have the recvmsg function.])
24 fi
25 AC_CHECK_FUNC(floor,,AC_CHECK_LIB(m,floor,LIBS=["$LIBS -lm"]))
26 -AC_CHECK_FUNCS([ceil floor])
27 +dnl if the first check didn't find floor, it caches the "no" value,
28 +dnl and doesn't recheck. this makes the below check fail always on
29 +dnl systems with floor in -lm. thus we unset the chached result.
30 +unset ac_cv_func_floor
31 +AC_CHECK_FUNCS([ceil floor round])
32
33 # Look for tgetent
34
35 --- vte-0.26.2.orig/configure 2012-04-30 20:02:55.000000000 +0200
36 +++ vte-0.26.2/configure 2012-04-30 20:03:16.000000000 +0200
37 @@ -13277,7 +13277,7 @@
38
39 fi
40
41 -for ac_func in ceil floor
42 +for ac_func in ceil floor round
43 do :
44 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46 diff -ru vte-0.26.2.orig/src/vte.c vte-0.26.2/src/vte.c
47 --- vte-0.26.2.orig/src/vte.c 2011-08-17 08:30:58 +0200
48 +++ vte-0.26.2/src/vte.c 2011-08-17 08:38:09 +0200
49 @@ -63,6 +63,18 @@
50 #include <locale.h>
51 #endif
52
53 +#ifndef HAVE_ROUND
54 +# if defined(HAVE_CEIL) && defined(HAVE_FLOOR)
55 +static inline double round(double x) {
56 + if(x - floor(x) < 0.5) {
57 + return floor(x);
58 + } else {
59 + return ceil(x);
60 + }
61 +}
62 +# endif
63 +#endif
64 +
65 #if GTK_CHECK_VERSION (2, 90, 7)
66 #define GDK_KEY(symbol) GDK_KEY_##symbol
67 #else