From bb614a60ac22f5d9c0a30e25601aedf27bb1dde7 Mon Sep 17 00:00:00 2001 From: Filipe Rosset Date: Sun, 20 Oct 2024 22:19:05 -0300 Subject: [PATCH 1/3] Toolbar.cc: fix build for systems where time_t != long --- blackbox.spec | 3 +++ ...70b2317ff8f20642fbda5aa07e8f43b254b0.patch | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch diff --git a/blackbox.spec b/blackbox.spec index 061818e..51cf5cf 100644 --- a/blackbox.spec +++ b/blackbox.spec @@ -7,7 +7,10 @@ URL: https://github.com/bbidulock/blackboxwm Source0: https://github.com/bbidulock/blackboxwm/releases/download/%{version}/%{name}-%{version}.tar.lz Source1: blackbox.desktop Source2: blackbox.session +# Fix build with GCC 12 (missing include) Patch0: d3481ee7b7d104ef53ead4d35b9a9254c64bb87a.patch +# Toolbar.cc: fix build for systems where time_t != long +Patch1: d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch BuildRequires: automake BuildRequires: autoconf BuildRequires: gcc-c++ diff --git a/d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch b/d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch new file mode 100644 index 0000000..c5d2b69 --- /dev/null +++ b/d45570b2317ff8f20642fbda5aa07e8f43b254b0.patch @@ -0,0 +1,24 @@ +From d45570b2317ff8f20642fbda5aa07e8f43b254b0 Mon Sep 17 00:00:00 2001 +From: Andrii Batyiev +Date: Thu, 22 Feb 2024 01:57:55 +0000 +Subject: [PATCH] Toolbar.cc: fix build for systems where time_t != long + +--- + src/Toolbar.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Toolbar.cc b/src/Toolbar.cc +index 8ccad201..fc19f346 100644 +--- a/src/Toolbar.cc ++++ b/src/Toolbar.cc +@@ -45,8 +45,8 @@ long nextTimeout(int resolution) + { + timeval now; + gettimeofday(&now, 0); +- return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l)) +- - (now.tv_usec / 1000l)))); ++ return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l)) ++ - (now.tv_usec / 1000l)))); + } + + From accb1d6779e242446b2d05298e9bf8d402ae7d29 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 12:34:56 +0000 Subject: [PATCH 2/3] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 6357207e46a3dc387825fb6cfa9055fc8e86014c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 17:44:15 +0000 Subject: [PATCH 3/3] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild