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

Fix sysmacros.h include for non-glibc libcs #43

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

q66
Copy link
Contributor

@q66 q66 commented Aug 7, 2019

A while ago glibc stopped including this from sys/types.h so this explicit include was added. The musl libc has since followed suit and stopped including this header in sys/types.h, therefore it's also necessary to do this.

These major/minor macros are not a part of POSIX or any other standard, therefore since we're already using them, it's probably safe to assume the same header will also be used.

This fixes build of several haskell software for musl in our distribution (@void-linux).

Also, while at it, would it be possible to publish a new release with the fix ideally as soon as possible? That would make it a lot easier to fix the broken software in the distro (since it won't need manual patching of every single thing, just a simple version bump).

Thanks!

@q66
Copy link
Contributor Author

q66 commented Aug 7, 2019

@jacobstanley if you have any better idea for a more generic fix, let me know, for now I think this should cover the cases better than previously.

@jacobstanley
Copy link
Owner

@q66 yeah I have no idea about a more generic fix, i'll move forward with this change and let's see what happens 🤔

@jacobstanley jacobstanley merged commit 4394fb8 into jacobstanley:master Aug 9, 2019
@q66
Copy link
Contributor Author

q66 commented Aug 9, 2019

Perfect, thank you; I don't think this should be much of a concern, in places where this worked before this should continue to work and where it didn't it needs to be handled on case by case basis...

@jacobstanley
Copy link
Owner

@q66 👍 also published for you https://hackage.haskell.org/package/unix-compat-0.5.2 thanks for the PR!

@q66
Copy link
Contributor Author

q66 commented Aug 9, 2019

Great, I'll look into bumping all affected software in the distro during tomorrow.

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.

2 participants