Package: aptitude
Version: 0.3.3-1.1
Tags: patch
Followup-For: Bug #321889
Attempting to self-compile Aptitude results in FTBFS with newer
libapt-pkg, libsigc++ and gcc 4.0. Attached patch fixes this.
-- System Information:
Debian Release: 3.1
APT prefers stable
APT policy: (990, 'stable'), (103, 'testing'), (102, 'unstable'), (99,
'experimental'), (98, 'hoary'), (97, 'breezy')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages aptitude depends on:
ii apt [libapt-pkg-libc6.3-6-3.1 0.6.40.1 Advanced front-end for dpkg
ii libc6 2.3.5-3 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.1-4 GCC support library
ii libncursesw5 5.4-9 Shared libraries for terminal hand
ii libsigc++-2.0-0c2 2.0.10-3 type-safe Signal Framework for C++
ii libstdc++6 4.0.1-4 The GNU Standard C++ Library v3
Versions of packages aptitude recommends:
pn aptitude-doc-en | aptitude-do <none> (no description available)
-- no debconf information
diff -ur aptitude-0.3.3/src/generic/problemresolver/problemresolver.h aptitude-0.3.3-noftbfs/src/generic/problemresolver/problemresolver.h
--- aptitude-0.3.3/src/generic/problemresolver/problemresolver.h 2005-05-04 18:54:40.000000000 +0200
+++ aptitude-0.3.3-noftbfs/src/generic/problemresolver/problemresolver.h 2005-08-17 18:18:53.000000000 +0200
@@ -235,8 +235,6 @@
return forbidden_versions;
}
- const action &get_action() {return my_action;}
-
int get_score() const {return score;}
int get_action_score() const {return action_score;}
diff -ur aptitude-0.3.3/src/generic/strhash.h aptitude-0.3.3-noftbfs/src/generic/strhash.h
--- aptitude-0.3.3/src/generic/strhash.h 2004-12-04 01:57:13.000000000 +0100
+++ aptitude-0.3.3-noftbfs/src/generic/strhash.h 2005-08-17 18:20:04.000000000 +0200
@@ -28,7 +28,7 @@
#if defined(HAVE_HASH_MAP) || defined(HAVE_EXT_HASH_MAP)
namespace HASH_NAMESPACE
{
- struct hash<std::string>
+ template <> struct hash<std::string>
{
inline size_t operator()(const std::string &s) const
{