Bug 2315865 - upgrade problem with ghc-foldable1-classes-compat
Summary: upgrade problem with ghc-foldable1-classes-compat
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc-these
Version: 41
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-01 09:04 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2024-10-12 11:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-10 00:16:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2024-10-01 09:04:53 UTC
This is the stuff that failed in my upgrade from F40 to F41:
$ sudo dnf5 upgrade                                                                                                
Updating and loading repositories:
Repositories loaded.
Problem 1: cannot install both ghc-array-0.5.6.0-144.fc41.x86_64 from fedora and ghc-array-0.5.4.0-142.fc40.x86_64 from @System
  - installed package ghc-foldable1-classes-compat-0.1-4.fc40.x86_64 requires libHSarray-0.5.4.0-ghc9.4.5.so()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-array-0.5.4.0-142.fc40.x86_64
  - problem with installed package
 Problem 2: cannot install both ghc-base-devel-4.18.2.1-144.fc41.x86_64 from fedora and ghc-base-devel-4.17.1.0-142.fc40.x86_64 from @System
  - installed package ghc-foldable1-classes-compat-devel-0.1-4.fc40.x86_64 requires ghc-devel(base-4.17.1.0), but none of the providers can be installed
  - installed package ghc-foldable1-classes-compat-devel-0.1-4.fc40.x86_64 requires ghc-devel(ghc-prim-0.9.0), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-base-devel-4.17.1.0-142.fc40.x86_64
  - problem with installed package
 Problem 3: installed package ghc-base64-0.4.2.4-28.fc40.x86_64 requires libHSbase-4.17.1.0-ghc9.4.5.so()(64bit), but none of the providers can be installed
  - installed package ghc-base64-0.4.2.4-28.fc40.x86_64 requires libHSghc-prim-0.9.0-ghc9.4.5.so()(64bit), but none of the providers can be installed
  - cannot install both ghc-base-4.18.2.1-144.fc41.x86_64 from fedora and ghc-base-4.17.1.0-142.fc40.x86_64 from @System
  - cannot install the best update candidate for package ghc-base64-0.4.2.4-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-base-4.17.1.0-142.fc40.x86_64
 Problem 4: cannot install both ghc-bytestring-devel-0.11.5.3-144.fc41.x86_64 from fedora and ghc-bytestring-devel-0.11.4.0-142.fc40.x86_64 from @System
  - installed package ghc-base64-devel-0.4.2.4-28.fc40.x86_64 requires ghc-devel(bytestring-0.11.4.0), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-bytestring-devel-0.11.4.0-142.fc40.x86_64
  - cannot install the best update candidate for package ghc-base64-devel-0.4.2.4-28.fc40.x86_64
 Problem 5: cannot install both ghc-isocline-1.0.9-5.fc41.x86_64 from fedora and ghc-isocline-1.0.9-28.fc40.x86_64 from @System
  - package ghc-hslua-cli-1.4.3-32.fc41.x86_64 from fedora requires libHSisocline-1.0.9-2KCnLAEX6LA5YHxtEpLDUO-ghc9.6.6.so()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-isocline-1.0.9-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-hslua-cli-1.4.2-29.fc40.x86_64
 Problem 6: cannot install both ghc-isocline-devel-1.0.9-5.fc41.x86_64 from fedora and ghc-isocline-devel-1.0.9-28.fc40.x86_64 from @System
  - package ghc-hslua-repl-devel-0.1.2-32.fc41.x86_64 from fedora requires ghc-devel(isocline-1.0.9-2KCnLAEX6LA5YHxtEpLDUO), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-isocline-devel-1.0.9-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-hslua-repl-devel-0.1.2-29.fc40.x86_64

Oh, this is because ghc-foldable1-classes-compat-devel is gone in F41.
So it sounds like Obsoletes needs to be added.

Comment 1 Jens Petersen 2024-10-01 10:43:00 UTC
Thanks for the report - good catch!

Comment 2 Fedora Update System 2024-10-01 17:25:37 UTC
FEDORA-2024-20a680325d (ghc-rpm-macros-2.7.2-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-20a680325d

Comment 3 Jens Petersen 2024-10-01 17:27:21 UTC
Hopefully that fixes it

Comment 4 Fedora Update System 2024-10-02 02:55:19 UTC
FEDORA-2024-20a680325d has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-20a680325d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-20a680325d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Zbigniew Jędrzejewski-Szmek 2024-10-02 10:23:07 UTC
Thanks. The problem with ghc-foldable1-classes-compat-devel is fixed.

I'm still getting a few other problems:
Problem 1: installed package ghc-base64-0.4.2.4-28.fc40.x86_64 requires libHSarray-0.5.4.0-ghc9.4.5.so()(64bit), but none of the providers can be installed
  - cannot install both ghc-array-0.5.6.0-144.fc41.x86_64 from fedora and ghc-array-0.5.4.0-142.fc40.x86_64 from @System
  - cannot install the best update candidate for package ghc-base64-0.4.2.4-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-array-0.5.4.0-142.fc40.x86_64
 Problem 2: installed package ghc-base64-devel-0.4.2.4-28.fc40.x86_64 requires ghc-devel(base-4.17.1.0), but none of the providers can be installed
  - cannot install both ghc-base-devel-4.18.2.1-144.fc41.x86_64 from fedora and ghc-base-devel-4.17.1.0-142.fc40.x86_64 from @System
  - cannot install the best update candidate for package ghc-base64-devel-0.4.2.4-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-base-devel-4.17.1.0-142.fc40.x86_64
 Problem 3: cannot install both ghc-isocline-1.0.9-5.fc41.x86_64 from fedora and ghc-isocline-1.0.9-28.fc40.x86_64 from @System
  - package ghc-hslua-cli-1.4.3-32.fc41.x86_64 from fedora requires libHSisocline-1.0.9-2KCnLAEX6LA5YHxtEpLDUO-ghc9.6.6.so()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-isocline-1.0.9-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-hslua-cli-1.4.2-29.fc40.x86_64
 Problem 4: cannot install both ghc-isocline-devel-1.0.9-5.fc41.x86_64 from fedora and ghc-isocline-devel-1.0.9-28.fc40.x86_64 from @System
  - package ghc-hslua-repl-devel-0.1.2-32.fc41.x86_64 from fedora requires ghc-devel(isocline-1.0.9-2KCnLAEX6LA5YHxtEpLDUO), but none of the providers can be installed
  - cannot install the best update candidate for package ghc-isocline-devel-1.0.9-28.fc40.x86_64
  - cannot install the best update candidate for package ghc-hslua-repl-devel-0.1.2-29.fc40.x86_64

I don't understand why it doesn't want to upgrade ghc-base64 to the f41 build.

Comment 6 Zbigniew Jędrzejewski-Szmek 2024-10-02 10:25:25 UTC
Oh, maybe it actually does. The next part says:
Downgrading:
 ghc-base64                                              x86_64 0.4.2.4-6.fc41                           fedora            1.2 MiB
   replacing ghc-base64                                  x86_64 0.4.2.4-28.fc40                          updates-testing   1.5 MiB
 ghc-base64-devel                                        x86_64 0.4.2.4-6.fc41                           fedora            3.8 MiB
   replacing ghc-base64-devel                            x86_64 0.4.2.4-28.fc40                          updates-testing   4.2 MiB
 ghc-isocline                                            x86_64 1.0.9-5.fc41                             fedora          300.5 KiB
   replacing ghc-isocline                                x86_64 1.0.9-28.fc40                            updates-testing 312.7 KiB
 ghc-isocline-devel                                      x86_64 1.0.9-5.fc41                             fedora            3.1 MiB
   replacing ghc-isocline-devel                          x86_64 1.0.9-28.fc40                            updates-testing   9.4 MiB

So it's just complaining because the f41 build has a lower release.
Having a lower release number is accepted by the packaging guidelines, just a bit confusing.

Comment 7 Jens Petersen 2024-10-03 17:24:02 UTC
Right, I noticed one or two of those - I think I messed up some of the %autorelease conversions ;-(

Maybe it is better to fix them too

Comment 8 Jens Petersen 2024-10-03 17:25:08 UTC
Also icbw but I am feeling like these errors from dnf5 might be more noisy than they were with dnf4?

Comment 9 Jens Petersen 2024-10-03 17:26:14 UTC
... which actually makes it pretty hard to extract the actual real problems, at least for me.

Comment 10 Jens Petersen 2024-10-03 17:27:16 UTC
or dnf5 gets more confused by them perhaps?

(sorry for multiple replies)

Comment 11 Jens Petersen 2024-10-03 18:24:47 UTC
I tried now with just ghc-base64-devel using both f40 dnf4 and dnf5
and they both seem to do nothing ie ignore possible downgrade for me.

[root@a4bb8ccba2b5 /]# dnf -q update --releasever=41 ghc-base64-devel 
[root@a4bb8ccba2b5 /]# dnf5 -q update --releasever=41 ghc-base64-devel
Nothing to do.

Let me bump both those packages, as well as these:

$ pkgtreediff -u "frpq 40 --qf '%{name}-%{version}-%{release}.%{arch}' ghc-*-devel" "frpq 41 --qf '%{name}-%{version}-%{release}.%{arch}' ghc-*-devel"
'ghc-base64-devel.x86_64': 0.4.2.4-28.fc40 -> 0.4.2.4-6.fc41
'ghc-cached-json-file-devel.x86_64': 0.1.1-16.fc40 -> 0.1.1-8.fc41
'ghc-isocline-devel.x86_64': 1.0.9-28.fc40 -> 1.0.9-5.fc41
'ghc-js-chart-devel.x86_64': 2.9.4.1-18.fc40 -> 2.9.4.1-7.fc41
'ghc-toml-parser-devel.x86_64': 1.3.2.0-29.fc40 -> 1.3.2.0-6.fc41

Comment 12 Fedora Update System 2024-10-10 00:16:48 UTC
FEDORA-2024-20a680325d (ghc-rpm-macros-2.7.2-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Jens Petersen 2024-10-12 11:32:29 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2024-974edc792e for the release bumps


Note You need to log in before you can comment on or make changes to this bug.