]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
build with system jsoncpp
authorElan Ruusamäe <glen@delfi.ee>
Mon, 12 Nov 2012 00:05:13 +0000 (02:05 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 12 Nov 2012 21:06:34 +0000 (23:06 +0200)
patch from fedora

chromium-browser.spec
clean-source.sh
system-jsoncpp.patch [new file with mode: 0644]

index 925fd217dfc33dd56b16e11dcbc5bbd456b26622..c6236643c1cac01b7dc57c6ad2c39464fa454943 100644 (file)
@@ -15,6 +15,7 @@
 %bcond_with            tcmalloc                # use tcmalloc
 %bcond_with            system_sqlite   # with system sqlite
 %bcond_without system_flac             # with system flac
+%bcond_without system_jsoncpp  # with system jsoncpp
 %bcond_without system_libwebp  # with system libwebp
 %bcond_without system_speex    # with system speex
 %bcond_with            system_v8               # with system v8
@@ -92,6 +93,7 @@ Patch15:      nacl-build-irt.patch
 Patch16:       nacl-linkingfix.patch
 Patch17:       system-icu.patch
 Patch18:       nacl-no-untar.patch
+Patch19:       system-jsoncpp.patch
 URL:           http://www.chromium.org/Home
 %{?with_gconf:BuildRequires:   GConf2-devel}
 BuildRequires: OpenGL-GLU-devel
@@ -141,6 +143,7 @@ BuildRequires:      python-modules
 BuildRequires: rpm >= 4.4.9-56
 BuildRequires: rpmbuild(macros) >= 1.453
 %{?with_system_speex:BuildRequires:    speex-devel >= 1:1.2-rc1}
+%{?with_system_jsoncpp:BuildRequires:  jsoncpp-devel}
 BuildRequires: sqlite3-devel >= 3.6.1
 BuildRequires: subversion
 BuildRequires: tar >= 1:1.22
@@ -239,6 +242,7 @@ cd src
 %{!?with_libjpegturbo:%patch11 -p0}
 %patch16 -p1
 %patch17 -p0
+%patch19 -p1
 cd ..
 %patch18 -p1
 
index fdf51eab9597b42bebac57cef82e92a0c36a3d96..4d946606c7a442150b9a145064c3ce3e7d7cf1e7 100755 (executable)
@@ -461,6 +461,8 @@ strip_system_dirs \
        _third_party/zlib \
        third_party/libwebp \
        _third_party/libvpx \
+       native_client/src/third_party_mod/jsoncpp \
+       third_party/jsoncpp \
        v8 \
 | tee -a REMOVED-stripped.txt
 
diff --git a/system-jsoncpp.patch b/system-jsoncpp.patch
new file mode 100644 (file)
index 0000000..7478bc5
--- /dev/null
@@ -0,0 +1,116 @@
+diff -up chromium-20.0.1132.47/build/linux/system.gyp.system-jsoncpp chromium-20.0.1132.47/build/linux/system.gyp
+--- chromium-20.0.1132.47/build/linux/system.gyp.system-jsoncpp        2012-07-07 21:09:14.954006176 -0400
++++ chromium-20.0.1132.47/build/linux/system.gyp       2012-07-07 21:09:15.088006176 -0400
+@@ -468,6 +468,27 @@
+       ],
+     },
+     {
++      'target_name': 'jsoncpp',
++      'type': 'none',
++      'conditions': [
++        ['_toolset=="target"', {
++          'direct_dependent_settings': {
++            'cflags': [
++              '<!@(pkg-config --cflags jsoncpp)',
++            ],
++          },
++          'link_settings': {
++            'ldflags': [
++              '<!@(pkg-config --libs-only-L --libs-only-other jsoncpp)',
++            ],
++            'libraries': [
++              '<!@(pkg-config --libs-only-l jsoncpp)',
++            ],
++          },
++      }],
++      ],
++    },
++    {
+       'target_name': 'gnome_keyring',
+       'type': 'none',
+       'conditions': [
+diff -up chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.cc.system-jsoncpp chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.cc
+--- chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.cc.system-jsoncpp       2012-06-28 09:01:22.000000000 -0400
++++ chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.cc      2012-07-07 21:09:15.090006176 -0400
+@@ -19,7 +19,7 @@
+ #include "native_client/src/trusted/plugin/utility.h"
+ #include "ppapi/cpp/dev/url_util_dev.h"
+ #include "ppapi/cpp/var.h"
+-#include "third_party/jsoncpp/source/include/json/reader.h"
++#include <json/reader.h>
+ namespace plugin {
+diff -up chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.h.system-jsoncpp chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.h
+--- chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.h.system-jsoncpp        2012-06-28 09:01:22.000000000 -0400
++++ chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/json_manifest.h       2012-07-07 21:09:15.090006176 -0400
+@@ -16,7 +16,7 @@
+ #include "native_client/src/include/nacl_macros.h"
+ #include "native_client/src/include/nacl_string.h"
+ #include "native_client/src/trusted/plugin/manifest.h"
+-#include "third_party/jsoncpp/source/include/json/value.h"
++#include <json/value.h>
+ namespace pp {
+ class URLUtil_Dev;
+diff -up chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/manifest.h.system-jsoncpp chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/manifest.h
+--- chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/manifest.h.system-jsoncpp     2012-06-28 09:01:22.000000000 -0400
++++ chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/manifest.h    2012-07-07 21:09:15.091006176 -0400
+@@ -15,7 +15,7 @@
+ #include "native_client/src/include/nacl_macros.h"
+ #include "native_client/src/include/nacl_string.h"
+-#include "third_party/jsoncpp/source/include/json/value.h"
++#include <json/value.h>
+ namespace pp {
+ class URLUtil_Dev;
+diff -up chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/plugin.gyp.system-jsoncpp chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/plugin.gyp
+--- chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/plugin.gyp.system-jsoncpp     2012-06-28 09:01:22.000000000 -0400
++++ chromium-20.0.1132.47/ppapi/native_client/src/trusted/plugin/plugin.gyp    2012-07-07 21:09:15.092006176 -0400
+@@ -65,7 +65,7 @@
+             '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform',
+             '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc',
+             '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc',
+-            '<(DEPTH)/native_client/src/third_party_mod/jsoncpp/jsoncpp.gyp:jsoncpp',
++            '<(DEPTH)/build/linux/system.gyp:jsoncpp',
+             '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer',
+             '<(DEPTH)/native_client/src/trusted/nonnacl_util/nonnacl_util.gyp:nonnacl_util',
+             '<(DEPTH)/native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib',
+@@ -106,7 +106,7 @@
+             '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref',
+             '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp:nacl_ppapi_browser',
+             '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
+-            '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
++            '<(DEPTH)/build/linux/system.gyp:jsoncpp',
+           ],
+           'conditions': [
+             ['OS=="mac"', {
+diff -up chromium-20.0.1132.47/third_party/libjingle/libjingle.gyp.system-jsoncpp chromium-20.0.1132.47/third_party/libjingle/libjingle.gyp
+--- chromium-20.0.1132.47/third_party/libjingle/libjingle.gyp.system-jsoncpp   2012-07-07 21:09:54.042990761 -0400
++++ chromium-20.0.1132.47/third_party/libjingle/libjingle.gyp  2012-07-07 21:10:37.294008997 -0400
+@@ -349,10 +349,10 @@
+         'source/talk/xmpp/xmpptask.h',
+       ],
+       'dependencies': [
+-        '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
++        '<(DEPTH)/build/linux/system.gyp:jsoncpp',
+       ],
+       'export_dependent_settings': [
+-        '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
++        '<(DEPTH)/build/linux/system.gyp:jsoncpp',
+       ],
+       'conditions': [
+         ['OS=="win"', {
+diff -up chromium-20.0.1132.47/third_party/libjingle/source/talk/base/json.h.system-jsoncpp chromium-20.0.1132.47/third_party/libjingle/source/talk/base/json.h
+--- chromium-20.0.1132.47/third_party/libjingle/source/talk/base/json.h.system-jsoncpp 2012-07-07 21:11:19.579006082 -0400
++++ chromium-20.0.1132.47/third_party/libjingle/source/talk/base/json.h        2012-07-07 21:11:31.392987497 -0400
+@@ -32,7 +32,7 @@
+ #include <vector>
+ #ifdef JSONCPP_RELATIVE_PATH
+-#include "json/json.h"
++#include <json/json.h>
+ #else
+ #include "third_party/jsoncpp/json.h"
+ #endif
This page took 0.065105 seconds and 4 git commands to generate.