aboutsummaryrefslogtreecommitdiff
path: root/package/json-c/json-c.mk
Commit message (Collapse)AuthorAgeFilesLines
* package: drop _CPE_ID_VALID, use _CPE_ID_VENDORGravatar Yann E. MORIN2021-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* package/json-c: set JSON_C_CPE_ID_VALIDGravatar Fabrice Fontaine2021-01-161-0/+1
| | | | | | | | | | cpe:2.3:a:json-c_project:json-c is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Ajson-c_project%3Ajson-c Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/json-c: security bump to version 0.15Gravatar Fabrice Fontaine2020-08-271-1/+1
| | | | | | | | | | | Fix CVE-2020-12762: json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON file, as demonstrated by printbuf_memappend. Also update indentation in hash file (two spaces) Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/json-c: bump version to 0.14Gravatar Christopher Pelloux2020-06-241-11/+3
| | | | | | | | | | | Notes: - json-c now uses cmake instead of autoconf - This version also brings support to the much welcomed feature for parsing uint64_t types Signed-off-by: Christopher Pelloux <git@chp.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* json-c: drop host-autoconf dependencyGravatar Baruch Siach2018-08-291-3/+7
| | | | | | | | | | | | It turns out that the configure script attempts to run autoheader because the configure.ac timestamp is slightly later than that of config.h.in. Update the config.h.in timestamp after tarball extract to avoid autoheader run. With that we can drop the host-autoconf dependency. Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* json-c: needs host-autoconfGravatar Baruch Siach2018-08-281-0/+4
| | | | | | | | | | | | | | | The json-c configure script uses the autoheader utility. Use the host-autoconf provided autoheader, as this tool is not always installed on the host. Fixes: http://autobuild.buildroot.net/results/030/030fddceda4f5bc6379f7bfcc405e92d2e24184a/ http://autobuild.buildroot.net/results/e48/e482f174b8124ace0690a26bb7daf073fe5fcd75/ http://autobuild.buildroot.net/results/482/4829425c38c58d9844aa07108532a93d47191d23/ Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* json-c: bump to version 0.13.1Gravatar Fabrice Fontaine2018-06-091-4/+1
| | | | | | | | Drop patch, issue has been properly fixed by: https://github.com/json-c/json-c/commit/0f814e52dd22ee959a29ffcce36923aff62147b3 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* json-c: fix build without threads supportGravatar Baruch Siach2017-12-311-0/+3
| | | | | | | | | | | | | | | | An uClibc toolchain that does not support threads emits a warning when _REENTRANT is defined. This breaks build with -Werror. Remove -Werror as a workaround to fix the build. This issue as been reported upstream (https://github.com/json-c/json-c/issues/396). Fixes: http://autobuild.buildroot.net/results/606/60683141f2ef320a28820c4cd65d2b951123b147/ http://autobuild.buildroot.net/results/969/969faba96d94c1bda7e06b005d8f3a3f7175a0a2/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* json-c: bump to version 0.13Gravatar Baruch Siach2017-12-261-7/+2
| | | | | | | | | | | | | | | | | | | | Use upstream provided tarball; drop autoreconf. Drop -Werror removal patch; json-c builds fine with gcc 7 without this patch. Drop upstream libm patch. Drop --disable-oldname-compat; removed upstream. Add license file hash. Enable parallel build. The commit introducing MAKE1, ecd0f65af92 (json-c: bump to version 0.11) does not explain the reason for that. A sequence of a few builds on a multi-core system never faild. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* json-c: build for hostGravatar Baruch Siach2017-12-261-0/+2
| | | | | | | | This is needed for the recent cryptsetup version host build. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* json-c: bump to version 0.12.1-20160607Gravatar Danomi Manchego2017-02-161-1/+1
| | | | | | [Peter: stick to the github helper] Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* json-c: bump version to json-c-0.12-20140410Gravatar Johan Sagaert2015-04-161-1/+3
| | | | | | | | | Also; -removed upstream patch -added patch to remove -Werror from make flags Signed-off-by: Sagaert Johan <sagaert.johan@proximus.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* json-c: change upstream location to GithubGravatar Sagaert Johan2014-12-201-2/+2
| | | | | | | | json-c website and download locations have changed, the project is now hosted on Github. Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSGravatar Thomas De Schampheleire2014-10-041-1/+1
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: remove the trailing slash sign from <PKG>_SITE variableGravatar Jerzy Grzegorek2014-07-311-1/+1
| | | | | | | | | | | | Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* json-c: define licenseGravatar gilles.talis@gmail.com2013-07-101-0/+2
| | | | | Signed-off-by: Gilles Talis <gilles.talis@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* json-c: bump to version 0.11Gravatar Thomas Petazzoni2013-05-101-2/+4
| | | | | | | | | | | | | | | | Bumping this package is needed, because json-c 0.10 has a major defect: it installs a library named libjson.so, which conflicts with the library installed by the libjson package. This has been changed in the upstream json-c 0.11 version, which now installs libjson-c and json-c.pc. It allows to solve the Pulseaudio link problem, which wants to link against json-c but happens to link against libjson when libjson has been compiled and installed after json-c. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* bump json-c to 0.10Gravatar Andreas Wetzel2013-02-251-2/+2
| | | | | | | | this patch bumps json-c to version 0.10 and adapts the no-reentrant patch to the new version. Signed-off-by: Andreas Wetzel <andreas.wetzel@nanotronic.ch> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* all packages: rename XXXTARGETS to xxx-packageGravatar Arnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: remove useless arguments from AUTOTARGETSGravatar Thomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: add json-c libraryGravatar Peter Korsgaard2011-09-281-0/+11
json-c is a JSON library written in C. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>