Avoid duplicating "firefox" as "firefox-bin"
Categories
(Firefox Build System :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: glandium, Unassigned)
References
(Blocks 2 open bugs)
Details
Since the updater can't currently deal with symbolic links, bug 552864 made it so that firefox and firefox-bin are really the same binary, duplicated. We can either go the symbolic link way, which means a lot of problems: updating mar, updating the mar creation scripts, maybe updating the updater... and even then, I'm not even sure this would work: if updates are applied with the old updater, then we can't rely on that (and if it's the case, we may want the updater to actually first update the updater and restart itself for futureproofness) Or, a possible simple solution could be a little shell script: #!/bin/sh exec ${0%-bin} "$@" (though it wouldn't work as well as a symbolic link)
Comment 1•12 years ago
|
||
How about just biting the bullet, and shipping only a "firefox" (binary)?
Reporter | ||
Comment 2•12 years ago
|
||
At least on Linux, that could be a problem. I remember some time ago, some desktop environments would store "firefox-bin" as the application to run. People might still have that kind of setup. Do we want to break them?
Comment 3•12 years ago
|
||
When I tried to drop the "firefox" shell script on OS X, it broke some software that was trying to call that instead of firefox-bin, so I'm sure there are some things doing the opposite.
Reporter | ||
Updated•12 years ago
|
Reporter | ||
Comment 6•12 years ago
|
||
#!/bin/sh exec `which ${0%-bin}` "$@" may work better.
Comment 7•12 years ago
|
||
this bug is not fixed even in firefox 8. wasn't the point of new release strategy, to push fixes and features faster to the community? this issue is know since May, now we are in November. Over half a year for a script.
Comment 8•12 years ago
|
||
Release strategies don't mean that we're prioritizing resources on this specific bug. Please see Bugzilla Etiquette: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html While we do care about fixing bug like these, other more important bugs get handled first and are pushed faster with the new release strategy.
/usr/lib/firefox/firefox-bin is a symlink now. I don't think it's even in use anymore.
Comment 10•7 years ago
|
||
This started between Milestone=12.0 and Milestone=13.0 due to my tests for SeaMonkey in Bug 1288966 comment #2
Comment 11•6 years ago
|
||
We're still doing this on OSX. In addition, firefox and firefox-bin differ very slightly from each other for some reason.
Comment 12•6 years ago
|
||
I had some success with two try pushes: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc6298facb8c9e7c87055863363c77aa1448c950 https://treeherder.mozilla.org/#/jobs?repo=try&revision=e57e633cd938631975878df94aa10b13be380715 In the latter, I broke building geckodriver because I wanted to change references from 'firefox-bin' to 'firefox', and broke some magic checksumming logic.
Updated•5 years ago
|
Comment 13•3 years ago
|
||
In summary, both firefox
and firefox-bin
are executables. Both open your browser the same. firefox
starts firefox-bin
.
The reason there are two executables and not one, is because there was a problem updating Firefox across a wide variety of operating systems, where linking wasn't working the same on all of them. The decision was made to simply have firefox
start firefox-bin
rather than have a logical or soft, filesystem link between the two historical names, where both needed to be kept working to avoid breaking installations in the field.
You can partially verify this if you look at your process tree, which might look something like this. No matter if you run firefox
or firefox-bin
, the process tree ends up looking identical:
--- Process Name; User
- systemd; root
- ...
- systemd; mike
- ...
- gnome-terminal-server; mike
- ...
- bash; mike
- firefox-bin; mike
- RDD Process; mike
- Web Conent; mike
- ...
- WebExtensions; mike
- firefox-bin; mike
- bash; mike
- ...
- systemd; mike
(Note: I'm on Debian 10.3 Buster, and 'mike' is a fictitious user name to hide my real user name.)
[Someone please correct me if this is summary is fundamentally wrong. There are lots of old threads on this issue, but none that I found really answers this any better than this thread above. I've looked at this issue several times over several years, as I slowly came up to speed on Linux, and each time I left with my head shaking, till now. :-|, Thank you.]
Reporter | ||
Updated•3 years ago
|
Comment hidden (spam) |
Comment hidden (spam) |
Comment hidden (spam) |
Description
•