1 |
commit: d953555228d855a17c7d36ae2b6dd4898b5faba1 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 8 12:24:48 2021 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 8 12:24:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9535552 |
7 |
|
8 |
x11-misc/bumblebee: Drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
x11-misc/bumblebee/Manifest | 1 - |
14 |
.../bumblebee/bumblebee-3.2.1_p20190421-r1.ebuild | 99 ---------------------- |
15 |
.../bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild | 94 -------------------- |
16 |
.../files/bumblebee-3.2.1_p20190421-gcc10.patch | 66 --------------- |
17 |
x11-misc/bumblebee/files/bumblebee.initd | 23 ----- |
18 |
5 files changed, 283 deletions(-) |
19 |
|
20 |
diff --git a/x11-misc/bumblebee/Manifest b/x11-misc/bumblebee/Manifest |
21 |
index 0fb422d246a..f030cce1d87 100644 |
22 |
--- a/x11-misc/bumblebee/Manifest |
23 |
+++ b/x11-misc/bumblebee/Manifest |
24 |
@@ -1,2 +1 @@ |
25 |
-DIST bumblebee-3.2.1_p20190421.tar.gz 63640 BLAKE2B 62bf3e7556b3cc3651f0e1f9fabd22501b82e78c0820b5ae113fddc24816cefd9c788a33d506944dc971092ae22dc3389ced79da6284a5e812ffad909bb03ebd SHA512 e24de3b60e55828ccbbd85774b9a776ba01b62850489b9d7952c4bf807f080b68d084f11de540a65d1bf78f6a35ce89d35f868de14e7ab9d768cdf21a1d422ec |
26 |
DIST bumblebee-3.2.1_p20210112.tar.gz 63840 BLAKE2B 53f433c90ea7925a059597f9ce1e6b764bf204337cda2a87b3e862951fbd86e18cf3bb973a2a43c0ff913e9b290170536760ed9163ea746f5b28b7fed4ce9c6d SHA512 2d23db5a6d2a06c37176440568fd30c3afd80a75e13db00f081c0029f9e03275bf6c7b019778b9c31dcffe49ba56ec86a3303f00074123c95560a850bdb0f36b |
27 |
|
28 |
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20190421-r1.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20190421-r1.ebuild |
29 |
deleted file mode 100644 |
30 |
index 3c344ba46d4..00000000000 |
31 |
--- a/x11-misc/bumblebee/bumblebee-3.2.1_p20190421-r1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,99 +0,0 @@ |
34 |
-# Copyright 1999-2021 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
- |
39 |
-inherit autotools readme.gentoo-r1 systemd user |
40 |
- |
41 |
-if [[ ${PV} == 9999 ]]; then |
42 |
- inherit git-r3 |
43 |
- EGIT_REPO_URI="https://github.com/Bumblebee-Project/Bumblebee.git" |
44 |
- EGIT_BRANCH="develop" |
45 |
-else |
46 |
- COMMIT="7aa457fe7b4fffc3b175ad36fdae00d7777065dc" |
47 |
- SRC_URI="https://github.com/Bumblebee-Project/Bumblebee/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
48 |
- KEYWORDS="amd64 x86" |
49 |
- |
50 |
- S="${WORKDIR}/Bumblebee-${COMMIT}" |
51 |
-fi |
52 |
- |
53 |
-DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" |
54 |
-HOMEPAGE="https://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" |
55 |
- |
56 |
-SLOT="0" |
57 |
-LICENSE="GPL-3" |
58 |
- |
59 |
-IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" |
60 |
- |
61 |
-COMMON_DEPEND=" |
62 |
- dev-libs/glib:2 |
63 |
- dev-libs/libbsd |
64 |
- sys-apps/kmod |
65 |
- x11-libs/libX11 |
66 |
-" |
67 |
- |
68 |
-RDEPEND="${COMMON_DEPEND} |
69 |
- virtual/opengl |
70 |
- x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] |
71 |
- bbswitch? ( sys-power/bbswitch ) |
72 |
-" |
73 |
- |
74 |
-DEPEND="${COMMON_DEPEND} |
75 |
- sys-apps/help2man |
76 |
- virtual/pkgconfig |
77 |
-" |
78 |
- |
79 |
-PDEPEND=" |
80 |
- || ( |
81 |
- x11-misc/primus |
82 |
- x11-misc/virtualgl |
83 |
- ) |
84 |
-" |
85 |
- |
86 |
-REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" |
87 |
- |
88 |
-PATCHES=( |
89 |
- # https://github.com/Bumblebee-Project/Bumblebee/issues/1058 |
90 |
- "${FILESDIR}/${P}-gcc10.patch" |
91 |
-) |
92 |
- |
93 |
-pkg_setup() { |
94 |
- enewgroup bumblebee |
95 |
-} |
96 |
- |
97 |
-src_prepare() { |
98 |
- default |
99 |
- eautoreconf |
100 |
-} |
101 |
- |
102 |
-src_configure() { |
103 |
- if use video_cards_nvidia ; then |
104 |
- # Get paths to GL libs for all ABIs |
105 |
- local i nvlib="" |
106 |
- for i in $(get_all_libdirs) ; do |
107 |
- nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" |
108 |
- done |
109 |
- |
110 |
- local nvpref="/usr/$(get_libdir)/opengl/nvidia" |
111 |
- local xorgpref="/usr/$(get_libdir)/xorg/modules" |
112 |
- ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ |
113 |
- CONF_LDPATH_NVIDIA=${nvlib#:} \ |
114 |
- CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" |
115 |
- fi |
116 |
- |
117 |
- econf \ |
118 |
- ${ECONF_PARAMS} |
119 |
-} |
120 |
- |
121 |
-src_install() { |
122 |
- default |
123 |
- |
124 |
- newconfd "${FILESDIR}"/${PN}.confd ${PN} |
125 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
126 |
- newenvd "${FILESDIR}"/${PN}.envd 99${PN} |
127 |
- systemd_dounit scripts/systemd/bumblebeed.service |
128 |
- |
129 |
- local DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. |
130 |
- You may need to setup your /etc/bumblebee/bumblebee.conf" |
131 |
- readme.gentoo_create_doc |
132 |
-} |
133 |
|
134 |
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild |
135 |
deleted file mode 100644 |
136 |
index 4984d378312..00000000000 |
137 |
--- a/x11-misc/bumblebee/bumblebee-3.2.1_p20210112-r1.ebuild |
138 |
+++ /dev/null |
139 |
@@ -1,94 +0,0 @@ |
140 |
-# Copyright 1999-2021 Gentoo Authors |
141 |
-# Distributed under the terms of the GNU General Public License v2 |
142 |
- |
143 |
-EAPI=7 |
144 |
- |
145 |
-inherit autotools readme.gentoo-r1 systemd user |
146 |
- |
147 |
-if [[ ${PV} == 9999 ]]; then |
148 |
- inherit git-r3 |
149 |
- EGIT_REPO_URI="https://github.com/Bumblebee-Project/Bumblebee.git" |
150 |
- EGIT_BRANCH="develop" |
151 |
-else |
152 |
- COMMIT="8f3d307b6aabbc2cd8444c6e5a4360f3bf2915ec" |
153 |
- SRC_URI="https://github.com/Bumblebee-Project/Bumblebee/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
154 |
- KEYWORDS="amd64 x86" |
155 |
- |
156 |
- S="${WORKDIR}/Bumblebee-${COMMIT}" |
157 |
-fi |
158 |
- |
159 |
-DESCRIPTION="Service providing elegant and stable means of managing Optimus graphics chipsets" |
160 |
-HOMEPAGE="https://bumblebee-project.org https://github.com/Bumblebee-Project/Bumblebee" |
161 |
- |
162 |
-SLOT="0" |
163 |
-LICENSE="GPL-3" |
164 |
- |
165 |
-IUSE="+bbswitch video_cards_nouveau video_cards_nvidia" |
166 |
- |
167 |
-COMMON_DEPEND=" |
168 |
- dev-libs/glib:2 |
169 |
- dev-libs/libbsd |
170 |
- sys-apps/kmod |
171 |
- x11-libs/libX11 |
172 |
-" |
173 |
- |
174 |
-RDEPEND="${COMMON_DEPEND} |
175 |
- virtual/opengl |
176 |
- x11-base/xorg-drivers[video_cards_nvidia?,video_cards_nouveau?] |
177 |
- bbswitch? ( sys-power/bbswitch ) |
178 |
-" |
179 |
- |
180 |
-DEPEND="${COMMON_DEPEND} |
181 |
- sys-apps/help2man |
182 |
- virtual/pkgconfig |
183 |
-" |
184 |
- |
185 |
-PDEPEND=" |
186 |
- || ( |
187 |
- x11-misc/primus |
188 |
- x11-misc/virtualgl |
189 |
- ) |
190 |
-" |
191 |
- |
192 |
-REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )" |
193 |
- |
194 |
-pkg_setup() { |
195 |
- enewgroup bumblebee |
196 |
-} |
197 |
- |
198 |
-src_prepare() { |
199 |
- default |
200 |
- eautoreconf |
201 |
-} |
202 |
- |
203 |
-src_configure() { |
204 |
- if use video_cards_nvidia ; then |
205 |
- # Get paths to GL libs for all ABIs |
206 |
- local i nvlib="" |
207 |
- for i in $(get_all_libdirs) ; do |
208 |
- nvlib="${nvlib}:/usr/${i}/opengl/nvidia/lib" |
209 |
- done |
210 |
- |
211 |
- local nvpref="/usr/$(get_libdir)/opengl/nvidia" |
212 |
- local xorgpref="/usr/$(get_libdir)/xorg/modules" |
213 |
- ECONF_PARAMS="CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia \ |
214 |
- CONF_LDPATH_NVIDIA=${nvlib#:} \ |
215 |
- CONF_MODPATH_NVIDIA=${nvpref}/lib,${nvpref}/extensions,${xorgpref}/drivers,${xorgpref}" |
216 |
- fi |
217 |
- |
218 |
- econf \ |
219 |
- ${ECONF_PARAMS} |
220 |
-} |
221 |
- |
222 |
-src_install() { |
223 |
- default |
224 |
- |
225 |
- newconfd "${FILESDIR}"/${PN}.confd ${PN} |
226 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
227 |
- newenvd "${FILESDIR}"/${PN}.envd 99${PN} |
228 |
- systemd_dounit scripts/systemd/bumblebeed.service |
229 |
- |
230 |
- local DOC_CONTENTS="In order to use Bumblebee, add your user to 'bumblebee' group. |
231 |
- You may need to setup your /etc/bumblebee/bumblebee.conf" |
232 |
- readme.gentoo_create_doc |
233 |
-} |
234 |
|
235 |
diff --git a/x11-misc/bumblebee/files/bumblebee-3.2.1_p20190421-gcc10.patch b/x11-misc/bumblebee/files/bumblebee-3.2.1_p20190421-gcc10.patch |
236 |
deleted file mode 100644 |
237 |
index 7d02226521e..00000000000 |
238 |
--- a/x11-misc/bumblebee/files/bumblebee-3.2.1_p20190421-gcc10.patch |
239 |
+++ /dev/null |
240 |
@@ -1,66 +0,0 @@ |
241 |
-Author: Andreas Beckmann <anbe@××××××.org> |
242 |
-Description: fix FTBFS with gcc-10 |
243 |
- gcc-10 defaults to -fno-common |
244 |
- see https://gcc.gnu.org/gcc-10/porting_to.html |
245 |
-Bug-Debian: https://bugs.debian.org/957058 |
246 |
- |
247 |
---- a/src/bbconfig.h |
248 |
-+++ b/src/bbconfig.h |
249 |
-@@ -103,7 +103,7 @@ enum bb_pm_method { |
250 |
- PM_VGASWITCHEROO, |
251 |
- PM_METHODS_COUNT /* not a method but a marker for the end */ |
252 |
- }; |
253 |
--const char *bb_pm_method_string[PM_METHODS_COUNT]; |
254 |
-+extern const char *bb_pm_method_string[PM_METHODS_COUNT]; |
255 |
- |
256 |
- /* String buffer size */ |
257 |
- #define BUFFER_SIZE 1024 |
258 |
---- a/src/switch/switching.h |
259 |
-+++ b/src/switch/switching.h |
260 |
-@@ -60,10 +60,10 @@ void switcheroo_off(void); |
261 |
- |
262 |
- /* number of switchers as defined in switching.c */ |
263 |
- #define SWITCHERS_COUNT 2 |
264 |
--struct switching_method switching_methods[SWITCHERS_COUNT]; |
265 |
-+extern struct switching_method switching_methods[SWITCHERS_COUNT]; |
266 |
- |
267 |
- /* A switching method that can be used or NULL if none */ |
268 |
--struct switching_method *switcher; |
269 |
-+extern struct switching_method *switcher; |
270 |
- |
271 |
- struct switching_method *switcher_detect(const char *name, struct switch_info); |
272 |
- enum switch_state switch_status(void); |
273 |
---- a/src/bbsecondary.h |
274 |
-+++ b/src/bbsecondary.h |
275 |
-@@ -21,7 +21,7 @@ |
276 |
- #pragma once |
277 |
- |
278 |
- /* PCI Bus ID of the discrete video card */ |
279 |
--struct pci_bus_id *pci_bus_id_discrete; |
280 |
-+extern struct pci_bus_id *pci_bus_id_discrete; |
281 |
- |
282 |
- /// Start the X server by fork-exec, turn card on if needed. |
283 |
- bool start_secondary(bool); |
284 |
---- a/src/switch/switching.c |
285 |
-+++ b/src/switch/switching.c |
286 |
-@@ -31,6 +31,8 @@ struct switching_method switching_method |
287 |
- switcheroo_on, switcheroo_off} |
288 |
- }; |
289 |
- |
290 |
-+struct switching_method *switcher = NULL; |
291 |
-+ |
292 |
- /** |
293 |
- * Enumerates through available switching methods and try a method |
294 |
- * |
295 |
---- a/src/bbsecondary.c |
296 |
-+++ b/src/bbsecondary.c |
297 |
-@@ -37,6 +37,9 @@ |
298 |
- #include "pci.h" |
299 |
- #include "module.h" |
300 |
- |
301 |
-+/* PCI Bus ID of the discrete video card */ |
302 |
-+struct pci_bus_id *pci_bus_id_discrete; |
303 |
-+ |
304 |
- /** |
305 |
- * Substitutes DRIVER in the passed path |
306 |
- * @param x_conf_file A path to be processed |
307 |
|
308 |
diff --git a/x11-misc/bumblebee/files/bumblebee.initd b/x11-misc/bumblebee/files/bumblebee.initd |
309 |
deleted file mode 100644 |
310 |
index b9296538a80..00000000000 |
311 |
--- a/x11-misc/bumblebee/files/bumblebee.initd |
312 |
+++ /dev/null |
313 |
@@ -1,23 +0,0 @@ |
314 |
-#!/sbin/openrc-run |
315 |
-# Copyright 1999-2020 Gentoo Authors |
316 |
-# Distributed under the terms of the GNU General Public License v2 |
317 |
- |
318 |
-depend() { |
319 |
- need xdm |
320 |
- want vgl |
321 |
-} |
322 |
- |
323 |
-PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}" |
324 |
- |
325 |
-start() { |
326 |
- ebegin "Starting BumbleBee Daemon" |
327 |
- start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}" |
328 |
- eend $? |
329 |
-} |
330 |
- |
331 |
-stop() { |
332 |
- |
333 |
- ebegin "Stopping BumbleBee Daemon" |
334 |
- start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10 |
335 |
- eend $? |
336 |
-} |