diff --git a/mate-extra/mate-sensors-applet/files/mate-sensors-applet-1.24.1-dont-check-for-headers.patch b/mate-extra/mate-sensors-applet/files/mate-sensors-applet-1.24.1-dont-check-for-headers.patch new file mode 100644 index 0000000000000..98aba2e903d5d --- /dev/null +++ b/mate-extra/mate-sensors-applet/files/mate-sensors-applet-1.24.1-dont-check-for-headers.patch @@ -0,0 +1,20 @@ +# Removing unnecessary HAVE_STDIO_H and HAVE_LOCALE_H config checks. The +# HAVE_LOCALE_H also makes fails to build on musl system. +# Upstream issue: https://github.com/mate-desktop/mate-sensors-applet/issues/123 +# Closes: https://bugs.gentoo.org/777375 +--- a/plugins/i2c-proc/i2c-proc-plugin.c ++++ b/plugins/i2c-proc/i2c-proc-plugin.c +@@ -20,13 +20,8 @@ + #include + #endif /* HAVE_CONFIG_H */ + +-#ifdef HAVE_STDIO_H + #include +-#endif /* HAVE_STDIO_H */ +- +-#ifdef HAVE_LOCALE_H + #include +-#endif + + #include + #include diff --git a/mate-extra/mate-sensors-applet/mate-sensors-applet-1.24.1.ebuild b/mate-extra/mate-sensors-applet/mate-sensors-applet-1.24.1.ebuild index c6264e8b1b34f..fd9e54d096293 100644 --- a/mate-extra/mate-sensors-applet/mate-sensors-applet-1.24.1.ebuild +++ b/mate-extra/mate-sensors-applet/mate-sensors-applet-1.24.1.ebuild @@ -43,6 +43,10 @@ DEPEND="${COMMON_DEPEND} PDEPEND="hddtemp? ( dbus? ( sys-fs/udisks:2 ) )" +PATCHES=( + "${FILESDIR}/${PN}-1.24.1-dont-check-for-headers.patch" +) + src_configure() { local udisks