htmldoc_remote_compile_wrapper 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/extconf.rb +1 -1
- data/htmldoc_remote_compile_wrapper.gemspec +1 -1
- data/src/htmldoc-1.8.28.patch +16 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b0a0040d8df27019a7943391b891d62fc7bf34
|
4
|
+
data.tar.gz: 30d0762d3ad30b453f9ffaed108997fc791e95c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ecaf9bff982560eb73ea562771c021de6d4261b17aa5d4276dd963637a0cae17910d5a75c4347aad3a46413c7b699add4cf955fd0f6b8317cb5ede3e13bab63
|
7
|
+
data.tar.gz: 897027039b4279f578b703c94ec117c1d5c7502ffc8cab9f2f278c1de8142e3ad4939059f191849703a88eff4ae8f230e27b49c52973b89e9922b81b1c20fdb9
|
data/ext/extconf.rb
CHANGED
@@ -12,7 +12,7 @@ Dir.chdir(src_dir) do
|
|
12
12
|
puts "===> Extracting #{tgz_filename}"
|
13
13
|
system "tar xzf #{tgz_filename} --strip-components=1"
|
14
14
|
puts "===> Patching"
|
15
|
-
system "patch -
|
15
|
+
system "patch -p1 <#{patch_filename}"
|
16
16
|
puts "===> Configuring with prefix: #{root}"
|
17
17
|
system "./configure --prefix=#{root}"
|
18
18
|
puts "===> Building..."
|
data/src/htmldoc-1.8.28.patch
CHANGED
@@ -1,12 +1,20 @@
|
|
1
|
-
|
1
|
+
bug#510: Fix undefined symbols CUPS_SRAND and CUPS_RAND
|
2
|
+
https://www.msweet.org/bugs.php?U510
|
3
|
+
|
4
|
+
Index: htmldoc-1.8.28/htmldoc/http.c
|
2
5
|
===================================================================
|
3
|
-
---
|
4
|
-
+++
|
5
|
-
@@ -
|
6
|
-
* Using the current time is a dubious random seed, but on some systems
|
6
|
+
--- htmldoc-1.8.28.orig/htmldoc/http.c
|
7
|
+
+++ htmldoc-1.8.28/htmldoc/http.c
|
8
|
+
@@ -1229,10 +1229,10 @@ httpInitialize(void)
|
7
9
|
* it is the best we can do (on others, this seed isn't even used...)
|
8
10
|
*/
|
9
|
-
+#define CUPS_RAND() arc4random()
|
10
|
-
+#define CUPS_SRAND(v) arc4random_stir()
|
11
11
|
|
12
|
-
|
12
|
+
- CUPS_SRAND(time(NULL));
|
13
|
+
+ srand(time(NULL));
|
14
|
+
|
15
|
+
for (i = 0; i < sizeof(data); i ++)
|
16
|
+
- data[i] = CUPS_RAND();
|
17
|
+
+ data[i] = rand();
|
18
|
+
|
19
|
+
RAND_seed(data, sizeof(data));
|
20
|
+
#endif /* HAVE_GNUTLS */
|