From a3d9852b57c613d23247fc7c14ba9d40581ba2f00c913b2b0c7e0e68bdd2670b Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 21 Apr 2021 06:53:34 +0000 Subject: [PATCH] bsc#1185033 yotocabinet: binaries in /usr/bin/kc* not linked as pie OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/kyotocabinet?expand=0&rev=25 --- kyotocabinet-pie.patch | 15 +++++++++++++++ kyotocabinet.changes | 6 ++++++ kyotocabinet.spec | 5 +++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 kyotocabinet-pie.patch diff --git a/kyotocabinet-pie.patch b/kyotocabinet-pie.patch new file mode 100644 index 0000000..5aeedb4 --- /dev/null +++ b/kyotocabinet-pie.patch @@ -0,0 +1,15 @@ +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/configure.in ++++ b/configure.in 2021-04-21 06:45:28.707199498 +0000 +@@ -41,7 +41,7 @@ MYCPPFLAGS="-I. -I\$(INCLUDEDIR)" + MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1" + MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__" + MYLDFLAGS="-L. -L\$(LIBDIR)" +-MYCMDLDFLAGS="" ++MYCMDLDFLAGS="-pie" + MYCMDLIBS="" + MYLDLIBPATH="" + MYLDLIBPATHENV="LD_LIBRARY_PATH" diff --git a/kyotocabinet.changes b/kyotocabinet.changes index 63de73e..dbbf7ac 100644 --- a/kyotocabinet.changes +++ b/kyotocabinet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 21 06:51:44 UTC 2021 - Dr. Werner Fink + +- Add yet an other patch kyotocabinet-pie.patch + * link all executables as pie (bsc#1185033) + ------------------------------------------------------------------- Thu Mar 12 11:45:45 UTC 2020 - Martin Pluskal diff --git a/kyotocabinet.spec b/kyotocabinet.spec index eb7b610..ccd4a13 100644 --- a/kyotocabinet.spec +++ b/kyotocabinet.spec @@ -1,7 +1,7 @@ # # spec file for package kyotocabinet # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 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,8 @@ Source99: baselibs.conf # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch1: %{name}-fix_rpath.patch Patch2: configure-8-byte-atomics.patch -Patch4: kyotocabinet-fix-debuginfo.patch +Patch3: %{name}-pie.patch +Patch4: %{name}-fix-debuginfo.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++