From bb80c34131dc1b248ecf62a61425cba80b24d6d8d2c882368d3bb8c9ff658e68 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 22 Jun 2022 08:28:55 +0000 Subject: [PATCH] put upstream reference together with the patch OBS-URL: https://build.opensuse.org/package/show/filesharing/rtorrent?expand=0&rev=9 --- ...ils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch | 1 + rtorrent.spec | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch b/0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch index e291d48..4acab1b 100644 --- a/0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch +++ b/0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch @@ -2,6 +2,7 @@ From 954bfb70f24578ef33b1f77cf1a3d64fc2f2f595 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Mon, 20 Jun 2022 19:09:57 +1000 Subject: [PATCH] utils: lockfile: avoid stack overflow for lockfile buffer +References: https://github.com/rakshasa/rtorrent/pull/1169 Signed-off-by: Aleksa Sarai --- diff --git a/rtorrent.spec b/rtorrent.spec index a1bc8fb..fbad7c3 100644 --- a/rtorrent.spec +++ b/rtorrent.spec @@ -1,7 +1,7 @@ # # spec file for package rtorrent # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,7 +29,6 @@ Source2: rtorrent.desktop # This manpage copied from the 0.9.2 tarball as it was missing in later versions Source3: rtorrent.1 Source4: rtorrent.service -# FIX-UPSTREAM: Backport of . Patch1: 0001-utils-lockfile-avoid-stack-overflow-for-lockfile-buf.patch BuildRequires: automake BuildRequires: gcc-c++ @@ -49,8 +48,7 @@ background using screen. It supports fast-resume and session management. %prep -%setup -q -%patch1 -p1 +%autosetup -p1 %build # It's full of type pun violations