Skip to content

Commit 3c58fb7

Browse files
authored
Adjust libpfm4 dep to use git instead of the tar. (#4413)
The .tar.gz link is currently broken (I think wget used to work, now it doesn't); not sure if that's deliberate since it's a download page. I'm hoping the new location remains more reliable. Note I tried using SourceForge's git directly. That works locally, but on the action runners it seems to be blocked: ``` fatal: unable to access 'https://git.code.sf.net/p/perfmon2/libpfm4/': Failed to connect to git.code.sf.net port 443 after 5 ms: Connection refused ```
1 parent 9d942f4 commit 3c58fb7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

MODULE.bazel

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,17 @@ bazel_dep(name = "libpfm", version = "4.11.0")
5353

5454
libpfm_version = "4.13.0"
5555

56+
# The official site is https://perfmon2.sourceforge.net/, but SourceForge makes
57+
# it difficult to download from bazel. On GitHub action runners,
58+
# https://git.code.sf.net/p/perfmon2/libpfm4 seems to be blocked. As a
59+
# consequence, use a mirror.
5660
archive_override(
5761
module_name = "libpfm",
58-
integrity = "sha256-0YuXdkx1VSjBBR03bjNUXQ62DG6/hWgENoE/pbBMw9E=",
62+
integrity = "sha256-sGBx1+UoQCplBCc+pwA1Tr/PS2L/4jnLZHH82wSuPz0=",
5963
patch_strip = 1,
6064
patches = ["@//bazel/libpfm:0001-Introduce-a-simple-native-Bazel-build.patch"],
61-
strip_prefix = "libpfm-{0}".format(libpfm_version),
62-
urls = ["https://sourceforge.net/projects/perfmon2/files/libpfm4/libpfm-{0}.tar.gz".format(libpfm_version)],
65+
strip_prefix = "libpfm4-{0}".format(libpfm_version),
66+
urls = ["https://github.com/wcohen/libpfm4/archive/v{0}.tar.gz".format(libpfm_version)],
6367
)
6468

6569
# The registry has a snapshot, but upstream is active and not regularly marking

0 commit comments

Comments
 (0)