remove firefox snap repackage taskcluster execution
Categories
(Firefox Build System :: Third Party Packaging, task)
Tracking
(firefox129 fixed)
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
Attachments
(2 files)
Assignee | ||
Comment 1•4 months ago
|
||
this broke in https://bugzilla.mozilla.org/show_bug.cgi?id=1895338 and the yaml definition is now severely outdated. per https://bugzilla.mozilla.org/show_bug.cgi?id=1895338#c7 there's no use, i think jed would be the sole user via mach repackage snap
Comment 2•4 months ago
|
||
This is fine by me. I confirm this has little use. I defer to :jld regarding his usage.
Comment 3•4 months ago
|
||
We should get rid of this task. I agree with the reasons in bug 1895338 comment #2; in addition, the code that tries to install snaps without snapd seems like… not something we'd want to maintain if we can avoid it.
The mach repackage snap
patches never landed; I got some review feedback a while ago and haven't had time to revisit them. So, if I need to figure something else out in terms of how to generate a snapcraft.yaml
file to do the repackaging, I can do that the next time I look at those patches.
Assignee | ||
Comment 4•4 months ago
|
||
Assignee | ||
Comment 5•4 months ago
|
||
Assignee | ||
Comment 6•4 months ago
•
|
||
and now i realize upstream depends on it :p https://github.com/canonical/firefox-snap/blob/stable/snapcraft.yaml#L410
Assignee | ||
Comment 7•4 months ago
|
||
Martin, Johan, do you think we could rather use the one provided in https://searchfox.org/mozilla-central/source/browser/components/shell/search-provider-files/firefox.desktop ?
The most important differences are translations, a few names of categories that the Snap one has and this one does no, but they serve the same purpose otherwise.
Comment 8•4 months ago
|
||
(In reply to :gerard-majax from comment #7)
Martin, Johan, do you think we could rather use the one provided in https://searchfox.org/mozilla-central/source/browser/components/shell/search-provider-files/firefox.desktop ?
The most important differences are translations, a few names of categories that the Snap one has and this one does no, but they serve the same purpose otherwise.
Yes, it'd use the one. But you need to flip DBusActivatable to false as you perhaps don't ship Firefox DBus service.
Comment 9•4 months ago
|
||
Agreed. I'm okay to merge taskcluster/docker/firefox-snap/firefox.desktop
into browser/components/shell/search-provider-files/firefox.desktop
Assignee | ||
Comment 10•4 months ago
|
||
Amin, would you be fine if we removed taskcluster/docker/firefox-snap/firefox.desktop
file and rather rely on DesktopFileTransform
from https://phabricator.services.mozilla.com/D210807 to generate it?
You'd need to update the build step to include something like:
from mozbuild.repackaging.snapcraft_transform import DesktopFileTransform
source_desktop = os.path.join(srcdir, "browser/components/shell/search-provider-files/firefox.desktop")
with open(os.path.join(snapdir, "firefox.desktop"), "w") as desktop_file:
desktop_file.write(
DesktopFileTransform(source_desktop, icon="default256.png").repack()
)
Which can be invoked via mach python
Comment 11•4 months ago
|
||
As long as the upstream snap use-case is covered (which per what you said it very well would be, via DesktopFileTransform
) then sure, it's fine by me.
Just to clarify for myself, is mach python
a proper wrapper around the Python interpreter, so I could pass the above snippet to its standard input or with -c
as a literal string or an actual file? (Asking to make sure this new step could be done fully non-interactively during Firefox snap build.)
Assignee | ||
Comment 12•4 months ago
|
||
Yes
Updated•3 months ago
|
Assignee | ||
Comment 13•3 months ago
|
||
Comment 14•3 months ago
|
||
Comment 15•3 months ago
|
||
bugherder |
Assignee | ||
Comment 16•3 months ago
|
||
Looks like we need keep open even when there are two patches ?
Updated•3 months ago
|
Updated•1 month ago
|
Comment 17•1 month ago
|
||
Comment 18•1 month ago
|
||
bugherder |
Comment 19•1 month ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Description
•