Package: pchar / 1.5-4

Metadata

Package Version Patches format
pchar 1.5-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
1000 cxx const charp warning.patch | (download)

Pctest.h | 2 1 + 1 - 0 !
PctestIpv4.h | 2 1 + 1 - 0 !
PctestIpv6.h | 2 1 + 1 - 0 !
main.cc | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 avoid warnings from c++ regarding static strings being used as char*
 Make sure static strings are returned as const char* instead of char*.
1010 cxx typo getifinfo.patch | (download)

GetIfInfo.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix typo in c++ header.
1020 root required.patch | (download)

README | 4 4 + 0 - 0 !
main.cc | 5 5 + 0 - 0 !
2 files changed, 9 insertions(+)

 give more sensible message when running as non-root
1030 destdir install.patch | (download)

Makefile.in | 9 5 + 4 - 0 !
1 file changed, 5 insertions(+), 4 deletions(-)

 fix install rule to use destdir
1040 abs problem.patch | (download)

ResultTable.cc | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 avoid ambiguous use of abs() causing build failure.
 Avoid failing build with GCC 7 due to abiguous use of abs(unsigned int).
 The problem is this:
   unsigned int a, b, c; c = abs(a - b);
 The type of a - b here is unsigned int, and abs(unsigned int) do not
 exist.  I solved it by changing the calculation to use signed long
 instead, as abs(long) exist and should be able to handle the entire
 value range.
1050 code errors.patch | (download)

PctestIpv4File.cc | 1 1 + 0 - 0 !
PctestIpv6File.cc | 1 1 + 0 - 0 !
ResultTable.cc | 2 1 + 1 - 0 !
main.cc | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 2 deletions(-)

 fix code errors discovered by clang
2000 reproducible build.patch | (download)

Makefile.in | 2 0 + 2 - 0 !
main.cc | 3 1 + 2 - 0 !
2 files changed, 1 insertion(+), 4 deletions(-)

 strip build date and hostname to enable reproducible building
2010 hardening.patch | (download)

Makefile.in | 9 7 + 2 - 0 !
1 file changed, 7 insertions(+), 2 deletions(-)

 use compile flags from dpkg-buildflags to enable hardening.