pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/scim Change the the cast on gettext() when...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a93b90e0c741
branches:  trunk
changeset: 603821:a93b90e0c741
user:      sbd <sbd%pkgsrc.org@localhost>
date:      Mon May 14 05:01:24 2012 +0000

description:
Change the the cast on gettext() when testing for it so the gcc doesn't
complain with "error: cast from 'char*' to 'int' loses precision",
which causes the test to fail and NLS to be disabled.

diffstat:

 inputmethod/scim/distinfo                |   3 +-
 inputmethod/scim/patches/patch-configure |  35 ++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletions(-)

diffs (54 lines):

diff -r 1975d01c661f -r a93b90e0c741 inputmethod/scim/distinfo
--- a/inputmethod/scim/distinfo Mon May 14 03:57:08 2012 +0000
+++ b/inputmethod/scim/distinfo Mon May 14 05:01:24 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2012/04/29 12:15:55 obache Exp $
+$NetBSD: distinfo,v 1.5 2012/05/14 05:01:24 sbd Exp $
 
 SHA1 (scim-1.4.13.tar.gz) = dafe08bbdd3faa0324800cb63e44926d71be2e47
 RMD160 (scim-1.4.13.tar.gz) = 411fe876139120b2dc8df97d9b99405fcec70840
@@ -14,4 +14,5 @@
 SHA1 (patch-bc) = 5caafe0a6ca44ccacb5532e26d9c11950ea6c7da
 SHA1 (patch-bd) = 15982bf8a9aee6f6ccd94f186bff20b70b1a93cf
 SHA1 (patch-be) = 85a98134d77038d20544241410ec8130df2ea94c
+SHA1 (patch-configure) = 36d9699ea7f6471b2b4fd3daf6ccde47c8730106
 SHA1 (patch-src_scim__helper__manager__server.cpp) = 3a1130f37c7c93389e2ae7db65af7438bac5de51
diff -r 1975d01c661f -r a93b90e0c741 inputmethod/scim/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/scim/patches/patch-configure  Mon May 14 05:01:24 2012 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-configure,v 1.3 2012/05/14 05:01:24 sbd Exp $
+
+Change the the cast on gettext() when testing for it so the gcc doesn't
+complain with "error: cast from 'char*' to 'int' loses precision",
+which causes the test to fail and NLS to be disabled.
+
+--- configure.orig     2012-04-29 05:43:20.000000000 +0000
++++ configure
+@@ -17725,7 +17725,7 @@ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
++return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
+   ;
+   return 0;
+ }
+@@ -18247,7 +18247,7 @@ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
++return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+   ;
+   return 0;
+ }
+@@ -18274,7 +18274,7 @@ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
++return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+   ;
+   return 0;
+ }



Home | Main Index | Thread Index | Old Index