diff --git a/tar-PIE.patch b/tar-PIE.patch new file mode 100644 index 0000000..35e94ea --- /dev/null +++ b/tar-PIE.patch @@ -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 diff --git a/tar.changes b/tar.changes index 5aca40f..e34574a 100644 --- a/tar.changes +++ b/tar.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jun 9 12:09:49 UTC 2021 - Wolfgang Frisch + +- 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 diff --git a/tar.spec b/tar.spec index b5cf817..7abea24 100644 --- a/tar.spec +++ b/tar.spec @@ -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