Skip to content

Commit

Permalink
app-i18n/canna: fix build with -Werror=format
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
hattya committed Jul 8, 2017
1 parent f4f833c commit 9d262e2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-i18n/canna/canna-3.7_p3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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*"

Expand Down
1 change: 1 addition & 0 deletions app-i18n/canna/canna-3.7_p3-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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*"

Expand Down
1 change: 1 addition & 0 deletions app-i18n/canna/canna-3.7_p3-r3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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*"

Expand Down
11 changes: 11 additions & 0 deletions app-i18n/canna/files/canna-Wformat.patch
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 9d262e2

Please sign in to comment.