Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Ancient Firefox...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 12:13 pm    Post subject: [Solved] Ancient Firefox... Reply with quote

Hi,

I noticed that the Firefox installed through emerge is at v102 only. I need fixes in the very latest version. So I do understand the mechanics in maintaining a stable app etc, as well as testing and what-not, but still, is there a way to at least temporary bump the version?

Thanks


Last edited by G3nt00 on Thu Aug 03, 2023 12:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8938

PostPosted: Thu Aug 03, 2023 12:16 pm    Post subject: Reply with quote

See available versions in Gentoo:

Code:
$ eshowkw firefox
Keywords for www-client/firefox:
         |                               |   u       | 
         | a   a     p s     l r   a     |   n       | 
         | m   r h   p p   i o i s l m m | e u s     | r
         | d a m p p c a x a o s 3 p 6 i | a s l     | e
         | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o     | p
         | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t     | o
---------+-------------------------------+-----------+-------
102.13.0 | + o + o o ~ o + o o o o o o o | 8 o esr   | gentoo
102.14.0 | + o ~ o o ~ o + o o o o o o o | 8 o       | gentoo
---------+-------------------------------+-----------+-------
 115.0.2 | ~ o ~ o o ~ o ~ o o ~ o o o o | 8 o rapid | gentoo
---------+-------------------------------+-----------+-------
 115.1.0 | o o o o o o o o o o o o o o o | 8 # esr   | gentoo
---------+-------------------------------+-----------+-------
   116.0 | ~ o ~ o o ~ o ~ o o ~ o o o o | 8 o rapid | gentoo


Note the difference in + (stable) and ~ (testing) or o (not keyworded) status.

But also note that 102.14.0 is also a "very latest" version, even if it is still at 102, with ESR status (that's upstream speak for LTS). So, not ancient at all.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Thu Aug 03, 2023 12:25 pm    Post subject: Reply with quote

Yeah 102.14.0 was released a mere two days ago (very latest indeed), and is already stable for amd64.

:esr of course gets security fixes on par with the :rapid channel, so either are fine and it's up to preference (:esr stays the same longer to avoid disruptions, while rapid gives you changes sooner)
Back to top
View user's profile Send private message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 12:31 pm    Post subject: Reply with quote

There you said something... :facepalm:

I'm running ESR, so yes, of course it's older... But I need 117, which aparently is in firefox-beta now so will have to wait a while for that to make it into Gentoo then, but soon! :) But this gave me a very good picture about the choices at hand.

Thanks both!
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Thu Aug 03, 2023 12:39 pm    Post subject: Reply with quote

If it's only a fix, can't you just add the relevant commit as a local patch for the time being?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 12:43 pm    Post subject: Reply with quote

stefan11111 wrote:
If it's only a fix, can't you just add the relevant commit as a local patch for the time being?


I don't know how, but would probably be a way. I wouldn't know where to start with this though; https://bugzilla.mozilla.org/show_bug.cgi?id=1817723
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Thu Aug 03, 2023 12:51 pm    Post subject: Reply with quote

G3nt00 wrote:
stefan11111 wrote:
If it's only a fix, can't you just add the relevant commit as a local patch for the time being?


I don't know how, but would probably be a way. I wouldn't know where to start with this though; https://bugzilla.mozilla.org/show_bug.cgi?id=1817723

I see these 3 commits:
https://hg.mozilla.org/mozilla-central/rev/82ec106ef2c5
https://hg.mozilla.org/mozilla-central/rev/b33104f8bcd8
https://hg.mozilla.org/mozilla-central/rev/b909a9f6f1ea

You can copy the diffs to /etc/potage/patches/www-client/firefox/<chose_names>.patch
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 1:16 pm    Post subject: Reply with quote

Ok, so for the first link it will be 11 .patch files? Have I gotten it right then? And if saved in /etc/portage/patches/, will they be automatically applied on rebuild?
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Thu Aug 03, 2023 1:41 pm    Post subject: Reply with quote

G3nt00 wrote:
Ok, so for the first link it will be 11 .patch files? Have I gotten it right then? And if saved in /etc/portage/patches/, will they be automatically applied on rebuild?

You don't have to break them up. If you wanted, you could keep a single huge patch file for all 3 commits.
They will be applied on rebuild, assuming that the patches work with your old esr firefox.
If they don't work, you can try using the patches with the latest packaged version of firefox, which seems to be 116.0.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 1:44 pm    Post subject: Reply with quote

Cool, if it won't work with ESR 102 it'll crash on build, how do I clean after that if it should?
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Thu Aug 03, 2023 1:51 pm    Post subject: Reply with quote

G3nt00 wrote:
Cool, if it won't work with ESR 102 it'll crash on build, how do I clean after that if it should?

No need to clean anything. Portage will clean after itself.
If the patches fail to apply, the build will fail early.
It will tell you which patch failed to apply and where.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 2:51 pm    Post subject: Reply with quote

Well, thanks for the lesson! It failed hard and from what I can tell needs a more recent build, 115-6 would perhaps work. For another day to try tho. Thanks for the help! :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Thu Aug 03, 2023 4:25 pm    Post subject: Reply with quote

G3nt00,

Appling patches in the right order matters.
When patch B changes patch A, if patch A is not already applied, patch B will fail to apply.

Patches are applied in lexicographical sort order. Have a look at the patches applied by glibc,
10-<something>
20-<something else>
30- ...

That forces the patch application ordering. I don't know if it matters in your case.

Another trap that I keep getting wrong is that eappy_patch uses -p1 so that throws away the first element in the path name in the patch file.
That tells you no file to patch.

What does
Quote:
failed hard
actually mean?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
G3nt00
Guru
Guru


Joined: 09 Apr 2023
Posts: 337

PostPosted: Thu Aug 03, 2023 4:47 pm    Post subject: Reply with quote

NeddySeagoon wrote:
G3nt00,

Appling patches in the right order matters.
When patch B changes patch A, if patch A is not already applied, patch B will fail to apply.

Patches are applied in lexicographical sort order. Have a look at the patches applied by glibc,
10-<something>
20-<something else>
30- ...

That forces the patch application ordering. I don't know if it matters in your case.

Another trap that I keep getting wrong is that eappy_patch uses -p1 so that throws away the first element in the path name in the patch file.
That tells you no file to patch.

What does
Quote:
failed hard
actually mean?


It means I had no idea they had to go in a certain order, and that it failed miserably (probably because of that). I must attend some other things but will come back to it. Thanks :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Thu Aug 03, 2023 5:06 pm    Post subject: Reply with quote

G3nt00,

You can speed up your debugging by running ebuild phases separately by hand.

As root, try
Code:
ebuild </path/to/.ebuild file> prepare

See
Code:
man ebuild
for the phases.

The messages on the screen will tell you the workidir.

cd there, wherever it is, then use the patch command by hand. Just as portage would do.

Code:
patch -p1 < <path_to _first_.patch>


The messages will be useful
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum