Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set abiDepends field in IPI to [] #5478

Merged
merged 1 commit into from
Aug 2, 2018
Merged

Set abiDepends field in IPI to [] #5478

merged 1 commit into from
Aug 2, 2018

Conversation

vrom911
Copy link
Member

@vrom911 vrom911 commented Jul 31, 2018

Resolves #5465

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

I have tried to new-build one personal package, and the output was without any abi-depends related warnings. However, when I was using new-install on the same package, the warnings were still printed out. So this is not the complete fix of the task, but I don't know what can be done about that.

Nothing -> error $
"generalInstalledPackageInfo: missing IPI for " ++ display uid
Just ipi -> IPI.abiHash ipi
-- Commented due to #5465
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just delete this bit, Git does the job of storing history better.

@vrom911
Copy link
Member Author

vrom911 commented Aug 1, 2018

@23Skidoo , I rebased on master and now I have troubles with building the project after the version bump. I've noticed bunch of Cabal .. < 2.4 conditions in Cabal/Cabal.cabal file. As I see it causes issues on master as well.

@hvr
Copy link
Member

hvr commented Aug 1, 2018

@vrom911 I've just pushed 46d486f which should mitigate the over-constraining

@vrom911
Copy link
Member Author

vrom911 commented Aug 1, 2018

Thanks! Rebased.

@23Skidoo 23Skidoo requested a review from ezyang August 1, 2018 12:53
@23Skidoo
Copy link
Member

23Skidoo commented Aug 1, 2018

@ezyang, can you please approve this fix?

@hvr
Copy link
Member

hvr commented Aug 1, 2018

@23Skidoo note that we should backport this one to the next lib:Cabal-2.2 point rls, if we ever do one (in order to help cover some custom-setup situations; and to have it ready in case we get a GHC 8.4.4)

@ezyang
Copy link
Contributor

ezyang commented Aug 1, 2018

As long as this has been tested against versions of GHC which respected the field, I'm OK with it.

@@ -80,6 +80,8 @@
* Added a parameter to
`Distribution.Backpack.ConfiguredComponent.toConfiguredComponent` in order to fix
[#5409](https://github.com/haskell/cabal/issues/5409).
* Partially silence `api-depends` warnings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/api-depends/abi-depends/

@hvr
Copy link
Member

hvr commented Aug 2, 2018

@ezyang I've dogfooded this a bit w/ GHC 8.2 and GHC 8.4, and I haven't noticed any issues yet. What kind of problems would you expect? Wouldn't omitting the abi-depends field basically just make GHC 8.2 behave like e.g. GHC 8.0 which didn't have the abi-depends feature?

@ezyang
Copy link
Contributor

ezyang commented Aug 2, 2018

I don't expect problems, but if there was a problem, GHC 8.2 is where I would expect it to manifest. So if it's been tested, all good by me.

@hvr hvr merged commit dd3fee1 into haskell:master Aug 2, 2018
@hvr
Copy link
Member

hvr commented Aug 2, 2018

alright then; then I'll merge this and thus extend the testing user-base to our early adopters... :-)

@chshersh chshersh deleted the vrom911/5465-abi-depends branch August 2, 2018 15:37
@23Skidoo
Copy link
Member

23Skidoo commented Aug 2, 2018

Cherry-picked to 2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Silence GHC 8.4's "ignoring (possibly broken) abi-depends field for packages" warning
4 participants