| Summary: | net-misc/unison-2.48.3 failed to build on musl | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Justin Keogh <bugs.gentoo.org> |
| Component: | Current packages | Assignee: | Gentoo musl team <musl> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | gentoo, maintainer-needed, ml, sam |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| See Also: | https://bugs.gentoo.org/show_bug.cgi?id=578224 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
net-misc/unison-2.48.3 build.log
musl fix for unison-2.48.3.ebuild musl fix for unison-2.48.3.ebuild c stub used by Makefile.OCaml to test for <sys/inotify.h> add <sys/inotify.h> test to Makefile.OCaml generalize check for <sys/inotify.h> in fsmonitor/linux/inotify_stubs.c |
||
|
Description
Justin Keogh
2015-11-19 09:18:56 UTC
musl has <sys/inotify.h>. Can't that be used? Created attachment 417432 [details]
musl fix for unison-2.48.3.ebuild
Created attachment 417434 [details, diff]
musl fix for unison-2.48.3.ebuild
Created attachment 417436 [details]
c stub used by Makefile.OCaml to test for <sys/inotify.h>
Created attachment 417438 [details, diff]
add <sys/inotify.h> test to Makefile.OCaml
(ht to skarnet)
Created attachment 417440 [details, diff]
generalize check for <sys/inotify.h> in fsmonitor/linux/inotify_stubs.c
Right, musl's <sys/inotify.h> works. I tried to make the fix as general and correct as possible, feedback appreciated. I prob don't need to set a var to run the shell commands in Makefile.OCaml, and I'm not sure if src_prepare() is proper, but it works. I also noticed it fails with >-j10 (every time), I'll file another bug for that. (In reply to Justin Keogh from comment #7) > I also noticed it fails with >-j10 (every time), I'll file another bug for > that. Please do. I was lucky to read this comment as I had -j20 and unison never built. MAKEOPTS="-j4" emerge unison and it works. |