-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch glog to work with canonical label literals (#106)
- Loading branch information
1 parent
454ba0e
commit 96eb631
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
modules/glog/0.5.0/patches/remove_only_the_first_leading_at.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,13 @@ | ||
diff --git a/bazel/glog.bzl b/bazel/glog.bzl | ||
index 40833b4..bcbdc8a 100644 | ||
--- a/bazel/glog.bzl | ||
+++ b/bazel/glog.bzl | ||
@@ -33,7 +33,7 @@ def dict_union(x, y): | ||
|
||
def glog_library(namespace = "google", with_gflags = 1, **kwargs): | ||
if native.repository_name() != "@": | ||
- repo_name = native.repository_name().lstrip("@") | ||
+ repo_name = native.repository_name()[1:] # Strip the first leading @ | ||
gendir = "$(GENDIR)/external/" + repo_name | ||
src_windows = "external/%s/src/windows" % repo_name | ||
else: |
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,5 +1,9 @@ | ||
{ | ||
"integrity": "sha256-7t5x8oNxvzmqabRd4jsynTchQBbiBVJps7Xnz9QLWfU=", | ||
"patch_strip": 1, | ||
"patches": { | ||
"remove_only_the_first_leading_at.patch": "sha256-ieceuBwB5MiGzs1ES3FKKLTCuHwxxERo2clZn5h8S3g=" | ||
}, | ||
"strip_prefix": "glog-0.5.0", | ||
"url": "https://github.com/google/glog/archive/refs/tags/v0.5.0.tar.gz" | ||
} |