SHA256
1
0
forked from pool/tomoyo-tools

Accepting request 80249 from security

Fix build: clone needs _GNU_SOURCE defined to be visible (forwarded request 80170 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/80249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tomoyo-tools?expand=0&rev=6
This commit is contained in:
Sascha Peilicke 2011-08-31 09:09:02 +00:00 committed by Git OBS Bridge
commit b08b39238b
3 changed files with 48 additions and 0 deletions

40
tomoyo-clone.patch Normal file
View File

@ -0,0 +1,40 @@
Index: tomoyo-tools/usr_lib_tomoyo/tomoyo-notifyd.c
===================================================================
--- tomoyo-tools.orig/usr_lib_tomoyo/tomoyo-notifyd.c
+++ tomoyo-tools/usr_lib_tomoyo/tomoyo-notifyd.c
@@ -20,6 +20,7 @@
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -29,7 +30,6 @@
#include <sys/file.h>
#include <syslog.h>
#include <time.h>
-#define _GNU_SOURCE
#include <sched.h>
#include <sys/mount.h>
Index: tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
===================================================================
--- tomoyo-tools.orig/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
+++ tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
@@ -20,6 +20,7 @@
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -33,7 +34,6 @@
#include <poll.h>
#include <signal.h>
#include <dirent.h>
-#define _GNU_SOURCE
#include <sched.h>
#include <sys/mount.h>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 29 11:34:54 UTC 2011 - aj@suse.de
- _GNU_SOURCE needs to be defined first, fix build
(patch tomoyo-clone.patch)
-------------------------------------------------------------------
Tue Jun 28 15:09:46 CEST 2011 - meissner@suse.de

View File

@ -29,6 +29,7 @@ Version: 2.3.0.20110511
Release: 1
Source0: http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/tomoyo-tools-%{downloadver}.tar.gz
Patch0: %{name}-makefile.patch
Patch1: tomoyo-clone.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -37,6 +38,7 @@ TOMOYO userland utilities.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%build
make CC="gcc $RPM_OPT_FLAGS"