Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/zbar/, media-gfx/zbar/files/
Date: Sun, 25 Nov 2018 17:36:32
Message-Id: 1543167317.1f2f3092a6bb667be97b3d8dd35a76ab251d72e0.asturm@gentoo
1 commit: 1f2f3092a6bb667be97b3d8dd35a76ab251d72e0
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 25 17:28:48 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 25 17:35:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f2f3092
7
8 media-gfx/zbar: Drop 0.10_p20121015-r3
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-gfx/zbar/Manifest | 1 -
14 media-gfx/zbar/files/zbar-0.10-python-crash.patch | 19 ---
15 media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch | 49 --------
16 media-gfx/zbar/zbar-0.10_p20121015-r3.ebuild | 132 ---------------------
17 4 files changed, 201 deletions(-)
18
19 diff --git a/media-gfx/zbar/Manifest b/media-gfx/zbar/Manifest
20 index b5bf4950fae..00a21a631d2 100644
21 --- a/media-gfx/zbar/Manifest
22 +++ b/media-gfx/zbar/Manifest
23 @@ -1,2 +1 @@
24 -DIST zbar-0.10_p20121015.zip 991578 BLAKE2B 021dfa3920a838fd7bab12b09600ac6949c1495045691c4cc547bfb6ec647658c60984da248b882eabfc0bb123b90401dd3a32adcd66726b1e7072662e303d18 SHA512 7bb74ea5b096093b283c44787547ad0b886281628d012aa7b03ddb477732feb1e12d4d5a661191d34b53b7b272a237f67840e219b0ac5e2803da478a1ddba7a1
25 DIST zbar-0.20.1.tar.gz 555199 BLAKE2B f224a2207fa0603da4cc3a0e1d05bc73f3cf0cc9d13c26b3b801d3418f4f6a001b52e468b721552af61f4c8d7357934abd0560c24d3b233107785c69cfe14753 SHA512 21ad9d8fcdecb41bd4b8979366ab8ec6e8eac815f52270b0dc72ce6a126ccef933d048ce8bbe28f46ada5defadf85ba8c97c5c1870c9560a9dab28c585dfaf42
26
27 diff --git a/media-gfx/zbar/files/zbar-0.10-python-crash.patch b/media-gfx/zbar/files/zbar-0.10-python-crash.patch
28 deleted file mode 100644
29 index a6f7a96e34d..00000000000
30 --- a/media-gfx/zbar/files/zbar-0.10-python-crash.patch
31 +++ /dev/null
32 @@ -1,19 +0,0 @@
33 -https://sourceforge.net/p/zbar/patches/37/
34 -
35 -fix from Debian for crashes when importing the python module.
36 -http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702499
37 -
38 -this doesn't happen on some arches as the data naturally ends up with zero
39 -data after the structure, but on some (like arm), it isn't so we crash when
40 -python walks the list.
41 -
42 ---- a/python/imagescanner.c
43 -+++ b/python/imagescanner.c
44 -@@ -68,6 +68,7 @@ imagescanner_get_results (zbarImageScanner *self,
45 -
46 - static PyGetSetDef imagescanner_getset[] = {
47 - { "results", (getter)imagescanner_get_results, },
48 -+ { NULL },
49 - };
50 -
51 - static PyObject*
52
53 diff --git a/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch b/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch
54 deleted file mode 100644
55 index 4fde95e2b56..00000000000
56 --- a/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch
57 +++ /dev/null
58 @@ -1,49 +0,0 @@
59 ---- zbar-0.10/zbar/video/v4l2.c 2009-10-23 18:16:44.000000000 +0000
60 -+++ zbar-0.10/zbar/video/v4l2.c 2015-03-07 05:46:36.000000000 +0000
61 -@@ -241,6 +241,21 @@
62 - return(0);
63 - }
64 -
65 -+static int v4l2_request_buffers (zbar_video_t *vdo)
66 -+{
67 -+ struct v4l2_requestbuffers rb;
68 -+ memset(&rb, 0, sizeof(rb));
69 -+ rb.count = vdo->num_images;
70 -+ rb.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
71 -+ rb.memory = V4L2_MEMORY_USERPTR;
72 -+ if(ioctl(vdo->fd, VIDIOC_REQBUFS, &rb) < 0)
73 -+ return(err_capture(vdo, SEV_ERROR, ZBAR_ERR_SYSTEM, __func__,
74 -+ "requesting video frame buffers (VIDIOC_REQBUFS)"));
75 -+ if(rb.count)
76 -+ vdo->num_images = rb.count;
77 -+ return(0);
78 -+}
79 -+
80 - static int v4l2_set_format (zbar_video_t *vdo,
81 - uint32_t fmt)
82 - {
83 -@@ -308,6 +323,8 @@
84 - return(-1);
85 - if(vdo->iomode == VIDEO_MMAP)
86 - return(v4l2_mmap_buffers(vdo));
87 -+ if(vdo->iomode == VIDEO_USERPTR)
88 -+ return(v4l2_request_buffers(vdo));
89 - return(0);
90 - }
91 -
92 -@@ -337,8 +354,13 @@
93 - else {
94 - if(!vdo->iomode)
95 - vdo->iomode = VIDEO_USERPTR;
96 -- if(rb.count)
97 -- vdo->num_images = rb.count;
98 -+ /* releasing buffers
99 -+ * lest the driver may later refuse to change format
100 -+ */
101 -+ rb.count = 0;
102 -+ if (ioctl(vdo->fd, VIDIOC_REQBUFS, &rb) < 0)
103 -+ zprintf(0, "WARNING: releasing video buffers failed: error %d\n",
104 -+ errno);
105 - }
106 - return(0);
107 - }
108
109 diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r3.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r3.ebuild
110 deleted file mode 100644
111 index ecdd0ad2dbf..00000000000
112 --- a/media-gfx/zbar/zbar-0.10_p20121015-r3.ebuild
113 +++ /dev/null
114 @@ -1,132 +0,0 @@
115 -# Copyright 1999-2018 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -
118 -EAPI=6
119 -
120 -PYTHON_COMPAT=( python2_7 )
121 -
122 -inherit autotools flag-o-matic java-pkg-opt-2 multilib-minimal \
123 - python-single-r1 virtualx
124 -
125 -DESCRIPTION="Library and tools for reading barcodes from images or video"
126 -HOMEPAGE="http://zbar.sourceforge.net/"
127 -SRC_URI="https://dev.gentoo.org/~xmw/zbar-0.10_p20121015.zip"
128 -
129 -LICENSE="LGPL-2.1"
130 -SLOT="0"
131 -KEYWORDS="amd64 ~arm x86"
132 -IUSE="gtk imagemagick java jpeg python static-libs test +threads v4l X xv"
133 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
134 - test? ( X ${PYTHON_REQUIRED_USE} )"
135 -
136 -CDEPEND="gtk? ( dev-libs/glib:2[${MULTILIB_USEDEP}]
137 - x11-libs/gtk+:2[${MULTILIB_USEDEP}] )
138 - imagemagick? ( virtual/imagemagick-tools )
139 - jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] )
140 - python? (
141 - ${PYTHON_DEPS}
142 - gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )
143 - )
144 - X? (
145 - x11-libs/libXext[${MULTILIB_USEDEP}]
146 - xv? ( x11-libs/libXv[${MULTILIB_USEDEP}] )
147 - )"
148 -RDEPEND="${CDEPEND}
149 - java? ( >=virtual/jre-1.4 )"
150 -DEPEND="${CDEPEND}
151 - java? ( >=virtual/jdk-1.4
152 - test? ( dev-java/junit:4
153 - dev-java/hamcrest-core:1.3 ) )
154 - test? ( ${PYTHON_DEPS} )
155 - app-arch/unzip
156 - sys-devel/gettext
157 - virtual/pkgconfig"
158 -
159 -pkg_setup() {
160 - if use python || use test; then
161 - python-single-r1_pkg_setup
162 - fi
163 - java-pkg-opt-2_pkg_setup
164 -}
165 -
166 -src_unpack() {
167 - #vcs-snapshot doesn't work on .zip
168 - default
169 - mv * ${P} || die
170 -}
171 -
172 -src_prepare() {
173 - eapply "${FILESDIR}"/${PN}-0.10-errors.patch \
174 - "${FILESDIR}"/${PN}-0.10-python-crash.patch \
175 - "${FILESDIR}"/${PN}-0.10-v4l2-uvcvideo.patch
176 -
177 - # fix use of deprecated qt4 function, bug 572488
178 - sed -e 's:numBytes:byteCount:g' \
179 - -i "${S}"/include/zbar/QZBarImage.h || die
180 -
181 - if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then
182 - eapply "${FILESDIR}/${P}-ImageMagick-7.diff"
183 - fi
184 -
185 - use python && python_fix_shebang examples/upcrpc.py test/*.py
186 - java-pkg-opt-2_src_prepare
187 -
188 - sed -e '/AM_INIT_AUTOMAKE/s: -Werror : :' \
189 - -e '/^AM_CFLAGS=/s: -Werror::' \
190 - -i configure.ac || die
191 - sed "s|javadir = \$(pkgdatadir)|javadir = /usr/$(get_libdir)/zbar|" \
192 - -i java/Makefile.am
193 - eautoreconf
194 -}
195 -
196 -multilib_src_configure() {
197 - if multilib_is_native_abi && use java; then
198 - export JAVACFLAGS="$(java-pkg_javac-args)"
199 - export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)"
200 - if use test ; then # bug 629078
201 - java-pkg_append_ CLASSPATH .
202 - java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only junit-4 junit.jar)
203 - java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only hamcrest-core-1.3 hamcrest-core.jar)
204 - fi
205 - fi
206 -
207 - append-cppflags -DNDEBUG
208 -
209 - # different flags for image/graphics magick (bug 552350)
210 - myimagemagick="--without-imagemagick"
211 - has_version media-gfx/imagemagick &&
212 - myimagemagick="$(multilib_native_use_with imagemagick)"
213 - mygraphicsmagick="--without-graphicsmagick"
214 - has_version media-gfx/graphicsmagick &&
215 - mygraphicsmagick="$(multilib_native_use_with imagemagick graphicsmagick)"
216 - ECONF_SOURCE=${S} \
217 - econf \
218 - $(multilib_native_use_with java) \
219 - $(use_with jpeg) \
220 - $(use_with gtk) \
221 - ${myimagemagick} \
222 - ${mygraphicsmagick} \
223 - $(multilib_native_use_with python) \
224 - --without-qt \
225 - $(use_enable static-libs static) \
226 - $(use_enable threads pthread) \
227 - $(use_with X x) \
228 - $(use_with xv xv) \
229 - $(use_enable v4l video)
230 -
231 - # work-around out-of-source build issue
232 - mkdir gtk pygtk qt test || die
233 -}
234 -
235 -src_test() {
236 - virtx multilib-minimal_src_test
237 -}
238 -
239 -multilib_src_install_all() {
240 - dodoc HACKING NEWS README TODO
241 - find "${D}" -name '*.la' -delete || die
242 -}
243 -
244 -pkg_preinst() {
245 - java-pkg-opt-2_pkg_preinst
246 -}