Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680870 - mate-base/mate-applets-1.22 - cpufreq-monitor-libcpufreq.c:105:40: error: missing binary operator before token "("
Summary: mate-base/mate-applets-1.22 - cpufreq-monitor-libcpufreq.c:105:40: error: mis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo MATE Desktop
URL:
Whiteboard:
Keywords:
: 680974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-18 18:03 UTC by Walter Hüttenmeyer
Modified: 2019-03-19 22:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,252.00 KB, text/plain)
2019-03-18 18:03 UTC, Walter Hüttenmeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Hüttenmeyer 2019-03-18 18:03:04 UTC
Created attachment 569610 [details]
build.log

Compiling mate-applets-1.22 fails on cpufreq-monitor-libcpufreq.c:105:40 error: missing binary operator before token "("
 #if LINUX_VERSION_CODE > KERNEL_VERSION(4, 7, 0)

Manually editing the named file, adding a simple #include <linux/version.h> in the includes section resolves the issue and it compiles fine.
Comment 1 Chris Henhawke 2019-03-19 04:44:11 UTC
mate-applets-1.16.0-cpupower-4.7.patch needs to be updated for 1.22.0, the files it changes have been modified slightly and doesn't patch cleanly.

https://github.com/bunder2015/overlay/blob/master/mate-base/mate-applets/files/mate-applets-1.22.0-cpupower-4.7.patch
Comment 2 Larry the Git Cow gentoo-dev 2019-03-19 09:42:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea97b37dd8393df4c055f829e49eeeb07cbdad77

commit ea97b37dd8393df4c055f829e49eeeb07cbdad77
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2019-03-19 09:41:39 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2019-03-19 09:42:15 +0000

    mate-base/mate-applets: fix cpufreq patch
    
    Closes: https://bugs.gentoo.org/680870
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
    Package-Manager: Portage-2.3.62, Repoman-2.3.11

 .../files/mate-applets-1.22.0-cpupower.patch       | 53 ++++++++++++++++++++++
 mate-base/mate-applets/mate-applets-1.22.0.ebuild  |  2 +-
 2 files changed, 54 insertions(+), 1 deletion(-)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-19 22:24:27 UTC
*** Bug 680974 has been marked as a duplicate of this bug. ***