guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: gRPC: Re-add custom c-ares variant.


From: guix-commits
Subject: 02/03: gnu: gRPC: Re-add custom c-ares variant.
Date: Mon, 15 Jul 2019 11:07:58 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit c1cb85bf765e71aef674a132df644f4edf06a8e1
Author: Marius Bakke <address@hidden>
Date:   Mon Jul 15 16:51:16 2019 +0200

    gnu: gRPC: Re-add custom c-ares variant.
    
    Commit e8393ebe46d9ad09aceb152618db490378ba5ded updated c-ares without 
knowing
    that cmake-build-system was the most important feature of 'c-ares-next'.
    
    * gnu/packages/adns.scm (c-ares/cmake): New hidden package.
    * gnu/packages/machine-learning.scm (grpc)[inputs]: Change C-ARES to 
C-ARES/CMAKE.
---
 gnu/packages/adns.scm             | 15 +++++++++++++++
 gnu/packages/machine-learning.scm |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/adns.scm b/gnu/packages/adns.scm
index f6df825..541612d 100644
--- a/gnu/packages/adns.scm
+++ b/gnu/packages/adns.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2014 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2015, 2016, 2018 Efraim Flashner <address@hidden>
 ;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2019 Marius Bakke <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -82,3 +83,17 @@ queries without blocking, or need to perform multiple DNS 
queries in parallel.
 The primary examples of such applications are servers which communicate with
 multiple clients and programs with graphical user interfaces.")
     (license (x11-style "https://c-ares.haxx.se/license.html";))))
+
+;; gRPC requires a c-ares built with CMake in order to get the .cmake modules.
+;; We can not build c-ares itself with CMake because that would introduce a
+;; circular dependency through nghttp2.
+;; XXX: It would be nice if we could extract the modules somehow and make them
+;; work with the "normal" c-ares package instead of building a whole new 
library.
+(define-public c-ares/cmake
+  (hidden-package
+   (package
+     (inherit c-ares)
+     (build-system cmake-build-system)
+     (arguments
+      `(;; XXX: Tests require name resolution (the normal variant runs no 
tests).
+        #:tests? #f)))))
diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index fc52736..ace52b4 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1292,7 +1292,7 @@ Python.")
              "-DgRPC_SSL_PROVIDER=package"
              "-DgRPC_PROTOBUF_PROVIDER=package")))
     (inputs
-     `(("c-ares" ,c-ares)
+     `(("c-ares" ,c-ares/cmake)
        ("openssl" ,openssl)
        ("zlib" ,zlib)))
     (native-inputs



reply via email to

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