From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 919B7158091 for ; Sun, 12 Jun 2022 19:51:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A794BE096F; Sun, 12 Jun 2022 19:51:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C60DE096F for ; Sun, 12 Jun 2022 19:51:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 855F1341B73 for ; Sun, 12 Jun 2022 19:51:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB15144B for ; Sun, 12 Jun 2022 19:51:07 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1655063461.c9a0fbedd1906e5ef876e7c90cab82cc63d07221.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/blackbox/files/, x11-wm/blackbox/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-wm/blackbox/blackbox-0.77.ebuild x11-wm/blackbox/files/blackbox-0.77-gcc12-time.patch X-VCS-Directories: x11-wm/blackbox/ x11-wm/blackbox/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c9a0fbedd1906e5ef876e7c90cab82cc63d07221 X-VCS-Branch: master Date: Sun, 12 Jun 2022 19:51:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca700446-1091-4dd3-8f94-7861d4b515ee X-Archives-Hash: f9c1d4b84aca866a0049769d0b94daea commit: c9a0fbedd1906e5ef876e7c90cab82cc63d07221 Author: Sam James gentoo org> AuthorDate: Sun Jun 12 19:50:58 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 12 19:51:01 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a0fbed x11-wm/blackbox: fix build with GCC 12 Closes: https://bugs.gentoo.org/851603 Signed-off-by: Sam James gentoo.org> x11-wm/blackbox/blackbox-0.77.ebuild | 4 +++ .../blackbox/files/blackbox-0.77-gcc12-time.patch | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/x11-wm/blackbox/blackbox-0.77.ebuild b/x11-wm/blackbox/blackbox-0.77.ebuild index 815969ba46db..32b54c5b3e31 100644 --- a/x11-wm/blackbox/blackbox-0.77.ebuild +++ b/x11-wm/blackbox/blackbox-0.77.ebuild @@ -26,6 +26,10 @@ BDEPEND=">=sys-devel/autoconf-2.71 S="${WORKDIR}"/blackboxwm-${PV} +PATCHES=( + "${FILESDIR}"/${PN}-0.77-gcc12-time.patch +) + src_prepare() { sed -e '/AC_DISABLE_SHARED/d' -i configure.ac || die default diff --git a/x11-wm/blackbox/files/blackbox-0.77-gcc12-time.patch b/x11-wm/blackbox/files/blackbox-0.77-gcc12-time.patch new file mode 100644 index 000000000000..196e3878253d --- /dev/null +++ b/x11-wm/blackbox/files/blackbox-0.77-gcc12-time.patch @@ -0,0 +1,35 @@ +https://github.com/bbidulock/blackboxwm/pull/42 + +From d3481ee7b7d104ef53ead4d35b9a9254c64bb87a Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 12 Jun 2022 20:49:09 +0100 +Subject: [PATCH] Fix build with GCC 12 (missing include) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes build failure with GCC 12: +``` +Toolbar.cc: In member function ‘void Toolbar::reconfigure()’: +Toolbar.cc:260:17: error: ‘time’ was not declared in this scope; did you mean ‘Time’? + 260 | time_t ttmp = time(NULL); + | ^~~~ + | Time +Toolbar.cc:265:21: error: ‘localtime’ was not declared in this scope; did you mean ‘clock_timer’? + 265 | struct tm *tt = localtime(&ttmp); + | ^~~~~~~~~ + | clock_timer +``` + +Bug: https://bugs.gentoo.org/851603 +--- a/src/Toolbar.cc ++++ b/src/Toolbar.cc +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + + + long nextTimeout(int resolution) +