Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: dutuka on February 25, 2021, 06:43:09 PM

Title: Update Thunderbird
Post by: dutuka on February 25, 2021, 06:43:09 PM
Hello TCL community,
I installed Thunderbird (thunderbird-appimage.tcz) and tried to update to the last version (78.8.0) but it said no permission. Can I update Thunderbird with Apps or tce-update?

I found "thunderbird-78.8.0.source.tar.xz" from DistroWatch: https://distrowatch.com/table.php?distribution=tinycore
Would it help me somehow to install Thunderbird last version?

Thanks.
Title: Re: Update Thunderbird
Post by: Rich on February 25, 2021, 08:54:24 PM
Hi dutuka
Extensions can not be updated that way. They need to be repackaged.

A  .tcz  contains a  read only  file system, kind of like a CD or  ,iso  file. You can mount it to access the the contents, but
you can't alter the contents.
Title: Re: Update Thunderbird
Post by: dutuka on February 26, 2021, 04:11:16 PM
Thank you, Rich. What is the best way to install the last Thunderbird version?
Is it possible to download the normal linux version from Mozilla page and run the installation? or do I need to convert it to .tcz first then use tce-load.
Title: Re: Update Thunderbird
Post by: Rich on February 26, 2021, 04:36:35 PM
Hi dutuka
If you look over here:
http://tinycorelinux.net/4.x/x86/tcz/src/thunderbird/

There you will find  thunderbird.build  which is the script that was used to package Thunderbird.  There are also support
files required for the extension:
thunderbird.desktop
thunderbird.ins
thunderbird.png
The build script actually requires a precompiled tarball.

... Is it possible to download the normal linux version from Mozilla page and run the installation? or do I need to convert it to .tcz first then use tce-load.
Download the precompiled tarball:
https://www.thunderbird.net/en-US/

You will need to modify  SRCNAM=thunderbird-17.0.3.tar.bz2  in the build script to match the tarball you download.

You may need to adjust other items in the script to accommodate changes that may have occurred to Thunderbird
over the years.

You will need to install  squashfs-tools.tcz.
Title: Re: Update Thunderbird
Post by: dutuka on February 27, 2021, 09:13:53 AM
I have downloaded the required files:

thunderbird.desktop
thunderbird.ins
thunderbird.png
thunderbird-78.8.0.tar.bz2

installed squashfs-tools.tcz
SRCNAM is change to: SRCNAM=thunderbird-78.8.0.tar.bz2

what should I do as next step?
Title: Re: Update Thunderbird
Post by: Juanito on February 27, 2021, 09:56:54 AM
Make the build script executable and run it.
Title: Re: Update Thunderbird
Post by: dutuka on March 02, 2021, 06:04:31 PM
I run the script, i dont know if it was successful, can you check the log in attachment.
Title: Re: Update Thunderbird
Post by: Rich on March 02, 2021, 09:16:47 PM
Hi dutuka
It looks like it created  thunderbir.tcz.

I did see one error:
Code: [Select]
xargs: strip: No such file or directoryThe only impact that has is the extension may be larger than it needs to be. If you want, you can install  binutils.tcz
and run the script again to make it smaller.

After the script is run, you can find  thunderbird.tcz  in  /tmp/thunderbird/.  Copy it to your  tce/optional/  directory.
The  /tmp/  directory is not persistent. When you reboot, its contents are lost.

Create a dependency file like this:
Code: [Select]
echo dbus-glib.tcz > thunderbird.tcz.dep
Code: [Select]
echo libasound.tcz >> thunderbird.tcz.dep
Code: [Select]
echo gtk2.tcz >> thunderbird.tcz.depCopy it to your  tce/optional/  directory.

Then:
Code: [Select]
tce-load -i thunderbirdAn icon should appear for thunderbird. Click it to see if it starts. If you have a problem, open a terminal and enter
thunderbird.  If you get error messages, post them.
Title: Re: Update Thunderbird
Post by: dutuka on March 03, 2021, 12:10:21 PM
Thank you Rich. Thunderbird does not start when I click on the icon, it does not start in terminal, too. You can check my screenshot in attachment.
Title: Re: Update Thunderbird
Post by: Rich on March 03, 2021, 12:24:41 PM
Hi dutuka
Do this:
Code: [Select]
sudo ls -Rl /tmp/tcloop/thunderbird > tbirddir.txtAttach the  tbirdir.txt  file to your next post.
Title: Re: Update Thunderbird
Post by: dutuka on March 03, 2021, 12:37:29 PM
I attached it.
Title: Re: Update Thunderbird
Post by: Rich on March 03, 2021, 11:05:20 PM
Hi dutuka
I don't know why this did not work for you.
I just followed the instructions I posted using TC10 32 bit and Thunderbird starts both from the command line and
using the icon.
Title: Re: Update Thunderbird
Post by: Rich on March 04, 2021, 09:51:38 AM
Hi dutuka
I added thunderbird to the TC12 32 bit repository if you want to run 32 bit.

I'm looking into why the 64 bit version doesn't work.
Title: Re: Update Thunderbird
Post by: Rich on March 04, 2021, 09:57:55 AM
Hi Juanito
It appears the 64 bit version is not starting because there is no  /lib64.  If I do this:
Code: [Select]
sudo ln -s /lib /lib64Then it works.

Is this the correct solution, or is there some prefix that can be added to the thunderbird command that will force it to use /lib ?
Title: Re: Update Thunderbird
Post by: Juanito on March 04, 2021, 10:56:51 AM
If the thunderbird binary is pre-compiled, the only choice is to add a symlink in the startup script.

If thunderbird is compiled on tinycore, it should automatically find the loader in the right place.
Title: Re: Update Thunderbird
Post by: Rich on March 04, 2021, 12:24:27 PM
Hi Juanito
Thanks. This is one of the pre-compiled packages Mozilla offers.
Title: Re: Update Thunderbird
Post by: Rich on March 04, 2021, 12:39:38 PM
Hi dutuka
Thunderbird has been posted to the TC12 64 bit repository.

Remove the old extension from your  tce/optional  directory:
Code: [Select]
rm -f /etc/sysconfig/tcedir/optional/thunderbird.tcz*
Reboot your machine. Then:
Code: [Select]
tce-load -wi thunderbird
Title: Re: Update Thunderbird
Post by: dutuka on March 05, 2021, 01:57:41 PM
Hi Rich, thank you for your help. I tried to install Thunderbird on a fresh TC12 -32 bit and get it installed, but it still does not start. From terminal, it shows this error:

thunderbird: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

On fresh TC12 -64 bit it worked on first attemtp. Thank you so much :)
Title: Re: Update Thunderbird
Post by: Rich on March 05, 2021, 02:08:45 PM
Hi dutuka
... thunderbird: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory ...
Thank you for reporting that. Does it start if you install  gcc_libs.tcz ?
Title: Re: Update Thunderbird
Post by: dutuka on March 05, 2021, 02:30:21 PM
Still not, I installed gcc_libs.tcz and started thunderbird, it shows this error:

Quote
XPCOMGlueLoad error for file /tmp/tcloop/thunderbird/usr/local/thunderbird/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM
Title: Re: Update Thunderbird
Post by: Rich on March 05, 2021, 02:37:12 PM
Hi dutuka
Install  gtk3.tcz.
Title: Re: Update Thunderbird
Post by: dutuka on March 05, 2021, 02:38:08 PM
After running firefox_getLatest.tcz and have firefox installed, Thunderbird starts now.
Title: Re: Update Thunderbird
Post by: dutuka on March 05, 2021, 02:47:34 PM
Ok, I run:

tce-load -i gtk3.tcz

then Thunderbird starts successfully without having firefox loaded.
Title: Re: Update Thunderbird
Post by: Rich on March 05, 2021, 03:00:12 PM
Hi dutuka
Excellent. Thank you for testing. The dependency file has been updated.