Open Bug 2074893 Opened 2 days ago Updated 2 days ago

./mach package fails on macOS with BSD tar, which does not support --mode=go-w

Categories

(Firefox :: Untriaged, defect)

Firefox 158
defect

Tracking

()

UNCONFIRMED

People

(Reporter: kjoonlee, Unassigned)

Details

Attachments

(1 file)

Attached file tar--mode=go-w.txt —

Steps to reproduce

  1. Prepare a macOS machine, without GNU tar.
  2. Build Firefox.
  3. ./mach package

Actual results

0:03.52 Compressing...
0:03.52 BUILDSTATUS@browser/installer START_package TAR
0:03.57 tar: Option --mode=go-w is not supported

Expected results

BSD tar should also be supported by ./python/mozbuild/mozbuild/action/package.py

0:03.52 Compressing...
0:03.52 BUILDSTATUS@browser/installer START_package TAR
0:03.57 tar: Option --mode=go-w is not supported
0:03.57 Usage:
0:03.57 List: tar -tf <archive-filename>
0:03.57 Extract: tar -xf <archive-filename>
0:03.57 Create: tar -cf <archive-filename> [filenames...]
0:03.57 Help: tar --help
0:03.58 gmake[4]: *** [/Users/kjoonlee/firefox/toolkit/mozapps/installer/packager.mk:140: make-package-internal] Error 1
0:03.58 gmake[4]: Leaving directory '/Users/kjoonlee/firefox/obj-aarch64-apple-darwin24.6.0/browser/installer'
0:03.58 gmake[3]: *** [/Users/kjoonlee/firefox/toolkit/mozapps/installer/packager.mk:144: make-package] Error 2
0:03.58 gmake[3]: Leaving directory '/Users/kjoonlee/firefox/obj-aarch64-apple-darwin24.6.0/browser/installer'
0:03.58 gmake[2]: *** [/Users/kjoonlee/firefox/config/rules.mk:345: default] Error 2
0:03.58 gmake[2]: Leaving directory '/Users/kjoonlee/firefox/obj-aarch64-apple-darwin24.6.0/browser/installer'
0:03.58 gmake[1]: *** [/Users/kjoonlee/firefox/browser/build.mk:6: package] Error 2
0:03.58 gmake[1]: Leaving directory '/Users/kjoonlee/firefox/obj-aarch64-apple-darwin24.6.0'
4.24 real 3.13 user 1.39 sys
make: *** [dmg] Error 2

This was with non-artifact builds; for artifact builds, I entered bug 2074903.

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

Attachment

General

Creator:
Created:
Updated:
Size: