summaryrefslogtreecommitdiff
path: root/x11-misc/piedock
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/piedock')
-rw-r--r--x11-misc/piedock/Manifest3
-rw-r--r--x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch31
-rw-r--r--x11-misc/piedock/piedock-1.6.9.ebuild3
3 files changed, 35 insertions, 2 deletions
diff --git a/x11-misc/piedock/Manifest b/x11-misc/piedock/Manifest
index 26557ed7b4dd..db2a58f5985e 100644
--- a/x11-misc/piedock/Manifest
+++ b/x11-misc/piedock/Manifest
@@ -1,5 +1,6 @@
AUX piedock-1.6.1-signals.patch 173 BLAKE2B 396549f932aa01f54e6c72fa653a5758351118858fda7ca28de7e354e5430c402f93497e30267cf44c4cda059af489d097b6ce44f7f747f09ec873b3528ef31f SHA512 c98aa7e22ce78fc60d778861e5bef12545553723c28bfa599b6a2d8b30c572b8d480f167b8730d84dad9c06c16cfb45f9e69665187f3e5c66053a0d4b35684fe
AUX piedock-1.6.9-freetype_pkgconfig.patch 1233 BLAKE2B 41b39f3014e0e6adf8ab8d95ef2d01ef296660859576b5e7563be33f438fb469ec4e5b32f51e2f03cf58e034eea210987dc4374b55f5e936039f8c7dfd8fe301 SHA512 63ccd116bfae7ebb1456b304ce1258850e4669a9a71f55a83625f7867e22e92892f8deb9ce81204137dc98326c6ff3faf252e126596eab2ec16c44c3b202ce31
+AUX piedock-1.6.9-gcc12-time.patch 970 BLAKE2B 743a8019e3c8f8ff0ff1081ede0f621a3eba20d602e493dd2917340527f07468f38a5812f76666b409b5081c54d32d74559a4d51379bd0c075f02985aebee6d8 SHA512 33f988c092527632e25b828120894b267e3e97ca964a54cb6b5f449a00348d265d9f0623c09a184622dae901a0bb7230ff53298f0207cd6b3eb298a57a1544b2
DIST piedock-1.6.9.tar.gz 290491 BLAKE2B 492c56d106616323a7f661e3c5d016755bdb421668bfe5251811df62ab1243838380395888c3e874c211069c30fdc7ea9141c245e907fa4c2eeea6d0a583329e SHA512 1244cc26d47c39c27c583f24aedf3dcdf0d879003f96a7cb1b512255384f0d81bf7c07dafa1b21ae1e6762bb7b41158cd20740b12b83f2d49daf7f24fbc96b69
-EBUILD piedock-1.6.9.ebuild 1093 BLAKE2B f6698110529ebdcbc14d8c5c934269981058da8a52222a14d8b76f06b4e06c37093ba3c2c6239bf742e24a7c762d6ed90e2c2a358b4d923aa28563828e4c161f SHA512 7d8f656c9c25eb31663bc27556fa7dfaf5d0f8757a21699b9bc5be9d3b98131a925e0254efca4d3bff3bdd19ac779988e088dbaae8a4eda60c1503c9faf7bf72
+EBUILD piedock-1.6.9.ebuild 1137 BLAKE2B afff90c5b6f449fcf1f7a7170f15dae7205682af754f1251682cba43faacc0c39959288e83bcf929d8f62027e34a0ba1d2a7f9d4fb7a9e111d812f0905a1d339 SHA512 7542dcb1b69037b08e7614004fd6e26064e8d6548532f14a1ccdd52afe67b586f9072f0463804d3829e5f836c5f690736280cb461d639c3260001879fc659a32
MISC metadata.xml 252 BLAKE2B 6eb8265a9dc05bf95f1fddec065820b158737d586f35030b6f7a26497479669fc08ce2baa6acfc865c7384a7f8738d58fd6ca8054758e9ab66b1b41b6258bb22 SHA512 6e99925075149e08a1f884567523641cf43b066a269499557c86801a1de792eeb4cb4b6af7362d5d00820234bfde4a3d6a64d168899f0a4a06a1b1246a68aa5f
diff --git a/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch b/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch
new file mode 100644
index 000000000000..5b8a2ea9feb9
--- /dev/null
+++ b/x11-misc/piedock/files/piedock-1.6.9-gcc12-time.patch
@@ -0,0 +1,31 @@
+https://github.com/markusfisch/PieDock/pull/19
+
+From c57d9fad9726086dafbc05abb243c14dcd1bab23 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 12 Jun 2022 11:08:19 +0100
+Subject: [PATCH] Fix build with GCC 12 (missing <time.h> include)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes the following build failure w/ GCC 12:
+```
+WindowManager.cpp: In static member function ‘static void PieDock::WindowManager::activate(Display*, Window)’:
+WindowManager.cpp:83:29: error: ‘time’ was not declared in this scope; did you mean ‘Time’?
+ 83 | for (time_t start = time(0) + 2;
+ | ^~~~
+ | Time
+```
+
+Bug: https://bugs.gentoo.org/851516
+--- a/src/WindowManager.cpp
++++ b/src/WindowManager.cpp
+@@ -10,6 +10,7 @@
+
+ #include <stdint.h>
+ #include <string.h>
++#include <time.h>
+ #include <unistd.h>
+
+ using namespace PieDock;
+
diff --git a/x11-misc/piedock/piedock-1.6.9.ebuild b/x11-misc/piedock/piedock-1.6.9.ebuild
index 2f6dc152253d..cd38c36006d0 100644
--- a/x11-misc/piedock/piedock-1.6.9.ebuild
+++ b/x11-misc/piedock/piedock-1.6.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -39,6 +39,7 @@ DOCS=( res/${PN}rc.sample AUTHORS ChangeLog NEWS )
PATCHES=(
"${FILESDIR}"/${PN}-1.6.1-signals.patch
"${FILESDIR}"/${PN}-1.6.9-freetype_pkgconfig.patch
+ "${FILESDIR}"/${PN}-1.6.9-gcc12-time.patch
)
src_prepare() {