aboutsummaryrefslogtreecommitdiff
path: root/japanese/edict
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2018-01-22 11:49:15 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2018-01-22 11:49:15 +0000
commit55a6df6d79cd1083cc91e6c0fa9ca779b10e2454 (patch)
tree379001a478cc2c6d3c6c4ce4c0dd737124344e06 /japanese/edict
parent7f47139301b03aa4620cb6cc897734d9e3e8fe44 (diff)
Notes
Diffstat (limited to 'japanese/edict')
-rw-r--r--japanese/edict/Makefile2
-rw-r--r--japanese/edict/files/patch-exjdxgen.c12
-rw-r--r--japanese/edict/files/patch-xjdxgen.c14
3 files changed, 21 insertions, 7 deletions
diff --git a/japanese/edict/Makefile b/japanese/edict/Makefile
index 5946950f0eba..89b13a66bf3d 100644
--- a/japanese/edict/Makefile
+++ b/japanese/edict/Makefile
@@ -47,8 +47,6 @@ DOCSDIR= ${PREFIX}/share/doc/xjdic
NO_WRKSUBDIR= yes
-BROKEN_sparc64= Fails on sparc64 during installation with error 2
-
OPTIONS_DEFINE= DOCS
post-patch:
diff --git a/japanese/edict/files/patch-exjdxgen.c b/japanese/edict/files/patch-exjdxgen.c
index bcf4737ed1b8..ffe35391d920 100644
--- a/japanese/edict/files/patch-exjdxgen.c
+++ b/japanese/edict/files/patch-exjdxgen.c
@@ -1,5 +1,5 @@
---- exjdxgen.c.orig 1998-05-24 08:43:37.000000000 -0700
-+++ exjdxgen.c 2008-03-06 11:39:23.000000000 -0800
+--- exjdxgen.c.orig 1998-05-24 15:43:37 UTC
++++ exjdxgen.c
@@ -22,7 +22,7 @@
#include <sys/stat.h>
@@ -9,3 +9,11 @@
#include <ctype.h>
#include <string.h>
#include "xjdic.h"
+@@ -229,6 +229,7 @@ unsigned char **argv;
+ jindex[0] = diclen+jiver;
+ fwrite(jindex,sizeof(long),indptr+2,fp);
+ fclose(fp);
++ return (0);
+ }
+ /*======function to sort jindex table====================*/
+
diff --git a/japanese/edict/files/patch-xjdxgen.c b/japanese/edict/files/patch-xjdxgen.c
index 76ddb7f6e496..a42cd8f225f7 100644
--- a/japanese/edict/files/patch-xjdxgen.c
+++ b/japanese/edict/files/patch-xjdxgen.c
@@ -1,5 +1,5 @@
---- xjdxgen.c.orig 1998-09-11 05:04:21.000000000 +0200
-+++ xjdxgen.c 2008-07-27 20:39:29.000000000 +0200
+--- xjdxgen.c.orig 1998-09-11 03:04:21 UTC
++++ xjdxgen.c
@@ -23,7 +23,7 @@
#include <sys/stat.h>
@@ -9,7 +9,7 @@
#include <ctype.h>
#include <string.h>
#include "xjdic.h"
-@@ -154,7 +154,7 @@
+@@ -154,7 +154,7 @@ unsigned char **argv;
db[diclen] = 10;
db[0] = 10;
printf("Dictionary size: %ld bytes.\n",dbyte);
@@ -18,3 +18,11 @@
jindex = (unsigned long *)malloc(indlen);
if(jindex == NULL)
{
+@@ -273,6 +273,7 @@ unsigned char **argv;
+ jindex[0] = diclen+jiver;
+ fwrite(jindex,sizeof(long),indptr+1,fp);
+ fclose(fp);
++ return (0);
+ }
+ /*======function to sort jindex table====================*/
+ void jqsort(long lhs, long rhs)