[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to handle hard coded library paths?



On 22/08/11 at 19:46 +0530, Praveen A wrote:
> [I have joined this list now]
> 
> cutest binary is looking for library files in /usr/lib/
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;bug=638829
> 
> Is there any standard way of fixing this? I'm new to ruby packaging
> and I could not find anything at
> http://wiki.debian.org/Teams/Ruby/Packaging#Handling_of_shebangs
> 
> I manually edited /usr/bin/cutest to check it and it works.

yes, that's a bug in the upstream source. You can fix it with a
debian-specific patch (to push upstream).

The correct way to fix that is usually to do something like:

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'foo'
-- 
| Lucas Nussbaum
| lucas@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |


Reply to: