-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adding ability to build as a shared library #17
Conversation
Regarding session_builder_process_pre_key_signal_message which is internal, it is actually also called via session_cipher_decrypt_pre_key_signal_message which you also use later on inside the same function under src/axc.c. The packaging for axc is currently taking place here if you wish to have a look: |
Hi, thank you for your work. By now, libsignal-protocol-c should really be available as a package everywhere itself, so this was overdue. I'll have to think about whether it's good to have this in the coming release of I'll look into what the function you had to comment out does, but I assume I just misunderstood the API at some point. This is tracked in #16. Also, if you don't mind, I'll change the base branch of this PR to "dev". |
I noticed you removed the target for compiling the static |
Indeed - I could update this PR and re-add the AX bits:
Let me know if that makes sense to you before I go ahead and make the changes |
... alternatively, you could also build with dynamic linking for windows as well, since you were already doing it for sqlite3 and gcrypt, why for signal-protocol-c as well? |
I think I need this because gcrypt and sqlite3 provide precompiled libraries for Windows, but libsignal-protocol-c does not. I am not the one building this for Windows, so I'm not entirely sure right now, but if I remember correctly from my other plugin I just used a completely different set of targets. Aside from just offering the possibility to anyone building from source, I think I will just mostly need it as an example for when I finally get around to it. So I don't think you need the consider anything specific, just adding it back is fine. |
I made further changes so the Makefile behavior is platform dependant now. Building on Windows platform will keep the statically linked signal-protocol-c library. Let me know if you would like any further changes. |
@gkdr - also , if and when you accept this PR, you could bump your release number then we would just re-use the tagged release pristine and drop all downstream patches we have |
@gkdr could you please review this PR? Currently it is distributed downstream (inside Debian packaging), would be easier if that was part of upstream releases. |
I think that this PR must be merged quickly. @henry-nicolas, @fortysixandtwo, @gkdr: I hope before the Debian 11 freeze which arrives very soon... Note: The next Debian 12 will be in 2023... Linked to: |
@Neustradamus - no rush here, the patch is used in downstream Debian. |
@Neustradamus what does "very soon" mean? @henry-nicolas i'm sorry, i lost track of this. |
@gkdr @Neustradamus allow me to clarify the timing aspects. Next Debian release will see its freeze start in mid February. However, I feel there's no rush here as we have a working solution. As long as we can get the review progressed, I am happy. |
hi @henry-nicolas, sorry once again for the wait. |
@gkdr no problem for the wait :-) I re-added the submodule (sorry that I had forgot that). It is totally fine to bump the patch version number, thanks. |
|
That's fixed now. I declared the test target conditionnaly in the Makefile (as for headers definition earlier):
|
thanks, i think this works for both of us now :D |
Great, thanks for all the follow-up :-) |
@gkdr: Thanks for the merging! Last step is: gkdr/lurch#151 :) |
Dear,
This PR adds support for several things, detailed hereunder.
I am working with Debian's team DebianOnMobile to get this library into Debian so we can later add purple-lurch to add OMEMO support to the chatty client.
In our distribution context, library must be built as shared objects and not statically linked.
This merge does the following change:
If you would merge this PR, it would make the distribution of the axc software easier for sure :)
Best regards,