| 1 Jul 2023 |
Jan Tojnar | looking at the tarball, you probably want cd src/ in preConfigure | 15:11:05 |
Pol | I'm away from computer , I'll check this out tonight | 16:04:07 |
Pol | I implemented your change. It seems it goes further... but... it still breaks, logs has been updated in the OP: https://github.com/NixOS/nixpkgs/pull/240673 | 19:24:36 |
Jan Tojnar | Pol: It is a typical CMake project now so packaging it will be a pain | 19:31:28 |
Jan Tojnar | well, two CMake projects, actually | 19:31:39 |
Jan Tojnar | you will want to disable the vendored dependencies by adding stuff like -DCOUCHBASE_CXX_CLIENT_POST_LINKED_OPENSSL=true to cmakeFlags and removing src/deps/couchbase-cxx-client/third_party/ to prevent accidentally building them | 19:34:23 |
Pol | There's no difference :S | 19:50:52 |
Jan Tojnar | Pol: also -DCOUCHBASE_CXX_CLIENT_EMBED_MOZILLA_CA_BUNDLE=false | 19:54:08 |
Jan Tojnar | https://github.com/couchbaselabs/couchbase-cxx-client/blob/7c5abb0523a6a377454fcecaea9003ce8f5b0274/cmake/OpenSSL.cmake#L111 | 19:54:36 |
Pol | Trying. | 19:54:44 |
Jan Tojnar | and probably more, you will need to read the CMake file | 19:55:11 |
Pol | ok... never did that before. Will try. | 19:55:44 |
Jan Tojnar | it is mostly like any other programming language, you get an error with a trace and you need to look at where it points to | 19:57:46 |
Pol | IT's building ! | 19:59:48 |
Pol | * It's building ! | 19:59:51 |
Jan Tojnar | and like with most programs, the less code there is, the fewer issues you will have. So keep an eye for options that disable code from being run. | 19:59:54 |
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 |