mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 01:37:34 -08:00
x11-plugins/wmbattery: fix LTO build
Closes: https://bugs.gentoo.org/961823 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
parent
cbae077439
commit
13440743af
12
x11-plugins/wmbattery/files/wmbattery-2.56-lto.patch
Normal file
12
x11-plugins/wmbattery/files/wmbattery-2.56-lto.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Naur wmbattery-2.56.orig/sonypi.c wmbattery-2.56/sonypi.c
|
||||||
|
--- wmbattery-2.56.orig/sonypi.c 2022-06-03 21:22:12.000000000 +0200
|
||||||
|
+++ wmbattery-2.56/sonypi.c 2025-08-22 01:21:59.483780914 +0200
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
-inline int sonypi_ioctl(int ioctlno, void *param)
|
||||||
|
+static int sonypi_ioctl(int ioctlno, void *param)
|
||||||
|
{
|
||||||
|
if (ioctl(spicfd, ioctlno, param) < 0)
|
||||||
|
return 0;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@ -20,6 +20,7 @@ RDEPEND="apm? ( sys-apps/apmd )
|
|||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND="virtual/pkgconfig"
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}"/${P}-lto.patch )
|
||||||
DOCS=( ChangeLog README TODO )
|
DOCS=( ChangeLog README TODO )
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user