Jyri Virkki wrote:
> Prashant Srinivasan wrote:
>   
>> Hello Webstackers,
>>
>>  How does one package external dependencies that a webstack component 
>> depends on? 
>>     
>
> In general, I suggest to first check and discuss with the sfwnv
> project (sfwnv-discuss).  Common components of general interest are
> often handled there.  http://opensolaris.org/os/project/sfwnv/
>
> If that doesn't turn up any plans for it, let's discuss the effort here.
> >From there we can move to a concrete proposal if applicable.
>
>   

 Here are the options for Ruby/Readline based on reading the sfwnv 
discussion.  There is apparently intent to include readline into 
/usr/lib, it's stalled(because of GPL concerns) to the point where the 
initial proponents, the owners of Xen (virsh), had to resort to 
statically linking readline. 

 If we adopt this strategy ourselves, it's easiest for now.  But the 
side effect is that there probably will be at least three statically 
linked versions of readline, libvirt, ruby, and mysql(I'm guessing, 
based on the existence of the header /usr/sfw/include/mysql/readline.h )

#1 Statically link the readline extension and libreadline into Ruby.  
Easy to implement.  It will need changes to Ruby Makefiles.(should be 
fine, since we're going to be covered by OSRs).
#2 Use libedit instead of readline.  Probably not a good idea since (1) 
the libedit implementation is not 100% compatible with readline(might 
necessitate code changes), and (2) highly unlikely to be bug-for-bug 
compatible with readline as well.
#3 Make a case for readline to be installed in a non /usr/lib location 
(/usr/sfw/lib?).  Good to work around the GPL induced considerations 
around placing libreadline in /usr/lib. 

 Here is the discussion around this topic on sfwnv - 
http://opensolaris.org/jive/thread.jspa?messageID=153827
 The ARC materials for Readline - 
http://www.opensolaris.org/os/community/arc/caselog/2007/188/;jsessionid=498ADF5102D8894BEFB39CA286D0898B

 -ps


Reply via email to