commit b2f503942f6830e606dbcdf26890e318e603c79d
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Oct 11 01:19:20 2012 +0300

    use gyp defines to correct include paths

 apache-mod_pagespeed.spec |  4 +++-
 system-libs.patch         | 33 ---------------------------------
 2 files changed, 3 insertions(+), 34 deletions(-)
---
diff --git a/apache-mod_pagespeed.spec b/apache-mod_pagespeed.spec
index 9f92e3f..d5fb25b 100644
--- a/apache-mod_pagespeed.spec
+++ b/apache-mod_pagespeed.spec
@@ -7,7 +7,6 @@
 # - http://wiki.mediatemple.net/w/(dv)_HOWTO:_Install_mod_pagespeed
 # TODO
 # - add unit tests running
-# - use only source for modpagespeed if system headers are used (remove copies 
from tarball)
 # - possible sysdeps (uses release tags)
 #  "serf_src": "http://serf.googlecode.com/svn/tags/0.3.1";,
 #  "gflags_root": 
"http://google-gflags.googlecode.com/svn/tags/gflags-1.3/src";,
@@ -95,6 +94,9 @@ CXX="%{__cxx}" \
        -Duse_system_libpng=1 \
        -Duse_system_opencv=1 \
        -Duse_system_zlib=1 \
+       -Dsystem_include_path_apr=%{_includedir}/apr \
+       -Dsystem_include_path_aprutil=%{_includedir}/apr-util \
+       -Dsystem_include_path_httpd=%{_includedir}/apache \
        %{nil}
 
 cd ..
diff --git a/system-libs.patch b/system-libs.patch
index d394a77..a03dbb5 100644
--- a/system-libs.patch
+++ b/system-libs.patch
@@ -1,36 +1,3 @@
---- modpagespeed/src/third_party/apr/apr.gyp~  2012-06-24 15:31:59.000000000 
+0300
-+++ modpagespeed/src/third_party/apr/apr.gyp   2012-07-07 14:44:06.094870546 
+0300
-@@ -19,7 +19,7 @@
-     'apr_src_root': '<(apr_root)/src',
-     'apr_gen_os_root': '<(apr_root)/gen/arch/<(OS)',
-     'apr_gen_arch_root': '<(apr_gen_os_root)/<(target_arch)',
--    'system_include_path_apr%': '/usr/include/apr-1.0',
-+    'system_include_path_apr%': '/usr/include/apr',
-     'conditions': [
-       ['OS!="win"', {
-         'apr_os_include': '<(apr_src_root)/include/arch/unix',
---- modpagespeed/src/third_party/aprutil/aprutil.gyp~  2012-06-24 
15:31:59.000000000 +0300
-+++ modpagespeed/src/third_party/aprutil/aprutil.gyp   2012-07-07 
14:48:10.299435236 +0300
-@@ -22,7 +22,7 @@
-     'aprutil_src_root': '<(aprutil_root)/src',
-     'aprutil_gen_os_root': '<(aprutil_root)/gen/arch/<(OS)',
-     'aprutil_gen_arch_root': '<(aprutil_gen_os_root)/<(target_arch)',
--    'system_include_path_aprutil%': '/usr/include/apr-1.0',
-+    'system_include_path_aprutil%': '/usr/include/apr-util',
-   },
-   'conditions': [
-     ['use_system_apache_dev==0', {
---- modpagespeed/src/third_party/httpd/httpd.gyp~      2012-06-24 
15:31:59.000000000 +0300
-+++ modpagespeed/src/third_party/httpd/httpd.gyp       2012-07-07 
15:15:13.598943424 +0300
-@@ -18,7 +18,7 @@
-     'apache_src_root': '<(apache_root)/src',
-     'apache_gen_os_root': '<(apache_root)/gen/arch/<(OS)',
-     'apache_gen_arch_root': '<(apache_gen_os_root)/<(target_arch)',
--    'system_include_path_httpd%': '/usr/include/apache2',
-+    'system_include_path_httpd%': '/usr/include/apache',
-     'conditions': [
-       ['OS!="win"', {
-         'apache_os_include': '<(apache_src_root)/os/unix',
 --- modpagespeed/src/build/install.gyp~        2012-06-24 15:31:45.000000000 
+0300
 +++ modpagespeed/src/build/install.gyp 2012-07-07 15:41:33.416812382 +0300
 @@ -43,7 +43,6 @@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_pagespeed.git/commitdiff/b2f503942f6830e606dbcdf26890e318e603c79d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to