Set -D_POSIX_C_SOURCE=200112L to avoid the following build failure with
uclibc-ng:
anet.c: In function ‘anetTcpGenericConnect’:
anet.c:153:21: error: storage size of ‘gai_hints’ isn’t known
153 | struct addrinfo gai_hints;
| ^~~~~~~~~
In file included from dump1090.h:83,
from dump1090.c:50:
compat/compat.h:46:3: error: conflicting types for ‘clockid_t’
46 | } clockid_t;
| ^~~~~~~~~
In file included from /home/fabrice/buildroot/output/host/or1k-buildroot-linux-uclibc/sysroot/usr/include/sys/types.h:132,
from /home/fabrice/buildroot/output/host/or1k-buildroot-linux-uclibc/sysroot/usr/include/stdlib.h:198,
from dump1090.h:66,
from dump1090.c:50:
/home/fabrice/buildroot/output/host/or1k-buildroot-linux-uclibc/sysroot/usr/include/time.h:91:21: note: previous declaration of ‘clockid_t’ was here
91 | typedef __clockid_t clockid_t;
| ^~~~~~~~~
net_io.c: In function ‘writeJsonToFile’:
net_io.c:2122:18: error: ‘PATH_MAX’ undeclared (first use in this function)
2122 | char pathbuf[PATH_MAX];
| ^~~~~~~~
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
following a decrease in gain due to an increased noise floor.
This is controlled by --adaptive-range-scan-delay and defaults
to 5 minutes (vs. the default rescan delay of 1 hour)
This means you can, in theory, completely override CFLAGS/CPPFLAGS without also having to
provide all the internal flags that the Makefile usually detects.
$ make CFLAGS=-qwerty
[...]
cc -I. -DMODES_DUMP1090_VERSION=\"unknown\" -DMODES_DUMP1090_VARIANT=\"dump1090-fa\" -D_DEFAULT_SOURCE -DENABLE_CPUFEATURES -Icpu_features/include -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_HACKRF -DENABLE_LIMESDR -DSTARCH_MIX_X86 -qwerty -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -W -I/usr/include/ -I/usr/include/libusb-1.0 -I/usr/include/ -I/usr/include/ -I/usr/include/libusb-1.0 -c dump1090.c -o dump1090.o
Should fix#161
* dh-compat 10
* no dh-systemd dependency
* backport version for buster
* teach prepare-build about bullseye
* update stretch maintainer address
* update Jenkinsfile (this will be broken until the builder machine is upgraded)
disables adaptive gain.
This is needed for the case where a v5 package with an unmodified
config file is upgraded. dpkg will install the v6 default config
file automatically so it will already be a v6 config by the time
that upgrade-config runs, but we do still need to go in and
disable adaptive gain.