Bug 2035178 - suggestion: move langpacks to a firefox-langpacks subpackage
Summary: suggestion: move langpacks to a firefox-langpacks subpackage
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-23 07:48 UTC by Jens Petersen
Modified: 2022-06-30 05:59 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2021-12-23 07:48:05 UTC
Description of problem:
I would like to suggest that the Fedora firefox package
could put its langpacks into a subpackage since they are rather large.
This would give the option for users that only need English firefox
to uninstall the firefox-langpacks subpackage reducing the diskspace
and the size of updates.

firefox could pull in firefox-langpacks as a weak dependency
so that it would be installed by default, but could be removed if wanted.
I think it would also be possible to make the langpacks subpackage noarch?
I think we could also support it in the Fedora langpacks metapackages.

How do you think of this idea?

Comment 1 Martin Stransky 2021-12-23 10:09:35 UTC
Sure, I'm for it. Unfortunately we (Fedora Firefox team) do not have time to work on that but we'll surely take such patches.

Comment 2 Ben Cotton 2022-02-08 21:19:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 3 Jens Petersen 2022-05-10 06:59:35 UTC
Great

I have opened https://src.fedoraproject.org/rpms/firefox/pull-request/43

Comment 4 Jens Petersen 2022-06-15 10:38:38 UTC
Okay I updated my PR to avoid conflicts with the changelog hunk.

Let me know if you have any questions or comments.

Comment 5 Jens Petersen 2022-06-15 10:39:56 UTC
I did also ponder if this deserves a Fedora Change?
Happy to help out with that if it makes sense.

Comment 6 Martin Stransky 2022-06-23 06:10:54 UTC
Sorry for the late reply.

How are the langpack rpm files created? Are they generated from the existing firefox-langpacks-XXXX langpack source file?
I don't want to change how the package is updated in git as the update process is fast and efficient (we upload only source + langpack file to git and change version number).

Comment 7 Martin Stransky 2022-06-23 06:12:39 UTC
If you attach a patch here I'll create a test build in koji.

Comment 8 Jens Petersen 2022-06-27 06:29:54 UTC
Thanks - did you see https://src.fedoraproject.org/rpms/firefox/pull-request/43 ?
which includes a scratch build

Comment 9 Jens Petersen 2022-06-27 06:35:15 UTC
Or you can take the patch from https://src.fedoraproject.org/rpms/firefox/pull-request/43.patch

Comment 10 Jens Petersen 2022-06-27 06:45:18 UTC
It might well make sense to announce this as a F37 System Wide Change.

Comment 11 Martin Stransky 2022-06-27 06:50:34 UTC
How does it affect recent installations? Is it possible to ship that on F35/F36 too?

Comment 12 Jens Petersen 2022-06-27 06:53:17 UTC
Sorry, forgot to respond to this

(In reply to Martin Stransky from comment #6)
> How are the langpack rpm files created? Are they generated from the existing
> firefox-langpacks-XXXX langpack source file?

It is using the current Fedora files: there is no change in content (just rpm packaging).

> I don't want to change how the package is updated in git as the update
> process is fast and efficient (we upload only source + langpack file to git
> and change version number).

No change is needed as far as i can see

Comment 13 Jens Petersen 2022-06-27 06:58:49 UTC
(In reply to Martin Stransky from comment #11)
> How does it affect recent installations? 

Good question

> Is it possible to ship that on F35/F36 too?

Yes, I think it is possible,
but honestly I would suggest to ship it first in F37.

I can update the patch to only make the subpackage for F37+ for now.

Then later once it looks good we could enable it for F36
and possibly F35. How does that sound?

I think it would be good to get it into Rawhide soon.

Comment 14 Jens Petersen 2022-06-27 07:02:32 UTC
BTW the deadline for F37 System Wide Changes is tomorrow.
So if we wanted to do that it should ideally be submitted today even.
I would be happy to write the draft and run it by you, if you like.

Comment 15 Jens Petersen 2022-06-27 07:17:01 UTC
(In reply to Jens Petersen from comment #13)
> I can update the patch to only make the subpackage for F37+ for now.

Done in my latest commit cacf128 now.

(Also note I earlier removed the changelog to avoid merge conflicts: let me know if you need one.)

Comment 16 Martin Stransky 2022-06-27 09:12:36 UTC
Thanks. Yes, we need it as system wide change for Fedora 37 due to weak dependency used.
Also we use the same firefox.spec file for all Fedoras so please keep the current langpacks scenario for Firefox < 37.
We commit to rawhide only and then merge to all other branches.

Comment 17 Martin Stransky 2022-06-27 09:13:26 UTC
Yes, please do the system wide change request form.

Comment 18 Jens Petersen 2022-06-27 09:30:12 UTC
(In reply to Martin Stransky from comment #16)
> Thanks. Yes, we need it as system wide change for Fedora 37 due to weak
> dependency used.
> Also we use the same firefox.spec file for all Fedoras so please keep the
> current langpacks scenario for Firefox < 37.
> We commit to rawhide only and then merge to all other branches.

Yep it is already done in my fork.

Comment 19 Jens Petersen 2022-06-27 10:10:51 UTC
Draft Change proposal is https://fedoraproject.org/wiki/Changes/Firefox_Langpacks_Subpackage

Do please have a look and feel free to improve it of course.

Comment 20 Jens Petersen 2022-06-27 10:17:09 UTC
(In reply to Martin Stransky from comment #16)
> Thanks. Yes, we need it as system wide change for Fedora 37 due to weak
> dependency used.
> Also we use the same firefox.spec file for all Fedoras so please keep the
> current langpacks scenario for Firefox < 37.
> We commit to rawhide only and then merge to all other branches.

Sure - I realised that needs more tweaking - I was mistaken on the status, sorry.

Comment 21 Jens Petersen 2022-06-27 11:21:04 UTC
I updated my PR again - maybe I can test it on F36...

Comment 22 Jens Petersen 2022-06-28 11:49:31 UTC
F36 scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=88801391 (no firefox-langpacks)

I am not able to scratch build for F37 (should have firefox-langpacks)

Comment 23 Martin Stransky 2022-06-28 12:09:26 UTC
Yes, it fails to build. I need to rebase to 102 anyway so will look at it.


Note You need to log in before you can comment on or make changes to this bug.