Skip to content

Commit

Permalink
Patch glog to work with canonical label literals (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Jun 15, 2022
1 parent 454ba0e commit 96eb631
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/glog/0.5.0/patches/remove_only_the_first_leading_at.patch
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:
4 changes: 4 additions & 0 deletions modules/glog/0.5.0/source.json
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"
}

0 comments on commit 96eb631

Please sign in to comment.