kumquat-buildroot/support
Peter Korsgaard f31227e628 support/scripts/cve.py: use fast ijson backend if available on old ijson versions
ijson < 2.5 (as available in Debian 10) use the slow python backend by
default instead of the most efficient one available like modern ijson
versions, significantly slowing down cve checking. E.G.:

time ./support/scripts/pkg-stats --nvd-path ~/.nvd -p avahi --html foobar.html

Goes from
174,44s user 2,11s system 99% cpu 2:58,04 total

To
93,53s user 2,00s system 98% cpu 1:36,65 total

E.G. almost 2x as fast.

As a workaround, detect when the python backend is used and try to use a
more efficient one instead.  Use the yajl2_cffi backend as recommended by
upstream, as it is most likely to work, and print a warning (and continue)
if we fail to load it.

The detection is slightly complicated by the fact that ijson.backends used
to be a reference to a backend module, but is nowadays a string (without the
ijson.backends prefix).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-04-17 09:14:40 +02:00
..
config-fragments support/scripts/gen-bootlin-toolchains: correct xtensa-lx60 toolchain dependencies 2021-03-02 23:52:49 +01:00
dependencies support/dependencies: detect and bailout when PATH contains spaces/TABs 2021-03-14 23:29:15 +01:00
docker support/docker: drop Python 2.x modules 2020-08-14 23:08:34 +02:00
download support/download: fix tarball generation with symlinks pointing to ./something 2021-03-20 17:29:29 +01:00
gnuconfig support/gnuconfig: fix previous version bump 2020-09-27 18:30:05 +02:00
kconfig
legal-info core/legal-info: update list of saved material in README 2020-01-18 18:38:42 +01:00
libtool
misc Update for 2021.02.1 2021-04-07 13:34:27 +02:00
scripts support/scripts/cve.py: use fast ijson backend if available on old ijson versions 2021-04-17 09:14:40 +02:00
testing package/zfs: new package 2021-04-13 23:08:17 +02:00