valijson: new package
PATCH v5 1/1 valijson: new package
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.
---
Changes v4 -> v5:
- Bumped up the version after updated in the cmake file for which the patches were created.
- Deleted the Cmake patch files as it is of no use with updated version.
- Changes have been upstreamed in valijson community below is the link:
https://github.com/tristanpenman/valijson/commit/0c645c53f3f5535145526c5e49bdf994daa6f44c
Changes v3 -> v4:
- Changed master package/valijson/Config.in package/valijson/0001-CMake-Add-options.patch and package/valijson/0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch to implement Samauel comments
1) patch fixing the CMAKE_CXX_FLAGS and variables 0001-CMake-Add-options.patch
2) patch using these new variables 0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
3) comment added for the case when these dependencies are not met
4) updated the comments to reflect boost dependecy
Changes v2 -> v3:
- Changed master package/Config.in and package/valijson/Config.in to implement Samauel and Thomas Comments
1)changed intendations in package/valijson/Config.in
2) updated the comments to reflect boost dependecy
3) updated to keep the alphabetical order in package/Config.in
Changes v1 -> v2:
- Patch splitted into two
0001-CMake-Add-options.patch
0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch- Changed Config.in and valijson.mk as per comments ( suggested by Samuel and Thomas).
--- package/Config.in | 1 + package/valijson/Config.in | 19 +++++++++++++++++++ package/valijson/valijson.hash | 2 ++ package/valijson/valijson.mk | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 package/valijson/Config.in create mode 100644 package/valijson/valijson.hash create mode 100644 package/valijson/valijson.mk
package/Config.in +1 -0
@@ -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" source "package/xerces/Config.in" source "package/yajl/Config.in" source "package/yaml-cpp/Config.in"
package/valijson/Config.in new file +19 -0
@@ -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 + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_REGEX + + 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 + + https://github.com/tristanpenman/valijson + +comment "valijson needs a toolchain w/ C++, threads, wchar support" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
package/valijson/valijson.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally Computed: +sha256 f2346e995bd95c6b86b0b9e9dd228fe134d529565fa86db764c48496805dd9bc valijson-424b706f990a9eb96dfc19cc8e54f2cd6ce5e186.tar.gz
package/valijson/valijson.mk new file +16 -0
@@ -0,0 +1,16 @@ +################################################################################ +# +# valijson +# +################################################################################ + +VALIJSON_VERSION = 424b706f990a9eb96dfc19cc8e54f2cd6ce5e186 +VALIJSON_SITE = $(call github,tristanpenman,valijson,$(VALIJSON_VERSION)) +VALIJSON_LICENSE = BSD-3c +VALIJSON_LICENSE_FILES = LICENSE +VALIJSON_INSTALL_STAGING = YES +VALIJSON_INSTALL_TARGET = NO +VALIJSON_DEPENDENCIES = boost +VALIJSON_CONF_OPTS = -DINSTALL_HEADERS=TRUE + +$(eval $(cmake-package))
Signature · 1 line
2.5.0
PATCH v5 1/1 valijson: new package
All,
Quoted 6 lines · santosh.multhalli
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.
Just a comment, so there are no headers in this patchset but you're mentioning one. I assume it was part of the upstreaming?
Quoted 127 lines
Signed-off-by santosh.multhalli <[email protected]>---
Changes v4 -> v5:
- Bumped up the version after updated in the cmake file for which the
patches were created.
- Deleted the Cmake patch files as it is of no use with updated version.
- Changes have been upstreamed in valijson community below is the link:https://github.com/tristanpenman/valijson/commit/0c645c53f3f5535145526c5e49bdf994daa6f44c
Changes v3 -> v4:
- Changed master package/valijson/Config.inpackage/valijson/0001-CMake-Add-options.patchand
package/valijson/0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
to implement Samauel comments
1) patch fixing theCMAKE_CXX_FLAGSand variables
0001-CMake-Add-options.patch
2) patch using these new variables0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
3) comment added for the case when these dependencies are not met
4) updated the comments to reflect boost dependecyChanges v2 -> v3:
- Changed master package/Config.in and package/valijson/Config.in to
implement
Samauel and Thomas Comments
1)changed intendations in package/valijson/Config.in
2) updated the comments to reflect boost dependecy
3) updated to keep the alphabetical order in package/Config.inChanges v1 -> v2:
- Patch splitted into two0001-CMake-Add-options.patch0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
- Changed Config.in and valijson.mk as per comments ( suggested by
Samuel and Thomas).--- package/Config.in | 1 + package/valijson/Config.in | 19 +++++++++++++++++++ package/valijson/valijson.hash | 2 ++ package/valijson/valijson.mk | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 package/valijson/Config.in create mode 100644 package/valijson/valijson.hash create mode 100644 package/valijson/valijson.mkpackage/Config.in +1
-0@@ -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" source "package/xerces/Config.in" source "package/yajl/Config.in" source "package/yaml-cpp/Config.in"package/valijson/Config.in new file +19
-0@@ -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 + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_REGEX + + 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 + + https://github.com/tristanpenman/valijson + +comment "valijson needs a toolchain w/ C++, threads, wchar support" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS|| !BR2_USE_WCHAR
package/valijson/valijson.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally Computed: +sha256 f2346e995bd95c6b86b0b9e9dd228fe134d529565fa86db764c48496805dd9bcvalijson-424b706f990a9eb96dfc19cc8e54f2cd6ce5e186.tar.gz
package/valijson/valijson.mk new file +16
-1@@ -0,0 +1,16 @@ +################################################################################ +# +# valijson +# +################################################################################ + +VALIJSON_VERSION = 424b706f990a9eb96dfc19cc8e54f2cd6ce5e186 +VALIJSON_SITE = $(call github,tristanpenman,valijson,$(VALIJSON_VERSION)) +VALIJSON_LICENSE = BSD-3c +VALIJSON_LICENSE_FILES = LICENSE +VALIJSON_INSTALL_STAGING = YES +VALIJSON_INSTALL_TARGET = NO +VALIJSON_DEPENDENCIES = boost +VALIJSON_CONF_OPTS = -DINSTALL_HEADERS=TRUE + +$(eval $(cmake-package)) --2.5.0
Signature · 12 lines
Matthew L Weber / Pr Software Engineer Airborne Information Systems / Security Systems and Software / Secure Platforms MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA www.rockwellcollins.com Note: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160414/554def72/attachment.html>
PATCH v5 1/1 valijson: new package
yes
Quoted 154 lines · Matthew Weber
All,
Quoted 7 lines · santosh.multhalli
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.Just a comment, so there are no headers in this patchset but you're mentioning one. I assume it was part of the upstreaming?
Quoted 125 lines
Signed-off-by santosh.multhalli <[email protected]>---
Changes v4 -> v5:
- Bumped up the version after updated in the cmake file for which the
patches were created.
- Deleted the Cmake patch files as it is of no use with updated version.
- Changes have been upstreamed in valijson community below is the link:https://github.com/tristanpenman/valijson/commit/0c645c53f3f5535145526c5e49bdf994daa6f44c
Changes v3 -> v4:
- Changed master package/valijson/Config.inpackage/valijson/0001-CMake-Add-options.patchand
package/valijson/0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
to implement Samauel comments
1) patch fixing theCMAKE_CXX_FLAGSand variables
0001-CMake-Add-options.patch
2) patch using these new variables0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
3) comment added for the case when these dependencies are not met
4) updated the comments to reflect boost dependecyChanges v2 -> v3:
- Changed master package/Config.in and package/valijson/Config.in to
implement
Samauel and Thomas Comments
1)changed intendations in package/valijson/Config.in
2) updated the comments to reflect boost dependecy
3) updated to keep the alphabetical order in package/Config.inChanges v1 -> v2:
- Patch splitted into two0001-CMake-Add-options.patch0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
- Changed Config.in and valijson.mk as per comments ( suggested by
Samuel and Thomas).--- package/Config.in | 1 + package/valijson/Config.in | 19 +++++++++++++++++++ package/valijson/valijson.hash | 2 ++ package/valijson/valijson.mk | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 package/valijson/Config.in create mode 100644 package/valijson/valijson.hash create mode 100644 package/valijson/valijson.mkpackage/Config.in +1
-0@@ -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" source "package/xerces/Config.in" source "package/yajl/Config.in" source "package/yaml-cpp/Config.in"package/valijson/Config.in new file +19
-0@@ -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 + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_REGEX + + 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 + + https://github.com/tristanpenman/valijson + +comment "valijson needs a toolchain w/ C++, threads, wchar support" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS|| !BR2_USE_WCHAR
package/valijson/valijson.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally Computed: +sha256
f2346e995bd95c6b86b0b9e9dd228fe134d529565fa86db764c48496805dd9bcvalijson-424b706f990a9eb96dfc19cc8e54f2cd6ce5e186.tar.gzpackage/valijson/valijson.mk new file +16
-1@@ -0,0 +1,16 @@ +################################################################################ +# +# valijson +# +################################################################################ + +VALIJSON_VERSION = 424b706f990a9eb96dfc19cc8e54f2cd6ce5e186 +VALIJSON_SITE = $(call github,tristanpenman,valijson,$(VALIJSON_VERSION)) +VALIJSON_LICENSE = BSD-3c +VALIJSON_LICENSE_FILES = LICENSE +VALIJSON_INSTALL_STAGING = YES +VALIJSON_INSTALL_TARGET = NO +VALIJSON_DEPENDENCIES = boost +VALIJSON_CONF_OPTS = -DINSTALL_HEADERS=TRUE + +$(eval $(cmake-package)) --Quoted 3 lines
2.5.0
--
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA www.rockwellcollins.com
Quoted 4 lines
Note: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160414/2c234af9/attachment.html>
PATCH v5 1/1 valijson: new package
Santosh,
Quoted 24 lines · Santosh Multhalli
yes
Quoted 19 lines · Matthew Weber
All,
Quoted 7 lines · santosh.multhalli
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.Just a comment, so there are no headers in this patchset but you're mentioning one. I assume it was part of the upstreaming?
Quoted 2 lines
I think the rest of the patch looks good. I'm not sure if you should re-submit to fix the description, Samuel/Thomas?
Quoted 142 lines
Quoted 140 lines
Quoted 125 lines
Signed-off-by santosh.multhalli <[email protected]>---
Changes v4 -> v5:
- Bumped up the version after updated in the cmake file for which the
patches were created.
- Deleted the Cmake patch files as it is of no use with updated
version.
- Changes have been upstreamed in valijson community below is the link:https://github.com/tristanpenman/valijson/commit/0c645c53f3f5535145526c5e49bdf994daa6f44c
Changes v3 -> v4:
- Changed master package/valijson/Config.inpackage/valijson/0001-CMake-Add-options.patchand
package/valijson/0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
to implement Samauel comments
1) patch fixing theCMAKE_CXX_FLAGSand variables
0001-CMake-Add-options.patch
2) patch using these new variables0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
3) comment added for the case when these dependencies are not met
4) updated the comments to reflect boost dependecyChanges v2 -> v3:
- Changed master package/Config.in and package/valijson/Config.in to
implement
Samauel and Thomas Comments
1)changed intendations in package/valijson/Config.in
2) updated the comments to reflect boost dependecy
3) updated to keep the alphabetical order in package/Config.inChanges v1 -> v2:
- Patch splitted into two0001-CMake-Add-options.patch0002-CMake-Add-conditional-check-to-Install-headers-build-examples-a.patch
- Changed Config.in and valijson.mk as per comments ( suggested by
Samuel and Thomas).--- package/Config.in | 1 + package/valijson/Config.in | 19 +++++++++++++++++++ package/valijson/valijson.hash | 2 ++ package/valijson/valijson.mk | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 package/valijson/Config.in create mode 100644 package/valijson/valijson.hash create mode 100644 package/valijson/valijson.mkpackage/Config.in +1
-0@@ -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" source "package/xerces/Config.in" source "package/yajl/Config.in" source "package/yaml-cpp/Config.in"package/valijson/Config.in new file +19
-0@@ -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 + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_REGEX + + 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 + + https://github.com/tristanpenman/valijson + +comment "valijson needs a toolchain w/ C++, threads, wchar support" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS|| !BR2_USE_WCHAR
package/valijson/valijson.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally Computed: +sha256 f2346e995bd95c6b86b0b9e9dd228fe134d529565fa86db764c48496805dd9bcvalijson-424b706f990a9eb96dfc19cc8e54f2cd6ce5e186.tar.gz
package/valijson/valijson.mk new file +8
-0@@ -0,0 +1,16 @@ +################################################################################ +# +# valijson +# +################################################################################ + +VALIJSON_VERSION = 424b706f990a9eb96dfc19cc8e54f2cd6ce5e186 +VALIJSON_SITE = $(callgithub,tristanpenman,valijson,$(VALIJSON_VERSION))
package/valijson/valijson.mk new file +8
-1+VALIJSON_LICENSE = BSD-3c +VALIJSON_LICENSE_FILES = LICENSE +VALIJSON_INSTALL_STAGING = YES +VALIJSON_INSTALL_TARGET = NO +VALIJSON_DEPENDENCIES = boost +VALIJSON_CONF_OPTS = -DINSTALL_HEADERS=TRUE + +$(eval $(cmake-package)) --Quoted 2 lines
2.5.0
--
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA www.rockwellcollins.comNote: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com.
Signature · 8 lines
Matthew L Weber / Pr Software Engineer Airborne Information Systems / Security Systems and Software / Secure Platforms MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA www.rockwellcollins.com Note: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com.
PATCH v5 1/1 valijson: new package
In reply to santosh.multhalliHello,
I've applied the patch, but there are still quite a few things that were not good.
Quoted 4 lines · santosh.multhalli
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.
Quoted 2 lines
Signed-off-by santosh.multhalli <[email protected]>
Your name here should match the From: of your e-mail, so it should have been:
Santosh Multhalli <[email protected]>
package/Config.in menu "JSON/XML" · line 1047
Quoted 9 lines
package/Config.in +1
-0@@ -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".
package/valijson/Config.in line 5
Quoted 12 lines
package/Config.in +0
-0source "package/yaml-cpp/Config.in"package/valijson/Config.in new file +5
-0@@ -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.
package/valijson/Config.in line 8
Quoted 3 lines
package/valijson/Config.in new file +3
-0+ select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_REGEX +
This blank line is unneeded.
package/valijson/Config.in line 14
Quoted 6 lines
package/valijson/Config.in new file +6
-0+ 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.
package/valijson/Config.in line 17
Quoted 3 lines
package/valijson/Config.in new file +3
-0+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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com