diff --git a/tomoyo-clone.patch b/tomoyo-clone.patch new file mode 100644 index 0000000..41923a0 --- /dev/null +++ b/tomoyo-clone.patch @@ -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 + #include + #include +@@ -29,7 +30,6 @@ + #include + #include + #include +-#define _GNU_SOURCE + #include + #include + +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 + #include + #include +@@ -33,7 +34,6 @@ + #include + #include + #include +-#define _GNU_SOURCE + #include + #include + diff --git a/tomoyo-tools.changes b/tomoyo-tools.changes index 9ad11cf..2477901 100644 --- a/tomoyo-tools.changes +++ b/tomoyo-tools.changes @@ -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 diff --git a/tomoyo-tools.spec b/tomoyo-tools.spec index 1a89d59..800490b 100644 --- a/tomoyo-tools.spec +++ b/tomoyo-tools.spec @@ -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"