-
Notifications
You must be signed in to change notification settings - Fork 890
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
Mailspring is not bundling libsasl2.so.2, some Linux systems have a different version #63
Comments
Hey! Thanks for filing this - I think the libsasl2 library should be
included in the same directory as mailsync.bin. (Maybe not? If not we
should definitely be shipping it along with the other .so files in that
folder) Why do you need to replace it with a different version?
Ben
…On Fri, Oct 6, 2017 at 7:29 PM Joakim Nylén ***@***.***> wrote:
Are there any related issues?
No
What operating system are you using?
Arch linux
What version of Mailspring are you using?
1.0.2
Do you have any third-party plugins installed? If so, which ones?
No
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?
No
Is the issue reproducible with a particular attachment, message,
signature, etc?
Basically the mailspring.bin file was built against a libsasl2.so.2 file
which doesn't exist in Archlinux which made me ln -s the file to the
correct libsasl2.so.3 file. But then it complain about it not having
version info so I have to rebuild it everytime it updates.
PKGBUILD here:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mailspring
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#63>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_TnMHs7Zv7EmJbsDJYS-9VByF0MA68ks5spuH9gaJpZM4PxNCg>
.
|
Hi @bengotow, If the ln -s hasn't been executed it complains: libsasl2.so.3 is the one that comes with archlinux if you install libsasl2. Maybe use /usr/lib/libsasl2.so instead? It forwards on arch to libsasl2.so.3.0.0 The current version on arch is 2.1.26-11 |
I can confirm this on OpenSUSE 42.3 as well. The same issue of libsasl2.so.2 not found. |
Hey folks—thanks, I'll get this fixed in the next release. To maximize portability, we've been shipping the library files we can't link against statically, but libsasl2.so.2 got omitted somehow. Stay tuned! 1.0.3 should ship Monday or Tuesday. |
Hey folks—I just did a fresh install of the latest .deb package and
Is there any chance the packaging process for the AUR is omitting these files? If you put them in that folder alongside mailsync.bin it should work fine. |
This library is present in my Arch installation. It's just it isn't found by Mailspring in runtime.
|
@bengotow, |
Thanks for checking—that's really interesting. I was hoping to ship a copy of libsasl2 to everyone because it can be compiled with lots of different options and having the wrong version can break things like SSL and certificate checking for SMTP. Since the leading number of the version isn't the same, I don't think |
Same problem with Fedora 26. The file is shipped but not used so I get the same error. |
Okay... so it looks like this may not have been working properly on any systems, and just coincidentally working for a bunch of people. Can you try running this from the
Odds are it will crash and you won't see the mailsync help statement. If it crashes, run these commands and try again:
Now if you run it again, I think it /should/ work. If it works, run it again with the LD_DEBUG flag - can you send me all the output? It should be resolving against the ./libsasl2 file and not the system version.
Buried in all the mess, you should see lines referencing the files at their local paths:
|
@bengotow Seems to work fine. (no ln -s on libsasl2.so.2 in /usr/lib)
|
Hmm interesting it's missing the
Then a dozen lines down or so it should say:
|
Nope, no ./
|
Okay, so I pulled a temporary fix... Initially I got:
So let's do a dirty hack:
Restart and youhou:
The issue #55 is the duplicate of this one by the way. |
@bengotow the dirname thing on LD_LIBRARY_PATH didn't work apparently. specified the folder and it works decently. |
Ahh that's great—it looks like |
Okay folks—here are the changes I think we want to make:
If you could test 1) above on ArchLinux / Fedora 26 and verify that the app still works when you delete / move those files, I'd appreciate it! |
This would close #62 too probably. As i'm already running the AUR it should work fine. |
Ok, so I deleted the files you mentionned and I changed the mailspring file as below:
So I can run MailSpring, but if I try to add an Gmail account, apparently I'm doing an illegal instruction...
|
Hey @Bouska — thanks for following up! I'm downloading a Fedora VM but it's taking forever. Could you try moving/removing the following two libraries from the app.asar.unpacked directory as well? It looks like the following are available just about everywhere, and packaging them with the app may actually be a mistake:
After removing those, all that would be left are |
Ok, so I removed
Same problem if I also remove |
Hey thanks @Bouska — I'm actually looking into that right now. Should be able to get this fixed but it seems to be upset with the certificate chain installed on the machine. |
I was running into the same issue in Fedora 24 with Mailspring 1.0.2. Just downloaded and installed Mailspring 1.0.3 after the build passed/completed and the issue appears to be resolved! I have successfully added my Office 365 account and mail is syncing fine. |
I installed the new 1.0.3 RPM and launched MailSpring, seems that this issue is fixed! Thanks @bengotow |
Seems fixed by 1.0.3 |
Are there any related issues?
No
What operating system are you using?
Arch linux
What version of Mailspring are you using?
1.0.2
Do you have any third-party plugins installed? If so, which ones?
No
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?
No
Is the issue reproducible with a particular attachment, message, signature, etc?
Basically the mailspring.bin file was built against a libsasl2.so.2 file which doesn't exist in Archlinux which made me ln -s the file to the correct libsasl2.so.3 file. But then it complain about it not having version info so I have to rebuild it everytime it updates.
PKGBUILD here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mailspring
The text was updated successfully, but these errors were encountered: