node: bump to v18.14.2
[feed/packages.git] / lang / node / patches / 991-v8_zlib_support.patch
1 --- a/deps/zlib/zlib.gyp
2 +++ b/deps/zlib/zlib.gyp
3 @@ -9,6 +9,7 @@
4 'arm_fpu%': '',
5 'llvm_version%': '0.0',
6 },
7 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
8 'conditions': [
9 ['use_system_zlib==0', {
10 'targets': [
11 --- a/tools/v8_gypfiles/v8.gyp
12 +++ b/tools/v8_gypfiles/v8.gyp
13 @@ -60,6 +60,7 @@
14 ],
15 'hard_dependency': 1,
16 'direct_dependent_settings': {
17 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
18 'include_dirs': [
19 '<(SHARED_INTERMEDIATE_DIR)',
20 ],
21 @@ -181,6 +182,7 @@
22 '<@(torque_outputs_cc)',
23 '<@(torque_outputs_inc)',
24 ],
25 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
26 'include_dirs': [
27 '<(SHARED_INTERMEDIATE_DIR)',
28 ],
29 @@ -202,6 +204,7 @@
30 'sources': [
31 '<(generate_bytecode_builtins_list_output)',
32 ],
33 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
34 'include_dirs': [
35 '<(generate_bytecode_output_root)',
36 '<(SHARED_INTERMEDIATE_DIR)',
37 @@ -249,9 +252,11 @@
38 'v8_base_without_compiler',
39 'v8_shared_internal_headers',
40 ],
41 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
42 'include_dirs': [
43 '<(SHARED_INTERMEDIATE_DIR)',
44 '<(generate_bytecode_output_root)',
45 + '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
46 ],
47 'sources': [
48 '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_initializers.*?sources = ")',
49 @@ -769,6 +774,7 @@
50 ],
51 'includes': ['inspector.gypi'],
52 'direct_dependent_settings': {
53 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
54 'include_dirs': [
55 '<(generate_bytecode_output_root)',
56 '<(SHARED_INTERMEDIATE_DIR)',
57 @@ -1377,6 +1383,7 @@
58 }],
59 ],
60 'direct_dependent_settings': {
61 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
62 'include_dirs': [
63 '<(V8_ROOT)/include',
64 ],
65 @@ -1729,6 +1736,7 @@
66 }],
67 ],
68 'direct_dependent_settings': {
69 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
70 'include_dirs': [
71 '<(V8_ROOT)/include',
72 ],
73 @@ -1909,15 +1917,19 @@
74 }],
75 ],
76 'direct_dependent_settings': {
77 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
78 'include_dirs': [
79 '<(V8_ROOT)/third_party/zlib',
80 '<(V8_ROOT)/third_party/zlib/google',
81 + '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
82 ],
83 },
84 'defines': [ 'ZLIB_IMPLEMENTATION' ],
85 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
86 'include_dirs': [
87 '<(V8_ROOT)/third_party/zlib',
88 '<(V8_ROOT)/third_party/zlib/google',
89 + '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
90 ],
91 'sources': [
92 '<(V8_ROOT)/third_party/zlib/adler32.c',