-
Notifications
You must be signed in to change notification settings - Fork 4
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
Revert "Add pkg-config file" #2
Conversation
Do you plan to remove other build systems? epoll-shim.pc on meson branch:
@@ -6,7 +5,5 @@
-Name: epoll-shim
-URL: https://github.com/FreeBSDDesktop/epoll-shim
-Description: Small epoll implementation using kqueue
-Version:
+Name: libepoll-shim
+Description: small epoll implementation using kqueue
+Version: 0.0.1
Libs: -L${libdir} -lepoll-shim
-Libs.private: -pthread -lrt
-Cflags: -I${includedir}/libepoll-shim
+Cflags: -I${includedir} |
Yes, once those issues are fixed. |
I was really hoping that we could have a Is there any chance of this happening before 2019Q2? |
I'll try to make this happen. I've been working on the mkfontdir/mkfontscale that just got in last night. |
@t6 @jbeich Can you check that the .pc in this branch [1] does what you want?
You'll have the .pc in _build/meson-private/ [1] https://github.com/FreeBSDDesktop/epoll-shim/tree/zeising/meson |
@@ -6,7 +5,7 @@
Name: epoll-shim
+Description: small epoll implementation using kqueue
URL: https://github.com/FreeBSDDesktop/epoll-shim
-Description: Small epoll implementation using kqueue
-Version:
+Version: 0.0.1
Libs: -L${libdir} -lepoll-shim
Libs.private: -pthread -lrt
-Cflags: -I${includedir}/libepoll-shim
+Cflags: -I${includedir}/epoll-shim $ meson --prefix=/tmp/foo _build; ninja -C _build install
$ cat a.c
#include <sys/epoll.h>
int main()
{
epoll_create1(EPOLL_CLOEXEC);
return 0;
}
$ cc a.c $(PKG_CONFIG_PATH=/tmp/foo/lib/pkgconfig pkg-config epoll-shim --cflags --libs)
a.c:1:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
^~~~~~~~~~~~~
1 error generated. |
Any idea how to do that in Meson? Just setting --- a/meson.build
+++ b/meson.build
@@ -72,5 +72,5 @@ lib_libepollshim = both_libraries('epoll-shim',
pkgconfig.generate(lib_libepollshim,
url : 'https://github.com/FreeBSDDesktop/epoll-shim',
description : 'small epoll implementation using kqueue',
- subdirs : 'epoll-shim'
+ subdirs : 'libepoll-shim'
) [1] https://mesonbuild.com/Pkgconfig-module.html#pkgconfig-module |
Why is
different than the project version? |
I had to make up a project version, previously there were none. I still wanted to have a shared library with the same version, or as close to the same version, as before. |
This worked for me. You might want to redo the meson step (remove _build and start over). |
This should be fixed now, sorry about that. |
Yes, it also worked for me. What I meant was that this doesn't exactly do what @jbeich suggested in his comment earlier 😉.
Sure, but syncing it with the current project version 0.0.1 would still be compatible with what
vs
Anyway, what's in zeising/meson now works for me. |
I'll think a bit about it, perhaps it's better to have them match. Good that it's working, sorry about the include dir, that was just a braino on my part. I blame lack of coffee ;) |
Sorry, |
Any news here? |
Reverts #1
This is included in the upcoming meson patch