electron/patches/common/chromium/sysroot.patch
Jeremy Apthorp 76c5f5cc8a
build: move libcc patches to electron repo (#14104)
In the GN build, libchromiumcontent is no longer a distinct library, but
merely a container for a set of scripts and patches. Maintaining those
patches in a separate repository is tedious and error-prone, so merge
them into the main repo.

Once this is merged and GN is the default way to build Electron, the
libchromiumcontent repository can be archived.
2018-09-13 22:02:16 -07:00

126 lines
5.5 KiB
Diff

diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni
index d5daf2df2e41..46999e2e2198 100644
--- a/build/config/sysroot.gni
+++ b/build/config/sysroot.gni
@@ -32,17 +32,17 @@ if (current_os == target_os && current_cpu == target_cpu &&
# By default build against a sysroot image downloaded from Cloud Storage
# during gclient runhooks.
if (current_cpu == "x64") {
- sysroot = "$target_sysroot_dir/debian_sid_amd64-sysroot"
+ sysroot = "$target_sysroot_dir/debian_stretch_amd64-sysroot"
} else if (current_cpu == "x86") {
- sysroot = "$target_sysroot_dir/debian_sid_i386-sysroot"
+ sysroot = "$target_sysroot_dir/debian_stretch_i386-sysroot"
} else if (current_cpu == "mipsel") {
- sysroot = "$target_sysroot_dir/debian_sid_mips-sysroot"
+ sysroot = "$target_sysroot_dir/debian_stretch_mips-sysroot"
} else if (current_cpu == "mips64el") {
- sysroot = "$target_sysroot_dir/debian_sid_mips64el-sysroot"
+ sysroot = "$target_sysroot_dir/debian_stretch_mips64el-sysroot"
} else if (current_cpu == "arm") {
- sysroot = "$target_sysroot_dir/debian_sid_arm-sysroot"
+ sysroot = "$target_sysroot_dir/debian_stretch_arm-sysroot"
} else if (current_cpu == "arm64") {
- sysroot = "$target_sysroot_dir/debian_sid_arm64-sysroot"
+ sysroot = "$target_sysroot_dir/debian_stretch_arm64-sysroot"
} else {
assert(false, "No linux sysroot for cpu: $target_cpu")
}
diff --git a/build/linux/sysroot_scripts/install-sysroot.py b/build/linux/sysroot_scripts/install-sysroot.py
index 58f09950d844..53500a0853a6 100755
--- a/build/linux/sysroot_scripts/install-sysroot.py
+++ b/build/linux/sysroot_scripts/install-sysroot.py
@@ -31,8 +31,8 @@ import urllib2
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-URL_PREFIX = 'https://commondatastorage.googleapis.com'
-URL_PATH = 'chrome-linux-sysroot/toolchain'
+URL_PREFIX = 'http://s3.amazonaws.com'
+URL_PATH = 'gh-contractor-zcbenz/toolchain'
VALID_ARCHS = ('arm', 'arm64', 'i386', 'amd64', 'mips', 'mips64el')
@@ -43,7 +43,7 @@ ARCH_TRANSLATIONS = {
'mips64': 'mips64el',
}
-DEFAULT_TARGET_PLATFORM = 'sid'
+DEFAULT_TARGET_PLATFORM = 'stretch'
class Error(Exception):
pass
diff --git a/build/linux/sysroot_scripts/sysroots.json b/build/linux/sysroot_scripts/sysroots.json
index 48a1d36f0609..91ef1417a1bf 100644
--- a/build/linux/sysroot_scripts/sysroots.json
+++ b/build/linux/sysroot_scripts/sysroots.json
@@ -1,38 +1,38 @@
{
- "sid_amd64": {
- "Revision": "15b7efb900d75f7316c6e713e80f87b9904791b1",
- "Sha1Sum": "85ac8d5e0f6cff99fc323fd3d29cb73e2aa970e2",
- "SysrootDir": "debian_sid_amd64-sysroot",
- "Tarball": "debian_sid_amd64_sysroot.tar.xz"
+ "stretch_amd64": {
+ "Revision": "02772eaba5440a79c6bd2d9cb7e42fa836950366",
+ "Sha1Sum": "69457fddca3500e2dde124f77f8382b0a18d765e",
+ "SysrootDir": "debian_stretch_amd64-sysroot",
+ "Tarball": "debian_stretch_amd64_sysroot.tgz"
},
- "sid_arm": {
- "Revision": "15b7efb900d75f7316c6e713e80f87b9904791b1",
- "Sha1Sum": "ed31924757f11885a21793dc4b928d07ab25740c",
- "SysrootDir": "debian_sid_arm-sysroot",
- "Tarball": "debian_sid_arm_sysroot.tar.xz"
+ "stretch_arm": {
+ "Revision": "02772eaba5440a79c6bd2d9cb7e42fa836950366",
+ "Sha1Sum": "3e880f69177992ce02b05deeac619f7591b30287",
+ "SysrootDir": "debian_stretch_arm-sysroot",
+ "Tarball": "debian_stretch_arm_sysroot.tgz"
},
- "sid_arm64": {
- "Revision": "15b7efb900d75f7316c6e713e80f87b9904791b1",
- "Sha1Sum": "b9447285e58c5260bd9fa2737d1f0d1f82156738",
- "SysrootDir": "debian_sid_arm64-sysroot",
- "Tarball": "debian_sid_arm64_sysroot.tar.xz"
+ "stretch_arm64": {
+ "Revision": "02772eaba5440a79c6bd2d9cb7e42fa836950366",
+ "Sha1Sum": "8fd58c7d4b38fa3c6785573c6310cf6ca6c88312",
+ "SysrootDir": "debian_stretch_arm64-sysroot",
+ "Tarball": "debian_stretch_arm64_sysroot.tgz"
},
- "sid_i386": {
- "Revision": "15b7efb900d75f7316c6e713e80f87b9904791b1",
- "Sha1Sum": "f09856d93f39e8df84ffd9c04881f44e6cbc0508",
- "SysrootDir": "debian_sid_i386-sysroot",
- "Tarball": "debian_sid_i386_sysroot.tar.xz"
+ "stretch_i386": {
+ "Revision": "02772eaba5440a79c6bd2d9cb7e42fa836950366",
+ "Sha1Sum": "1bd14db5eb0466064659126d398b38220013fb38",
+ "SysrootDir": "debian_stretch_i386-sysroot",
+ "Tarball": "debian_stretch_i386_sysroot.tgz"
},
- "sid_mips": {
- "Revision": "15b7efb900d75f7316c6e713e80f87b9904791b1",
- "Sha1Sum": "90586b566b567b2bcf49e7fd112f0c8189bbd07b",
- "SysrootDir": "debian_sid_mips-sysroot",
- "Tarball": "debian_sid_mips_sysroot.tar.xz"
+ "stretch_mips": {
+ "Revision": "02772eaba5440a79c6bd2d9cb7e42fa836950366",
+ "Sha1Sum": "285751660ffab14e6d052c8ddb5c90752a51704d",
+ "SysrootDir": "debian_stretch_mips-sysroot",
+ "Tarball": "debian_stretch_mips_sysroot.tgz"
},
- "sid_mips64el": {
- "Revision": "15b7efb900d75f7316c6e713e80f87b9904791b1",
- "Sha1Sum": "f90c3b81485ffebb283afddb1a72bc61e14c593d",
- "SysrootDir": "debian_sid_mips64el-sysroot",
- "Tarball": "debian_sid_mips64el_sysroot.tar.xz"
- }
+ "stretch_mips64el": {
+ "Revision": "02772eaba5440a79c6bd2d9cb7e42fa836950366",
+ "Sha1Sum": "23f51f29bc35a550092dde41dc823780fdb50f9e",
+ "SysrootDir": "debian_stretch_mips64el-sysroot",
+ "Tarball": "debian_stretch_mips64el_sysroot.tgz"
+ }
}