From 6528b69885fa00c21db648c004be93b823d36d0d Mon Sep 17 00:00:00 2001
From: avijit-nervana <avijit.chakraborty@intel.com>
Date: Wed, 22 Aug 2018 11:33:42 -0700
Subject: [PATCH] Fixed the licence file names that was causing the nGraph
 build to fail.

---
 tensorflow/tools/pip_package/BUILD     |  2 +-
 third_party/ngraph/ngraph.BUILD        | 10 +---------
 third_party/ngraph/ngraph_tf.BUILD     | 10 +---------
 third_party/ngraph/nlohmann_json.BUILD | 10 +---------
 4 files changed, 4 insertions(+), 28 deletions(-)

diff --git a/tensorflow/tools/pip_package/BUILD b/tensorflow/tools/pip_package/BUILD
index 7645612cf14..91c5cd094c4 100644
--- a/tensorflow/tools/pip_package/BUILD
+++ b/tensorflow/tools/pip_package/BUILD
@@ -209,7 +209,7 @@ filegroup(
     ) + if_ngraph([
         "@ngraph//:LICENSE",
         "@ngraph_tf//:LICENSE",
-        "@nlohmann_json_lib//:LICENSE",
+        "@nlohmann_json_lib//:LICENSE.MIT",
     ]) + tf_additional_license_deps(),
 )
 
diff --git a/third_party/ngraph/ngraph.BUILD b/third_party/ngraph/ngraph.BUILD
index f73ce4f674c..31aa3cee516 100644
--- a/third_party/ngraph/ngraph.BUILD
+++ b/third_party/ngraph/ngraph.BUILD
@@ -1,14 +1,6 @@
 licenses(["notice"])  # 3-Clause BSD
 
-exports_files(["license.txt"])
-
-filegroup(
-    name = "LICENSE",
-    srcs = [
-        "license.txt",
-    ],
-    visibility = ["//visibility:public"],
-)
+exports_files(["LICENSE"])
 
 cc_library(
     name = "ngraph_core",
diff --git a/third_party/ngraph/ngraph_tf.BUILD b/third_party/ngraph/ngraph_tf.BUILD
index 0c2c8a718f8..4d96ccf2f22 100644
--- a/third_party/ngraph/ngraph_tf.BUILD
+++ b/third_party/ngraph/ngraph_tf.BUILD
@@ -1,14 +1,6 @@
 licenses(["notice"])  # 3-Clause BSD
 
-exports_files(["license.txt"])
-
-filegroup(
-    name = "LICENSE",
-    srcs = [
-        "license.txt",
-    ],
-    visibility = ["//visibility:public"],
-)
+exports_files(["LICENSE"])
 
 load(
     "@org_tensorflow//tensorflow:tensorflow.bzl",
diff --git a/third_party/ngraph/nlohmann_json.BUILD b/third_party/ngraph/nlohmann_json.BUILD
index a0b18a51cb4..04c8db6a961 100644
--- a/third_party/ngraph/nlohmann_json.BUILD
+++ b/third_party/ngraph/nlohmann_json.BUILD
@@ -1,14 +1,6 @@
 licenses(["notice"])  # 3-Clause BSD
 
-exports_files(["license.txt"])
-
-filegroup(
-    name = "LICENSE",
-    srcs = [
-        "license.txt",
-    ],
-    visibility = ["//visibility:public"],
-)
+exports_files(["LICENSE.MIT"])
 
 cc_library(
     name = "nlohmann_json_lib",