Patch 200-no-iconv.patch replaced iconv with std::wstring_convert, but
it left two buffer allocations in wideToString() and removed their
delete[]. Each message between a client and telldusd leaked both
buffers, in the client library and in telldusd.
Measured on a router with one client request per second and normal RF
traffic: telldusd and the client each grew about 1.8 MB per hour until
the OOM killer stopped telldusd.
Remove the unused buffers.
Signed-off-by: Peter Liedholm <peterfromswe884@gmail.com>
Add 2 trivial patch to fix support for CMake 4.0 version and use
libftdi1 library instead of the old libftdi 0.x library.
It's safe to use the new library version as the package already expect
it to be used but somehow the CMakeFiles were never updated to actually
use libftdi1 instead of libftdi.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
faster to compile.
A small selection of packages was tested going from:
Executed in 696.30 secs fish external
usr time 82.98 mins 395.00 micros 82.98 mins
sys time 9.02 mins 0.00 micros 9.02 mins
to:
Executed in 592.20 secs fish external
usr time 84.84 mins 361.00 micros 84.84 mins
sys time 8.85 mins 57.00 micros 8.85 mins
Tested by running make -j 12 and wiping staging/build_dir/target_x
Signed-off-by: Rosen Penev <rosenp@gmail.com>
The crude loop I wrote to come up with this changeset:
find -L package/feeds/packages/ -name patches | \
sed 's/patches$/refresh/' | sort | xargs make
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Fixed license information.
Add PKG_BUILD_PARALLEL to explicitly disable parallel builds.
Fixed build depends to apply only to non glibc.
Added an alternative fix to ICONV_FULL which should work better.
Signed-off-by: Rosen Penev <rosenp@gmail.com>