commit: 3f45f91de0a6998760c3dbb3e827bacd95f0d46f Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> AuthorDate: Tue Feb 2 02:28:00 2016 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Tue Feb 2 02:28:00 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f45f91d
dev-libs/uchardet: revbump to 0.0.5-r1 to fix return code on error Package-Manager: portage-2.2.27 .../uchardet-0.0.5-fix-return-code-on-error.patch | 19 +++++++++++++++++++ ...uchardet-0.0.5.ebuild => uchardet-0.0.5-r1.ebuild} | 1 + 2 files changed, 20 insertions(+) diff --git a/dev-libs/uchardet/files/uchardet-0.0.5-fix-return-code-on-error.patch b/dev-libs/uchardet/files/uchardet-0.0.5-fix-return-code-on-error.patch new file mode 100644 index 0000000..3b943af --- /dev/null +++ b/dev-libs/uchardet/files/uchardet-0.0.5-fix-return-code-on-error.patch @@ -0,0 +1,19 @@ +commit 248d6dbd351c22989090d318128cb38b11a89f98 +Author: Jehan <je...@girinstud.io> +Date: Thu Jan 21 18:16:42 2016 +0100 + + tools: exit with non-zero value on uchardet error. + +diff --git a/src/tools/uchardet.cpp b/src/tools/uchardet.cpp +index 91912a0..bcfa234 100644 +--- a/src/tools/uchardet.cpp ++++ b/src/tools/uchardet.cpp +@@ -60,7 +60,7 @@ void detect(FILE * fp) + if (retval != 0) + { + fprintf(stderr, "Handle data error.\n"); +- exit(0); ++ exit(1); + } + } + uchardet_data_end(handle); diff --git a/dev-libs/uchardet/uchardet-0.0.5.ebuild b/dev-libs/uchardet/uchardet-0.0.5-r1.ebuild similarity index 93% rename from dev-libs/uchardet/uchardet-0.0.5.ebuild rename to dev-libs/uchardet/uchardet-0.0.5-r1.ebuild index 1c0d57e..0dd0764 100644 --- a/dev-libs/uchardet/uchardet-0.0.5.ebuild +++ b/dev-libs/uchardet/uchardet-0.0.5-r1.ebuild @@ -18,6 +18,7 @@ IUSE="static-libs test" PATCHES=( "${FILESDIR}/${P}-fix-ASCII-detection.patch" "${FILESDIR}/${P}-use-proper-package-name.patch" + "${FILESDIR}/${P}-fix-return-code-on-error.patch" ) src_prepare() {