Open Bug 1944714 Opened 28 days ago Updated 23 days ago

`mach repackage pkg` Fails when run locally on macOS due to "Exception: Could not find xar tool"

Categories

(Release Engineering :: General, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: haik, Unassigned)

References

Details

Attachments

(1 file)

Sometimes developers have a need to build the macOS pkg locally. We should update mach repackage pkg to work locally on macOS. At present, the command fails with the error message below.

$ ./mach repackage pkg -i nightly.tar -o foo.pkg
Error running mach:

    mach repackage pkg -i nightly.tar -o foo.pkg

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file repackage`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

Exception: Could not find xar tool.

  File "/Users/haik/r/mc/python/mozbuild/mozbuild/mach_commands.py", line 2487, in repackage_pkg
    repackage_pkg(input, output)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/Users/haik/r/mc/python/mozbuild/mozbuild/repackaging/pkg.py", line 21, in repackage_pkg
    raise Exception("Could not find xar tool.")
See Also: → 1872934

mach repackage is more or less owned by releng AFAIK.

Product: Firefox Build System → Release Engineering

The WIP mach changes pulled from nalexander's patches on bug 1872934. Posted here for reference.

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

Attachment

General

Created:
Updated:
Size: