Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703264 - =mate-base/mate-applets-1.22.{0,1} do not build with recent versions of cpupower
Summary: =mate-base/mate-applets-1.22.{0,1} do not build with recent versions of cpupower
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:
Depends on:
Blocks:
 
Reported: 2019-12-18 06:32 UTC by David Carlos Manuelda
Modified: 2020-04-06 19:40 UTC (History)
3 users (show)

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


Attachments
Build log (build.log,878.93 KB, text/x-log)
2019-12-18 06:33 UTC, David Carlos Manuelda
Details
Patch to commit 34d9b916fe4133457b7c2e7a00cd23f4f5b85114 (mate-applets-1.22.1-sync_commit_34d9b916fe4133457b7c2e7a00cd23f4f5b85114.patch,5.84 KB, patch)
2020-03-15 13:02 UTC, Thibaud CANALE
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2019-12-18 06:32:16 UTC
Due to changes in kernel's cpufreq API, mate-applets no longer build if current version for kernel is greater or equal to 4.1.0.

Upstream solved this issue by commit https://github.com/mate-desktop/mate-applets/commit/34d9b916fe4133457b7c2e7a00cd23f4f5b85114 (and probably others) that needs to be backported in order for mate-applets to build/work in current stable gentoo-sources (and beyond)

Reproducible: Always
Comment 1 David Carlos Manuelda 2019-12-18 06:33:59 UTC
Created attachment 600000 [details]
Build log

Build log for 1.22.1 version
Comment 2 David Carlos Manuelda 2019-12-18 07:36:29 UTC
I think this is related to a cpupower change in newer versions but can the fix be backported?
Comment 4 Maxime Lombard 2020-01-31 19:37:48 UTC
Someone can push the latest version of mate-applet-1.22.2 in the repo ?
It fixes this issue.

Thanks
Comment 5 Thibaud CANALE 2020-03-15 13:02:44 UTC
Created attachment 619790 [details, diff]
Patch to commit 34d9b916fe4133457b7c2e7a00cd23f4f5b85114

Hello everyone,

Until the 1.22.2 version is provided in Gentoo's Portage Tree, I made this patch to update some files from the current 1.22.1 version to the commit 34d9b916fe4133457b7c2e7a00cd23f4f5b85114 as the reporter noticed.

However, this patch requires to removes the current provided patch "mate-applets-1.22.0-cpupower.patch" in the current ebuild, with the following patch:
================================================================
diff -pru a/mate-applets-1.22.1.ebuild b/mate-applets-1.22.1-r1.ebuild 
--- a/mate-applets-1.22.1.ebuild
+++ b/mate-applets-1.22.1-r1.ebuild
@@ -51,7 +51,7 @@ DEPEND="${COMMON_DEPEND}
 	sys-devel/gettext:*
 	virtual/pkgconfig:*"
 
-PATCHES=( "${FILESDIR}"/${PN}-1.22.0-cpupower.patch )
+PATCHES=( "${FILESDIR}"/${P}-sync_commit_34d9b916fe4133457b7c2e7a00cd23f4f5b85114.patch )
 
 src_configure() {
 	mate_src_configure \
zsh: exit 1     diff -pru a/mate-applets-1.22.1.ebuild b/mate-applets-1.22.1-r1.ebuild
================================================================

The compilation works.

Best regards.
Comment 6 Thibaud CANALE 2020-03-15 13:04:21 UTC
Oops, I forgot to remove the "zsh: exit 1" line.
Comment 7 Adam Feldman gentoo-dev 2020-04-06 19:40:22 UTC
Should be fixed in:

commit 255d5460428a50b7222f1e8242f83269b6a0a316
Author: Adam Feldman <NP-Hardass@gentoo.org>
Date:   Tue Mar 24 19:06:56 2020 -0400

    mate-base/mate-applets: Bump to 1.24.0
    
    Package-Manager: Portage-2.3.82, Repoman-2.3.18
    Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>

commit 6c1f3af8c6b934df65e18c3152e3ec248bd71c44
Author: Adam Feldman <NP-Hardass@gentoo.org>
Date:   Tue Mar 3 22:52:41 2020 -0500

    mate-base/mate-applets: Bump to 1.22.2, make cpupower optional
    
    Package-Manager: Portage-2.3.82, Repoman-2.3.18
    Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>

Please reopen if you are still having trouble building this package with any kernel version