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

Bug#178517: libapt-pkg-dev: Package uses deprecated headers

Package: libapt-pkg-dev
Version: 0.5.4
Severity: serious
Justification: no longer builds from source

When compiling aptitude from source with the new gcc-3.2 the configure
target failed because /usr/include/apt-pkg/pkgsystem.h uses deprecated
C++ headers. An easy fix is given by the gcc-3.2 error message itself,
and consists of replacing an "#include <vector.h>" by "#include <vector>".

(Obvious) patch attached.

-- System Information:
Debian Release: sarge/unstable
Architecture: i386
Kernel: Linux robin-laptop 2.4.20-a30p #1 Wed Jan 22 17:02:33 GMT+1 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US (ignored: LC_ALL set)

Versions of packages libapt-pkg-dev depends on:
ii  apt [libapt-pkg-libc6.2-3-2-3 0.5.4      Advanced front-end for dpkg

-- no debconf information

--- /tmp/pkgsystem.h	2003-01-26 21:29:42.000000000 -0100
+++ /usr/include/apt-pkg/pkgsystem.h	2003-01-26 21:32:19.000000000 -0100
@@ -42,7 +42,7 @@
 #include <apt-pkg/depcache.h>
-#include <vector.h>
+#include <vector>
 class pkgPackageManager;
 class pkgVersioningSystem;

Reply to: