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

Re: alternatives for a proprietary lib file



On Sat, 03 Jan 2015, Sam Halliday wrote:
> On 3 January 2015 at 17:19, Henrique de Moraes Holschuh <hmh@debian.org> wrote:
> > On Sat, 03 Jan 2015, Sam Halliday wrote:
> >>   /opt/intel/mkl/lib/intel64/libmkl_rt.so
> >>
> >> I'd like to be able to use the Debian alternatives system to point at
> >> this file, without having to manually create symbolic links.
> >
> > Alternatives are not the correct tool for this.  Take a look at the
> > dpkg-divert stuff, divert the original libs, and add a symlink in their
> > place.
> 
> Normally what you say is true, but Debian already manages libblas.so.3
> and liblapack.so.3 using the alternatives system (they are specialist
> mathematics libraries that can be swapped at runtime for improved
> performance).

Hmm, then those two need to be handled as alternatives for safety.  I'd not
try my luck trying to dpkg-divert an alternative.

Or you can just override them all using the ld.so path.  No need to divert
some and use alternatives for others that way.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: