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

Re: #816775: ruby-xapian: Please depend on librubyX.Y



Hi,

* Christian Hofstaedtler <zeha@debian.org> [160324 19:08]:
> your package implicitly depends ob libruby2.2, by means of shipping
> an .so which uses symbols from libruby2.2. libruby2.2 is about to go
> away from testing.

This might not be completely true; but even if the .so doesn't use
any of libruby's symbols, it's still built against libruby2.2 and
ends up in the extension directory of libruby2.2.

As such it really should have a Depends: libruby2.2.

Easiest way of getting that dep right (now and for future versions)
may be to actually link with libruby.

BTW, there's a pkg-config file if you don't want to go via
RbConfig::CONFIG; if you do, it appears the relevant snippet is:
print RbConfig::CONFIG['DLDFLAGS'] + ' ' + RbConfig::CONFIG['LIBRUBYARG_SHARED'] + ' ' + RbConfig::CONFIG['LIBS']

Thanks!
-- 
 ,''`.  Christian Hofstaedtler <zeha@debian.org>
: :' :  Debian Developer
`. `'   7D1A CFFA D9E0 806C 9C4C  D392 5C13 D6DB 9305 2E03
  `-


Reply to: