kumquat-buildroot/support/scripts
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
..
apply-patches.sh support/scripts/apply-patches.sh: manage uncompression 2020-10-17 14:44:05 +02:00
boot-qemu-image.py support/scripts/boot-qemu-image.py: properly catch timeout 2021-02-20 22:44:29 +01:00
br2-external system: support br2-external init systems 2020-10-14 22:48:42 +02:00
brpkgutil.py
check-bin-arch package/guile: bump to version 3.0.4 2020-08-08 18:59:19 +02:00
check-dotconfig.py support/scripts: add check-dotconfig.py 2020-07-27 18:13:19 +02:00
check-host-rpath
check-kernel-headers.sh
check-merged-usr.sh
cpedb.py support/scripts/cpedb.py: remove import pickle 2021-02-16 21:16:55 +01:00
cve.py support/scripts/cve.py: use fast ijson backend if available on old ijson versions 2021-04-17 09:14:40 +02:00
eclipse-register-toolchain
expunge-gconv-modules
fix-configure-powerpc64.sh
fix-rpath
gen-bootlin-toolchains support/scripts/gen-bootlin-toolchains: correct xtensa-lx60 toolchain dependencies 2021-03-02 23:52:49 +01:00
generate-gitlab-ci-yml support/scripts/generate-gitlab-ci-yml: rework generation of pipelines 2020-10-06 15:38:48 +02:00
genimage.sh
graph-build-time
graph-depends
hardlink-or-copy
mkmakefile
mkusers
pkg-stats support/scripts/pkg-stats: add ignored_cves to json output 2021-02-16 23:15:06 +01:00
pycompile.py support/scripts: fix pycompile for short filenames 2021-03-30 22:18:44 +02:00
setlocalversion support/scripts/setlocalversion: fix/improve Mercurial output 2020-10-03 09:11:03 +02:00
size-stats