Accepting request 102578 from home:dlovasko:branches:Base:System

Fixed rpmlint warning - added -fpie and -pie to compilation and linking of consaver

OBS-URL: https://build.opensuse.org/request/show/102578
OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=33
This commit is contained in:
Stephan Kulow 2012-02-03 09:21:26 +00:00 committed by Git OBS Bridge
parent 78cdb279da
commit 4dd2c1be5a
3 changed files with 21 additions and 1 deletions

12
mc-pie.patch Normal file
View File

@ -0,0 +1,12 @@
Index: mc-4.7.5.3/src/consaver/Makefile.am
===================================================================
--- mc-4.7.5.3.orig/src/consaver/Makefile.am
+++ mc-4.7.5.3/src/consaver/Makefile.am
@@ -4,4 +4,6 @@ pkglibexec_PROGRAMS = cons.saver
cons_saver_SOURCES = cons.saver.c
-cons_saver_CFLAGS= -I$(top_srcdir)
+cons_saver_CFLAGS= -fpie -I$(top_srcdir)
+
+cons_saver_LDFLAGS= -pie

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 3 09:00:29 UTC 2012 - dlovasko@suse.com
- Fixed rpmlint warning - added -fpie and -pie to compilation and linking of consaver
-------------------------------------------------------------------
Wed Nov 23 09:28:21 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package mc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -49,6 +49,8 @@ Patch41: mc-multi-press-f-keys.patch
# Patches from Fedora
Patch50: mc-extensions.patch
Patch51: mc-mcviewsegfault.patch
#Patch adding -fpie and -pie to compilation and linking of setuid binaries
Patch52: mc-pie.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: audiofile-devel
BuildRequires: docbook-toys
@ -115,6 +117,7 @@ target directory.
%patch41
%patch50
%patch51
%patch52 -p1
pushd doc/hints
iconv -f iso8859-1 -t utf-8 -o mc.hint.tmp mc.hint && mv mc.hint.tmp mc.hint