| 1 Jul 2023 |
Jan Tojnar | There are other libraries vendored which we should replace with ones from Nixpkgs. Try deleting src/deps/couchbase-cxx-client/third_party/ to prevent accidentally building them. | 20:00:44 |
Pol | I updated the log, it's almost done: https://github.com/NixOS/nixpkgs/pull/240673 | 20:05:39 |
Pol | There's an error: > /build/couchbase-4.1.4/src/wrapper/api_visibility.hxx:19:10: fatal error: Zend/zend_portability.h: No such file or directory | 20:05:56 |
Jan Tojnar | Actually, looking at the code again -DCOUCHBASE_CXX_CLIENT_POST_LINKED_OPENSSL is wrong. | 20:06:30 |
Jan Tojnar | The issue is actually that it looks for OpenSSL 1.1 | 20:06:41 |
Pol | Ah. | 20:06:44 |
Pol | Damn :( | 20:06:49 |
Jan Tojnar | In reply to @drupol:matrix.org There's an error: > /build/couchbase-4.1.4/src/wrapper/api_visibility.hxx:19:10: fatal error: Zend/zend_portability.h: No such file or directory That sounds like it tries to guess where the PHP headers are located and fails. | 20:07:58 |
Jan Tojnar | Perhaps for non-CMake extensions, the correct path would be set by buildPecl or something | 20:08:22 |
Pol | Should we require php.dev ? | 20:08:27 |
Jan Tojnar | buildPecl already does. | 20:09:14 |
Jan Tojnar | but we probably should not use buildPecl in the first place, as this does not really use PECL-style build system | 20:09:40 |
Pol | So, a regular derivation ? | 20:10:43 |
Jan Tojnar | yeah | 20:10:48 |
Jan Tojnar | In reply to @jtojnar:matrix.org That sounds like it tries to guess where the PHP headers are located and fails. you will need to find out how the build system tries to add PHP headers to include directories and continue based on that | 20:11:35 |
Jan Tojnar | actually, it looks like the extension does have pecl-style build system | 20:12:23 |
Jan Tojnar | it just invokes CMake internally | 20:12:34 |
Jan Tojnar | (see the config.m4 in the tarball) | 20:12:45 |
Jan Tojnar | Pol: so you will probably want to use env.COUCHBASE_CMAKE_EXTRA instead of cmakeFlags | 20:13:54 |
Jan Tojnar | and dontUseCmakeConfigure = true; | 20:14:11 |
Pol | hum | 20:14:16 |
Pol | Trying all of that, | 20:15:27 |
Pol | In reply to @jtojnar:matrix.org and dontUseCmakeConfigure = true; This is breaking the build from the beginning. Are you sure about this? | 20:32:29 |
Jan Tojnar | yes, that is necessary if you do not want the build to be hijacked by cmake setup hook | 21:01:29 |
Jan Tojnar | Pol: that does not mean that buildPecl will work – maybe the config.m4 is invoking without some required args that the setup hook would pass, and you would need to replicate that using env.COUCHBASE_CMAKE_EXTRA | 21:03:12 |
| 2 Jul 2023 |
Pol | I tried many things, but when I dontUseCmakeConfigure = true;, I get this: https://pastebin.com/DnkVj5tK | 08:42:22 |
Pol | Just published this: https://github.com/NixOS/nixpkgs/pull/241072 Shyim ^^ | 09:09:57 |
Jan Tojnar | In reply to @drupol:matrix.org I tried many things, but when I dontUseCmakeConfigure = true;, I get this: https://pastebin.com/DnkVj5tK Did you keep the buildPecl? | 11:34:29 |
Pol | With buildPecl, it goes a bit further: https://pastebin.com/GhH0hTJy | 18:00:14 |
Pol | Also trying to restore blackfire extension in php80: https://github.com/fossar/nix-phps/pull/251 | 18:40:24 |