File json-feature-name.patch of Package tensorflow2

From 17c5edb99260ddb4fe0276cba6556956d101ebeb Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Mon, 10 Feb 2020 17:21:41 +0100
Subject: [PATCH] json feature name

---
 third_party/systemlibs/jsoncpp.BUILD | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/third_party/systemlibs/jsoncpp.BUILD b/third_party/systemlibs/jsoncpp.BUILD
index 0816930309..802c2553e9 100644
--- a/third_party/systemlibs/jsoncpp.BUILD
+++ b/third_party/systemlibs/jsoncpp.BUILD
@@ -13,6 +13,7 @@ HEADERS = [
     "include/json/features.h",
     "include/json/forwards.h",
     "include/json/json.h",
+    "include/json/json_features.h",
     "include/json/reader.h",
     "include/json/value.h",
     "include/json/version.h",
@@ -25,8 +26,9 @@ genrule(
     cmd = """
       for i in $(OUTS); do
         i=$${i##*/}
-        ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i
+        test -e $(INCLUDEDIR)/json/$$i && ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i
       done
+      test -e $(INCLUDEDIR)/json/json_features.h && ln -sf $(INCLUDEDIR)/json/json_features.h $(@D)/include/json/features.h || ln -sf $(INCLUDEDIR)/json/features.h $(@D)/include/json/json_features.h
     """,
 )
 
-- 
2.26.2

openSUSE Build Service is sponsored by