4 Commits

3 changed files with 45 additions and 6 deletions

30
polybar-gcc15.patch Normal file
View File

@@ -0,0 +1,30 @@
--- polybar-3.7.2/include/ipc/msg.hpp 2024-08-17 13:39:55.000000000 +0200
+++ polybar-3.7.2/include/ipc/msg.hpp 2025-03-12 14:15:51.370793695 +0100
@@ -3,6 +3,7 @@
#include "common.hpp"
#include <array>
+#include <cstdint>
POLYBAR_NS
--- polybar-3.7.2/include/utils/color.hpp 2024-08-17 13:39:55.000000000 +0200
+++ polybar-3.7.2/include/utils/color.hpp 2025-03-12 14:25:55.321819018 +0100
@@ -1,6 +1,7 @@
#pragma once
#include <cstdlib>
+#include <cstdint>
#include "common.hpp"
--- polybar-3.7.2/include/utils/string.hpp 2024-08-17 13:39:55.000000000 +0200
+++ polybar-3.7.2/include/utils/string.hpp 2025-03-12 14:17:05.765954854 +0100
@@ -1,6 +1,7 @@
#pragma once
#include <sstream>
+#include <cstdint>
#include "common.hpp"

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Mar 17 06:46:57 UTC 2025 - Mateusz Mielczarek <mateusz.mielczarek2@gmail.com>
- Remove `if` function for `%autopatch` macro
-------------------------------------------------------------------
Wed Mar 12 13:31:49 UTC 2025 - pgajdos@suse.com
- fix build with gcc15
- added patches
+ polybar-gcc15.patch
-------------------------------------------------------------------
Tue Sep 10 06:29:14 UTC 2024 - Mateusz Mielczarek <mateusz.mielczarek2@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package polybar
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@ Group: System/GUI/Other
URL: https://github.com/polybar/polybar
Source: https://github.com/polybar/polybar/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0: cmake.patch
Patch1: polybar-gcc15.patch
BuildRequires: c++_compiler
BuildRequires: cmake >= 3.5
BuildRequires: i3
@@ -61,11 +62,7 @@ DocDir: %{_datadir}/doc
A fast and easy-to-use status bar for tilling WM
%prep
%setup -q
%if 0%{?sle_version} == 150500 && 0%{?is_opensuse} || 0%{?sle_version} == 150600 && 0%{?is_opensuse}
%autopatch -p1
%endif
%autosetup -p1
%build
%cmake