Debian Patches

Status for pchar/1.5-8

Patch Description Author Forwarded Bugs Origin Last update
1000-cxx-const-charp-warning.patch Avoid warnings from C++ regarding static strings being used as char* Make sure static strings are returned as const char* instead of char*.

===================================================================
Petter Reinholdtsen <pere@debian.org> no 2012-02-16
1010-cxx-typo-getifinfo.patch Fix typo in C++ header. Petter Reinholdtsen <pere@debian.org> no 2012-02-16
1020-root-required.patch Give more sensible message when running as non-root
===================================================================
Petter Reinholdtsen <pere@debian.org> no debian 2013-10-12
1030-destdir-install.patch Fix install rule to use DESTDIR
===================================================================
Petter Reinholdtsen <pere@debian.org> no 2012-02-16
1040-abs-problem.patch 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.

diff --git a/ResultTable.cc b/ResultTable.cc
index 52e5b3c..a8a2ac3 100644
Petter Reinholdtsen <pere@hungry.com> no debian 2017-08-05
1050-code-errors.patch Fix code errors discovered by clang
===================================================================
Petter Reinholdtsen <pere@hungry.com> no 2017-08-05
1060-autoconf-newer.patch Update autoconf file to work with newer versions Rewrote several parts and require version 2.72, to get the build
working again. Upgrade was partly done using autoupdate. The patch
could use some work, but as upstream is no longer accepting patches,
I did not try to make the changes generic and work outside Debian.

===================================================================
Petter Reinholdtsen <pere@debian.org> no debian 2026-02-18
1070-strncat-zero-terminating.patch Made sure strncat() have room for trailing zero byte. The method require ssize+1 bytes in the destination buffer, adjust
value passed to ensure this is the case.
.
Fixes the following compiler warning:
.
In file included from /usr/include/string.h:548,
from TestRecord.h:27,
from TestRecord.cc:26:
In function 'char* strncat(char*, const char*, size_t)',
inlined from 'char* TestRecord::htoa(Pctest*)' at TestRecord.cc:57:12:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:149:34: warning: 'char* __builtin___strncat_chk(char*, const char*, long unsigned int, long unsigned int)' specified bound 1024 equals destination size [-Wstringop-overflow=]
149 | return __builtin___strncat_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
150 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'char* strncat(char*, const char*, size_t)',
inlined from 'char* TestRecord::htoa(Pctest*)' at TestRecord.cc:65:12:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:149:34: warning: 'char* __builtin___strncat_chk(char*, const char*, long unsigned int, long unsigned int)' specified bound 1024 equals destination size [-Wstringop-overflow=]
149 | return __builtin___strncat_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
150 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
Petter Reinholdtsen <pere@debian.org> no 2026-03-14
1080-no-cpp-register.patch Drop no longer available register specifier from test code. Fixes this compiler warning:
.
Pctest.cc: In member function 'u_short Pctest::InCksum(u_short*, int)':
Pctest.cc:201:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
201 | register int sum = 0;
| ^~~
Petter Reinholdtsen <pere@debian.org> no 2026-03-14
2000-reproducible-build.patch Strip build date and hostname to enable reproducible building
===================================================================
Reiner Herrmann <reiner@reiner-h.de> no
2010-hardening.patch Use compile flags from dpkg-buildflags to enable hardening.
===================================================================
Petter Reinholdtsen <pere@debian.org> no debian 2013-10-12
2020-manpage-mimics.patch Fix minor typo in manual page Replaces mimicks with mimics. Discovered by Lintian. Petter Reinholdtsen <pere@debian.org> no 2021-09-14

All known versions for source package 'pchar'

Links