public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/bino/, media-video/bino/files/
Date: Fri,  2 Sep 2022 01:07:19 +0000 (UTC)	[thread overview]
Message-ID: <1662080830.68ca288e4d62bdf7631746b20d40a72e2b6ba746.sam@gentoo> (raw)

commit:     68ca288e4d62bdf7631746b20d40a72e2b6ba746
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  2 00:59:33 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  2 01:07:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68ca288e

media-video/bino: fix musl build w/ gcc-12

Closes: https://bugs.gentoo.org/866290
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-video/bino/bino-1.6.8.ebuild                 |  4 ++++
 .../bino/files/bino-1.6.8-time-include.patch       | 24 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/media-video/bino/bino-1.6.8.ebuild b/media-video/bino/bino-1.6.8.ebuild
index 0cdd8ab1a37c..f0f6a54eb8d1 100644
--- a/media-video/bino/bino-1.6.8.ebuild
+++ b/media-video/bino/bino-1.6.8.ebuild
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}"
 BDEPEND="sys-devel/gettext
 	virtual/pkgconfig"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.6.8-time-include.patch
+)
+
 src_configure() {
 	if use video_cards_nvidia; then
 		append-cppflags "-I${ESYSROOT}/usr/include/NVCtrl"

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
new file mode 100644
index 000000000000..b10f42b1a40f
--- /dev/null
+++ b/media-video/bino/files/bino-1.6.8-time-include.patch
@@ -0,0 +1,24 @@
+Sent upstream by email on 2022-09-02.
+
+From 242b5df7074739fb4c74e2682cb9f325a5269c94 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Fri, 2 Sep 2022 02:04:26 +0100
+Subject: [PATCH 2/2] Fix build with GCC 12 and musl (missing <ctime> include)
+
+Fixes build errors like:
+```
+../../src/base/str.h:146:30: error: 'time_t' was not declared in this scope
+  146 |     std::string rfc2822_time(time_t t);
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/src/base/str.h
++++ b/src/base/str.h
+@@ -31,6 +31,7 @@
+ #include <vector>
+ #include <cstdarg>
+ #include <cerrno>
++#include <ctime>
+ 
+ #ifdef __GNUC__
+ # define STR_AFP(a, b) __attribute__ ((format (printf, a, b)))


             reply	other threads:[~2022-09-02  1:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-02  1:07 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-06-19 14:18 [gentoo-commits] repo/gentoo:master commit in: media-video/bino/, media-video/bino/files/ Sam James
2018-03-15 10:24 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1662080830.68ca288e4d62bdf7631746b20d40a72e2b6ba746.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox