Would it be difficult to produce a GTK-2 Linux version of Epyrus?

Board for discussions around the Epyrus mail and news client.

Moderator: athenian200

User avatar
geraldh
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2022-06-18, 16:19
Location: Citizen of Europe

Would it be difficult to produce a GTK-2 Linux version of Epyrus?

Unread post by geraldh » 2024-05-26, 11:14

I have programmed quite a bit in the distant past, mostly in Blitz Basic on the Amiga, but also dabbled in 6502 assembler FORTH and javascript. I use the Palemoon Linux GTK-2 version as I prefer the look of it to the GTK-3 version and I'm just wondering how difficult it would be for me to get up to speed and produce a GTK-2 version of Epyrus? I'm not expecting a detailed response :) . I'm just wondering how much learning/work it might entail?

User avatar
micwoj92
Fanatic
Fanatic
Posts: 178
Joined: 2020-12-22, 20:57

Re: Would it be difficult to produce a GTK-2 Linux version of Epyrus?

Unread post by micwoj92 » 2024-05-26, 18:34

The build process should be same as of any other UXP application, with the main difference being .mozconfig file, if you see some "gtk3" mentions then you need to change it to "gtk2" and basically that's all.
Build instructions are located at http://www.epyrus.org/build.html. With maybe some more relevant information to be found at https://developer.palemoon.org/build/.

User avatar
andyprough
Keeps coming back
Keeps coming back
Posts: 797
Joined: 2020-05-31, 04:33

Re: Would it be difficult to produce a GTK-2 Linux version of Epyrus?

Unread post by andyprough » 2024-05-26, 18:36

EDIT: @microwj92 beat me to it - see his post above
geraldh wrote:
2024-05-26, 11:14
I have programmed quite a bit in the distant past, mostly in Blitz Basic on the Amiga, but also dabbled in 6502 assembler FORTH and javascript. I use the Palemoon Linux GTK-2 version as I prefer the look of it to the GTK-3 version and I'm just wondering how difficult it would be for me to get up to speed and produce a GTK-2 version of Epyrus? I'm not expecting a detailed response :) . I'm just wondering how much learning/work it might entail?
I'm pretty sure you would follow these build instructions - http://www.epyrus.org/build.html

And when you create your .mozconfig file at the bottom of the instructions, you would change these two lines -

Code: Select all

ac_add_options --enable-default-toolkit=cairo-gtk3
would be

Code: Select all

ac_add_options --enable-default-toolkit=cairo-gtk2
and

Code: Select all

export MOZ_PKG_SPECIAL=gtk3
would be

Code: Select all

export MOZ_PKG_SPECIAL=gtk2
It should build pretty easily, just make sure you have all your build dependencies installed.

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1553
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Would it be difficult to produce a GTK-2 Linux version of Epyrus?

Unread post by athenian200 » 2024-05-26, 18:52

Actually, it is pretty easy to produce one. I don't publish one officially, but that's solely because I don't want the extra release engineering and the burden of additional Linux testing, when I already don't use the Linux version as much as the Windows version.

At first I was prepared to get upset thinking someone was hounding me for an official GTK2 release again, but if you just want to build one yourself... no problem, just don't ask me for support if it has any problems that can't be reproduced in the official GTK3 build.

If you look at the official build instructions, just change this line...

Code: Select all

ac_add_options --enable-default-toolkit=cairo-gtk3
To this.

Code: Select all

ac_add_options --enable-default-toolkit=cairo-gtk2
That's literally it, that's the difference. Again, no problem with people building it themselves. But you are even more "on your own" with it than you are with Epyrus normally...

The MOZ_PKG_SPECIAL line just changes the name of the package for naming clarification, you can remove that entirely if you're self-building technically... changing it to gtk2 is advised if you're compiling both a GTK2 and GTK3 version to run side-by-side, but other than that you could do without it. I leave it in for official builds mostly because the updater infrastructure I setup was designed around the name being that way.

User avatar
geraldh
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2022-06-18, 16:19
Location: Citizen of Europe

Re: Would it be difficult to produce a GTK-2 Linux version of Epyrus?

Unread post by geraldh » 2024-06-02, 15:59

Thank you all for your advice on this. When I get a bit of free time I'll have a go and report back :) .

Post Reply