Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/calibre/files/
Date: Sun, 08 Jul 2018 08:44:01
Message-Id: 1531039391.52ccb37a1379350dac1b0a00884f46f8ccdb9a7b.zmedico@gentoo
1 commit: 52ccb37a1379350dac1b0a00884f46f8ccdb9a7b
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jul 8 08:22:20 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 8 08:43:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52ccb37a
7
8 app-text/calibre: remove unused patch/files
9
10 Closes: https://github.com/gentoo/gentoo/pull/9119
11
12 ...libre-2.83.0-lzxd-bounds-error-bug-540596.patch | 37 --------------
13 app-text/calibre/files/calibre-server.conf | 13 -----
14 app-text/calibre/files/calibre-server.init | 58 ----------------------
15 3 files changed, 108 deletions(-)
16
17 diff --git a/app-text/calibre/files/calibre-2.83.0-lzxd-bounds-error-bug-540596.patch b/app-text/calibre/files/calibre-2.83.0-lzxd-bounds-error-bug-540596.patch
18 deleted file mode 100644
19 index 5f7d5a4682f..00000000000
20 --- a/app-text/calibre/files/calibre-2.83.0-lzxd-bounds-error-bug-540596.patch
21 +++ /dev/null
22 @@ -1,37 +0,0 @@
23 -From f335c8719b224d3ca7a967b6e91cebd5b26684fe Mon Sep 17 00:00:00 2001
24 -From: Zac Medico <zmedico@g.o>
25 -Date: Sun, 23 Apr 2017 16:13:00 -0700
26 -Subject: [PATCH] Fix bounds error in lzxd_static_init
27 -
28 -https://bugs.gentoo.org/show_bug.cgi?id=540596
29 -https://github.com/kovidgoyal/calibre/pull/650
30 -
31 -This includes the changes from the following upstream commits:
32 -
33 -https://github.com/kyz/libmspack/commit/6a42ddd1d472afeaf0f7da91e16b60ab2063fb92
34 -https://github.com/kyz/libmspack/commit/ce3cc03aa500dd9c0b6b820f9519f6b6b9dede05
35 ----
36 - src/calibre/utils/lzx/lzxd.c | 3 ++-
37 - 1 file changed, 2 insertions(+), 1 deletion(-)
38 -
39 -diff --git a/src/calibre/utils/lzx/lzxd.c b/src/calibre/utils/lzx/lzxd.c
40 -index e683a9e..c531aaa 100644
41 ---- a/src/calibre/utils/lzx/lzxd.c
42 -+++ b/src/calibre/utils/lzx/lzxd.c
43 -@@ -357,11 +357,12 @@ static unsigned char extra_bits[51];
44 - static void lzxd_static_init(void) {
45 - int i, j;
46 -
47 -- for (i = 0, j = 0; i < 51; i += 2) {
48 -+ for (i = 0, j = 0; i < 50; i += 2) {
49 - extra_bits[i] = j; /* 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7... */
50 - extra_bits[i+1] = j;
51 - if ((i != 0) && (j < 17)) j++; /* 0,0,1,2,3,4...15,16,17,17,17,17... */
52 - }
53 -+ extra_bits[50] = 17;
54 -
55 - for (i = 0, j = 0; i < 51; i++) {
56 - position_base[i] = j; /* 0,1,2,3,4,6,8,12,16,24,32,... */
57 ---
58 -2.10.2
59 -
60
61 diff --git a/app-text/calibre/files/calibre-server.conf b/app-text/calibre/files/calibre-server.conf
62 deleted file mode 100644
63 index c1bed84289c..00000000000
64 --- a/app-text/calibre/files/calibre-server.conf
65 +++ /dev/null
66 @@ -1,13 +0,0 @@
67 -# /etc/conf.d/calibre-server
68 -# Change this to the user you want to run calibre-server as.
69 -# You may specify a group too, after a colon
70 -# NOTE: This must be set and not to root!
71 -CALIBRE_USER=
72 -
73 -# Set the path of the library to serve.
74 -# Defaults to the default location for CALIBRE_USER.
75 -#CALIBRE_LIBRARY='<user home directory>/Calibre Library'
76 -
77 -# Extra options to pass to calibre-server.
78 -# See the calibre-server man page for more options.
79 -#CALIBRE_OPTS="--username calibre --password password --thread-pool 10 --port 8080"
80
81 diff --git a/app-text/calibre/files/calibre-server.init b/app-text/calibre/files/calibre-server.init
82 deleted file mode 100644
83 index 2f905424cfa..00000000000
84 --- a/app-text/calibre/files/calibre-server.init
85 +++ /dev/null
86 @@ -1,58 +0,0 @@
87 -#!/sbin/openrc-run
88 -# Copyright 1999-2012 Gentoo Foundation
89 -# Distributed under the terms of the GNU General Public License, v2 or later
90 -
91 -depend() {
92 - need net
93 - need localmount
94 - after bootmisc
95 -}
96 -
97 -checkconfig() {
98 - if [ "${CALIBRE_USER}" = "" -o "${CALIBRE_USER}" = "root" ] ; then
99 - eerror "Please edit /etc/conf.d/calibre-server"
100 - eerror "You have to specify a user to run calibre-server as, as we will not run it as root!"
101 - eerror "Modify CALIBRE_USER to your needs (you can also add a group, after a colon)"
102 - return 1
103 - fi
104 - if ! getent passwd "${CALIBRE_USER%:*}" >/dev/null ; then
105 - eerror "Please edit /etc/conf.d/calibre-server"
106 - eerror "Your user has to exist!"
107 - return 1
108 - fi
109 - if [ "${CALIBRE_USER%:*}" != "${CALIBRE_USER}" ] ; then
110 - if ! getent group "${CALIBRE_USER#*:}" >/dev/null ; then
111 - eerror "Please edit /etc/conf.d/calibre-server"
112 - eerror "Your group has to exist too!"
113 - return 1
114 - fi
115 - fi
116 - if [ "${CALIBRE_LIBRARY}" = "" ] ; then
117 - CALIBRE_USER_HOME=$(getent passwd "${CALIBRE_USER%:*}" | cut -d ':' -f 6)
118 - CALIBRE_LIBRARY="${CALIBRE_USER_HOME}/Calibre Library"
119 - fi
120 - if [ ! -d "${CALIBRE_LIBRARY}" ] ; then
121 - eerror "Please edit /etc/conf.d/calibre-server"
122 - eerror "The Calibre library, '${CALIBRE_LIBRARY},' does not exist."
123 - eerror "Please modify CALIBRE_LIBRARY to point to a valid library."
124 - return 1
125 - fi
126 - return 0
127 -}
128 -
129 -start() {
130 - checkconfig || return $?
131 - local pidfile=/var/run/calibre-server.pid
132 - ebegin "Starting calibre-server"
133 - start-stop-daemon --user "${CALIBRE_USER}" \
134 - --pidfile "${pidfile}" --make-pidfile --background --exec /usr/bin/calibre-server \
135 - -- --with-library "${CALIBRE_LIBRARY}" ${CALIBRE_OPTS}
136 - eend $?
137 -}
138 -
139 -stop() {
140 - ebegin "Stopping calibre-server"
141 - start-stop-daemon --stop --user "${CALIBRE_USER}" \
142 - --pidfile /var/run/calibre-server.pid
143 - eend $?
144 -}