-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes of v0.35 #24
Merged
Merged
Changes of v0.35 #24
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,7 +1,7 @@ | ||
From 5a61b66f64effbd8ba23d47be5b0e9541627611b Mon Sep 17 00:00:00 2001 | ||
From: Nishidha Panpaliya <[email protected].com> | ||
Date: Thu, 10 Nov 2022 06:22:08 +0000 | ||
Subject: [PATCH] Fixed upb | ||
From ba38899537e133a7efec0919e94e0eb70bf66fb9 Mon Sep 17 00:00:00 2001 | ||
From: Archana Shinde1 <archana.shinde2504@gmail.com> | ||
Date: Wed, 20 Dec 2023 16:40:57 +0000 | ||
Subject: [PATCH] Fixed-upb | ||
|
||
--- | ||
WORKSPACE | 12 +++++++++ | ||
|
@@ -10,13 +10,13 @@ Subject: [PATCH] Fixed upb | |
create mode 100644 third_party/upb_gcc10.patch | ||
|
||
diff --git a/WORKSPACE b/WORKSPACE | ||
index ed06afb9..1fd65ae9 100644 | ||
index c60b5d8f..d5641000 100644 | ||
--- a/WORKSPACE | ||
+++ b/WORKSPACE | ||
@@ -15,6 +15,18 @@ http_archive( | ||
], | ||
) | ||
|
||
+http_archive( | ||
+ name = "upb", | ||
+ sha256 = "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454", | ||
|
@@ -34,27 +34,41 @@ index ed06afb9..1fd65ae9 100644 | |
name = "snappy", | ||
diff --git a/third_party/upb_gcc10.patch b/third_party/upb_gcc10.patch | ||
new file mode 100644 | ||
index 00000000..7d747c48 | ||
index 00000000..6fed76a0 | ||
--- /dev/null | ||
+++ b/third_party/upb_gcc10.patch | ||
@@ -0,0 +1,54 @@ | ||
+From 57028552ed072263cd6656e5feed67ff89a55e43 Mon Sep 17 00:00:00 2001 | ||
+From: Nishidha Panpaliya <npanpa23@in.ibm.com> | ||
+Date: Mon, 7 Mar 2022 15:08:33 +0000 | ||
+Subject: [PATCH] Fix for build failure with GCC10 | ||
@@ -0,0 +1,68 @@ | ||
+From bf999f71058f05330f8dce75d2113770e7c580ca Mon Sep 17 00:00:00 2001 | ||
+From: Deepali Chourasia <deepch23@in.ibm.com> | ||
+Date: Wed, 27 Dec 2023 07:42:32 +0000 | ||
+Subject: [PATCH] fix | ||
+ | ||
+--- | ||
+ BUILD | 2 +- | ||
+ upb/upb.c | 17 +++-------------- | ||
+ 1 file changed, 3 insertions(+), 14 deletions(-) | ||
+ 2 files changed, 4 insertions(+), 15 deletions(-) | ||
+ | ||
+diff --git a/BUILD b/BUILD | ||
+index ad85b202..2311b2e4 100644 | ||
+--- a/BUILD | ||
++++ b/BUILD | ||
+@@ -44,7 +44,7 @@ config_setting( | ||
+ | ||
+ config_setting( | ||
+ name = "windows", | ||
+- constraint_values = ["@bazel_tools//platforms:windows"], | ||
++ constraint_values = ["@platforms//os:windows"], | ||
+ ) | ||
+ | ||
+ config_setting( | ||
+diff --git a/upb/upb.c b/upb/upb.c | ||
+index 266ea7d..1410b2d 100644 | ||
+index 266ea7d7..1410b2d8 100644 | ||
+--- a/upb/upb.c | ||
++++ b/upb/upb.c | ||
+@@ -11,17 +11,6 @@ | ||
+ | ||
+ | ||
+ #include "upb/port_def.inc" | ||
+ | ||
+ | ||
+-/* Guarantee null-termination and provide ellipsis truncation. | ||
+- * It may be tempting to "optimize" this by initializing these final | ||
+- * four bytes up-front and then being careful never to overwrite them, | ||
|
@@ -67,7 +81,7 @@ index 00000000..7d747c48 | |
+-} | ||
+- | ||
+ /* upb_status *****************************************************************/ | ||
+ | ||
+ | ||
+ void upb_status_clear(upb_status *status) { | ||
+@@ -37,8 +26,8 @@ const char *upb_status_errmsg(const upb_status *status) { return status->msg; } | ||
+ void upb_status_seterrmsg(upb_status *status, const char *msg) { | ||
|
@@ -78,7 +92,7 @@ index 00000000..7d747c48 | |
++ strncpy(status->msg, msg, UPB_STATUS_MAX_MESSAGE - 1); | ||
++ status->msg[UPB_STATUS_MAX_MESSAGE - 1] = '\0'; | ||
+ } | ||
+ | ||
+ | ||
+ void upb_status_seterrf(upb_status *status, const char *fmt, ...) { | ||
+@@ -52,7 +41,7 @@ void upb_status_vseterrf(upb_status *status, const char *fmt, va_list args) { | ||
+ if (!status) return; | ||
|
@@ -87,11 +101,12 @@ index 00000000..7d747c48 | |
+- nullz(status); | ||
++ status->msg[UPB_STATUS_MAX_MESSAGE - 1] = '\0'; | ||
+ } | ||
+ | ||
+ | ||
+ /* upb_alloc ******************************************************************/ | ||
+-- | ||
+2.34.1 | ||
+-- | ||
+2.40.1 | ||
+ | ||
-- | ||
2.34.1 | ||
-- | ||
2.40.1 | ||
|
||
|
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls remove this and corresponding patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its Done