SHA256
1
0
forked from pool/hxtools

Accepting request 80174 from devel:libraries:c_c++

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

OBS-URL: https://build.opensuse.org/request/show/80174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hxtools?expand=0&rev=8
This commit is contained in:
Sascha Peilicke 2011-08-31 08:41:27 +00:00 committed by Git OBS Bridge
parent 9f6136cfa4
commit 748824ac12
3 changed files with 20 additions and 0 deletions

12
hxtools-fix-clone.patch Normal file
View File

@ -0,0 +1,12 @@
Index: hxtools-20110721/sadmin/newns.c
===================================================================
--- hxtools-20110721.orig/sadmin/newns.c
+++ hxtools-20110721/sadmin/newns.c
@@ -2,6 +2,7 @@
* newns - start a new mount namespace
* released in the Public Domain
*/
+#define _GNU_SOURCE 1
#include <sys/types.h>
#include <sys/wait.h>
#include <sched.h>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 29 11:31:52 UTC 2011 - aj@suse.de
- clone needs _GNU_SOURCE defined to be visible (patch
hxtools-fix-clone.patch)
-------------------------------------------------------------------
Thu Jul 21 14:52:09 UTC 2011 - jengelh@medozas.de

View File

@ -26,6 +26,7 @@ Summary: Collection of day-to-day tools (binaries)
Source: %name-%version.tar.xz
Source2: %name-%version.tar.xz.asc
Patch1: hxtools-fix-clone.patch
License: GPL,PD
# freetype2, xorg-x11 for "bdftopcf"
BuildRequires: freetype2 libHX-devel >= 3.4 libcap-devel
@ -119,6 +120,7 @@ only important parts of a path.
%prep
%setup -q
%patch1 -p1
%build
%configure \