Accepting request 80170 from home:a_jaeger:branches:openSUSE:Factory
Fix build: clone needs _GNU_SOURCE defined to be visible OBS-URL: https://build.opensuse.org/request/show/80170 OBS-URL: https://build.opensuse.org/package/show/security/tomoyo-tools?expand=0&rev=9
This commit is contained in:
parent
e10cc24578
commit
4498244dfb
40
tomoyo-clone.patch
Normal file
40
tomoyo-clone.patch
Normal 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>
|
||||||
|
|
@ -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
|
Tue Jun 28 15:09:46 CEST 2011 - meissner@suse.de
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ Version: 2.3.0.20110511
|
|||||||
Release: 1
|
Release: 1
|
||||||
Source0: http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/tomoyo-tools-%{downloadver}.tar.gz
|
Source0: http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/tomoyo-tools-%{downloadver}.tar.gz
|
||||||
Patch0: %{name}-makefile.patch
|
Patch0: %{name}-makefile.patch
|
||||||
|
Patch1: tomoyo-clone.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -37,6 +38,7 @@ TOMOYO userland utilities.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CC="gcc $RPM_OPT_FLAGS"
|
make CC="gcc $RPM_OPT_FLAGS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user