diff options
author | earthdok <earthdok@chromium.org> | 2014-10-01 10:43:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-01 17:44:07 +0000 |
commit | da840b61c8e9c7f1c4e55ebb83eefeefb24c19d9 (patch) | |
tree | 88964b84c46384b90f753fc5a617e4c2913d2fb0 | |
parent | a040213b7020119ffe8f434ad948fe6adb37f1dc (diff) | |
download | chromium_src-da840b61c8e9c7f1c4e55ebb83eefeefb24c19d9.zip chromium_src-da840b61c8e9c7f1c4e55ebb83eefeefb24c19d9.tar.gz chromium_src-da840b61c8e9c7f1c4e55ebb83eefeefb24c19d9.tar.bz2 |
Instrumented libraries: introduce release-specific patches.
This CL enables applying different custom patches depending on the Ubuntu
release (Precise/Trusty). It also adds two Trusty-specific patches.
BUG=414189
R=glider@chromium.org
NOTRY=true
Review URL: https://codereview.chromium.org/614903003
Cr-Commit-Position: refs/heads/master@{#297672}
-rw-r--r-- | third_party/instrumented_libraries/instrumented_libraries.gyp | 18 | ||||
-rw-r--r-- | third_party/instrumented_libraries/patches/libfontconfig.precise.diff (renamed from third_party/instrumented_libraries/patches/libfontconfig.diff) | 0 | ||||
-rw-r--r-- | third_party/instrumented_libraries/patches/libfontconfig.trusty.diff | 13 | ||||
-rw-r--r-- | third_party/instrumented_libraries/patches/libgtk2.0-0.precise.diff (renamed from third_party/instrumented_libraries/patches/libgtk2.0-0.diff) | 0 | ||||
-rw-r--r-- | third_party/instrumented_libraries/patches/libgtk2.0-0.trusty.diff | 15 |
5 files changed, 44 insertions, 2 deletions
diff --git a/third_party/instrumented_libraries/instrumented_libraries.gyp b/third_party/instrumented_libraries/instrumented_libraries.gyp index 406dbe9..f03767f 100644 --- a/third_party/instrumented_libraries/instrumented_libraries.gyp +++ b/third_party/instrumented_libraries/instrumented_libraries.gyp @@ -8,6 +8,8 @@ 'instrumented_libraries_jobs%': 1, }, + 'ubuntu_release': '<!(lsb_release -cs)', + 'conditions': [ ['asan==1', { 'sanitizer_type': 'asan', @@ -220,7 +222,13 @@ # From debian/rules. '--with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts', ], - 'patch': 'patches/libfontconfig.diff', + 'conditions': [ + ['"<(_ubuntu_release)"=="precise"', { + 'patch': 'patches/libfontconfig.precise.diff', + }, { + 'patch': 'patches/libfontconfig.trusty.diff', + }], + ], 'includes': ['standard_instrumented_package_target.gypi'], }, { @@ -506,7 +514,13 @@ '--with-xinput=yes', ], 'dependencies=': [], - 'patch': 'patches/libgtk2.0-0.diff', + 'conditions': [ + ['"<(_ubuntu_release)"=="precise"', { + 'patch': 'patches/libgtk2.0-0.precise.diff', + }, { + 'patch': 'patches/libgtk2.0-0.trusty.diff', + }], + ], 'run_before_build': 'scripts/libgtk2.0-0.sh', 'includes': ['standard_instrumented_package_target.gypi'], }, diff --git a/third_party/instrumented_libraries/patches/libfontconfig.diff b/third_party/instrumented_libraries/patches/libfontconfig.precise.diff index 19f85f7..19f85f7 100644 --- a/third_party/instrumented_libraries/patches/libfontconfig.diff +++ b/third_party/instrumented_libraries/patches/libfontconfig.precise.diff diff --git a/third_party/instrumented_libraries/patches/libfontconfig.trusty.diff b/third_party/instrumented_libraries/patches/libfontconfig.trusty.diff new file mode 100644 index 0000000..7cfeba5 --- /dev/null +++ b/third_party/instrumented_libraries/patches/libfontconfig.trusty.diff @@ -0,0 +1,13 @@ +diff -rupN ./src/fcpat.c ../fontconfig-2.11.0-patched/src/fcpat.c +--- ./src/fcpat.c 2013-10-11 07:10:18.000000000 +0400 ++++ ../fontconfig-2.11.0-patched/src/fcpat.c 2014-09-30 22:14:55.818360071 +0400 +@@ -33,6 +33,9 @@ FcPatternCreate (void) + p = (FcPattern *) malloc (sizeof (FcPattern)); + if (!p) + return 0; ++ // Silence Valgrind/MemorySanitizer. There is uninitialized padding at the ++ // end of this structure. When serialized to file, this will cause a report. ++ memset(p, 0, sizeof(*p)); + p->num = 0; + p->size = 0; + p->elts_offset = FcPtrToOffset (p, NULL); diff --git a/third_party/instrumented_libraries/patches/libgtk2.0-0.diff b/third_party/instrumented_libraries/patches/libgtk2.0-0.precise.diff index e0bf1a8..e0bf1a8 100644 --- a/third_party/instrumented_libraries/patches/libgtk2.0-0.diff +++ b/third_party/instrumented_libraries/patches/libgtk2.0-0.precise.diff diff --git a/third_party/instrumented_libraries/patches/libgtk2.0-0.trusty.diff b/third_party/instrumented_libraries/patches/libgtk2.0-0.trusty.diff new file mode 100644 index 0000000..2a8295b --- /dev/null +++ b/third_party/instrumented_libraries/patches/libgtk2.0-0.trusty.diff @@ -0,0 +1,15 @@ +diff -rupN ./gtk/gtkmenushell.h ../gtk+2.0-2.24.23-patched/gtk/gtkmenushell.h +--- ./gtk/gtkmenushell.h 2014-03-06 08:56:42.000000000 +0400 ++++ ../gtk+2.0-2.24.23-patched/gtk/gtkmenushell.h 2014-09-30 23:37:46.908364552 +0400 +@@ -136,6 +136,11 @@ void _gtk_menu_shell_set_keyboard_mo + gboolean keyboard_mode); + gboolean _gtk_menu_shell_get_keyboard_mode (GtkMenuShell *menu_shell); + ++// https://bugs.launchpad.net/bugs/945135 ++gboolean ubuntu_gtk_menu_shell_activate_mnemonic (GtkMenuShell *shell, ++ GtkWidget *item); ++gboolean ubuntu_gtk_menu_shell_activate_first (GtkMenuShell *menu_shell, ++ gboolean search_sensitive); + G_END_DECLS + + #endif /* __GTK_MENU_SHELL_H__ */ |