Bug 1873687 - ghc-deps.sh filters out rts in hash key of libHSStateVar-1.2-9GFTup1qqdWAy26rtsnB7R
Summary: ghc-deps.sh filters out rts in hash key of libHSStateVar-1.2-9GFTup1qqdWAy26r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc-rpm-macros
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-29 06:07 UTC by Jens Petersen
Modified: 2020-09-25 16:39 UTC (History)
1 user (show)

Fixed In Version: ghc-rpm-macros-2.0.14-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-25 16:39:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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