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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46bb55188ab66eed4ab57be36f6d8e7a84c7c73b
4
- data.tar.gz: c7376df4e8fddd1985e0a83456c2dce70752ae0d
3
+ metadata.gz: 79b0a0040d8df27019a7943391b891d62fc7bf34
4
+ data.tar.gz: 30d0762d3ad30b453f9ffaed108997fc791e95c5
5
5
  SHA512:
6
- metadata.gz: cdcdd5c8c01bee1848703c03f357cf3e9b01019aa98e039ccd57e91c73406ef37f3227e675475883b135f22fde6ee8f3b2dc0af45aa47f16e8a6ecdfbce38c79
7
- data.tar.gz: c8ac982f3b4a44593ce10f6b5d678cc0018bcc52713ed9b6b9a9c9a6901d4c11c4aee68b0fb122410b68697db6903704d9d14723f9b7d866887630c2a64ce0ad
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 -p0 <#{patch_filename}"
15
+ system "patch -p1 <#{patch_filename}"
16
16
  puts "===> Configuring with prefix: #{root}"
17
17
  system "./configure --prefix=#{root}"
18
18
  puts "===> Building..."
@@ -12,5 +12,5 @@ Gem::Specification.new do |gem|
12
12
  gem.extensions = ['ext/extconf.rb']
13
13
  gem.name = "htmldoc_remote_compile_wrapper"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.8"
15
+ gem.version = "0.9"
16
16
  end
@@ -1,12 +1,20 @@
1
- https://raw.githubusercontent.com/freebsd/freebsd-ports/master/textproc/htmldoc/files/patch-htmldoc__http.c
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
- --- ./htmldoc/http.c.orig 2014-01-05 21:41:32.000000000 +0100
4
- +++ ./htmldoc/http.c 2014-01-28 04:47:07.000000000 +0100
5
- @@ -1228,6 +1228,8 @@
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
- CUPS_SRAND(time(NULL));
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 */
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmldoc_remote_compile_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: '0.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Noon