Bug 1873687

Summary: ghc-deps.sh filters out rts in hash key of libHSStateVar-1.2-9GFTup1qqdWAy26rtsnB7R
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: ghc-rpm-macrosAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ghc-rpm-macros-2.0.14-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-25 16:39:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2020-08-29 06:07:35 UTC
Description of problem:
It seems that with ghc-pkg-8.8 fields are no longer always
one value per line.

See for example pkg review: bug 1871697.

Version-Release number of selected component (if applicable):
ghc-rpm-macros-2.0.13-1.fc33
some of ghc-*-prof

Steps to Reproduce:
```
$ ghc-pkg field contravariant depends
depends: StateVar-1.2-9GFTup1qqdWAy26rtsnB7R base-4.13.0.0     # <<< this!
         transformers-0.5.6.2
$ grep -A1 depends /usr/lib64/ghc-8.8.4/package.conf.d/contravariant-1.5.2.conf 
depends:
    StateVar-1.2-9GFTup1qqdWAy26rtsnB7R base-4.13.0.0
$ sudo dnf repoquery --requires ghc-contravariant-prof
ghc-contravariant-devel(x86-64) = 1.5.2-5.fc33
ghc-prof(base-4.13.0.0)
ghc-prof(transformers-0.5.6.2)
```

Note the missing requires for ghc-prof(StateVar-*) above.

Additional info:
Once ghc-rpm-macros is fixed packages with broken prof deps will need to be rebuilt. Little surprising that this was not discovered during the rebase/rebuild.

Comment 1 Jens Petersen 2020-08-29 07:44:50 UTC
Turned out upon more inspection this was just caused by coarse s/rts// in ghc-deps.sh.
I guess the chances of rts appearing in a hash etc are small, but still not good.

Comment 2 Fedora Update System 2020-08-31 09:58:42 UTC
FEDORA-2020-1444ce2324 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1444ce2324

Comment 3 Fedora Update System 2020-08-31 18:57:41 UTC
FEDORA-2020-1444ce2324 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-1444ce2324`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1444ce2324

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

Comment 4 Fedora Update System 2020-09-25 16:39:45 UTC
FEDORA-2020-1444ce2324 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.