If I emerge the local ebuild without the patch it runs through: --- emerge -1 =mate-applets-1.22.0::pmaci These are the packages that would be merged, in order: Calculating dependencies ........... done! [ebuild UD ] mate-base/mate-applets-1.22.0::pmaci [1.22.0-r1::pmaci] USE="X ipv6 policykit upower*" Total: 1 package (1 downgrade), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) mate-base/mate-applets-1.22.0::pmaci >>> Installing (1 of 1) mate-base/mate-applets-1.22.0::pmaci --- I have to delete line 55 # PATCHES=( "${FILESDIR}/${PN}-1.16.0-cpupower-4.7.patch" ) otherwise (with cpupower patch): --- cpufreq-monitor-libcpufreq.c:105:40: error: missing binary operator before token "(" #if LINUX_VERSION_CODE > KERNEL_VERSION(4, 7, 0) ^ make[4]: *** [Makefile:606: cpufreq-monitor-libcpufreq.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory '/tmp/portage/mate-base/mate-applets-1.22.0/work/mate-applets-1.22.0/cpufreq/src' make[3]: *** [Makefile:635: all-recursive] Error 1 make[3]: Leaving directory '/tmp/portage/mate-base/mate-applets-1.22.0/work/mate-applets-1.22.0/cpufreq/src' make[2]: *** [Makefile:593: all-recursive] Error 1 make[2]: Leaving directory '/tmp/portage/mate-base/mate-applets-1.22.0/work/mate-applets-1.22.0/cpufreq' make[1]: *** [Makefile:554: all-recursive] Error 1 make[1]: Leaving directory '/tmp/portage/mate-base/mate-applets-1.22.0/work/mate-applets-1.22.0' make: *** [Makefile:486: all] Error 2 * ERROR: mate-base/mate-applets-1.22.0::gentoo failed (compile phase): * emake failed
Either summarise the problem completely or simply attach the entire build log. The patch applies fine here and you didn't provide a complete build.log and you use an unknown overlay, so anything could be happening here.
Yes, it was to late the night for me writing the bug. But thanks to the Maintainer and the new patch mate-applets/files/mate-applets-1.22.0-cpupower.patch which solves the issue for me