tags 560463 + patch pending thanks Dear maintainer,
I've prepared an NMU for libcommoncpp2 (versioned as 1.7.3-1.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards. -- Mehdi Dogguy
diff -u libcommoncpp2-1.7.3/debian/changelog libcommoncpp2-1.7.3/debian/changelog --- libcommoncpp2-1.7.3/debian/changelog +++ libcommoncpp2-1.7.3/debian/changelog @@ -1,3 +1,11 @@ +libcommoncpp2 (1.7.3-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix FTBFS due to invalid constant string to char* conversion in + src/cidr.cpp (added const_cast_conversion.dpatch) (Closes: #560463) + + -- Mehdi Dogguy <me...@debian.org> Mon, 01 Feb 2010 15:16:29 +0100 + libcommoncpp2 (1.7.3-1) unstable; urgency=low * New upstream release diff -u libcommoncpp2-1.7.3/debian/patches/00list libcommoncpp2-1.7.3/debian/patches/00list --- libcommoncpp2-1.7.3/debian/patches/00list +++ libcommoncpp2-1.7.3/debian/patches/00list @@ -2,0 +3 @@ +const_cast_conversion.dpatch only in patch2: unchanged: --- libcommoncpp2-1.7.3.orig/debian/patches/const_cast_conversion.dpatch +++ libcommoncpp2-1.7.3/debian/patches/const_cast_conversion.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## const_cast_conversion.dpatch by Mehdi Dogguy <me...@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: constant string to char* conversion + +...@dpatch@ +diff -urNad libcommoncpp2-1.7.3~/src/cidr.cpp libcommoncpp2-1.7.3/src/cidr.cpp +--- libcommoncpp2-1.7.3~/src/cidr.cpp 2009-01-16 13:27:00.000000000 +0100 ++++ libcommoncpp2-1.7.3/src/cidr.cpp 2010-02-01 15:15:53.000000000 +0100 +@@ -202,7 +202,7 @@ + #if defined(_MSC_VER) && _MSC_VER >= 1500 + ep = (char *)strchr(cp, '/'); + #else +- ep = strchr(cp, '/'); ++ ep = strchr(const_cast<char *>(cp), '/'); + #endif + + if(ep) +@@ -332,7 +332,7 @@ + memset(&netmask, 0, sizeof(netmask)); + bitset((bit_t *)&netmask, getMask(cp)); + setString(cbuf, sizeof(cbuf), cp); +- ep = strchr(cp, '/'); ++ ep = strchr(const_cast<char *>(cp), '/'); + if(ep) + *ep = 0; +