summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2014-09-15 23:05:14 +0000
committerNaohiro Aota <naota@gentoo.org>2014-09-15 23:05:14 +0000
commitc0780b9c4713e607ad5672aeb49c7723943d09d7 (patch)
tree522ff00f6ad03ad81666473f199167a6fefca307 /app-i18n/freewnn
parentUnmask >=dev-util/cmake-3.0.0 for further testing. (diff)
downloadgentoo-2-c0780b9c4713e607ad5672aeb49c7723943d09d7.tar.gz
gentoo-2-c0780b9c4713e607ad5672aeb49c7723943d09d7.tar.bz2
gentoo-2-c0780b9c4713e607ad5672aeb49c7723943d09d7.zip
Add a patch to fix parallel build issue #517916
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'app-i18n/freewnn')
-rw-r--r--app-i18n/freewnn/ChangeLog7
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch318
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild4
3 files changed, 327 insertions, 2 deletions
diff --git a/app-i18n/freewnn/ChangeLog b/app-i18n/freewnn/ChangeLog
index af729ae475fd..c2bb70390b95 100644
--- a/app-i18n/freewnn/ChangeLog
+++ b/app-i18n/freewnn/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-i18n/freewnn
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/freewnn/ChangeLog,v 1.49 2014/07/08 00:43:02 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/freewnn/ChangeLog,v 1.50 2014/09/15 23:05:14 naota Exp $
+
+ 15 Sep 2014; Naohiro Aota <naota@gentoo.org>
+ +files/freewnn-1.1.1_alpha22-parallel-build.patch,
+ freewnn-1.1.1_alpha22.ebuild:
+ Add a patch to fix parallel build issue #517916
08 Jul 2014; Naohiro Aota <naota@gentoo.org>
files/freewnn-1.1.1_alpha21-ldflags.patch:
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch
new file mode 100644
index 000000000000..058225c36ee5
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch
@@ -0,0 +1,318 @@
+Description: Fix potential race condition when building in parallel mode
+Origin: upstream, http://cvs.sourceforge.jp/cvs/view/freewnn/FreeWnn/Wnn/pubdicplus/Makefile.in?r1=1.7&r2=1.8&view=patch
+Bug-Debian: http://bugs.debian.org/724058
+
+--- a/Wnn/pubdicplus/Makefile.in 2010/02/22 17:06:54 1.7
++++ b/Wnn/pubdicplus/Makefile.in 2013/11/08 18:54:44 1.8
+@@ -1,5 +1,5 @@
+ #
+-# $Id: Makefile.in,v 1.7 2010/02/22 17:06:54 aonoto Exp $
++# $Id: Makefile.in,v 1.8 2013/11/08 18:54:44 aonoto Exp $
+ #
+
+ #
+@@ -10,7 +10,7 @@
+ # 1987, 1988, 1989, 1990, 1991, 1992
+ # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
+ # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
+-# Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2004, 2010
++# Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2004, 2010, 2013
+ #
+ # Maintainer: FreeWnn Project
+ #
+@@ -42,13 +42,12 @@
+ ATOF = $(WNNJUTILOBJ)/atof
+ WNNTOUCH = $(WNNJUTILOBJ)/wnntouch
+ HINSI = @HINSI_DATA@
+- FZK_FLAG =
+
+ LINKS = Version bio.hd chimei.hd computer.hd fzk.attr fzk.con fzk.fzkattr fzk.jirattr fzk.jircon fzk.master fzk.shuutan jinmei.hd kihon.hd koyuu.hd setsuji.hd special.hd special.u symbol.hd tankan.hd
+
+ WNNDICS = bio.u chimei.u computer.u jinmei.u kihon.u koyuu.u setsuji.u symbol.u tankan.u
+
+-FZK_SRC= fzk.master fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan
++FZK_SRC= fzk.master-.c fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan
+
+ DIC= bio.dic chimei.dic computer.dic jinmei.dic kihon.dic koyuu.dic setsuji.dic special.dic symbol.dic tankan.dic
+
+@@ -68,24 +67,14 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: Version
+-
+ depend:: Version
+
+-clean::
+- $(RM) Version
+-
+ bio.hd: $(PUBDICPLUSSRC)/bio.hd
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: bio.hd
+-
+ depend:: bio.hd
+
+-clean::
+- $(RM) bio.hd
+-
+ # bio.u: $(PUBDICPLUSSRC)/bio.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -101,13 +90,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: chimei.hd
+-
+ depend:: chimei.hd
+
+-clean::
+- $(RM) chimei.hd
+-
+ # chimei.u: $(PUBDICPLUSSRC)/chimei.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -123,13 +107,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: computer.hd
+-
+ depend:: computer.hd
+
+-clean::
+- $(RM) computer.hd
+-
+ # computer.u: $(PUBDICPLUSSRC)/computer.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -145,90 +124,50 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.attr
+-
+ depend:: fzk.attr
+
+-clean::
+- $(RM) fzk.attr
+-
+ fzk.con: $(PUBDICPLUSSRC)/fzk.con
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.con
+-
+ depend:: fzk.con
+
+-clean::
+- $(RM) fzk.con
+-
+ fzk.fzkattr: $(PUBDICPLUSSRC)/fzk.fzkattr
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.fzkattr
+-
+ depend:: fzk.fzkattr
+
+-clean::
+- $(RM) fzk.fzkattr
+-
+ fzk.jirattr: $(PUBDICPLUSSRC)/fzk.jirattr
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.jirattr
+-
+ depend:: fzk.jirattr
+
+-clean::
+- $(RM) fzk.jirattr
+-
+ fzk.jircon: $(PUBDICPLUSSRC)/fzk.jircon
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.jircon
+-
+ depend:: fzk.jircon
+
+-clean::
+- $(RM) fzk.jircon
+-
+ fzk.master: $(PUBDICPLUSSRC)/fzk.master
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.master
+-
+ depend:: fzk.master
+
+-clean::
+- $(RM) fzk.master
+-
+ fzk.shuutan: $(PUBDICPLUSSRC)/fzk.shuutan
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.shuutan
+-
+ depend:: fzk.shuutan
+
+-clean::
+- $(RM) fzk.shuutan
+-
+ jinmei.hd: $(PUBDICPLUSSRC)/jinmei.hd
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: jinmei.hd
+-
+ depend:: jinmei.hd
+
+-clean::
+- $(RM) jinmei.hd
+-
+ # jinmei.u: $(PUBDICPLUSSRC)/jinmei.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -244,13 +183,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: kihon.hd
+-
+ depend:: kihon.hd
+
+-clean::
+- $(RM) kihon.hd
+-
+ # kihon.u: $(PUBDICPLUSSRC)/kihon.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -266,13 +200,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: koyuu.hd
+-
+ depend:: koyuu.hd
+
+-clean::
+- $(RM) koyuu.hd
+-
+ # koyuu.u: $(PUBDICPLUSSRC)/koyuu.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -288,13 +217,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: setsuji.hd
+-
+ depend:: setsuji.hd
+
+-clean::
+- $(RM) setsuji.hd
+-
+ # setsuji.u: $(PUBDICPLUSSRC)/setsuji.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -310,35 +234,20 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: special.hd
+-
+ depend:: special.hd
+
+-clean::
+- $(RM) special.hd
+-
+ special.u: $(PUBDICPLUSSRC)/special.u
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: special.u
+-
+ depend:: special.u
+
+-clean::
+- $(RM) special.u
+-
+ symbol.hd: $(PUBDICPLUSSRC)/symbol.hd
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: symbol.hd
+-
+ depend:: symbol.hd
+
+-clean::
+- $(RM) symbol.hd
+-
+ # symbol.u: $(PUBDICPLUSSRC)/symbol.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -354,13 +263,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: tankan.hd
+-
+ depend:: tankan.hd
+
+-clean::
+- $(RM) tankan.hd
+-
+ # tankan.u: $(PUBDICPLUSSRC)/tankan.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -421,16 +325,14 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-std.fzk: fzk.master-.c $(FZK_SRC)
+- $(FZK_PP) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
++std.fsrc: $(FZK_SRC)
++ $(FZK_PP) fzk.master-.c > $@
++
++full.fsrc: $(FZK_SRC)
++ $(FZK_PP) -DKANSAI fzk.master-.c > $@
+
+-full.fzk: $(FZK_SRC)
+- $(MAKE) FZK_FLAG=-DKANSAI std.fzk
+- $(MV) std.fzk $@
+-
+-kougo.fzk: $(FZK_SRC)
+- $(MAKE) FZK_FLAG=-DKOUGO std.fzk
+- $(MV) std.fzk $@
++kougo.fsrc: $(FZK_SRC)
++ $(FZK_PP) -DKOUGO fzk.master-.c > $@
+
+ # additional rule from PubdicPlus/Makefile.in : by aono
+ pod.o: $(PUBDICPLUSSRC)/pod.c
+@@ -442,7 +344,7 @@
+ $(WNNDICS): pod $(PUBDICPLUSSRC)/pubdic.p
+ ./pod $(PUBDICPLUSSRC)/pubdic.p -w -1 -k `basename $@ .u` > $@
+
+-.SUFFIXES: .hd .u .dic .more
++.SUFFIXES: .hd .u .dic .more .fsrc .fzk
+
+ .u.dic:
+ cat $*.hd $< | $(ATOD) -p $(VERSION) -P $(VERSION) -h $(HINSI) $@
+@@ -450,7 +352,10 @@
+ .hd.more:
+ $(ATOD) -h $(HINSI) $@ < $<
+
++.fsrc.fzk:
++ egrep -v '^(# |#line |#pragma |$$)' $< | $(ATOF) -h $(HINSI) $@
++
+ $(DIC): $(HINSI)
+
+ clean::
+- $(RM) -f *.fzk *.dic *.more fzk.master-.c pod $(LINKS)
++ $(RM) -f *.fsrc *.dic *.more fzk.master-.c pod $(LINKS) $(FZKDATA)
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
index 3260904cbb2c..60ede8f3e0db 100644
--- a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild,v 1.2 2014/07/07 05:20:56 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild,v 1.3 2014/09/15 23:05:14 naota Exp $
EAPI=5
@@ -31,6 +31,8 @@ src_prepare() {
-e "s/@LN_S@/ln -sf/" || die
#bug #318593
+
+ epatch "${FILESDIR}"/${P}-parallel-build.patch #517916
}
src_configure() {