Bug 477040 - Fedora 38, powerdevil and libddcutil cannot update
Summary: Fedora 38, powerdevil and libddcutil cannot update
Status: RESOLVED FIXED
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.9
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-15 12:00 UTC by Jeffrey Walton
Modified: 2024-01-20 18:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Transcript of update problems (4.14 KB, text/plain)
2023-11-15 12:00 UTC, Jeffrey Walton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Walton 2023-11-15 12:00:19 UTC
Created attachment 163183 [details]
Transcript of update problems

Hi Everyone,

I'm running Fedora 38 with the KDE spin. Recently, powerdevil and libddcutil can no longer update. I think this started on Sunday night, Nov 12, 2023.

I believe something is a bit sideways with the latest updates to powerdevil and libddcutil . It looks like the problem is with libddcutil-2.0.0. I think F38 should only supply libddcutil-1.4.1. Maybe F39 can supply libddcutil-2.0.0, but I don't know for sure. It also looks like there's been some activity lately for powerdevil and libddcutil: <https://bugs.kde.org/show_bug.cgi?id=476375>.

I don't know how to fix the problems with official repos providing wrong versions of software, so I have to report it. Sorry about that.

(This is actually holding up my dnf-system-upgrade from Fedora 38 to Fedora 39).

----------

$ sudo dnf update
Fedora 38 - x86_64                              8.7 MB/s |  83 MB     00:09
Fedora 38 OpenH264 (from Cisco) - x86_64        5.6 kB/s | 2.5 kB     00:00
Fedora Modular 38 - x86_64                      2.3 MB/s | 2.8 MB     00:01
Fedora 38 - x86_64 - Updates                    9.8 MB/s |  35 MB     00:03
Fedora Modular 38 - x86_64 - Updates            2.5 MB/s | 2.1 MB     00:00
Metadata cache created.
Last metadata expiration check: 0:00:04 ago on Wed 15 Nov 2023 06:12:54 AM EST.
Dependencies resolved.

 Problem: package powerdevil-5.27.9-2.fc38.x86_64 from @System requires libddcutil.so.4()(64bit), but none of the providers can be installed
  - cannot install both libddcutil-2.0.0-1.fc38.x86_64 from updates and libddcutil-1.4.1-1.fc38.x86_64 from @System
  - cannot install both libddcutil-2.0.0-1.fc38.x86_64 from updates and libddcutil-1.4.1-1.fc38.x86_64 from fedora
  - cannot install the best update candidate for package libddcutil-1.4.1-1.fc38.x86_64
  - problem with installed package powerdevil-5.27.9-2.fc38.x86_64
================================================================================
 Package            Architecture   Version                Repository       Size
================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 libddcutil         x86_64         2.0.0-1.fc38           updates         319 k

Transaction Summary
================================================================================
Skip  1 Package

$ sudo dnf update --best --allowerasing
Fedora 38 - x86_64                               11 MB/s |  83 MB     00:07
Fedora 38 OpenH264 (from Cisco) - x86_64        1.4 kB/s | 2.5 kB     00:01
Fedora Modular 38 - x86_64                      3.4 MB/s | 2.8 MB     00:00
Fedora 38 - x86_64 - Updates                    4.0 MB/s |  35 MB     00:08
Fedora Modular 38 - x86_64 - Updates            1.8 MB/s | 2.1 MB     00:01
Error:
 Problem: The operation would result in removing the following protected packages: plasma-desktop
(try to add '--skip-broken' to skip uninstallable packages)

$ sudo dnf update --best --allowerasing --skip-broken
Last metadata expiration check: 0:00:24 ago on Wed 15 Nov 2023 06:14:00 AM EST.
Error:
 Problem: The operation would result in removing the following protected packages: plasma-desktop

$ sudo dnf reinstall powerdevil
Last metadata expiration check: 0:23:51 ago on Wed 15 Nov 2023 06:24:25 AM EST.
Installed package powerdevil-5.27.9-2.fc38.x86_64 (from updates) not available.
Error: No packages marked for reinstall.

$ sudo dnf reinstall libddcutil
Last metadata expiration check: 0:00:10 ago on Wed 15 Nov 2023 06:53:52 AM EST.
Dependencies resolved.
================================================================================
 Package            Architecture   Version                 Repository      Size
================================================================================
Reinstalling:
 libddcutil         x86_64         1.4.1-1.fc38            fedora         259 k

Transaction Summary
================================================================================

Total download size: 259 k
Installed size: 731 k
Is this ok [y/N]: Y
Downloading Packages:
libddcutil-1.4.1-1.fc38.x86_64.rpm              562 kB/s | 259 kB     00:00
--------------------------------------------------------------------------------
Total                                           298 kB/s | 259 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Reinstalling     : libddcutil-1.4.1-1.fc38.x86_64                         1/2
  Cleanup          : libddcutil-1.4.1-1.fc38.x86_64                         2/2
  Running scriptlet: libddcutil-1.4.1-1.fc38.x86_64                         2/2
  Verifying        : libddcutil-1.4.1-1.fc38.x86_64                         1/2
  Verifying        : libddcutil-1.4.1-1.fc38.x86_64                         2/2

Reinstalled:
  libddcutil-1.4.1-1.fc38.x86_64
Comment 1 Antonio Rojas 2023-11-15 12:09:26 UTC
Please report Fedora packaging issues to Fedora
Comment 2 Jeffrey Walton 2023-11-15 12:33:01 UTC
(In reply to Antonio Rojas from comment #1)
> Please report Fedora packaging issues to Fedora

Done, thanks. <https://bugzilla.redhat.com/show_bug.cgi?id=2249809>.
Comment 3 Sanfod Rockowitz 2024-01-20 18:52:32 UTC
I am the developer of ddcutil.  It's unclear from the bug report exactly what incompatible behaviour was observed, but there is a problem with PowerDevel crashing and restarting repeatedly because of a bug in libddcutil initialization triggered by PowerDevil's unexpected way of using the libddcutil API.  The bug fix is github commit [6f1576](https://github.com/rockowitz/ddcutil/commit/7f157f620b7f4c3862e140b5b77ff9215f0b7497) in ddcutil branch 2.1.1-dev.  Given the severe impact of this bug, I expect to push out a point release within the next few days.