Line
Link Here
|
0 |
-- m4/m4-1.4.14.ebuild |
0 |
++ m4/m4-1.4.14.ebuild |
Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/m4/m4-1.4.14.ebuild,v 1.2 2010/03/20 09:33:26 the_paya Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/m4/m4-1.4.14.ebuild,v 1.2 2010/03/20 09:33:26 the_paya Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit eutils |
6 |
|
5 |
DESCRIPTION="GNU macro processor" |
7 |
DESCRIPTION="GNU macro processor" |
6 |
HOMEPAGE="http://www.gnu.org/software/m4/m4.html" |
8 |
HOMEPAGE="http://www.gnu.org/software/m4/m4.html" |
7 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" |
9 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" |
Lines 15-20
Link Here
|
15 |
DEPEND="|| ( app-arch/xz-utils app-arch/lzma-utils )" |
17 |
DEPEND="|| ( app-arch/xz-utils app-arch/lzma-utils )" |
16 |
RDEPEND="" |
18 |
RDEPEND="" |
17 |
|
19 |
|
|
|
20 |
src_unpack() { |
21 |
unpack ${A} |
22 |
cd "${S}" |
23 |
epatch "${FILESDIR}"/${PN}-1.4.14-gnulib_spawn.patch # 310335 |
24 |
} |
25 |
|
18 |
src_compile() { |
26 |
src_compile() { |
19 |
local myconf="" |
27 |
local myconf="" |
20 |
[[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g" |
28 |
[[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g" |
21 |
-- m4/files/m4-1.4.14-gnulib_spawn.patch |
29 |
++ m4/files/m4-1.4.14-gnulib_spawn.patch |
Line 0
Link Here
|
|
|
1 |
Don't override the system defined values on FreeBSD 8. |
2 |
See Gentoo bug #310335. |
3 |
Patch from upstream gnulib: |
4 |
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=88baa1ed437db0f062e49b87cff59002ec8f7ab2 |
5 |
|
6 |
--- m4-1.4.14/lib/spawn.in.h.orig |
7 |
+++ m4-1.4.14/lib/spawn.in.h |
8 |
@@ -110,17 +110,19 @@ |
9 |
|
10 |
|
11 |
/* Flags to be set in the `posix_spawnattr_t'. */ |
12 |
-#if @REPLACE_POSIX_SPAWN@ |
13 |
+#if !@HAVE_POSIX_SPAWN@ |
14 |
+# if @REPLACE_POSIX_SPAWN@ |
15 |
/* Use the values from the system, for better compatibility. */ |
16 |
/* But this implementation does not support AIX extensions. */ |
17 |
-# undef POSIX_SPAWN_FORK_HANDLERS |
18 |
-#else |
19 |
-# define POSIX_SPAWN_RESETIDS 0x01 |
20 |
-# define POSIX_SPAWN_SETPGROUP 0x02 |
21 |
-# define POSIX_SPAWN_SETSIGDEF 0x04 |
22 |
-# define POSIX_SPAWN_SETSIGMASK 0x08 |
23 |
-# define POSIX_SPAWN_SETSCHEDPARAM 0x10 |
24 |
-# define POSIX_SPAWN_SETSCHEDULER 0x20 |
25 |
+# undef POSIX_SPAWN_FORK_HANDLERS |
26 |
+# else |
27 |
+# define POSIX_SPAWN_RESETIDS 0x01 |
28 |
+# define POSIX_SPAWN_SETPGROUP 0x02 |
29 |
+# define POSIX_SPAWN_SETSIGDEF 0x04 |
30 |
+# define POSIX_SPAWN_SETSIGMASK 0x08 |
31 |
+# define POSIX_SPAWN_SETSCHEDPARAM 0x10 |
32 |
+# define POSIX_SPAWN_SETSCHEDULER 0x20 |
33 |
+# endif |
34 |
#endif |
35 |
/* A GNU extension. Use the next free bit position. */ |
36 |
#define POSIX_SPAWN_USEVFORK \ |