summaryrefslogtreecommitdiff
path: root/x11-misc/i3blocks-contrib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-27 23:32:51 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-27 23:32:51 +0100
commit881ed853a610750628d101d50410e9f3bf370d87 (patch)
tree1e83f90631d71c2e2b0376bb0e725f49ede671da /x11-misc/i3blocks-contrib
parent5b4dc9f80a36fa17a541592b7bd29d31418e6a7b (diff)
gentoo auto-resync : 27:09:2023 - 23:32:51
Diffstat (limited to 'x11-misc/i3blocks-contrib')
-rw-r--r--x11-misc/i3blocks-contrib/Manifest3
-rw-r--r--x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch25
-rw-r--r--x11-misc/i3blocks-contrib/i3blocks-contrib-2.0.0.ebuild5
3 files changed, 31 insertions, 2 deletions
diff --git a/x11-misc/i3blocks-contrib/Manifest b/x11-misc/i3blocks-contrib/Manifest
index 53708a28f477..1b82db6a7bc8 100644
--- a/x11-misc/i3blocks-contrib/Manifest
+++ b/x11-misc/i3blocks-contrib/Manifest
@@ -1,4 +1,5 @@
+AUX i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch 890 BLAKE2B e67d37d9ef4f7818b3be52ed6eff17fbd6c7ba458629d06aa1007025ae9a255e8bcf01cb3751cf992c7e78f85cdf1850b8729d94b1c4a626693e8bbec985eb24 SHA512 9f3f8bea8dc20f8dbabf29f12c14ae52a6c1499b40d60507de0104557d600a0ad39ef3eb1e1fe8982e37df87e6dbf339e3cdd15549dfe519f9537a358a7590c8
AUX i3blocks-contrib-2.0.0-respect-CFLAGS.patch 1391 BLAKE2B 4d2f1d6a567074dce73aa4d5ecec38cc6cba130e94efbb3074c53ea5253f167bcb01e8b37f8d35f6802961a7e610ffa606e31d91fc9f4936ee55425b0b128719 SHA512 ab137c15781f6874cbbb731810ed8fdeb022374048670571e46048e823814e5961e9c8f8b749197478494073bf97d660d03b93edcde500da662ef90513382c23
DIST i3blocks-contrib-2.0.0.tar.gz 840332 BLAKE2B e220566edea4249c25ac80dcba3e24fc37de842049ad072a14fd5003e298ec9a4b4f36cd3937682ab00355b1f1c3fc7ea795ac6593f24aed2438b465ad338d8f SHA512 30cf9297e710a2d685b275d424de817e7940a487c615e64ffaf15e0f90e937bedbd3921dfeece081e32f720b6add92c0790fa7a29e4e8f81f85c3a74cbcea835
-EBUILD i3blocks-contrib-2.0.0.ebuild 1901 BLAKE2B faba84766338d2ae42f4c8754b4780c8b0ef0dba5b5c1ccaf23f50ff92097e14d75964512ab9bddfc94af689d49f7d358d1bafbbc462e8eb8d501a1d3507298a SHA512 eb982e9cb41b1c0f6274707f61ead5023f4faad1e46dbd58843c66b506caa3656731be1aad110103fc2ef99ba1db4f3fc61fd0eea5b0af0bc7e8473c4516881f
+EBUILD i3blocks-contrib-2.0.0.ebuild 1952 BLAKE2B fab040b4315c1791bde8d8e92193f51c70352f36f8edd1d2bff6378600b35d58a806b143c209389bc487d392ca0ec39d85a11ab379b6a86bd27da62d9c1ec486 SHA512 befe2cf10d3395388caff296040abd7fa046b6db070aafe89df5875a2278d12ae35d64392697fc07b710d6048737acc6cff8371710394c158edaa6cfc2b3a888
MISC metadata.xml 333 BLAKE2B e61c03570a64645a4a0e96357b75c4bc0c19abc377726c4b413ea8a75fff7f6707b3bd6f126cf2c2d9ec4c90dd45e386116f0243ff6e574a059102c6ad5b5e2c SHA512 273f7dbcf62381ff71890a76478e0ca056a5114b2fd31cbd7203ab8bc30655495f6b5b85c2621b04d2a5681b612dbbffb98388e5f7523d88cc388475e56aa59a
diff --git a/x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch b/x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch
new file mode 100644
index 000000000000..bf92d791df55
--- /dev/null
+++ b/x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch
@@ -0,0 +1,25 @@
+From 230f42f5bc5ebc44062820bde1e9e40ae0746c00 Mon Sep 17 00:00:00 2001
+From: Corentin Rondier <contact@rondier.io>
+Date: Sun, 24 Sep 2023 23:22:58 +0200
+Subject: [PATCH] cpu_usage2: fix build failures on clang/llvm
+
+Remove a non-standard suffix on a floating-point literal, causing build failures on clang/LLVM
+
+fixes #504
+---
+ cpu_usage2/cpu_usage2.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cpu_usage2/cpu_usage2.c b/cpu_usage2/cpu_usage2.c
+index 72709037..483c4c81 100644
+--- a/cpu_usage2/cpu_usage2.c
++++ b/cpu_usage2/cpu_usage2.c
+@@ -124,7 +124,7 @@ int main(int argc, char *argv[])
+ sleep(t);
+ total = get_usage(&used);
+
+- display(label, 100.0D * (used - old_used) / (total - old_total),
++ display(label, 100.0 * (used - old_used) / (total - old_total),
+ warning, critical, decimals);
+ fflush(stdout);
+ old_total = total;
diff --git a/x11-misc/i3blocks-contrib/i3blocks-contrib-2.0.0.ebuild b/x11-misc/i3blocks-contrib/i3blocks-contrib-2.0.0.ebuild
index 2ee22731467a..8d3664dbaec5 100644
--- a/x11-misc/i3blocks-contrib/i3blocks-contrib-2.0.0.ebuild
+++ b/x11-misc/i3blocks-contrib/i3blocks-contrib-2.0.0.ebuild
@@ -16,7 +16,10 @@ DEPEND=""
RDEPEND=">=x11-misc/i3blocks-1.5"
BDEPEND=""
-PATCHES=( "${FILESDIR}"/${P}-respect-CFLAGS.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-respect-CFLAGS.patch
+ "${FILESDIR}"/${P}-fix-build-on-clang-llvm.patch
+)
src_prepare() {
sed -i -e '/^$(_BLOCKS):/ s/$/ installdirs/' Makefile