dev-libs/uchardet: revbump to 0.0.5-r1 to fix return code on error
authorIlya Tumaykin <itumaykin@gmail.com>
Tue, 2 Feb 2016 02:28:00 +0000 (05:28 +0300)
committerIlya Tumaykin <itumaykin@gmail.com>
Tue, 2 Feb 2016 02:28:00 +0000 (05:28 +0300)
Package-Manager: portage-2.2.27

dev-libs/uchardet/files/uchardet-0.0.5-fix-return-code-on-error.patch [new file with mode: 0644]
dev-libs/uchardet/uchardet-0.0.5-r1.ebuild [moved from dev-libs/uchardet/uchardet-0.0.5.ebuild with 93% similarity]

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 (file)
index 0000000..3b943af
--- /dev/null
@@ -0,0 +1,19 @@
+commit 248d6dbd351c22989090d318128cb38b11a89f98
+Author: Jehan <jehan@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);
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 1c0d57eb5393716edf5d41b27ded5916f70f70b5..0dd07643a822c102a6a62768711587ed0633c9c7 100644 (file)
@@ -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() {