[Buildroot] [PATCH v5] valijson: new package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Thu Apr 14 20:48:36 UTC 2016
Hello,
I've applied the patch, but there are still quite a few things that were
not good.
On Thu, 14 Apr 2016 14:57:56 +0530, santosh.multhalli wrote:
> Valijson is a header-only JSON Schema Validation library for
> C++.Add a patch 0001-CMake-Add-option-to-Install-headers-build-examples-a.patch
> to install valijson headers ,provide optional compilation of unit tests and
> examples.
As Matt pointed out, this part of the commit log was no longer relevant.
>
> Signed-off-by: santosh.multhalli <santosh.multhalli at rockwellcollins.com>
Your name here should match the From: of your e-mail, so it should have
been:
Santosh Multhalli <santosh.multhalli at rockwellcollins.com>
> diff --git a/package/Config.in b/package/Config.in
> index 64822bf..1404653 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1044,6 +1044,7 @@ menu "JSON/XML"
> source "package/raptor/Config.in"
> source "package/tinyxml/Config.in"
> source "package/tinyxml2/Config.in"
> + source "package/valijson/Config.in"
This line was not good, it starts with a space followed by a tab, it
should just be a tab. You can spot these very easily by reviewing your
patch using "git log -p".
> source "package/yaml-cpp/Config.in"
> diff --git a/package/valijson/Config.in b/package/valijson/Config.in
> new file mode 100644
> index 0000000..a5e24c2
> --- /dev/null
> +++ b/package/valijson/Config.in
> @@ -0,0 +1,19 @@
> +config BR2_PACKAGE_VALIJSON
> + bool "valijson"
> + depends on BR2_USE_WCHAR
> + depends on BR2_INSTALL_LIBSTDCPP
> + depends on BR2_TOOLCHAIN_HAS_THREADS
You forgot to replicate the BR2_PACKAGE_BOOST_ARCH_SUPPORTS dependency
here. Basically when you "select BR2_PACKAGE_<foo>", you *must*
replicate all "depends on" that BR2_PACKAGE_<foo>" has to your package.
> + select BR2_PACKAGE_BOOST
> + select BR2_PACKAGE_BOOST_REGEX
> +
This blank line is unneeded.
> + help
> + Valijson is a header-only JSON Schema Validation library for
> + C++. Valijson provides a simple validation API that allows you
> + load JSON Schemas, and validate documents loaded by one of
> + several supported parser libraries like boost, jsoncpp,
> + rapidjson and picoJSON.It depends on BOOST Libraries
Missing space after dot, missing final dot in this sentence. But since
this last sentence was useless, I simply removed it.
> +VALIJSON_VERSION = 424b706f990a9eb96dfc19cc8e54f2cd6ce5e186
> +VALIJSON_SITE = $(call github,tristanpenman,valijson,$(VALIJSON_VERSION))
> +VALIJSON_LICENSE = BSD-3c
License is BSD-2c, not BSD-3c.
As I said, I fixed up those issues and applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list