-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Isidor Zeuner
committed
Oct 12, 2024
1 parent
c428490
commit 660de55
Showing
12 changed files
with
164 additions
and
176 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
pkgs/development/python-modules/tensorflow/compute-links.patch
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
pkgs/development/python-modules/tensorflow/compute-relative.sh
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
pkgs/development/python-modules/tensorflow/core-riegeli-proto.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff -Naurd x/tensorflow/workspace2.bzl y/tensorflow/workspace2.bzl | ||
--- x/tensorflow/workspace2.bzl 2023-12-07 09:42:06.557980143 +0000 | ||
+++ y/tensorflow/workspace2.bzl 2023-12-07 09:43:50.613924139 +0000 | ||
@@ -862,6 +862,7 @@ | ||
tf_http_archive( | ||
name = "riegeli", | ||
sha256 = "870ca080cdfc5eba696a72ccc3a54cbf0f2271befc0d459eafa8f065edfaadb2", | ||
+ patch_file = ["//third_party:riegeli-proto.patch"], | ||
strip_prefix = "riegeli-264ef7b4a1314d97265b37544b27cd3923ea72d2", | ||
urls = tf_mirror_urls("https://github.com/google/riegeli/archive/264ef7b4a1314d97265b37544b27cd3923ea72d2.zip"), | ||
) |
11 changes: 5 additions & 6 deletions
11
pkgs/development/python-modules/tensorflow/core-rules-python-use-nix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
pkgs/development/python-modules/tensorflow/fix-syslib-references.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
diff -Naurd x/tensorflow/tools/pip_package/BUILD y/tensorflow/tools/pip_package/BUILD | ||
--- x/tensorflow/tools/pip_package/BUILD 2023-10-14 20:09:43.001857258 +0000 | ||
+++ y/tensorflow/tools/pip_package/BUILD 2023-10-14 20:15:17.894102008 +0000 | ||
@@ -208,7 +208,7 @@ | ||
@@ -209,7 +209,7 @@ | ||
"@com_google_protobuf//:LICENSE", | ||
"@curl//:COPYING", | ||
"@dill_archive//:LICENSE", | ||
"@ducc//:LICENSE", | ||
- "@flatbuffers//:LICENSE", | ||
+ "@flatbuffers//:LICENSE.txt", | ||
"@gast_archive//:PKG-INFO", | ||
"@gemmlowp//:LICENSE", | ||
"@libjpeg_turbo//:LICENSE.md", | ||
"@llvm-project//llvm:LICENSE.TXT", |
27 changes: 27 additions & 0 deletions
27
pkgs/development/python-modules/tensorflow/protobuf_cc_toolchain.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff -Naurd x/third_party/systemlibs/protobuf.BUILD y/third_party/systemlibs/protobuf.BUILD | ||
--- x/third_party/systemlibs/protobuf.BUILD 2023-12-03 15:39:27.742087246 +0000 | ||
+++ y/third_party/systemlibs/protobuf.BUILD 2023-12-04 13:25:41.777638732 +0000 | ||
@@ -1,4 +1,8 @@ | ||
-load("@rules_proto//proto:defs.bzl", "proto_library") | ||
+load( | ||
+ "@rules_proto//proto:defs.bzl", | ||
+ "proto_lang_toolchain", | ||
+ "proto_library", | ||
+) | ||
load( | ||
"@com_google_protobuf//:protobuf.bzl", | ||
"cc_proto_library", | ||
@@ -118,3 +122,13 @@ | ||
srcs = [proto[1][0] for proto in WELL_KNOWN_PROTO_MAP.items()], | ||
visibility = ["//visibility:public"], | ||
) | ||
+ | ||
+proto_lang_toolchain( | ||
+ name = "cc_toolchain", | ||
+ blacklisted_protos = [ | ||
+ "//:compiler_plugin_proto", | ||
+ "//:descriptor_proto", | ||
+ ], | ||
+ command_line = "--cpp_out=$(OUT)", | ||
+ visibility = ["//visibility:public"], | ||
+) |
16 changes: 16 additions & 0 deletions
16
pkgs/development/python-modules/tensorflow/protobuf_lite.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff -Naurd x/third_party/systemlibs/protobuf.BUILD y/third_party/systemlibs/protobuf.BUILD | ||
--- x/third_party/systemlibs/protobuf.BUILD 2023-12-03 15:39:27.742087246 +0000 | ||
+++ y/third_party/systemlibs/protobuf.BUILD 2023-12-03 20:23:49.345014695 +0000 | ||
@@ -66,6 +66,12 @@ | ||
) | ||
|
||
cc_library( | ||
+ name = "protobuf_lite", | ||
+ linkopts = ["-lprotobuf-lite"], | ||
+ visibility = ["//visibility:public"], | ||
+) | ||
+ | ||
+cc_library( | ||
name = "protobuf_headers", | ||
linkopts = ["-lprotobuf"], | ||
visibility = ["//visibility:public"], |
36 changes: 36 additions & 0 deletions
36
pkgs/development/python-modules/tensorflow/riegeli-proto.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff -Naurd x/riegeli/records/BUILD y/riegeli/records/BUILD | ||
--- x/riegeli/records/BUILD 2023-12-06 16:24:03.939575600 +0000 | ||
+++ y/riegeli/records/BUILD 2023-12-06 16:23:00.079531687 +0000 | ||
@@ -1,4 +1,4 @@ | ||
-load("@rules_proto//proto:defs.bzl", "proto_library") | ||
+load("@local_tsl//tsl/platform:build_config.bzl", "tf_proto_library") | ||
|
||
package( | ||
default_visibility = ["//visibility:public"], | ||
@@ -14,7 +14,7 @@ | ||
deps = [ | ||
":chunk_reader", | ||
":record_position", | ||
- ":records_metadata_cc_proto", | ||
+ ":records_metadata_proto_cc_impl", | ||
":skipped_region", | ||
"//riegeli/base:arithmetic", | ||
"//riegeli/base:assert", | ||
@@ -184,13 +184,10 @@ | ||
], | ||
) | ||
|
||
-proto_library( | ||
+tf_proto_library( | ||
name = "records_metadata_proto", | ||
srcs = ["records_metadata.proto"], | ||
- deps = ["@com_google_protobuf//:descriptor_proto"], | ||
-) | ||
- | ||
-cc_proto_library( | ||
- name = "records_metadata_cc_proto", | ||
- deps = [":records_metadata_proto"], | ||
+ cc_api_version = 2, | ||
+ make_default_target_header_only = True, | ||
+ visibility = ["//visibility:public"], | ||
) |
Oops, something went wrong.