diff --git a/hxtools-fix-clone.patch b/hxtools-fix-clone.patch new file mode 100644 index 0000000..f29ac72 --- /dev/null +++ b/hxtools-fix-clone.patch @@ -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 + #include + #include diff --git a/hxtools.changes b/hxtools.changes index a3c6b3a..ce21239 100644 --- a/hxtools.changes +++ b/hxtools.changes @@ -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 diff --git a/hxtools.spec b/hxtools.spec index a4b8d6f..9869d9e 100644 --- a/hxtools.spec +++ b/hxtools.spec @@ -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 \