-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
imap support #202
Comments
The link you posted in the parent issue was very helpful to get dynamic compilation going: https://github.com/Homebrew/homebrew-core/blob/e7b36de55df0ffeb3bc8a9f7996906a4dd0cc5b8/Formula/imap-uw.rb Building all this ourselves, installing the services and then attempting a static build is way worse than getting libc-client compiled. I could generate patch files to apply all the necessary changes if you want to push the old patch logic you created for libmemcached. Hosting them in this repository would be fine. |
I prefer to use the patched repo directly and create a new GitHub repo for it if the library has not been updated for a long time. But if the patched library is relatively new or is still being continuously updated, this patch logic is necessary. If you need this, we can first complete a method to quickly use the patch files in the project. |
Ok, the library hasn't been updated since 2007 so you will probably prefer a repo with all the patches and necessary changes done. If you would like to create a repository with the original sources (https://mirrorservice.org/sites/ftp.cac.washington.edu/imap/imap-2007f.tar.gz), I will see to create a PR with patches and makefile changes next week. |
https://github.com/uw-imap/imap is a mirror with all necessary patches except one to make it work with openssl 3. |
You could create a project, it doesn't have to be me. Because now the project also uses a lot of mirror repos, not the original ones. By the way, would it be better to merge these ancient projects into a GitHub repo and then download it to the same source? WDYT? In addition, for the current libmemcached extension, because I use the mac-only patched repository, this source code cannot be used directly on Linux. I have not solved this problem yet. How are you going to handle this kind of problem on imap? |
Sure, I can create the repo. But thinking about it again, if we keep openssl 1.1.1 we can use the github mirror without change.
You mean libc-client and uw-imap? I don't have any idea how we could potentially handle pop3d/imapd/kerberos yet. As for libc-client we can use the official mirror I believe because it doesn't need patches.
I'm not sure I follow? uw-imap compiles in linux too. |
Running into undefined reference
That doesn't even make sense, considering [root@aarch64 imap]# grep -Rni "sigsetjmp" /usr/local/musl/
grep: /usr/local/musl/lib/libc.a: binary file matches
grep: /usr/local/musl/lib/libc.so: binary file matches
/usr/local/musl/include/setjmp.h:28:int sigsetjmp (sigjmp_buf, int) __setjmp_attr;
/usr/local/musl/aarch64-linux-musl/include/setjmp.h:28:int sigsetjmp (sigjmp_buf, int) __setjmp_attr;
grep: /usr/local/musl/aarch64-linux-musl/lib/libc.a: binary file matches
grep: /usr/local/musl/aarch64-linux-musl/lib/libc.so: binary file matches
grep: /usr/local/musl/aarch64-linux-musl/lib/ld-musl-aarch64.so.1: No such file or directory
grep: /usr/local/musl/libexec/gcc/aarch64-linux-musl/9.4.0/cc1: binary file matches
grep: /usr/local/musl/libexec/gcc/aarch64-linux-musl/9.4.0/cc1plus: binary file matches
grep: /usr/local/musl/libexec/gcc/aarch64-linux-musl/9.4.0/lto1: binary file matches
grep: /usr/local/musl/libexec/gcc/aarch64-linux-musl/9.4.0/install-tools/fixincl: binary file matches``` |
@DubbleClick
I understand. I tried the patch code in my previous implementation of libmemcached, where I originally planned to put the patch code in the
src/globals/patch/
directory, like this. But in the end, I directly used homebrew's build logic and independent mirror repo, and did not choose patch because it has not been updated for a long time: https://github.com/crazywhalecc/libmemcached-macosFrom the results of my current local testing, it requires at least kerberos, and I'm currently stuck on compiling kerberos.
Under the existing architecture, it may not be a good idea to use pre-installed dynamic libraries or packages on the system, because this will limit the environment in which spc can run.
The text was updated successfully, but these errors were encountered: