Hello Daniel,

Am 19.08.22 um 06:37 schrieb Daniel Kahn Gillmor:
...
i'd like to do something like that with the autopkgtest for the debian
package, but to do that i'd need to have the mach utility (i think it's
python?) available, and i'd also need to have access to the test code.

there isn't only the mach Python script, there are a lot of various peaces that act together (I haven't looked into that rabbit hole yet). But yes, the script in question is a Python script.

https://sources.debian.org/src/thunderbird/1%3A102.1.2-1/mach/

I suppose the autopkgtest could do this by fetching the source for
thunderbird directly, but it'd be easier to do so if there was a binary
package that contained these pieces of infrastructure as shipped
directly from the thunderbird source.

Of course this is doable. Reading your initial ITP I think it would be reasonable to ship this all within a new binary package called thunderbird-mach-tool or mozilla-mach-tool e.g. This could be even a usual python3 package in a long term.

The hardest part will be to get all the parts together that are needed to get the tooling working correctly. For me it would work best if you can start to extract the files and folders which are needed.

The mach script is using these files to initialize the script itself.

comm/build/mach_initialize.py
build/mach_initialize.py
tools/mach_initialize.py

The first file is then starting to include more files and paths.

MACH_MODULES = [
    "comm/python/l10n/mach_commands.py",
    "comm/tools/lint/mach_commands.py",
]

@Emilio
Do you might have an (better?) idea how to archive the needs from Daniel? It's mostly a one way communication for me if I start to ask Mike. :-( Is there eventually some more or less ready we could pick up from the upstream build system?

--
Regrads
Carsten

Reply via email to