Accepting request 898795 from home:wfrisch:branches:Base:System

Link /var/lib/tests/tar/bin/genfile as Position-Independent Executable
  (bsc#1184124).
  + tar-PIE.patch

OBS-URL: https://build.opensuse.org/request/show/898795
OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=104
This commit is contained in:
Marcus Meissner 2021-06-14 08:38:12 +00:00 committed by Git OBS Bridge
parent 9f0ea28535
commit 3deee6047a
3 changed files with 22 additions and 1 deletions

12
tar-PIE.patch Normal file
View File

@ -0,0 +1,12 @@
Index: tar-1.34/tests/Makefile.am
===================================================================
--- tar-1.34.orig/tests/Makefile.am
+++ tar-1.34/tests/Makefile.am
@@ -317,6 +317,7 @@ installcheck-local: $(check_PROGRAMS)
check_PROGRAMS = genfile checkseekhole ckmtime
genfile_SOURCES = genfile.c argcv.c argcv.h
+genfile_LDFLAGS = -pie
checkseekhole_SOURCES = checkseekhole.c
localedir = $(datadir)/locale

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jun 9 12:09:49 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Link /var/lib/tests/tar/bin/genfile as Position-Independent Executable
(bsc#1184124).
+ tar-PIE.patch
-------------------------------------------------------------------
Sun Feb 14 16:48:05 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -40,6 +40,7 @@ Patch3: %{name}-ignore_lone_zero_blocks.patch
#https://bugzilla.opensuse.org/show_bug.cgi?id=918487
Patch4: %{name}-recursive--files-from.patch
Patch5: add_readme-tests.patch
Patch6: tar-PIE.patch
BuildRequires: automake >= 1.15
BuildRequires: libacl-devel
BuildRequires: libselinux-devel
@ -77,7 +78,7 @@ Upstream testsuite for the package
Summary: Remote tape drive control server by GNU
Group: Productivity/Archiving/Backup
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
Provides: rmt
%description rmt
@ -108,6 +109,7 @@ it may as well access remote devices or files.
%patch3 -p1
#%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter -fPIE