Author: Bernhard M. Wiedemann Date: 2018-08-08 make .dic file creation reproducible. See https://reproducible-builds.org/ for why this is good. Index: FreeWnn-1.1.1-a023/Wnn/etc/bdic.c =================================================================== --- FreeWnn-1.1.1-a023.orig/Wnn/etc/bdic.c +++ FreeWnn-1.1.1-a023/Wnn/etc/bdic.c @@ -550,19 +550,18 @@ create_file_header (FILE* ofpter, int fi { return (-1); } - gethostname (hostname, WNN_HOSTLEN); - hostname[WNN_HOSTLEN - 1] = '\0'; + strcpy (hostname, "nohostname"); - fh.file_uniq.time = (int) buf.st_ctime; - fh.file_uniq.dev = (int) buf.st_dev; - fh.file_uniq.inode = (int) buf.st_ino; + fh.file_uniq.time = 0; + fh.file_uniq.dev = 0; + fh.file_uniq.inode = 0; bzero (fh.file_uniq.createhost, WNN_HOSTLEN); strcpy (fh.file_uniq.createhost, hostname); /* file_uniq_org */ - fh.file_uniq_org.time = (int) buf.st_ctime; - fh.file_uniq_org.dev = (int) buf.st_dev; - fh.file_uniq_org.inode = (int) buf.st_ino; + fh.file_uniq_org.time = 0; + fh.file_uniq_org.dev = 0; + fh.file_uniq_org.inode = 0; bzero (fh.file_uniq_org.createhost, WNN_HOSTLEN); strcpy (fh.file_uniq_org.createhost, hostname); @@ -739,12 +738,11 @@ change_file_uniq1 ( { return (-1); } - gethostname (hostname, WNN_HOSTLEN); - hostname[WNN_HOSTLEN - 1] = '\0'; - - fh.file_uniq.time = (int) buf.st_ctime; - fh.file_uniq.dev = (int) buf.st_dev; - fh.file_uniq.inode = (int) buf.st_ino; + strcpy (hostname, "nohostname"); + + fh.file_uniq.time = 0; + fh.file_uniq.dev = 0; + fh.file_uniq.inode = 0; bzero (fh.file_uniq.createhost, WNN_HOSTLEN); strcpy (fh.file_uniq.createhost, hostname); Index: FreeWnn-1.1.1-a023/Wnn/pubdicplus/Makefile.in =================================================================== --- FreeWnn-1.1.1-a023.orig/Wnn/pubdicplus/Makefile.in +++ FreeWnn-1.1.1-a023/Wnn/pubdicplus/Makefile.in @@ -346,7 +346,7 @@ $(WNNDICS): pod $(PUBDICPLUSSRC)/pubdic. .SUFFIXES: .hd .u .dic .more .fsrc .fzk .u.dic: - cat $*.hd $< | $(ATOD) -p $(VERSION) -P $(VERSION) -h $(HINSI) $@ + cat $*.hd $< | $(ATOD) -n -N -h $(HINSI) $@ .hd.more: $(ATOD) -h $(HINSI) $@ < $<