File: fix_require_path_for_thin_parser.patch

package info (click to toggle)
thin 1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,084 kB
  • sloc: ruby: 4,138; ansic: 1,537; sh: 82; makefile: 8
file content (27 lines) | stat: -rw-r--r-- 882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Subject: Fix require path for thin_parser due to Debian installation path

* lib/thin.rb: Using rbconfig for archdir

Author: Laurent Arnoud <laurent@spkdev.net>
Forwarded: not-needed
Index: ruby-thin/lib/thin.rb
===================================================================
--- ruby-thin.orig/lib/thin.rb	2012-01-10 00:56:06.000000000 -0800
+++ ruby-thin/lib/thin.rb	2012-01-10 01:06:12.000000000 -0800
@@ -6,6 +6,7 @@
 require 'openssl'
 require 'eventmachine'
 require 'rack'
+require 'rbconfig'
 
 module Thin
   ROOT = File.expand_path(File.dirname(__FILE__))
@@ -38,7 +39,7 @@
 require "#{Thin::ROOT}/thin/version"
 require "#{Thin::ROOT}/thin/statuses"
 require "#{Thin::ROOT}/rack/adapter/loader"
-require "#{Thin::ROOT}/thin_parser"
+require "#{Thin::ROOT}/#{RbConfig::CONFIG['ruby_version']}/#{RbConfig::CONFIG['arch']}/thin_parser"
 
 module Rack
   module Adapter