From da44a4bfaced37eed31b227b9ff928d0839423641cc10891579de3708e6ef7ca Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Fri, 5 Apr 2024 15:04:08 +0000 Subject: [PATCH] Accepting request 1161647 from home:pgajdos - remove dependency on /usr/bin/python3 using %python3_fix_shebang macro, [bsc#1212476] OBS-URL: https://build.opensuse.org/request/show/1161647 OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/lttng-ust?expand=0&rev=53 --- lttng-ust.changes | 6 ++++++ lttng-ust.spec | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lttng-ust.changes b/lttng-ust.changes index 37a94aa..f3b518a 100644 --- a/lttng-ust.changes +++ b/lttng-ust.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 26 08:02:10 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang macro, [bsc#1212476] + ------------------------------------------------------------------- Thu Dec 28 08:50:05 UTC 2023 - Dirk Müller diff --git a/lttng-ust.spec b/lttng-ust.spec index f0f7e73..07bbb67 100644 --- a/lttng-ust.spec +++ b/lttng-ust.spec @@ -1,7 +1,7 @@ # # spec file for package lttng-ust # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -108,9 +108,6 @@ applications using LTTng userspace tracing. %prep %autosetup -p1 -# Fix Python shebang. -sed -i -e "1s|^#!.*$|#!%{_bindir}/python3|" tools/lttng-gen-tp - %build export PYTHON=python3 %configure \ @@ -124,6 +121,7 @@ export PYTHON=python3 %install %make_install find %{buildroot} -type f -name "*.la" -delete -print +%python3_fix_shebang %post -n liblttng-ust%{sover} -p /sbin/ldconfig