Closed Bug 1950511 Opened 11 months ago Closed 9 months ago

Add an rpm sub command to mach repackage

Categories

(Release Engineering :: General, enhancement, P2)

Desktop
Linux
enhancement

Tracking

(firefox140 fixed)

RESOLVED FIXED
Tracking Status
firefox140 --- fixed

People

(Reporter: gabriel, Assigned: alubert)

References

(Blocks 1 open bug)

Details

Attachments

(9 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

We need to enhance mach repackage to support building Firefox for Linux RPM packages.

Assignee: nobody → alubert
Status: NEW → ASSIGNED

These functions come from the deb repackaging sub-module and were altered to
allow multiple repackaging system.

The test_rpm is mostly based on the test_deb file.

The prefix DEB_ was fully removed from the template variables.

The tests which are already tested in test_utils were removed from test_debian.

The tool rpmbuild come from with the --target parameter which allow to build a
package for a particular architecture (if the building tools are available).

Since the repackage-rpm command do not build anything, this argument can be
used to register the correct information in the generated package.

The --target argument will also add automaticaly the architecture related
entries in the specification file.

This command will generate a RPM package containing a .xpi file which can be
used after that in the dedicated firefox build package.

The langpacks subpackages will be built together with the main packages. To
achieve this behavior, the firefox.spec file is now generated from a jinja2
template instead of the basic template from the string module.

Attachment #9471454 - Attachment is obsolete: true
Pushed by gbustamante@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b7fd45513dbf part 1: prepare the repackaging files related to rpm r=gabriel https://hg.mozilla.org/integration/autoland/rev/b69571cb9c19 part 2: add a common module to use with both deb and rpm r=gabriel https://hg.mozilla.org/integration/autoland/rev/a5ca243d45aa part 3: add the rpm choice for the mach repackage action r=gabriel https://hg.mozilla.org/integration/autoland/rev/001bb9bd22ab part 4: use the common repackaging module with debian r=gabriel https://hg.mozilla.org/integration/autoland/rev/2d837ca56796 part 5: use the arch parameter with rpm packaging r=gabriel https://hg.mozilla.org/integration/autoland/rev/474e8391c685 part 6: add the langpack in the RPM firefox.spec file r=gabriel https://hg.mozilla.org/integration/autoland/rev/d0042028b71c Fix .rpm file_path on x86 r=jlorenzo https://hg.mozilla.org/integration/autoland/rev/72394d88dd28 Copy built rpms into artifact directories r=releng-reviewers,ahal https://hg.mozilla.org/integration/autoland/rev/b23d8196b602 Fix and improve the rpm._generate_rpm_archive tests r=releng-reviewers,bhearsum
See Also: → 1963678
Regressions: 1966411
See Also: → 1996234
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: