* [gentoo-commits] repo/gentoo:master commit in: x11-misc/bumblebee/, x11-misc/bumblebee/files/
@ 2020-06-19 17:35 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2020-06-19 17:35 UTC (permalink / raw
To: gentoo-commits
commit: d5702a506f6074eef248afc8cc20df6ebd68a1a6
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 19 17:34:05 2020 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Fri Jun 19 17:34:05 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5702a50
x11-misc/bumblebee: Fix building with gcc-10
Closes: https://bugs.gentoo.org/726116
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
.../bumblebee/bumblebee-3.2.1_p20190421.ebuild | 5 ++
.../files/bumblebee-3.2.1_p20190421-gcc10.patch | 66 ++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20190421.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20190421.ebuild
index ecedcc95c49..eb6477c3683 100644
--- a/x11-misc/bumblebee/bumblebee-3.2.1_p20190421.ebuild
+++ b/x11-misc/bumblebee/bumblebee-3.2.1_p20190421.ebuild
@@ -53,6 +53,11 @@ PDEPEND="
REQUIRED_USE="|| ( video_cards_nouveau video_cards_nvidia )"
+PATCHES=(
+ # https://github.com/Bumblebee-Project/Bumblebee/issues/1058
+ "${FILESDIR}/${P}-gcc10.patch"
+)
+
pkg_setup() {
enewgroup bumblebee
}
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
new file mode 100644
index 00000000000..7d02226521e
--- /dev/null
+++ b/x11-misc/bumblebee/files/bumblebee-3.2.1_p20190421-gcc10.patch
@@ -0,0 +1,66 @@
+Author: Andreas Beckmann <anbe@debian.org>
+Description: fix FTBFS with gcc-10
+ gcc-10 defaults to -fno-common
+ see https://gcc.gnu.org/gcc-10/porting_to.html
+Bug-Debian: https://bugs.debian.org/957058
+
+--- a/src/bbconfig.h
++++ b/src/bbconfig.h
+@@ -103,7 +103,7 @@ enum bb_pm_method {
+ PM_VGASWITCHEROO,
+ PM_METHODS_COUNT /* not a method but a marker for the end */
+ };
+-const char *bb_pm_method_string[PM_METHODS_COUNT];
++extern const char *bb_pm_method_string[PM_METHODS_COUNT];
+
+ /* String buffer size */
+ #define BUFFER_SIZE 1024
+--- a/src/switch/switching.h
++++ b/src/switch/switching.h
+@@ -60,10 +60,10 @@ void switcheroo_off(void);
+
+ /* number of switchers as defined in switching.c */
+ #define SWITCHERS_COUNT 2
+-struct switching_method switching_methods[SWITCHERS_COUNT];
++extern struct switching_method switching_methods[SWITCHERS_COUNT];
+
+ /* A switching method that can be used or NULL if none */
+-struct switching_method *switcher;
++extern struct switching_method *switcher;
+
+ struct switching_method *switcher_detect(const char *name, struct switch_info);
+ enum switch_state switch_status(void);
+--- a/src/bbsecondary.h
++++ b/src/bbsecondary.h
+@@ -21,7 +21,7 @@
+ #pragma once
+
+ /* PCI Bus ID of the discrete video card */
+-struct pci_bus_id *pci_bus_id_discrete;
++extern struct pci_bus_id *pci_bus_id_discrete;
+
+ /// Start the X server by fork-exec, turn card on if needed.
+ bool start_secondary(bool);
+--- a/src/switch/switching.c
++++ b/src/switch/switching.c
+@@ -31,6 +31,8 @@ struct switching_method switching_method
+ switcheroo_on, switcheroo_off}
+ };
+
++struct switching_method *switcher = NULL;
++
+ /**
+ * Enumerates through available switching methods and try a method
+ *
+--- a/src/bbsecondary.c
++++ b/src/bbsecondary.c
+@@ -37,6 +37,9 @@
+ #include "pci.h"
+ #include "module.h"
+
++/* PCI Bus ID of the discrete video card */
++struct pci_bus_id *pci_bus_id_discrete;
++
+ /**
+ * Substitutes DRIVER in the passed path
+ * @param x_conf_file A path to be processed
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/bumblebee/, x11-misc/bumblebee/files/
@ 2020-09-18 20:31 Rick Farina
0 siblings, 0 replies; 2+ messages in thread
From: Rick Farina @ 2020-09-18 20:31 UTC (permalink / raw
To: gentoo-commits
commit: 45a2c5cc6300432cfb106b74373fa5fe02941c24
Author: Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 18 20:31:46 2020 +0000
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri Sep 18 20:31:56 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a2c5cc
x11-misc/bumblebee: you have too many needs
bumblebee only needs virtualgl when it's installed, the ebuild handles
the deps correctly, so downgrade 'need' to 'want' preserving installed
behavior and quieting the init script when it's not installed
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>
...ee-3.2.1_p20170130.ebuild => bumblebee-3.2.1_p20170130-r1.ebuild} | 0
...ee-3.2.1_p20190421.ebuild => bumblebee-3.2.1_p20190421-r1.ebuild} | 0
x11-misc/bumblebee/files/bumblebee.initd | 5 +++--
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20170130.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20170130-r1.ebuild
similarity index 100%
rename from x11-misc/bumblebee/bumblebee-3.2.1_p20170130.ebuild
rename to x11-misc/bumblebee/bumblebee-3.2.1_p20170130-r1.ebuild
diff --git a/x11-misc/bumblebee/bumblebee-3.2.1_p20190421.ebuild b/x11-misc/bumblebee/bumblebee-3.2.1_p20190421-r1.ebuild
similarity index 100%
rename from x11-misc/bumblebee/bumblebee-3.2.1_p20190421.ebuild
rename to x11-misc/bumblebee/bumblebee-3.2.1_p20190421-r1.ebuild
diff --git a/x11-misc/bumblebee/files/bumblebee.initd b/x11-misc/bumblebee/files/bumblebee.initd
index 219f71010d8..96ff058eb1a 100644
--- a/x11-misc/bumblebee/files/bumblebee.initd
+++ b/x11-misc/bumblebee/files/bumblebee.initd
@@ -1,9 +1,10 @@
#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
depend() {
- need xdm vgl
+ need xdm
+ want vgl
}
PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}"
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-18 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-19 17:35 [gentoo-commits] repo/gentoo:master commit in: x11-misc/bumblebee/, x11-misc/bumblebee/files/ Pacho Ramos
-- strict thread matches above, loose matches on Subject: below --
2020-09-18 20:31 Rick Farina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox