Package: libept
Version: 0.5.28
Severity: normal
Tags: patch

Hi,

thanks for maintaining libept.

During Ubuntu's rebuild test, libept failed to build from source[1] with
gcc-4.4/new eglibc.

In vocabulary.cc, there's a const missing.

Attached is a patch that fixes the problem.

Cheers,
    Stefan.
[1]:
<http://launchpadlibrarian.net/31994300/buildlog_ubuntu-karmic-i386.libept_0.5.26build1_FAILEDTOBUILD.txt.gz>

-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-10-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- libept-0.5.26build1/ept/debtags/vocabulary.cc       2008-06-27 
12:26:10.000000000 +0200
+++ libept-0.5.26ubuntu1/ept/debtags/vocabulary.cc      2009-09-19 
16:40:25.000000000 +0200
@@ -189,7 +189,7 @@
 std::string Vocabulary::tagShortName(int id) const
 {
        const char* fullname = tindex.name(id);
-       char* sub = strstr(fullname, "::");
+       const char* sub = strstr(fullname, "::");
        if (sub != NULL)
                return sub + 2;
        else

Reply via email to