From c69106cb1f59bf57a9037e7952be1ef0a341c24a Mon Sep 17 00:00:00 2001 From: ut004527 Date: Fri, 17 Dec 2021 16:20:40 +0800 Subject: [PATCH] fix bug --- 9000-fix-unable-open-browser.patch | 24 ++++++++++++++++++++++++ gperftools.spec | 7 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 9000-fix-unable-open-browser.patch diff --git a/9000-fix-unable-open-browser.patch b/9000-fix-unable-open-browser.patch new file mode 100644 index 0000000..02e31f7 --- /dev/null +++ b/9000-fix-unable-open-browser.patch @@ -0,0 +1,24 @@ +diff --git a/pprof-symbolize b/pprof-symbolize +index 3a816c6..d0eff2c 100755 +--- a/pprof-symbolize ++++ b/pprof-symbolize +@@ -789,6 +789,7 @@ sub RunWeb { + # (Stop once we find one.) + # Works best if the browser is already running. + my @alt = ( ++ "/usr/share/browser/browser", + "/etc/alternatives/gnome-www-browser", + "/etc/alternatives/x-www-browser", + "google-chrome", +diff --git a/src/pprof b/src/pprof +index 3a816c6..d0eff2c 100755 +--- a/src/pprof ++++ b/src/pprof +@@ -789,6 +789,7 @@ sub RunWeb { + # (Stop once we find one.) + # Works best if the browser is already running. + my @alt = ( ++ "/usr/share/browser/browser", + "/etc/alternatives/gnome-www-browser", + "/etc/alternatives/x-www-browser", + "google-chrome", diff --git a/gperftools.spec b/gperftools.spec index 27c6775..05412da 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -1,6 +1,6 @@ Name: gperftools Version: 2.8 -Release: 2 +Release: 3 Summary: high-performance malloc and performance analysis tools License: BSD @@ -8,6 +8,7 @@ URL: https://github.com/gperftools/gperftools Source0: https://github.com/gperftools/gperftools/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz patch1 : gperftools-generic-dynamic-tls.patch Patch9000: issue-1122-fix-bus-error-on-aarch64.patch +Patch9001: 9000-fix-unable-open-browser.patch BuildRequires: autoconf automake gcc-c++ gdb BuildRequires: libtool libunwind-devel perl-generators @@ -99,6 +100,10 @@ make %{_mandir}/man1/*.1.gz %changelog +* Fri Dec 17 2021 wangqia - 2.8-3 +- Type:bugfix +- DESC:fix-unable-open-browser + * Tue Sep 22 2020 liuzixian - 2.8-2 - Type: bufgix - Reason: add patch gperftools-generic-dynamic-tls.patch to fix issue #I1VAEU. -- Gitee