Hi Adrian,
thank you for your time. This sounds a bit complicated for the newer versions.
Currently i don't know where to start.
I was trying to build the old firefox52 and thunderbird52 which run on NetBSD/Sparc64 from pkgsrc and manually. The thunderbird52 exists on debian and the firefox package did skip 52 and was only released as a 50 with error messages filling up the console. I can get them to build with pkgsrc and manually but some patches seem to be missing to avoid bus errors in libxul.so on debian.
Unfortunately i don't know yet how debian builds its own packages and where to find the patches used in those builds, so that i could reproduce the building of firefox50 and thunderbird52 to maybe learn something as a starting point.
Regards,
Connor