Skip to content

Commit 633d652

Browse files
committed
fix: use http for UOregon TAU/PDT upstream URLs
The HTTPS certificate on www.cs.uoregon.edu is broken, causing SSL errors when fetching source tarballs and checking for updates. Switch Source0 URLs in tau and pdtoolkit spec files to http, and add an http fallback in the package update checker script. Generated with Claude Code (https://claude.ai/code) Signed-off-by: Adrian Reber <areber@redhat.com>
1 parent 96b0e63 commit 633d652

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

components/perf-tools/pdtoolkit/SPECS/pdtoolkit.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ License: Program Database Toolkit License
2222
Summary: PDT is a framework for analyzing source code
2323
Url: http://www.cs.uoregon.edu/Research/pdt
2424
Group: %{PROJ_NAME}/perf-tools
25-
Source0: https://www.cs.uoregon.edu/research/paracomp/pdtoolkit/Download/pdtoolkit-%{version}.tar.gz
25+
# upstream https certificate is broken, use http
26+
Source0: http://www.cs.uoregon.edu/research/paracomp/pdtoolkit/Download/pdtoolkit-%{version}.tar.gz
2627
Patch1: pdtoolkit-3.25-umask.patch
2728
Patch2: pdtoolkit-icx.patch
2829
Provides: %{name} = %{version}%{release}

components/perf-tools/tau/SPECS/tau.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Summary: Tuning and Analysis Utilities Profiling Package
2424
License: Tuning and Analysis Utilities License
2525
Group: %{PROJ_NAME}/perf-tools
2626
Url: http://www.cs.uoregon.edu/research/tau/home.php
27-
Source0: https://www.cs.uoregon.edu/research/tau/tau_releases/tau-%{version}.tar.gz
27+
# upstream https certificate is broken, use http
28+
Source0: http://www.cs.uoregon.edu/research/tau/tau_releases/tau-%{version}.tar.gz
2829
Patch1: tau-2.34.1.patch
2930

3031
Provides: lib%{PNAME}.so()(64bit)(%{PROJ_NAME})

misc/check_for_package_updates.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,17 @@ def get_latest_uoregon_tau_version(
729729
try:
730730
r = requests.get(base_url, timeout=30)
731731
except requests.exceptions.SSLError:
732+
# upstream https certificate is broken, fall back to http
732733
debug_warn(
733-
f"SSL certificate error fetching {base_url}",
734+
f"SSL certificate error fetching {base_url}, falling back to HTTP",
734735
verbose,
735736
)
736-
return None
737+
base_url = f"http://www.cs.uoregon.edu/research/tau/{directory}/"
738+
try:
739+
r = requests.get(base_url, timeout=30)
740+
except requests.RequestException as e:
741+
debug_warn(f"HTTP fallback also failed: {e}", verbose)
742+
return None
737743
if not r.ok:
738744
debug_warn(
739745
f"Failed to fetch UOregon TAU directory listing for {directory}",

0 commit comments

Comments
 (0)