package: drop _CPE_ID_VALID, use _CPE_ID_VENDOR
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 5 Mar 2021 22:27:44 +0000 (23:27 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 6 Mar 2021 16:18:07 +0000 (17:18 +0100)
commitb9db38d370dcd22c077d0ebb6ab8eb20f0196faa
treea41169d5f406cd97741c2312390a7f67f27439b1
parentd0b208652f123eb0049aee20d88b66e0f86707ce
package: drop _CPE_ID_VALID, use _CPE_ID_VENDOR

FOO_CPE_ID_VALID really ought to be an internal implementaion detail.
Packages that really want to trigger their CPE defintitions really
should set one of the actual variables to a meaningful value.

There are two CPE-related variables that we could chose to set to
replace FOO_CPE_ID_VALID: FOO_CPE_ID_VENDOR and FOO_CPE_ID_PRODUCT.
Between those two, _VENDOR more often diverges from the default than
_PRODUCT does, so that's what we use.

    ---8<------8<------8<------8<------8<---
    #!/bin/bash
    # Replace FOO_CPE_ID_VALID = YES with FOO_CPE_ID_VENDOR = foo_project
    for i in $(git grep -l -E '[^)]_CPE_ID_VALID = YES' package support); do
        pkg="$(basename "${i%/*}")"
        sed -r -i -e "s/_CPE_ID_VALID = YES/_CPE_ID_VENDOR = ${pkg}_project/" "${i}"
    done
    ---8<------8<------8<------8<------8<---

Reported-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Matthew Weber <matthew.weber@rockwellcollins.com>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Peter: update cpe-test comment to reflect pkg3 change]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
81 files changed:
package/asn1c/asn1c.mk
package/atftp/atftp.mk
package/atop/atop.mk
package/attr/attr.mk
package/axel/axel.mk
package/bdwgc/bdwgc.mk
package/beecrypt/beecrypt.mk
package/botan/botan.mk
package/c-icap/c-icap.mk
package/civetweb/civetweb.mk
package/cjson/cjson.mk
package/cryptsetup/cryptsetup.mk
package/dosfstools/dosfstools.mk
package/e2fsprogs/e2fsprogs.mk
package/elfutils/elfutils.mk
package/file/file.mk
package/flac/flac.mk
package/flex/flex.mk
package/fontconfig/fontconfig.mk
package/giflib/giflib.mk
package/gnuplot/gnuplot.mk
package/harfbuzz/harfbuzz.mk
package/heimdal/heimdal.mk
package/ipmitool/ipmitool.mk
package/iucode-tool/iucode-tool.mk
package/jansson/jansson.mk
package/jasper/jasper.mk
package/jhead/jhead.mk
package/jq/jq.mk
package/json-c/json-c.mk
package/jsoncpp/jsoncpp.mk
package/lame/lame.mk
package/lftp/lftp.mk
package/libass/libass.mk
package/libcap-ng/libcap-ng.mk
package/libconfuse/libconfuse.mk
package/libesmtp/libesmtp.mk
package/libevent/libevent.mk
package/libexif/libexif.mk
package/libgit2/libgit2.mk
package/libksba/libksba.mk
package/librsync/librsync.mk
package/libseccomp/libseccomp.mk
package/libsndfile/libsndfile.mk
package/libtirpc/libtirpc.mk
package/libupnp/libupnp.mk
package/libvncserver/libvncserver.mk
package/logrotate/logrotate.mk
package/lzo/lzo.mk
package/matio/matio.mk
package/minicom/minicom.mk
package/ncmpc/ncmpc.mk
package/netatalk/netatalk.mk
package/netcat/netcat.mk
package/nettle/nettle.mk
package/oniguruma/oniguruma.mk
package/openrc/openrc.mk
package/p11-kit/p11-kit.mk
package/polkit/polkit.mk
package/powerpc-utils/powerpc-utils.mk
package/procps-ng/procps-ng.mk
package/rabbitmq-c/rabbitmq-c.mk
package/rhash/rhash.mk
package/rpcbind/rpcbind.mk
package/rtmpdump/rtmpdump.mk
package/sane-backends/sane-backends.mk
package/spice/spice.mk
package/squashfs/squashfs.mk
package/strace/strace.mk
package/sysklogd/sysklogd.mk
package/tmux/tmux.mk
package/unzip/unzip.mk
package/upx/upx.mk
package/valijson/valijson.mk
package/vsftpd/vsftpd.mk
package/x11vnc/x11vnc.mk
package/xscreensaver/xscreensaver.mk
package/yaml-cpp/yaml-cpp.mk
package/zziplib/zziplib.mk
support/testing/tests/core/cpeid-br2-external/package/cpe-id-pkg3/cpe-id-pkg3.mk
support/testing/tests/core/test_cpeid.py