Debian Patches

Status for afnix/3.7.0-1

Patch Description Author Forwarded Bugs Origin Last update
0009-net_test_ctl.patch diff --git a/src/mod/net/tst/Makefile b/src/mod/net/tst/Makefile
index 4c52a15..c3f3f5a 100644
no
0010-sys_test_ctl.patch diff --git a/src/mod/sys/tst/Makefile b/src/mod/sys/tst/Makefile
index 31e878a..2b88170 100644
no
0001-Add-soname-env.patch [PATCH 1/4] Add soname env
AddSoname.patch by Paul Cager <paul-debian@home.paulcager.org>

Add a "SONAME" variable for the shared objects (missing from upstream).
Note that upstream use major.minor as compat version level.
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2020-12-26
0002-allRpath.patch [PATCH 2/4] allRpath
allRpath.patch by Paul Cager <paul-debian@home.paulcager.org>

Add an rpath to the executables, so that we can place the SOs in
private directory.
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2020-12-25
0003-NoStaticLib.patch [PATCH 3/4] NoStaticLib
NoStaticLibs.patch by Paul Cager <paul-debian@home.paulcager.org>

Do not deliver the static libraries in the deb.
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2020-12-25
0005-Use-build-flags-from-environment-dpkg-buildflags.patch [PATCH] Use build flags from environment (dpkg-buildflags)
Necessary for hardening flags.
CPPFLAGS contains preprocessor flags, not flags for .cpp files.
Simon Ruderich <simon@ruderich.org> no 2014-08-26
0008-sec_test_ctl.patch diff --git a/src/mod/sec/tst/Makefile b/src/mod/sec/tst/Makefile
index a9c624c..4561000 100644
no
0011-Fix-missing-support-s390x.patch [PATCH] Fix missing support s390x Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2020-12-26
0012-Add-support-ppc64.patch [PATCH] Add support ppc64 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2020-12-26
0013-Disable-nwg-test.patch [PATCH] Disable nwg-test Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2020-12-26
0014-Reproducible-build.patch Make the build reproducible Chris Lamb <lamby@debian.org> no 2021-10-30
Add-support-gcc-12.patch [PATCH 1/2] Add support gcc 12 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2022-11-28
Use-dpkg-buildflags-for-gcc-12.patch [PATCH 2/2] Use dpkg-buildflags for gcc 12 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2022-11-28
Fix-a-pointer-type-mismatch-error-by-delete-with-tra.patch [PATCH 1/2] Fix a pointer type mismatch error by delete with transient.tcc

```
g++ -Wall -Werror -fno-builtin -MMD -pthread -fPIC -nostdinc -nostdinc++ -O2 -I. -I../../../../bld/hdr/bit -I../../../../bld/hdr/plt -o Ascii.o -c Ascii.cpp
In file included from Ascii.cpp:19:
In destructor ‘afnix::t_transient<T, amod>::~t_transient() [with T = char; bool amod = false]’,
inlined from ‘static afnix::String afnix::Ascii::btos(const afnix::t_byte*, long int)’ at Ascii.cpp:58:3:
../../../../bld/hdr/bit/transient.tcc:54:57: error: ‘void operator delete(void*, long unsigned int)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
54 | if constexpr (amod == true) delete [] p_ptr; else delete p_ptr;
| ^~~~~~~~~~~~
Ascii.cpp: In static member function ‘static afnix::String afnix::Ascii::btos(const afnix::t_byte*, long int)’:
Ascii.cpp:50:45: note: returned from ‘void* operator new [](long unsigned int)’
50 | t_transient<char> data = new char[blen+1];
| ^
In destructor ‘afnix::t_transient<T, amod>::~t_transient() [with T = char; bool amod = false]’,
inlined from ‘static afnix::String afnix::Ascii::btos(const afnix::t_byte*, long int)’ at Ascii.cpp:58:3:
../../../../bld/hdr/bit/transient.tcc:54:57: error: ‘void operator delete(void*, long unsigned int)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
54 | if constexpr (amod == true) delete [] p_ptr; else delete p_ptr;
| ^~~~~~~~~~~~
Ascii.cpp: In static member function ‘static afnix::String afnix::Ascii::btos(const afnix::t_byte*, long int)’:
Ascii.cpp:50:45: note: returned from ‘void* operator new [](long unsigned int)’
50 | t_transient<char> data = new char[blen+1];
| ^
cc1plus: all warnings being treated as errors
```
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2022-12-06
Relatif.cpp-Fix-uninitialized-error-in-cbsz.patch [PATCH 2/2] Relatif.cpp: Fix uninitialized error in cbsz
Because the size of cbsz variable is unknown with compiler, the initialization
of sbuf is unknown. Therefore, the compiler is considered an error.
This is treated as an error if cbsz is 0 or less and fix this problem.

```
g++ -Wall -Werror -fno-builtin -MMD -pthread -fPIC -nostdinc -nostdinc++ -O2 -I. -I../../../../bld/hdr/bit -I../../../../bld/hdr/plt -o Relatif.o -c Relatif.cpp
Relatif.cpp: In member function ‘long int afnix::s_mpi::tosbuf(afnix::t_byte*, long int, bool) const’:
Relatif.cpp:523:41: error: ‘*sbuf[<unknown>]’ may be used uninitialized [-Werror=maybe-uninitialized]
523 | sbuf[cbsz-1] = sext (sbuf[cbsz-1]);
| ~~~~~~~~~~~^
cc1plus: all warnings being treated as errors
```
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2022-12-06
Fix-build-with-Werror-aggressive-loop-optimizations-.patch [PATCH] Fix build with -Werror=aggressive-loop-optimizations option
Add size check for d_alen and size.

```
inlined from ‘int main(int, char**)’ at t_array.cpp:27:43:
../../../../bld/hdr/bit/array.tcc:265:7: error: iteration 2305843009213693952 invokes undefined behavior [-Werror=aggressive-loop-optimizations]
265 | for (long k = 0; k < d_alen; k++) data[k] = p_data[k];
| ^~~
../../../../bld/hdr/bit/array.tcc:265:26: note: within this loop
265 | for (long k = 0; k < d_alen; k++) data[k] = p_data[k];
| ~~^~~~~~~~
cc1plus: all warnings being treated as errors
```
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2022-12-06

All known versions for source package 'afnix'

Links