Package: d-shlibs
Version: 0.27
Severity: normal
Tags: patch

When compiling a C++ library, d-shlibs resolves the build-dependency to
the virtual package libstdc++6-dev which is provided only by the
libstdc++ from gcc-3.4 source package (even if the package was actually
compiled using the one from gcc-4.1).

Compiling same C++ library on sarge the resolving fails, trying to
build-depend on non-existing libstdc++5-dev.

The attached patch fixes this for the cases of using default compiler.
I suspect, however, that a proper fix also taking non-default compilers
into account requires changes to the objdump analysis.


 - Jonas

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc3-powerpc
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)

Versions of packages d-shlibs depends on:
ii  binutils             2.16.1cvs20060413-1 The GNU assembler, linker and bina
ii  debianutils          2.16.1              Miscellaneous utilities specific t

d-shlibs recommends no packages.

-- no debconf information
--- d-devlibdeps.orig   2005-08-30 01:35:11.000000000 +0200
+++ d-devlibdeps        2006-06-17 00:41:33.000000000 +0200
@@ -41,6 +41,8 @@
 function overridedevlibdeps () {
     # overrides necessary until the scheme is adopted.
     sed \
+       -e 's/libstdc++6-dev/libstdc++6-4.1-dev/' \
+       -e 's/libstdc++5-dev/libstdc++5-3.3-dev/' \
        -e 's/libX11-6-dev/libx11-dev | xlibs-dev (<< 4.3.0)/' \
        -e 's/libXext6-dev/libxext-dev | xlibs-dev (<< 4.3.0)/' \
        -e 's/libXi6-dev/libxi-dev | xlibs-dev (<< 4.3.0)/' \

Reply via email to