LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2020, 09:59 AM   #1
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Rep: Reputation: 111Reputation: 111
Thunderbird-78.0


Saw the blog post from WillySR this morning that this had been released so decided to try to build it. As I first approximation I used the SlackBuild for T-bird-68.10.0. Found that two --enable lines cause errors (said they were unrecognized options) so removed -

--enable-startup-notification
--enable-ldap

The patch, gkrust.a.no.networking.check.diff.gz could not be applied so commented that out and the build commenced without problems until the very end. Using Eric's checkpkg.sh on the build.log it says -

Code:
./checkpkg.sh -l build.log
++ Checking logfile 'build.log' (no news is good news):
  321106:       thunderbird-78.0/dom/html/test/forms/FAIL.html
  335721:       thunderbird-78.0/dom/base/test/FAIL.html
  349337:        2:28.90         if (berrc != LBER_ERROR &&
  349340:        2:28.90     if (berrc != LBER_ERROR && serverctrlsp != NULL &&
  349346:        2:28.90   if (berrc == LBER_ERROR && err == LDAP_SUCCESS) {
  349354:        2:30.46   if (LBER_ERROR == ber_printf(ber, "{s{v}}", authzid, attrlist)) {
  349390:        2:32.47   if (LBER_ERROR == ber_printf(ber, "{s}", dn)) {
  349393:        2:32.47   if (LBER_ERROR == ber_printf(ber, "s", authzid)) {
  349399:        2:32.84     if (LBER_ERROR == (ber_printf(ber, "{"))) {
  349402:        2:32.84       if (LBER_ERROR == (ber_printf(ber, "to", LDAP_TAG_PWDMOD_REQ_ID,
  349405:        2:32.85       if (LBER_ERROR == (ber_printf(ber, "to", LDAP_TAG_PWDMOD_REQ_OLD,
  349408:        2:32.85       if (LBER_ERROR == (ber_printf(ber, "to", LDAP_TAG_PWDMOD_REQ_NEW,
  349411:        2:32.85     if (LBER_ERROR == (ber_printf(ber, "}"))) {
  349424:        2:35.41   if (rc != LBER_ERROR && ber_peek_tag(&ber, &len) == LDAP_TAG_SASL_RES_CREDS) {
  349436:        2:39.11   if (LBER_ERROR == ber_printf(ber, "{ii", ldvlistp->ldvlist_before_count,
  349439:        2:39.11     if (LBER_ERROR == ber_printf(ber, "t{ii}}", LDAP_TAG_VLV_BY_INDEX,
  349442:        2:39.11     if (LBER_ERROR == ber_printf(ber, "to}", LDAP_TAG_VLV_BY_VALUE,
  351025:       10:45.54                     (strings->assign(*o.strings, cloneUnicodeString, status), U_FAILURE(status))) {
  351028:       10:45.54                     (strings->assign(*o.strings, cloneUnicodeString, status), U_FAILURE(status))) {
  351032:       10:45.55                 (strings->assign(*o.strings, cloneUnicodeString, status), U_FAILURE(status))) {
  351035:       10:45.55                 (strings->assign(*o.strings, cloneUnicodeString, status), U_FAILURE(status))) {
  354410:       19:22.21 /tmp/thunderbird-78.0/media/webrtc/trunk/webrtc/common_video/h264/sps_parser.cc:22:9: warning: 'RETURN_EMPTY_ON_FAIL' macro redefined [-Wmacro-redefined]
  354411:       19:22.21 #define RETURN_EMPTY_ON_FAIL(x) \
  354414:       19:22.21 #define RETURN_EMPTY_ON_FAIL(x) \
  356868:       44:22.20     return PR_FAILURE;
  356877:       44:22.20     return PR_FAILURE;
  356880:       44:22.20     return PR_FAILURE;
  356883:       44:22.20     return PR_FAILURE;
  356889:       44:22.20     return PR_FAILURE;
  357014:       48:18.55 error: options `-C embed-bitcode=no` and `-C lto` are incompatible
  357015:       48:18.68 error: could not compile `gkrust`.
  357017:       48:18.69 gmake[4]: *** [/tmp/thunderbird-78.0/config/makefiles/rust.mk:294: force-cargo-library-build] Error 101
  357018:       48:18.69 gmake[3]: *** [/tmp/thunderbird-78.0/config/recurse.mk:74: toolkit/library/rust/target] Error 2
  357019:       48:18.69 gmake[3]: *** Waiting for unfinished jobs....
  357020:       48:52.09 gmake[2]: *** [/tmp/thunderbird-78.0/config/recurse.mk:34: compile] Error 2
  357021:       48:52.09 gmake[1]: *** [/tmp/thunderbird-78.0/config/rules.mk:390: default] Error 2
  357022:       48:52.09 gmake: *** [client.mk:125: build] Error 2
  357025:        Config object not found by mach.
|install mawk).  For LFS: we put mktemp in /usr/bin not /bin, remove
The bit about "options `-C embed-bitcode=no` and `-C lto` are incompatible" appears in several Google searches but I don't see a way to resolve this issue since I don't know anything about rust and where the options would be introduced.

If some programming person can point me to where this issue can be resolved I'd be grateful. Thanks in advance. BTW I was using clang as that is what the Mozilla team seems to prefer for builds.
 
Old 07-18-2020, 10:39 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,527

Rep: Reputation: Disabled
substitute the original gkrust.a.no.networking.check.diff.gz patch with the following (create the file as gkrust.a.no.networking.check.diff then recompress it with gzip)
Code:
diff -Naur thunderbird-78.0.orig/config/makefiles/rust.mk thunderbird-78.0/config/makefiles/rust.mk
--- thunderbird-78.0.orig/config/makefiles/rust.mk      2020-06-30 00:26:45.000000000 +0200
+++ thunderbird-78.0/config/makefiles/rust.mk   2020-07-03 15:25:29.712675000 +0200
@@ -299,15 +299,15 @@
 # the chance of proxy bypasses originating from rust code.
 # The check only works when rust code is built with -Clto.
 # Sanitizers and sancov also fail because compiler-rt hooks network functions.
-ifndef MOZ_PROFILE_GENERATE
-ifeq ($(OS_ARCH), Linux)
-ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
-ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
-       $(call py_action,check_binary,--target --networking $@)
-endif
-endif
-endif
-endif
+#ifndef MOZ_PROFILE_GENERATE
+#ifeq ($(OS_ARCH), Linux)
+#ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
+#ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
+#      $(call py_action,check_binary,--target --networking $@)
+#endif
+#endif
+#endif
+#endif
 
 force-cargo-library-check:
        $(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)
 
Old 07-18-2020, 05:15 PM   #3
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Rep: Reputation: 45
According to the Thunderbird website, there's is no upgrade path from 68 to 78 -- this should be fun : )

Thunderbird version 78.0 is only offered as direct download from thunderbird.net and not as an upgrade from Thunderbird version 68 or earlier. A future release will provide updates from earlier versions.

https://www.thunderbird.net/en-US/th.../releasenotes/

Last edited by Mobile1; 07-18-2020 at 05:22 PM.
 
Old 07-18-2020, 09:17 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,171

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
Because 78.0 is a major update and they removed support for XUL overlays, so addons might need some time to be reworked to work with the new technology. The best option is to wait until 78.2 is released in coming months. If you are using Enigmail addons, full support of e2ee will be provided in 78.2 as well
 
2 members found this post helpful.
Old 07-19-2020, 01:56 AM   #5
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Original Poster
Rep: Reputation: 111Reputation: 111
Hello Ponce. Thanks for the patch. Unfortunately I can't get it to apply to save my soul. Always get -

Code:
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- thunderbird-78.0.orig/config/makefiles/rust.mk      2020-06-30 00:26:45.000000000 +0200
|+++ thunderbird-78.0/config/makefiles/rust.mk   2020-07-03 15:25:29.712675000 +0200
--------------------------
patching file config/makefiles/rust.mk
Using Plan A...
Hunk #1 FAILED at 299.
1 out of 1 hunk FAILED -- saving rejects to file config/makefiles/rust.mk.rej
Hmm...  Ignoring the trailing garbage.
done
The patch is the code you posted. Looks like it should be straight forward and just comment out those lines in the rust.mk file but patch wants nothing to do with it. At first I thought it might have something to do with the offset at line 299 because the code to patch actually starts at line 302 in the rust.mk file so I changed the line numbers in the patch and tried but no dice. Same error.

Do you see something I'm overlooking?
 
Old 07-19-2020, 02:34 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,527

Rep: Reputation: Disabled
Quote:
Originally Posted by 3rensho View Post
Hello Ponce. Thanks for the patch. Unfortunately I can't get it to apply to save my soul. Always get -

Code:
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- thunderbird-78.0.orig/config/makefiles/rust.mk      2020-06-30 00:26:45.000000000 +0200
|+++ thunderbird-78.0/config/makefiles/rust.mk   2020-07-03 15:25:29.712675000 +0200
--------------------------
patching file config/makefiles/rust.mk
Using Plan A...
Hunk #1 FAILED at 299.
1 out of 1 hunk FAILED -- saving rejects to file config/makefiles/rust.mk.rej
Hmm...  Ignoring the trailing garbage.
done
The patch is the code you posted. Looks like it should be straight forward and just comment out those lines in the rust.mk file but patch wants nothing to do with it. At first I thought it might have something to do with the offset at line 299 because the code to patch actually starts at line 302 in the rust.mk file so I changed the line numbers in the patch and tried but no dice. Same error.

Do you see something I'm overlooking?
I don't know what's happening there, but here I got
Code:
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur thunderbird-78.0.orig/config/makefiles/rust.mk thunderbird-78.0/config/makefiles/rust.mk
|--- thunderbird-78.0.orig/config/makefiles/rust.mk     2020-06-30 00:26:45.000000000 +0200
|+++ thunderbird-78.0/config/makefiles/rust.mk  2020-07-03 15:25:29.712675000 +0200
--------------------------
patching file config/makefiles/rust.mk
Using Plan A...
Hunk #1 succeeded at 299.
done
try to download the already-gzipped patch from here and substitute it to the one present in the Slackware sources.
the block that applies it in mozilla-thunderbird.SlackBuild should be this (I left it unchanged)
Code:
# Bypass a test that fails the build:
zcat $CWD/gkrust.a.no.networking.check.diff.gz | patch -p1 --verbose || exit 1

Last edited by ponce; 07-19-2020 at 02:35 AM.
 
Old 07-19-2020, 03:25 AM   #7
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Original Poster
Rep: Reputation: 111Reputation: 111
Downloaded the patch from the link you provided, downloaded a new SlackBuild and just removed the --enable lines that 78.0 doesn't like, kicked off the build again and the patches went fine. Build is running. Must have been something I did with all my messing around but I certainly couldn't find it. The old "forest for the trees" problem. Thank you for your patience Ponce. You bailed me out once again. Will mark this as solved when the build successfully completes.
 
Old 07-19-2020, 03:35 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,527

Rep: Reputation: Disabled
I'm not that sure that it will build succesfully for you, though: I tried here a few days ago with 78.0b4 at it worked and so did yesterday with 79.0b1 but it seems 78.0 is not building for some reason...
 
Old 07-19-2020, 04:05 AM   #9
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Original Poster
Rep: Reputation: 111Reputation: 111
Well, in spite of the patch the build still failed.

Code:
40:24.39 /usr/bin/ld: total time in link: 0.079065
40:24.41 /usr/bin/ld: total time in link: 0.079053
40:24.53 /usr/bin/ld: total time in link: 0.081869
40:31.03    Compiling webrender v0.61.0 (/tmp/thunderbird-78.0/gfx/wr/webrender)
40:46.06    Compiling webrender_bindings v0.1.0 (/tmp/thunderbird-78.0/gfx/webrender_bindings)
41:05.90    Compiling gkrust v0.1.0 (/tmp/thunderbird-78.0/toolkit/library/rust)
41:05.93 error: options `-C embed-bitcode=no` and `-C lto` are incompatible
41:06.08 error: could not compile `gkrust`.
41:06.08 To learn more, run the command again with --verbose.
41:06.09 gmake[4]: *** [/tmp/thunderbird-78.0/config/makefiles/rust.mk:294: force-cargo-library-build] Error 101
41:06.09 gmake[3]: *** [/tmp/thunderbird-78.0/config/recurse.mk:74: toolkit/library/rust/target] Error 2
41:06.09 gmake[2]: *** [/tmp/thunderbird-78.0/config/recurse.mk:34: compile] Error 2
41:06.09 gmake[1]: *** [/tmp/thunderbird-78.0/config/rules.mk:390: default] Error 2
41:06.09 gmake: *** [client.mk:125: build] Error 2
41:06.11 0 compiler warnings present.
41:06.22 /usr/bin/notify-send --app-name=Mozilla Build System Mozilla Build System Build failed

Edit - Just read your last post. So 78.0 is cursed. Will give it a try with one of the betas. Thanks for the note.

Last edited by 3rensho; 07-19-2020 at 04:07 AM.
 
Old 07-19-2020, 06:38 AM   #10
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Original Poster
Rep: Reputation: 111Reputation: 111
I just gave it a go with 79b1 and that went belly up too. Dies with the same message "error: options `-C embed-bitcode=no` and `-C lto` are incompatible". For the time being I'll stop trying to build it. Thanks for your posts.
 
Old 07-19-2020, 01:51 PM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,527

Rep: Reputation: Disabled
well, after a little investigation I found why this is happening: it's because of the newer rust in current.

luckily the solution seems simple: just add this two lines after the rust-related patch block shown above
Code:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1640982
sed -i "s|-Clto$||" config/makefiles/rust.mk
with that the newer firefox and thunderbird build fine here on current.

seems like the prefered choice: the alternative should be to add "-C embed-bitcode" to RUSTFLAGS, and probably for oldish versions of firefox and thunderbird that is the only way...

https://bugzilla.mozilla.org/show_bug.cgi?id=1640982

Last edited by ponce; 07-19-2020 at 01:52 PM.
 
1 members found this post helpful.
Old 07-20-2020, 09:27 AM   #12
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Original Poster
Rep: Reputation: 111Reputation: 111
Finally back to my computer. Thank you Ponce. Sounds good. Will give it a try this evening.
 
Old 07-20-2020, 12:58 PM   #13
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,910

Rep: Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173Reputation: 6173
Quote:
Originally Posted by willysr View Post
If you are using Enigmail addons, full support of e2ee will be provided in 78.2 as well
That's the reason I'm waiting on this one.
 
2 members found this post helpful.
Old 07-20-2020, 07:54 PM   #14
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,171

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
That's a good and worth to wait Pat
 
Old 07-21-2020, 11:19 AM   #15
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 441

Original Poster
Rep: Reputation: 111Reputation: 111
I finally got back to it. It built fine with the fixes you found Ponce. Thank you for your efforts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving from Thunderbird in Windows to Thunderbird in Linux pnh73 Linux - Software 14 11-05-2011 09:24 AM
Importing Windows Thunderbird to Linux Thunderbird NaughtyMonkey Linux - Desktop 1 07-11-2007 04:54 PM
Importing Thunderbird(Windows) to Thunderbird(Linux) NomadABC Linux - Software 9 07-19-2006 01:30 AM
How to export/import Thunderbird mail to another computer with Thunderbird mail clau_bolson Linux - Software 1 04-06-2006 01:43 PM
Thunderbird and Firefox, Thunderbird doesnt launch firefox? sovietpower Slackware 1 11-01-2004 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration