guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#69472] [PATCH] Added avro-cpp v1.11


From: Lenoci, L. (Leonardo)
Subject: [bug#69472] [PATCH] Added avro-cpp v1.11
Date: Thu, 29 Feb 2024 08:51:50 +0000

gnu: avro-cpp: Added version 1.11

* gnu/packages/serialization.scm (avro-cpp-1.11): Added version 1.11
---
 gnu/packages/serialization.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/serialization.scm
b/gnu/packages/serialization.scm
index 331fae80cf..194a962d38 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2024 Paul A. Patience <paul@apatience.com>
 ;;; Copyright © 2024 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2024 Leonardo Lenoci <l.lenoci@science.leidenuniv.nl>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -102,6 +103,32 @@ (define-public avro-cpp-1.9
 implement RPC protocols.")
     (license license:asl2.0)))
 
+(define-public avro-cpp-1.11
+  (package
+    (inherit avro-cpp-1.9)
+    (version "1.11.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://archive.apache.org/dist/avro/avro-";
version
+                    "/avro-src-" version ".tar.gz"))
+              (sha256
+               (base32
"0d60vi4s8la0c64zfyydfy21690yf0px5bcsi5d1p8b06al8g9vf"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+        (add-after 'unpack 'chdir
+          (lambda _ (chdir "lang/c++")))
+         ;;; avoid that deprecation warnings with boost v.1.80.0
+         ;;; are treated as errors
+        (add-after 'chdir 'unset-Werror
+          (lambda _
+            (substitute* "CMakeLists.txt"
+              (("-Werror") ""))))       
+        )))
+    ))
+
 (define-public avro-cpp-1.9-for-irods
   (package
     (inherit avro-cpp-1.9)

base-commit: 8c0282cf543fe205a5b89201cd7bb8889121a07c
-- 
2.34.1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]