* [Buildroot] [PATCH v1 1/1] package/redis-plus-plus: new package
@ 2022-10-04 20:52 Sannachi, Prabhu Collins via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Sannachi, Prabhu Collins via buildroot @ 2022-10-04 20:52 UTC (permalink / raw)
To: buildroot; +Cc: Sannachi, Prabhu Collins
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: v1-0001-package-redis-plus-plus-new-package.patch --]
[-- Type: application/octet-stream, Size: 3947 bytes --]
From e7ef19f36a992954c66e44da2f30ed7cd0669a4b Mon Sep 17 00:00:00 2001
From: prabhusannachi <prabhu.sannachi@collins.com>
Date: Tue, 4 Oct 2022 12:17:51 -0500
Subject: [PATCH v1 1/1] package/redis-plus-plus: new package
Redis client written in C++
This is a C++ client library for Redis.
It's based on hiredis, and is compatible
with C++ 17, C++ 14, and C++ 11.
https://github.com/sewenew/redis-plus-plus
Signed-off-by: Prabhu Sannachi <prabhu.sannachi@collins.com>
---
DEVELOPERS | 3 +++
package/Config.in | 1 +
package/redis-plus-plus/Config.in | 11 +++++++++++
package/redis-plus-plus/redis-plus-plus.hash | 3 +++
package/redis-plus-plus/redis-plus-plus.mk | 27 +++++++++++++++++++++++++++
5 files changed, 45 insertions(+)
create mode 100644 package/redis-plus-plus/Config.in
create mode 100644 package/redis-plus-plus/redis-plus-plus.hash
create mode 100644 package/redis-plus-plus/redis-plus-plus.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 59121c6..2f24fca 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2435,6 +2435,9 @@ F: package/libdvbpsi/
F: package/mraa/
F: package/synergy/
+N: Prabhu Sannachi <prabhu.sannachi@collins.com>
+F: package/redis-plus-plus/
+
N: Rafal Susz <rafal.susz@gmail.com>
F: board/avnet/s6lx9_microboard/
F: configs/s6lx9_microboard_defconfig
diff --git a/package/Config.in b/package/Config.in
index e3a34d6..8235864 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1491,6 +1491,7 @@ if BR2_PACKAGE_POSTGRESQL
source "package/postgis/Config.in"
endif
source "package/redis/Config.in"
+ source "package/redis-plus-plus/Config.in"
source "package/rocksdb/Config.in"
source "package/sqlcipher/Config.in"
source "package/sqlite/Config.in"
diff --git a/package/redis-plus-plus/Config.in b/package/redis-plus-plus/Config.in
new file mode 100644
index 0000000..3c23dc5
--- /dev/null
+++ b/package/redis-plus-plus/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_REDIS_PLUS_PLUS
+ bool "redis-plus-plus"
+ select BR2_PACKAGE_HIREDIS
+ help
+ Redis client written in C++
+
+ This is a C++ client library for Redis.
+ It's based on hiredis, and is compatible
+ with C++ 17, C++ 14, and C++ 11.
+
+ https://github.com/sewenew/redis-plus-plus
diff --git a/package/redis-plus-plus/redis-plus-plus.hash b/package/redis-plus-plus/redis-plus-plus.hash
new file mode 100644
index 0000000..93e58e2
--- /dev/null
+++ b/package/redis-plus-plus/redis-plus-plus.hash
@@ -0,0 +1,3 @@
+# Locally calculated:
+sha256 a49a72fef26ed39d36a278fcc4e4d92822e111697b5992d8f26f70d16edc6c1f redis-plus-plus-1.3.5.tar.gz
+sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
diff --git a/package/redis-plus-plus/redis-plus-plus.mk b/package/redis-plus-plus/redis-plus-plus.mk
new file mode 100644
index 0000000..145fcbe
--- /dev/null
+++ b/package/redis-plus-plus/redis-plus-plus.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# redis-plus-plus
+#
+################################################################################
+
+REDIS_PLUS_PLUS_VERSION = 1.3.5
+REDIS_PLUS_PLUS_SITE = $(call github,sewenew,redis-plus-plus,$(REDIS_PLUS_PLUS_VERSION))
+REDIS_PLUS_PLUS_LICENSE = Apache-2.0 license
+REDIS_PLUS_PLUS_LICENSE_FILES = LICENSE
+REDIS_PLUS_PLUS_INSTALL_STAGING = YES
+REDIS_PLUS_PLUS_DEPENDENCIES += hiredis
+
+# since version 1.3.0, by default, redis-plus-plus is built with the -std=c++17 standard
+ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
+ ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y)
+ REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=14
+ else
+ REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=11
+ endif
+endif
+
+ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_9),y)
+ REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_BUILD_TEST=OFF
+endif
+
+$(eval $(cmake-package))
--
2.7.4
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v1 1/1] package/redis-plus-plus: new package
2022-10-07 21:19 prabhu sannachi via buildroot
@ 2023-07-14 9:58 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-14 9:58 UTC (permalink / raw)
To: prabhu sannachi via buildroot; +Cc: prabhu sannachi
Hello Prabhu,
After many months, I finally took the time to look at your patch and
apply it. A number of changes where needed, see below.
On Fri, 7 Oct 2022 16:19:32 -0500
prabhu sannachi via buildroot <buildroot@buildroot.org> wrote:
> From: prabhusannachi <prabhu.sannachi@collins.com>
The "From:" should match the Signed-off-by line, so I fixed that up.
> +N: Prabhu Sannachi <prabhu.sannachi@collins.com>
> +F: package/redis-plus-plus/
Indentation between N:/F: and the value is one tab.
> diff --git a/package/redis-plus-plus/Config.in b/package/redis-plus-plus/Config.in
> new file mode 100644
> index 0000000..3c23dc5
> --- /dev/null
> +++ b/package/redis-plus-plus/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_REDIS_PLUS_PLUS
> + bool "redis-plus-plus"
> + select BR2_PACKAGE_HIREDIS
Missing depends on BR2_INSTALL_LIBSTDCPP, since this software is
written in C++. And also the corresponding Config.in comment.
> +REDIS_PLUS_PLUS_VERSION = 1.3.5
Only one space after =
> +REDIS_PLUS_PLUS_SITE = $(call github,sewenew,redis-plus-plus,$(REDIS_PLUS_PLUS_VERSION))
> +REDIS_PLUS_PLUS_LICENSE = Apache-2.0 license
Only one space after =, just "Apache-2.0", without "license"
afterwards. We use SPDX license codes.
> +REDIS_PLUS_PLUS_LICENSE_FILES = LICENSE
> +REDIS_PLUS_PLUS_INSTALL_STAGING = YES
> +REDIS_PLUS_PLUS_DEPENDENCIES += hiredis
Just = instead of +=.
> +# since version 1.3.0, by default, redis-plus-plus is built with the -std=c++17 standard
> +ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),)
is more commonly used in Buildroot.
> + ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y)
> + REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=14
> + else
> + REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=11
> + endif
> +endif
We don't typically indent such code blocks.
> +
> +ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_9),y)
> + REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_BUILD_TEST=OFF
> +endif
We disable tests unconditionally usually, so I've done that as well.
Final commit at:
https://gitlab.com/buildroot.org/buildroot/-/commit/c46df9de21e718a9ed6a2df2bb945c386695d3bf
Thanks a lot for your contribution!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v1 1/1] package/redis-plus-plus: new package
@ 2022-10-07 21:19 prabhu sannachi via buildroot
2023-07-14 9:58 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: prabhu sannachi via buildroot @ 2022-10-07 21:19 UTC (permalink / raw)
To: buildroot; +Cc: prabhusannachi
From: prabhusannachi <prabhu.sannachi@collins.com>
Redis client written in C++
This is a C++ client library for Redis.
It's based on hiredis, and is compatible
with C++ 17, C++ 14, and C++ 11.
https://github.com/sewenew/redis-plus-plus
Signed-off-by: Prabhu Sannachi <prabhu.sannachi@collins.com>
---
DEVELOPERS | 3 +++
package/Config.in | 1 +
package/redis-plus-plus/Config.in | 11 +++++++++++
package/redis-plus-plus/redis-plus-plus.hash | 3 +++
package/redis-plus-plus/redis-plus-plus.mk | 27 +++++++++++++++++++++++++++
5 files changed, 45 insertions(+)
create mode 100644 package/redis-plus-plus/Config.in
create mode 100644 package/redis-plus-plus/redis-plus-plus.hash
create mode 100644 package/redis-plus-plus/redis-plus-plus.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 59121c6..2f24fca 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2435,6 +2435,9 @@ F: package/libdvbpsi/
F: package/mraa/
F: package/synergy/
+N: Prabhu Sannachi <prabhu.sannachi@collins.com>
+F: package/redis-plus-plus/
+
N: Rafal Susz <rafal.susz@gmail.com>
F: board/avnet/s6lx9_microboard/
F: configs/s6lx9_microboard_defconfig
diff --git a/package/Config.in b/package/Config.in
index e3a34d6..8235864 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1491,6 +1491,7 @@ if BR2_PACKAGE_POSTGRESQL
source "package/postgis/Config.in"
endif
source "package/redis/Config.in"
+ source "package/redis-plus-plus/Config.in"
source "package/rocksdb/Config.in"
source "package/sqlcipher/Config.in"
source "package/sqlite/Config.in"
diff --git a/package/redis-plus-plus/Config.in b/package/redis-plus-plus/Config.in
new file mode 100644
index 0000000..3c23dc5
--- /dev/null
+++ b/package/redis-plus-plus/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_REDIS_PLUS_PLUS
+ bool "redis-plus-plus"
+ select BR2_PACKAGE_HIREDIS
+ help
+ Redis client written in C++
+
+ This is a C++ client library for Redis.
+ It's based on hiredis, and is compatible
+ with C++ 17, C++ 14, and C++ 11.
+
+ https://github.com/sewenew/redis-plus-plus
diff --git a/package/redis-plus-plus/redis-plus-plus.hash b/package/redis-plus-plus/redis-plus-plus.hash
new file mode 100644
index 0000000..93e58e2
--- /dev/null
+++ b/package/redis-plus-plus/redis-plus-plus.hash
@@ -0,0 +1,3 @@
+# Locally calculated:
+sha256 a49a72fef26ed39d36a278fcc4e4d92822e111697b5992d8f26f70d16edc6c1f redis-plus-plus-1.3.5.tar.gz
+sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
diff --git a/package/redis-plus-plus/redis-plus-plus.mk b/package/redis-plus-plus/redis-plus-plus.mk
new file mode 100644
index 0000000..145fcbe
--- /dev/null
+++ b/package/redis-plus-plus/redis-plus-plus.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# redis-plus-plus
+#
+################################################################################
+
+REDIS_PLUS_PLUS_VERSION = 1.3.5
+REDIS_PLUS_PLUS_SITE = $(call github,sewenew,redis-plus-plus,$(REDIS_PLUS_PLUS_VERSION))
+REDIS_PLUS_PLUS_LICENSE = Apache-2.0 license
+REDIS_PLUS_PLUS_LICENSE_FILES = LICENSE
+REDIS_PLUS_PLUS_INSTALL_STAGING = YES
+REDIS_PLUS_PLUS_DEPENDENCIES += hiredis
+
+# since version 1.3.0, by default, redis-plus-plus is built with the -std=c++17 standard
+ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
+ ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y)
+ REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=14
+ else
+ REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_CXX_STANDARD=11
+ endif
+endif
+
+ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_9),y)
+ REDIS_PLUS_PLUS_CONF_OPTS += -DREDIS_PLUS_PLUS_BUILD_TEST=OFF
+endif
+
+$(eval $(cmake-package))
--
2.7.4
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-14 9:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 20:52 [Buildroot] [PATCH v1 1/1] package/redis-plus-plus: new package Sannachi, Prabhu Collins via buildroot
2022-10-07 21:19 prabhu sannachi via buildroot
2023-07-14 9:58 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).