summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-03-21 08:48:15 +0000
committermaya <maya@pkgsrc.org>2018-03-21 08:48:15 +0000
commit50f1ab7c631941a1f8b05842bf69a5a65447245f (patch)
treef599f2f0e250b5e0816ef059a1e714b2553e21e1 /editors
parentd770ff0a8d6537dbf0da0b02e3d9c5598fd4057a (diff)
downloadpkgsrc-50f1ab7c631941a1f8b05842bf69a5a65447245f.tar.gz
emacs25: handle NAN not existing on VAX.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs25/distinfo3
-rw-r--r--editors/emacs25/patches/patch-src_lread.c22
2 files changed, 24 insertions, 1 deletions
diff --git a/editors/emacs25/distinfo b/editors/emacs25/distinfo
index 91e92776108..da8e0986885 100644
--- a/editors/emacs25/distinfo
+++ b/editors/emacs25/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2017/09/13 14:21:34 ryoon Exp $
+$NetBSD: distinfo,v 1.7 2018/03/21 08:48:15 maya Exp $
SHA1 (emacs-25.3.tar.gz) = 82ad18404d460e32be29aa883a0e6bfc1901ae75
RMD160 (emacs-25.3.tar.gz) = 8740bb96aeab77cd35c6d4625f3676991281c7bc
SHA512 (emacs-25.3.tar.gz) = cd3f51ee5f6c95481f22cd48abfe1d4df1407207ed4b046c9563b24d524f85aa80f15900755091d532c31ea9bd9f6978300128c480d74d28b6b937f96846b1bb
Size (emacs-25.3.tar.gz) = 62988771 bytes
SHA1 (patch-src_inotify.c) = 1fdc6566ed57e8418f1ddc85bb03518d7d9d6bb3
+SHA1 (patch-src_lread.c) = a1edaea258b00ba10c176a8ad27711dcac1af7c1
diff --git a/editors/emacs25/patches/patch-src_lread.c b/editors/emacs25/patches/patch-src_lread.c
new file mode 100644
index 00000000000..470d5f77ec3
--- /dev/null
+++ b/editors/emacs25/patches/patch-src_lread.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_lread.c,v 1.1 2018/03/21 08:48:15 maya Exp $
+
+Handle NAN not existing (VAX)
+
+--- src/lread.c.orig 2017-04-14 15:02:47.000000000 +0000
++++ src/lread.c
+@@ -3429,6 +3429,7 @@ string_to_number (char const *string, in
+ cp += 3;
+ value = INFINITY;
+ }
++#if 0
+ else if (cp[-1] == '+'
+ && cp[0] == 'N' && cp[1] == 'a' && cp[2] == 'N')
+ {
+@@ -3437,6 +3438,7 @@ string_to_number (char const *string, in
+ /* NAN is a "positive" NaN on all known Emacs hosts. */
+ value = NAN;
+ }
++#endif
+ else
+ cp = ecp;
+ }