1 |
vapier 13/05/28 00:21:25 |
2 |
|
3 |
Added: make-snapshot.sh mod_spdy-0.9.3.3-system-zlib.patch |
4 |
mod_spdy-0.9.3.3-execinfo.patch |
5 |
Log: |
6 |
Initial ebuild #412451 by candrews. |
7 |
|
8 |
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 www-apache/mod_spdy/files/make-snapshot.sh |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/files/make-snapshot.sh?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/files/make-snapshot.sh?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: make-snapshot.sh |
17 |
=================================================================== |
18 |
#!/bin/bash |
19 |
|
20 |
if [[ $# -gt 1 || $1 == -* ]] ; then |
21 |
echo "Usage: $0 [ver]" |
22 |
exit 1 |
23 |
fi |
24 |
|
25 |
set -ex |
26 |
|
27 |
SPDY_URL_BASE="http://mod-spdy.googlecode.com/svn/tags" |
28 |
|
29 |
if [[ $# -eq 1 ]] ; then |
30 |
PV=$1 |
31 |
else |
32 |
svnout=$(svn ls ${SPDY_URL_BASE} | grep -v current | sort -V | tail -1) |
33 |
PV=${svnout%/} |
34 |
fi |
35 |
|
36 |
PN="mod_spdy" |
37 |
P="${PN}-${PV}" |
38 |
|
39 |
: ${TMPDIR:=/tmp} |
40 |
|
41 |
tmp="${TMPDIR}/${PN}" |
42 |
rm -rf "${tmp}" |
43 |
mkdir "${tmp}" |
44 |
cd "${tmp}" |
45 |
|
46 |
DEPOT_TOOLS_URL="https://chromium.googlesource.com/chromium/tools/depot_tools.git" |
47 |
SPDY_URL="http://mod-spdy.googlecode.com/svn/tags/${PV}/src" |
48 |
|
49 |
git clone --single-branch --depth 1 ${DEPOT_TOOLS_URL} |
50 |
rm -rf depot_tools/.git |
51 |
PATH=${PWD}/depot_tools:${PATH} |
52 |
mkdir ${P} |
53 |
cd ${P} |
54 |
gclient config ${SPDY_URL} |
55 |
gclient sync --force --nohooks --delete_unversioned_trees |
56 |
cd .. |
57 |
|
58 |
tar cf - depot_tools ${P} | xz > ${P}.tar.xz |
59 |
|
60 |
mv ${P}.tar.xz "${TMPDIR}"/ |
61 |
cd / |
62 |
rm -rf "${tmp}" |
63 |
|
64 |
du -hb "${TMPDIR}/${P}.tar.xz" |
65 |
|
66 |
|
67 |
|
68 |
1.1 www-apache/mod_spdy/files/mod_spdy-0.9.3.3-system-zlib.patch |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/files/mod_spdy-0.9.3.3-system-zlib.patch?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/files/mod_spdy-0.9.3.3-system-zlib.patch?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: mod_spdy-0.9.3.3-system-zlib.patch |
74 |
=================================================================== |
75 |
--- src/third_party/zlib/zlib.gyp |
76 |
+++ src/third_party/zlib/zlib.gyp |
77 |
@@ -81,14 +81,6 @@ |
78 |
'defines': [ |
79 |
'USE_SYSTEM_ZLIB', |
80 |
], |
81 |
- 'sources': [ |
82 |
- 'contrib/minizip/ioapi.c', |
83 |
- 'contrib/minizip/ioapi.h', |
84 |
- 'contrib/minizip/unzip.c', |
85 |
- 'contrib/minizip/unzip.h', |
86 |
- 'contrib/minizip/zip.c', |
87 |
- 'contrib/minizip/zip.h', |
88 |
- ], |
89 |
'conditions': [ |
90 |
['OS=="android"', { |
91 |
'toolsets': ['target', 'host'], |
92 |
@@ -97,6 +89,7 @@ |
93 |
'link_settings': { |
94 |
'libraries': [ |
95 |
'-lz', |
96 |
+ '-lminizip', |
97 |
], |
98 |
}, |
99 |
}], |
100 |
|
101 |
https://code.google.com/p/mod-spdy/issues/detail?id=71 |
102 |
|
103 |
--- src/build/common.gypi |
104 |
+++ src/build/common.gypi |
105 |
@@ -25,7 +25,7 @@ |
106 |
# (Chromium already has transitive dependencies on these libraries |
107 |
# via gtk). We want to link these libraries into our binaries so |
108 |
# we change the default behavior. |
109 |
- 'use_system_zlib': 0, |
110 |
+ 'use_system_zlib%': 0, |
111 |
'use_system_apache_dev%': 0, |
112 |
|
113 |
# Putting a variables dict inside another variables dict looks kind of |
114 |
|
115 |
|
116 |
|
117 |
1.1 www-apache/mod_spdy/files/mod_spdy-0.9.3.3-execinfo.patch |
118 |
|
119 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/files/mod_spdy-0.9.3.3-execinfo.patch?rev=1.1&view=markup |
120 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/files/mod_spdy-0.9.3.3-execinfo.patch?rev=1.1&content-type=text/plain |
121 |
|
122 |
Index: mod_spdy-0.9.3.3-execinfo.patch |
123 |
=================================================================== |
124 |
not everyone has this header |
125 |
|
126 |
--- a/src/third_party/chromium/src/base/debug/debugger_posix.cc |
127 |
+++ b/src/third_party/chromium/src/base/debug/debugger_posix.cc |
128 |
@@ -17,10 +17,6 @@ |
129 |
#include <string> |
130 |
#include <vector> |
131 |
|
132 |
-#if !defined(OS_ANDROID) && !defined(OS_NACL) |
133 |
-#include <execinfo.h> |
134 |
-#endif |
135 |
- |
136 |
#if defined(__GLIBCXX__) |
137 |
#include <cxxabi.h> |
138 |
#endif |
139 |
--- a/src/third_party/chromium/src/base/debug/stack_trace_posix.cc |
140 |
+++ b/src/third_party/chromium/src/base/debug/stack_trace_posix.cc |
141 |
@@ -5,7 +5,12 @@ |
142 |
#include "base/debug/stack_trace.h" |
143 |
|
144 |
#include <errno.h> |
145 |
+#if defined(__GLIBC__) && !defined(__UCLIBC__) |
146 |
#include <execinfo.h> |
147 |
+#else |
148 |
+#define backtrace(array, size) 0 |
149 |
+#define backtrace_symbols(array, size) NULL |
150 |
+#endif |
151 |
#include <fcntl.h> |
152 |
#include <stdio.h> |
153 |
#include <stdlib.h> |