summaryrefslogtreecommitdiff
path: root/app-i18n/canna
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-08 17:52:52 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-08 18:13:44 +0900
commit9d262e2b7d298c04285f2e1357df1475a82bfc00 (patch)
treee925d333a7cb684b215a0af43bed22fe3e97fd61 /app-i18n/canna
parentf4f833cd60f8deedd6cada1eb1592fc94c348471 (diff)
downloadgentoo-9d262e2b7d298c04285f2e1357df1475a82bfc00.tar.gz
gentoo-9d262e2b7d298c04285f2e1357df1475a82bfc00.tar.xz
app-i18n/canna: fix build with -Werror=format
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/canna')
-rw-r--r--app-i18n/canna/canna-3.7_p3-r1.ebuild1
-rw-r--r--app-i18n/canna/canna-3.7_p3-r2.ebuild1
-rw-r--r--app-i18n/canna/canna-3.7_p3-r3.ebuild1
-rw-r--r--app-i18n/canna/files/canna-Wformat.patch11
4 files changed, 14 insertions, 0 deletions
diff --git a/app-i18n/canna/canna-3.7_p3-r1.ebuild b/app-i18n/canna/canna-3.7_p3-r1.ebuild
index d6727b9c284..97dee1123ab 100644
--- a/app-i18n/canna/canna-3.7_p3-r1.ebuild
+++ b/app-i18n/canna/canna-3.7_p3-r1.ebuild
@@ -25,6 +25,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-gentoo.patch
"${FILESDIR}"/${PN}-kpdef.patch
"${FILESDIR}"/${PN}-posix-sort.patch
+ "${FILESDIR}"/${PN}-Wformat.patch
)
DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
diff --git a/app-i18n/canna/canna-3.7_p3-r2.ebuild b/app-i18n/canna/canna-3.7_p3-r2.ebuild
index 4bc24066bb8..2236655f622 100644
--- a/app-i18n/canna/canna-3.7_p3-r2.ebuild
+++ b/app-i18n/canna/canna-3.7_p3-r2.ebuild
@@ -30,6 +30,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-gentoo.patch
"${FILESDIR}"/${PN}-kpdef.patch
"${FILESDIR}"/${PN}-posix-sort.patch
+ "${FILESDIR}"/${PN}-Wformat.patch
)
DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
diff --git a/app-i18n/canna/canna-3.7_p3-r3.ebuild b/app-i18n/canna/canna-3.7_p3-r3.ebuild
index c4ac85c584a..d794f10e8ed 100644
--- a/app-i18n/canna/canna-3.7_p3-r3.ebuild
+++ b/app-i18n/canna/canna-3.7_p3-r3.ebuild
@@ -36,6 +36,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-canuum.patch
"${FILESDIR}"/${PN}-kpdef.patch
"${FILESDIR}"/${PN}-posix-sort.patch
+ "${FILESDIR}"/${PN}-Wformat.patch
)
DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
diff --git a/app-i18n/canna/files/canna-Wformat.patch b/app-i18n/canna/files/canna-Wformat.patch
new file mode 100644
index 00000000000..a8f5aa37163
--- /dev/null
+++ b/app-i18n/canna/files/canna-Wformat.patch
@@ -0,0 +1,11 @@
+--- a/doc/man/guide/tex/cannaindex.c
++++ b/doc/man/guide/tex/cannaindex.c
+@@ -198,7 +198,7 @@
+ }
+ inf = fopen(argv[1], "r");
+ if (!inf) {
+- fprintf(stderr, "%s: Can not open file \"%s\".\n", argv[1]);
++ fprintf(stderr, "%s: Can not open file \"%s\".\n", program, argv[1]);
+ exit(1);
+ }
+ pages = readindex(inf, entries);