1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00
Commit Graph

51 Commits

Author SHA1 Message Date
Brian Smith 9f3376e56d Issue #1905 - Part 3a - Resign python binary ad-hoc since install_name_tool invalidates code signature. The code signature is invalidated on Intel as well, but on ARM the binary fails to run with an invalid code signature error. 2022-06-13 08:55:52 +08:00
Jeremy Andrews 292d71cd24 Issue #1887 - Allow /bin/sh to be used as a fallback value when SHELL is not set. 2022-05-04 10:11:48 +08:00
Brian Smith b324b34441 Issue #1829 - Fix psutil python extension on MacOS and potentially FreeBSD
Compilation failed due to missing sys/ioctl.h header on MacOS and FreeBSD. Call to function ioctl() with no prototype.  This was non-fatal due to the psutil component being optional.
2022-05-04 10:01:03 +08:00
Brian Smith 13fcc4a046 Issue #1829 - Revert "Issue #1751" 2022-05-04 09:40:24 +08:00
Moonchild d356440fa3 Issue #21 - Remove unused telemetry build variables.
Hard-code the values in AppConstants.jsm for compatibility, even if
nobody should actually be using this in extensions or what not.
2022-04-28 10:37:10 +08:00
Moonchild 6c1c2339bc Issue #1859 - Part 6: Update mach mar to accept --bz2 for old style MAR
So we can build bzip2 MARs for selectively updating older versions of
the applications that don't understand xz.
2022-04-19 22:05:01 +08:00
Moonchild a4b0f333ba Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.
This also removes some PP abuse and takes file entries out of PP when no longer
needed without XP_MACOSX conditionals.
2021-05-07 09:53:59 +08:00
Olivier Certner d094352ddf Issue #1761 - Enable use of Tauthon instead of Python 2.7 at build
Make essential Tauthon's builtins and modules available in sandboxes, without
disrupting building with Python 2.7.

1. Allow new builtins and modules. "__build_class__" is for
building... new-style classes (to handle the new metaclass syntax imported from
3.x). "_oserror" is necessary because of internal changes to raise errors
deriving from OSError (which are reported as IOError if not caught).
2. Look for modules and packages in the right places.

This was tested on FreeBSD, and should work out of the box on Linux.
2021-04-10 17:16:32 +08:00
Moonchild 50653a7c4c Issue #1053 - Remove build system MOZ_ANDROID_* defines and related code. 2021-03-11 10:13:09 +08:00
Olivier Certner 729af0b142 Issue #1699 - Part 1: python/psutil: Support recent FreeBSD versions
'sysctl' interface to currently opened connections changed in FreeBSD 12.

Drop support for FreeBSD < 9, these are very old and unsupported versions.
2021-01-08 17:40:50 +08:00
Matt A. Tobin e31680357e Issue #251 - Move chrome packaging options to ac configure
Also adds options for new functionality in #1683
2020-11-19 21:11:41 +08:00
Moonchild d0dbdf4e8b [packager] Optimize archive accesses. 2020-11-16 21:10:25 +08:00
Moonchild d5919942ff Issue #1656 - Part 8: Devtools and misc. 2020-09-25 22:06:55 +08:00
Moonchild 0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
wolfbeast eabcbe5672 [AM] Clean up addon-signing build leftovers. 2020-05-02 08:23:23 +08:00
New Tobin Paradigm 011949484d Issue #1497 - Re-implement an un-preprocessed file check 2020-04-11 09:40:28 +08:00
wolfbeast 744b768ede Issue #1497 Revert "Check if there are any unpreprocessed files"
This reverts PR #429
2020-04-03 09:23:26 +08:00
wolfbeast be6ba06651 Issue #1497 Revert "MoonchildProductions#1251 - Part 19"
"Make the unpreprocessed file script work on Solaris."

This reverts commit e51afbcc2fe7360bbcf5654f6e31752c48098ca0.
2020-04-03 09:23:23 +08:00
Matt A. Tobin 648b7278f6 Issue #1477 - Fix finding config.guess on builds not using MOZ_OBJDIR
* So far this seems to only affect Macintosh builds but other unix builds may be affected. Windows doesn't seem to be.
* This maintains consistency with other one-off file invocations and backwards compatibility with older comm setups
2020-03-20 08:58:07 +08:00
Matt A. Tobin ecbe2bbe25 Issue #1470 - Part 3: Remove now unused update.locale
This requires changes to package-manifest in all applications
2020-03-13 10:16:47 +08:00
Matt A. Tobin 2aca38b372 Issue #1359 - Pointlessly rename greprefs.. again. 2020-01-24 09:28:10 +08:00
wolfbeast 48adbfd454 Issue #1322 - Part 2: Remove --enable-sm-promise buildconfig switch. 2019-12-20 09:07:26 +08:00
Matt A. Tobin 36914a3c5c No Issue - Add checking in platform/ for clobber.py because it can only know hardcoded values in comm-style configurations 2019-12-02 15:46:28 +08:00
Matt A. Tobin 2ddb294c26 Issue #1303 - Add langpack generation targets for Pale Moon and Basilisk
* The langpack is not generated via the package target but IS for mozpackage target using old behavior
* Add mach command to specifically generate the langpack when needed without the rest of the packaging routine (mach langpack)
2019-11-29 11:36:36 +08:00
Matt A. Tobin 94b1e61383 No Issue - Use alternative packaging for Pale Moon and Basilisk
* This adds what will eventually be a rewritten packaging routine while maintaining backwards compatibility with the original mozilla routine
* Changes the build target and installer makefile to use the alternative packaging
* Adds build target to specifically invoke the original mozilla routine
* Update mach commands accordingly
2019-11-28 10:32:44 +08:00
Matt A. Tobin ac1fe973f4 [Mach] Add stage command to execute stage-package 2019-11-15 14:24:10 +08:00
athenian200 362f15fbfc MoonchildProductions#1251 - Part 19: Make the unpreprocessed file script work on Solaris.
https://www.tachytelic.net/2019/01/grep-recursively/

During testing, I tried simply replacing grep with ggrep, which was non-portable but worked fine. Using an environment variable with os.getenv set to 'g' also worked, but the problem with that approach is that you have to set it manually and some times the script will mess up if you don't explictly define it to an empty string for platforms that don't need it.

Setting TOOLCHAIN_PREFIX to 'g' seemed to solve all of my problems except this one, and it appears to be the only non-portable use of GNU grep in the whole tree. To understand what I tried to do here, let me present with you with two commands that yield the same output on my machine:

find . -name '*.xul' | xargs grep -E "#include"

ggrep -E -r "#include" --include="*.xul" .

I just tried to make the Python script follow the logic of those two commands, though I'm not sure how well I succeeded since I got no errors. I visualized everything this way:

ggrep -E -r "<strings>" --include="<filesuffixes>" <path>

find <path> -name '<filesuffixes>' | xargs grep -E "<strings>"

And arranged it all accordingly to the best of my ability, though I should point out that Python is not my strong suit.
2019-11-04 11:53:54 +08:00
athenian200 afb2e3a054 MoonchildProductions#1251 - Part 4: Core build system changes, lots of libevent/IPC junk.
This is mostly ifdefs, but as you can see, Solaris is actually a lot like Linux. They're both more SysV than BSD at core, and most of the differences have more to do with Solaris not using glibc than anything else.

I still need to audit a lot of these changes and understand why they're needed and what the alternative approaches are. After this patch, most of the core functionality needed to build Solaris is here.
2019-11-04 11:52:17 +08:00
athenian200 f7e2b86c94 MoonchildProductions#1251 - Part 2: Make the mozconfig loader POSIX-compliant.
https://bugzilla.mozilla.org/show_bug.cgi?id=1360571

Solaris uses ksh as the default shell, and furthermore bash doesn't seem to support the 'local' keyword feature when invoked as sh on OpenIndiana. We could just change the script to use bash (it is an option even on Solaris), but this fix is available and Mozilla has been using it since Firefox 55 with no issues on any other platforms. It was specfically done this way to avoid any need to change existing mozconfig files, so I feel confident saying the change is totally benign and if anything the way it is now is technically a POSIX compliance issue inherited from Mozilla that we'll hit if we ever try to compile this on any Unix platform where bash isn't sh.
2019-11-04 11:52:14 +08:00
JustOff 2999a8e031 Fix false positives in the preprocessor-checker 2019-02-16 00:22:47 +08:00
wolfbeast 20acf1e808 Flush some more buildlog output to screen when prudent. 2019-02-16 00:13:39 +08:00
trav90 cfdaeb9645 Shell quote environment variable values when dumping them in dump_env.py
The mozconfig output parsing code already (mostly) handles shell quoted strings, because that's what `set` outputs. By quoting environment variable values, we avoid a bunch of problems with "weird" values.
2019-02-16 00:10:53 +08:00
wolfbeast 9879cbdd88 Make sure the waiting message is actually displayed. 2019-02-16 00:02:05 +08:00
JustOff 5dd561425b Don't search for directives that are never used alone 2019-02-16 00:00:22 +08:00
JustOff c7ed9dfd46 Refine the file extensions even more 2019-02-16 00:00:20 +08:00
JustOff 51d60c1b89 Update the list of directives and file extensions for check 2019-02-16 00:00:19 +08:00
JustOff f13c934a8f Check if there are any unpreprocessed files 2019-02-16 00:00:17 +08:00
wolfbeast 74df182488 Remove other gonk widget conditionals and unused files.
Tag #288.
2019-02-15 23:57:15 +08:00
wolfbeast d37246737b Convert MOZILLA_OFFICIAL conditionals to MC_OFFICIAL where needed.
- `--enable-official-branding` implies `MC_OFFICIAL` (no need to specifically set it)
- `--enable-official-vendor` can be used to set `MC_OFFICIAL` on builds without `--enable-official-branding` that should still be considered official release versions.
- `MC_OFFICIAL` implies `--enable-release`, meaning `DEVELOPER_OPTIONS` isn't set
- `MC_OFFICIAL` makes `nsXULAppInfo.getIsOfficial` return `true`
- `MC_OFFICIAL` makes `AppConstants.MOZILLA_OFFICIAL` (for compatibility in extensions) and `AppConstants.MC_OFFICIAL` return `true`
- Optional, for the time being: `MOZILLA_OFFICIAL` is still present in some places in case someone wants to build a Mozilla-alike official application and has the rights and necessary keys to use Mozilla-official third-party services. This must always be combined with `MC_OFFICIAL` to have a sane combination of defines. This may be removed in the future.
2019-02-15 23:44:10 +08:00
wolfbeast 434f3590e3 Remove base conditional code for crash reporter and injector. 2019-02-15 23:39:53 +08:00
wolfbeast 29af2b9023 Get rid of link to irrelevant information after build. 2019-02-15 23:39:50 +08:00
wolfbeast 963560a1d2 Remove Rust from the tree.
Part 4 for #58
2019-02-15 23:36:42 +08:00
janekptacijarabaci 54f2e6eafd DevTools - network - implement the secureConnectionStart property for the PerformanceTiming
https://github.com/MoonchildProductions/moebius/pull/116
("/testing" and "/toolkit" in in the previous commit)
2019-02-15 23:34:40 +08:00
NTD b4c6885d32 Remove MOZ_MULET 2019-02-15 23:34:18 +08:00
wolfbeast 29c96b568b Pick up major+minor milestone version from GRE milestone file. 2019-02-15 23:33:01 +08:00
NTD 943b6627ef Add mach installer and mach mar for Windows Installer and MAR file generation 2019-02-15 23:32:37 +08:00
trav90 1eecf39f2b Require at least GCC 4.9 to build 2019-02-15 23:28:57 +08:00
NTD 28bbfef589 Use MOZ_PHOENIX instead of checking for 'browser' in MOZ_BUILD_APP 2019-02-14 14:35:08 +08:00
NTD 30d5f081aa Use UTC where appropriate in python files 2019-02-14 14:28:19 +08:00
NTD 0066c408f1 Preprocessor warnings should not be fatal errors 2019-02-14 14:28:14 +08:00