From 4498244dfb38ef9d59be1f969ea5c13d108b477b5b88b4ff1fc9e474e33f8d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Tue, 30 Aug 2011 17:43:26 +0000 Subject: [PATCH] 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 --- tomoyo-clone.patch | 40 ++++++++++++++++++++++++++++++++++++++++ tomoyo-tools.changes | 6 ++++++ tomoyo-tools.spec | 2 ++ 3 files changed, 48 insertions(+) create mode 100644 tomoyo-clone.patch 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"