[pkg-bacula-devel] Bug#646730: Bug#646730: bacula: drops readline support if rebuilt

Luca Capello luca at pca.it
Sat May 19 13:24:27 UTC 2012


tags 646730 + upstream
forwarded 646730 http://bugs.bacula.org/view.php?id=1871
thanks

Hi there!

Alexander, please keep the BTS in the loop ;-)

On Fri, 18 May 2012 20:44:50 +0200, Alexander Golovko wrote:
> On Fri, 18 May 2012 19:09:08 +0200, Sven Joachim wrote:
>> On 2012-05-18 09:56 +0200, Luca Capello wrote:
>>
>>> On Thu, 17 May 2012 22:39:04 +0200, Sven Joachim wrote:
>>>
>>>> However, there are a literally a hundred dpkg-shlibdeps warnings
>>>> about
>>>> useless dependencies, so it's probably not worth trying to fix this
>>>> particular one.
>>>
>>> This is tracked in #621282 and fixed in the Git development branch,
>>> which we started to import into master:
>>>
>>>   <http://anonscm.debian.org/gitweb/?p=pkg-bacula/bacula.git;a=commitdiff;h=60f2e8cd14785ab5dc73da7bf2423f05b6c8e54c>
>>
>> Sorry, there seems to be a misunderstanding.  What I meant was
>> warnings
>> like this:
>>
>> ,----
>> | dpkg-shlibdeps: warning: package could avoid a useless dependency
>> if debian/bacula-console/usr/sbin/bacula-console was not linked
>> against libncurses.so.5 (it uses none of the library's symbols).
>> `----
>>
>> Those are unrelated to #621282, I think.  Maybe you could try adding
>> "-Wl,--as-needed" to LDFLAGS to work around the excessive linkage.

Ah, good catch, I will keep an eye on it before uploading.

> ok, i commit a patch for drop ncurses dependency, so bacula-console
> binary will not link with libncurses.
>
> For detail, see commit 488241e3d2c90af4011597c652670d3c74e95cbe
>
> package can be sucessfully built without ncurses headers and readline
> in bconsole will work.

Patch forwarded upstream:

  <http://bugs.bacula.org/view.php?id=1871>

As I wrote there, after having found where the bug originated:

  However, the readline support is never available if you do not have
  TERM_LIB because of [4], which basically put conio and readline at the
  same level in terms of dependencies. I was not able to find any reason
  for this change in the ChangeLog neither in the BTS and similar bugs
  were either too old (0000743 [5]) or not related (0001226 [6]).

  [4] <http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-5.0&id=967d4334e69d2ab739a2f270f2df1bcfb0ffc7d4>
  [5] <http://bugs.bacula.org/view.php?id=743>
  [6] <http://bugs.bacula.org/view.php?id=1226>

  [...]

  dpkg-shlibdeps still complains about unused symbols, but this time
  only for libhistory.so.6:
  =====
  dpkg-shlibdeps: warning: package could avoid a useless dependency \
    if debian/bacula-console/usr/sbin/bacula-console was not linked \
    against libdl.so.2 (it uses none of the library's symbols).
  dpkg-shlibdeps: warning: package could avoid a useless dependency \
    if debian/bacula-console/usr/sbin/bacula-console was not linked \
    against libz.so.1 (it uses none of the library's symbols).
  dpkg-shlibdeps: warning: package could avoid a useless dependency \
    if debian/bacula-console/usr/sbin/bacula-console was not linked \
    against libhistory.so.6 (it uses none of the library's symbols).
  dpkg-shlibdeps: warning: package could avoid a useless dependency \
    if debian/bacula-console/usr/sbin/bacula-console was not linked \
    against libcrypto.so.1.0.0 (it uses none of the library's symbols).
  dpkg-shlibdeps: warning: package could avoid a useless dependency \
    if debian/bacula-console/usr/sbin/bacula-console was not linked \
    against libwrap.so.0 (it uses none of the library's symbols).
  dpkg-shlibdeps: warning: package could avoid a useless dependency \
    if debian/bacula-console/usr/sbin/bacula-console was not linked \
    against libssl.so.1.0.0 (it uses none of the library's symbols).
  =====

Testing packages are available at:

  <http://pkg-bacula.alioth.debian.org/tmp/merging-development-branch/dev.0910.2/>

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-bacula-devel/attachments/20120519/7805d064/attachment.pgp>


More information about the pkg-bacula-devel mailing list