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
This commit is contained in:
Dr. Werner Fink 2021-04-21 06:53:34 +00:00 committed by Git OBS Bridge
parent 0ca56f47ca
commit a3d9852b57
3 changed files with 24 additions and 2 deletions

15
kyotocabinet-pie.patch Normal file
View File

@ -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"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 21 06:51:44 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- 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 <mpluskal@suse.com>

View File

@ -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++