1 |
commit: 68ca288e4d62bdf7631746b20d40a72e2b6ba746 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 00:59:33 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 01:07:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68ca288e |
7 |
|
8 |
media-video/bino: fix musl build w/ gcc-12 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/866290 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-video/bino/bino-1.6.8.ebuild | 4 ++++ |
14 |
.../bino/files/bino-1.6.8-time-include.patch | 24 ++++++++++++++++++++++ |
15 |
2 files changed, 28 insertions(+) |
16 |
|
17 |
diff --git a/media-video/bino/bino-1.6.8.ebuild b/media-video/bino/bino-1.6.8.ebuild |
18 |
index 0cdd8ab1a37c..f0f6a54eb8d1 100644 |
19 |
--- a/media-video/bino/bino-1.6.8.ebuild |
20 |
+++ b/media-video/bino/bino-1.6.8.ebuild |
21 |
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}" |
22 |
BDEPEND="sys-devel/gettext |
23 |
virtual/pkgconfig" |
24 |
|
25 |
+PATCHES=( |
26 |
+ "${FILESDIR}"/${PN}-1.6.8-time-include.patch |
27 |
+) |
28 |
+ |
29 |
src_configure() { |
30 |
if use video_cards_nvidia; then |
31 |
append-cppflags "-I${ESYSROOT}/usr/include/NVCtrl" |
32 |
|
33 |
diff --git a/media-video/bino/files/bino-1.6.8-time-include.patch b/media-video/bino/files/bino-1.6.8-time-include.patch |
34 |
new file mode 100644 |
35 |
index 000000000000..b10f42b1a40f |
36 |
--- /dev/null |
37 |
+++ b/media-video/bino/files/bino-1.6.8-time-include.patch |
38 |
@@ -0,0 +1,24 @@ |
39 |
+Sent upstream by email on 2022-09-02. |
40 |
+ |
41 |
+From 242b5df7074739fb4c74e2682cb9f325a5269c94 Mon Sep 17 00:00:00 2001 |
42 |
+From: Sam James <sam@g.o> |
43 |
+Date: Fri, 2 Sep 2022 02:04:26 +0100 |
44 |
+Subject: [PATCH 2/2] Fix build with GCC 12 and musl (missing <ctime> include) |
45 |
+ |
46 |
+Fixes build errors like: |
47 |
+``` |
48 |
+../../src/base/str.h:146:30: error: 'time_t' was not declared in this scope |
49 |
+ 146 | std::string rfc2822_time(time_t t); |
50 |
+``` |
51 |
+ |
52 |
+Signed-off-by: Sam James <sam@g.o> |
53 |
+--- a/src/base/str.h |
54 |
++++ b/src/base/str.h |
55 |
+@@ -31,6 +31,7 @@ |
56 |
+ #include <vector> |
57 |
+ #include <cstdarg> |
58 |
+ #include <cerrno> |
59 |
++#include <ctime> |
60 |
+ |
61 |
+ #ifdef __GNUC__ |
62 |
+ # define STR_AFP(a, b) __attribute__ ((format (printf, a, b))) |