[packages/polybar] add upstream patch to fix build with gcc 15
atler
atler at pld-linux.org
Sat Oct 4 22:57:10 CEST 2025
commit 42de41993bf865a69fd9dcae807b13c8a9d110cf
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Oct 4 22:56:30 2025 +0200
add upstream patch to fix build with gcc 15
includes.patch | 22 ++++++++++++++++++++++
polybar.spec | 2 ++
2 files changed, 24 insertions(+)
---
diff --git a/polybar.spec b/polybar.spec
index 235227b..17a9eda 100644
--- a/polybar.spec
+++ b/polybar.spec
@@ -6,6 +6,7 @@ License: MIT, BSD
Group: X11/Window Managers
Source0: https://github.com/polybar/polybar/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 1c9273c7eef5b542448d6054d9aa3ac5
+Patch0: includes.patch
URL: https://polybar.github.io/
BuildRequires: alsa-lib-devel
BuildRequires: cairo-devel
@@ -67,6 +68,7 @@ zsh-completion for polybar.
%prep
%setup -q
+%patch -P0 -p1
%build
install -d build
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..249ae96
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,22 @@
+From f99e0b1c7a5b094f5a04b14101899d0cb4ece69d Mon Sep 17 00:00:00 2001
+From: p_q <p_q at nebulae.co>
+Date: Wed, 10 Sep 2025 10:24:55 +0200
+Subject: [PATCH] Fix missing cstdint header for compiling with gcc15.
+
+See https://gcc.gnu.org/gcc-15/porting_to.html for the details.
+---
+ include/common.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/common.hpp b/include/common.hpp
+index e6714c8fb..cb82fdf8c 100644
+--- a/include/common.hpp
++++ b/include/common.hpp
+@@ -7,6 +7,7 @@
+ #include <type_traits>
+ #include <utility>
+ #include <vector>
++#include <cstdint>
+
+ #include "settings.hpp"
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/polybar.git/commitdiff/42de41993bf865a69fd9dcae807b13c8a9d110cf
More information about the pld-cvs-commit
mailing list