diff --git a/mc-pie.patch b/mc-pie.patch new file mode 100644 index 0000000..764d8b3 --- /dev/null +++ b/mc-pie.patch @@ -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 diff --git a/mc.changes b/mc.changes index 9886c36..d64a64e 100644 --- a/mc.changes +++ b/mc.changes @@ -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 diff --git a/mc.spec b/mc.spec index 24234f0..a583289 100644 --- a/mc.spec +++ b/mc.spec @@ -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 @@ -15,16 +15,13 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - - Name: mc Summary: Midnight Commander +License: GPL-2.0+ Group: Productivity/File utilities -License: GPLv2+ Url: http://www.midnight-commander.org/ Version: 4.7.5.3 -Release: 1 +Release: 0 Source: mc-%{version}.tar.lzma Source1: x11_browser Source2: %{name}.desktop @@ -49,6 +46,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 +114,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