Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/zbar/files/
Date: Sat, 09 Feb 2019 20:12:51
Message-Id: 1549743150.216425aa738a3aa0c4eace62446cc98605bf6f4b.bman@gentoo
1 commit: 216425aa738a3aa0c4eace62446cc98605bf6f4b
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 11 17:59:09 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 20:12:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=216425aa
7
8 media-gfx/zbar: remove unused patches
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
12
13 media-gfx/zbar/files/zbar-0.10-python-crash.patch | 19 ---------
14 media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch | 49 ----------------------
15 2 files changed, 68 deletions(-)
16
17 diff --git a/media-gfx/zbar/files/zbar-0.10-python-crash.patch b/media-gfx/zbar/files/zbar-0.10-python-crash.patch
18 deleted file mode 100644
19 index a6f7a96e34d..00000000000
20 --- a/media-gfx/zbar/files/zbar-0.10-python-crash.patch
21 +++ /dev/null
22 @@ -1,19 +0,0 @@
23 -https://sourceforge.net/p/zbar/patches/37/
24 -
25 -fix from Debian for crashes when importing the python module.
26 -http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702499
27 -
28 -this doesn't happen on some arches as the data naturally ends up with zero
29 -data after the structure, but on some (like arm), it isn't so we crash when
30 -python walks the list.
31 -
32 ---- a/python/imagescanner.c
33 -+++ b/python/imagescanner.c
34 -@@ -68,6 +68,7 @@ imagescanner_get_results (zbarImageScanner *self,
35 -
36 - static PyGetSetDef imagescanner_getset[] = {
37 - { "results", (getter)imagescanner_get_results, },
38 -+ { NULL },
39 - };
40 -
41 - static PyObject*
42
43 diff --git a/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch b/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch
44 deleted file mode 100644
45 index 4fde95e2b56..00000000000
46 --- a/media-gfx/zbar/files/zbar-0.10-v4l2-uvcvideo.patch
47 +++ /dev/null
48 @@ -1,49 +0,0 @@
49 ---- zbar-0.10/zbar/video/v4l2.c 2009-10-23 18:16:44.000000000 +0000
50 -+++ zbar-0.10/zbar/video/v4l2.c 2015-03-07 05:46:36.000000000 +0000
51 -@@ -241,6 +241,21 @@
52 - return(0);
53 - }
54 -
55 -+static int v4l2_request_buffers (zbar_video_t *vdo)
56 -+{
57 -+ struct v4l2_requestbuffers rb;
58 -+ memset(&rb, 0, sizeof(rb));
59 -+ rb.count = vdo->num_images;
60 -+ rb.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
61 -+ rb.memory = V4L2_MEMORY_USERPTR;
62 -+ if(ioctl(vdo->fd, VIDIOC_REQBUFS, &rb) < 0)
63 -+ return(err_capture(vdo, SEV_ERROR, ZBAR_ERR_SYSTEM, __func__,
64 -+ "requesting video frame buffers (VIDIOC_REQBUFS)"));
65 -+ if(rb.count)
66 -+ vdo->num_images = rb.count;
67 -+ return(0);
68 -+}
69 -+
70 - static int v4l2_set_format (zbar_video_t *vdo,
71 - uint32_t fmt)
72 - {
73 -@@ -308,6 +323,8 @@
74 - return(-1);
75 - if(vdo->iomode == VIDEO_MMAP)
76 - return(v4l2_mmap_buffers(vdo));
77 -+ if(vdo->iomode == VIDEO_USERPTR)
78 -+ return(v4l2_request_buffers(vdo));
79 - return(0);
80 - }
81 -
82 -@@ -337,8 +354,13 @@
83 - else {
84 - if(!vdo->iomode)
85 - vdo->iomode = VIDEO_USERPTR;
86 -- if(rb.count)
87 -- vdo->num_images = rb.count;
88 -+ /* releasing buffers
89 -+ * lest the driver may later refuse to change format
90 -+ */
91 -+ rb.count = 0;
92 -+ if (ioctl(vdo->fd, VIDIOC_REQBUFS, &rb) < 0)
93 -+ zprintf(0, "WARNING: releasing video buffers failed: error %d\n",
94 -+ errno);
95 - }
96 - return(0);
97 - }