pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/vte3 vte3: Apply some casts to appease compilers.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d0bf82b25f52
branches: trunk
changeset: 309307:d0bf82b25f52
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Jun 15 10:44:15 2018 +0000
description:
vte3: Apply some casts to appease compilers.
diffstat:
x11/vte3/distinfo | 5 +++--
x11/vte3/patches/patch-src_app_app.cc | 13 ++++++++++++-
x11/vte3/patches/patch-src_vtedraw.cc | 22 ++++++++++++++++++++++
3 files changed, 37 insertions(+), 3 deletions(-)
diffs (70 lines):
diff -r 2ee4ce23b6ac -r d0bf82b25f52 x11/vte3/distinfo
--- a/x11/vte3/distinfo Fri Jun 15 10:17:52 2018 +0000
+++ b/x11/vte3/distinfo Fri Jun 15 10:44:15 2018 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.5 2018/06/12 23:00:34 youri Exp $
+$NetBSD: distinfo,v 1.6 2018/06/15 10:44:15 jperkin Exp $
SHA1 (vte-0.52.2.tar.xz) = be8de64f8584ada23461db8e0a4dce2e650de5ce
RMD160 (vte-0.52.2.tar.xz) = 3707a2a4a0ca7bbc562dbf2d570e7e4a4a15afef
SHA512 (vte-0.52.2.tar.xz) = fc760973efa1eb1f100447cdf0d9b944b74f5ba7e3ae1ae1d0acadaebd540fff19f7edc741685ba944147c151223942a80f8f3dad3602469f1aff5c44f6cc846
Size (vte-0.52.2.tar.xz) = 1011696 bytes
SHA1 (patch-configure) = 9a570f27c0ec4e4680d517a8c2498b37728d52ae
-SHA1 (patch-src_app_app.cc) = 7f31d18976176849d855690f7c7fc9114f7ad333
+SHA1 (patch-src_app_app.cc) = 184c71f05ebc8177fbf6375bb051594e21cae3d6
SHA1 (patch-src_pty.cc) = cc2e0be62a90ffefcb21f8b07cb25f281b30df1e
SHA1 (patch-src_vte.cc) = b07315fef8593e6b51427ac039b9b4724e9fd18b
+SHA1 (patch-src_vtedraw.cc) = 1deab7738ae7c7bbb53e5b951df4d8a6ad9312f9
diff -r 2ee4ce23b6ac -r d0bf82b25f52 x11/vte3/patches/patch-src_app_app.cc
--- a/x11/vte3/patches/patch-src_app_app.cc Fri Jun 15 10:17:52 2018 +0000
+++ b/x11/vte3/patches/patch-src_app_app.cc Fri Jun 15 10:44:15 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_app_app.cc,v 1.1 2018/06/12 23:00:34 youri Exp $
+$NetBSD: patch-src_app_app.cc,v 1.2 2018/06/15 10:44:15 jperkin Exp $
Fix NetBSD build.
@@ -12,6 +12,17 @@
#include <glib.h>
#include <glib/gprintf.h>
+@@ -78,8 +79,8 @@ public:
+ char** exec_argv{nullptr};
+ char** environment{nullptr};
+ GdkPixbuf* background_pixbuf{nullptr};
+- GdkRGBA bg_color{1.0, 1.0, 1.0, 1.0};
+- GdkRGBA fg_color{0.0, 0.0, 0.0, 1.0};
++ GdkRGBA bg_color{(gdouble)1.0, (gdouble)1.0, (gdouble)1.0, (gdouble)1.0};
++ GdkRGBA fg_color{(gdouble)0.0, (gdouble)0.0, (gdouble)0.0, (gdouble)1.0};
+ GdkRGBA cursor_bg_color{};
+ GdkRGBA cursor_fg_color{};
+ GdkRGBA hl_bg_color{};
@@ -1257,7 +1258,7 @@ vteapp_window_fork(VteappWindow* window,
auto pid = fork();
switch (pid) {
diff -r 2ee4ce23b6ac -r d0bf82b25f52 x11/vte3/patches/patch-src_vtedraw.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/vte3/patches/patch-src_vtedraw.cc Fri Jun 15 10:44:15 2018 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_vtedraw.cc,v 1.1 2018/06/15 10:44:15 jperkin Exp $
+
+Avoid ambiguous function call.
+
+--- src/vtedraw.cc.orig 2018-05-21 19:31:53.000000000 +0000
++++ src/vtedraw.cc
+@@ -1674,13 +1674,13 @@ _vte_draw_draw_line(struct _vte_draw *dr
+ static inline double
+ _vte_draw_get_undercurl_rad(gint width)
+ {
+- return width / 2. / sqrt(2);
++ return width / 2. / sqrt((double)2);
+ }
+
+ static inline double
+ _vte_draw_get_undercurl_arc_height(gint width)
+ {
+- return _vte_draw_get_undercurl_rad(width) * (1. - sqrt(2) / 2.);
++ return _vte_draw_get_undercurl_rad(width) * (1. - sqrt((double)2) / 2.);
+ }
+
+ double
Home |
Main Index |
Thread Index |
Old Index