Skip to content

Commit

Permalink
new package: chromium (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
termux-pacman-bot committed Dec 4, 2022
1 parent 37698a9 commit bbdfca8
Show file tree
Hide file tree
Showing 30 changed files with 1,495 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tur-continuous/chromium/0001-configure-disable-dri.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/content/gpu/BUILD.gn
+++ b/content/gpu/BUILD.gn
@@ -139,6 +139,6 @@
# Use DRI on desktop Linux builds.
if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux &&
!is_castos) {
- configs += [ "//build/config/linux/dri" ]
+ # configs += [ "//build/config/linux/dri" ]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1543,20 +1543,6 @@
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
"-Wno-ignored-pragma-optimize",
]
-
- if (!is_nacl) {
- cflags += [
- # TODO(crbug.com/1343975) Evaluate and possibly enable.
- "-Wno-deprecated-builtins",
-
- # TODO(crbug.com/1352183) Evaluate and possibly enable.
- "-Wno-bitfield-constant-conversion",
- ]
- if (is_win) {
- # TODO(https://crbug.com/1363759): Evaluate and possibly enable.
- cflags += [ "-Wno-deprecated-copy-with-user-provided-copy" ]
- }
- }
}
}
}
31 changes: 31 additions & 0 deletions tur-continuous/chromium/0003-configure-use-android-target.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -915,8 +915,8 @@
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl &&
!(is_chromeos_lacros && is_chromeos_device)) {
- cflags += [ "--target=arm-linux-gnueabihf" ]
- ldflags += [ "--target=arm-linux-gnueabihf" ]
+ cflags += [ "--target=armv7a-linux-android24" ]
+ ldflags += [ "--target=armv7a-linux-android24" ]
}
if (!is_nacl) {
cflags += [
@@ -930,13 +930,13 @@
} else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
!(is_chromeos_lacros && is_chromeos_device)) {
- cflags += [ "--target=aarch64-linux-gnu" ]
- ldflags += [ "--target=aarch64-linux-gnu" ]
+ cflags += [ "--target=aarch64-linux-android24" ]
+ ldflags += [ "--target=aarch64-linux-android24" ]
}
- if (is_android) {
+ # if (is_android) {
# Outline atomics crash on Exynos 9810. http://crbug.com/1272795
cflags += [ "-mno-outline-atomics" ]
- }
+ # }
} else if (current_cpu == "mipsel" && !is_nacl) {
ldflags += [ "-Wl,--hash-style=sysv" ]
if (custom_toolchain == "") {
18 changes: 18 additions & 0 deletions tur-continuous/chromium/0004-breakpad-no-elf_prstatus.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
@@ -194,6 +194,7 @@
//
// The following code only works if notes are ordered as expected.
switch (type) {
+#if !defined(__ANDROID__)
case NT_PRSTATUS: {
if (description.length() != sizeof(elf_prstatus)) {
fprintf(stderr, "Found NT_PRSTATUS descriptor of unexpected size\n");
@@ -231,6 +232,7 @@
thread_infos_.push_back(info);
break;
}
+#endif
case NT_SIGINFO: {
if (description.length() != sizeof(siginfo_t)) {
fprintf(stderr, "Found NT_SIGINFO descriptor of unexpected size\n");

0 comments on commit bbdfca8

Please sign in to comment.