From: | "Lars Wendler (polynomial-c)" <polynomial-c@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-util/dwdiff/files: dwdiff-2.0.7-configure_fixes.patch |
Date: | Thu, 02 Jan 2014 09:33:17 |
Message-Id: | 20140102093314.D0E7F2004C@flycatcher.gentoo.org |
1 | polynomial-c 14/01/02 09:33:14 |
2 | |
3 | Added: dwdiff-2.0.7-configure_fixes.patch |
4 | Log: |
5 | Version bump. Fixed broken configure script (bug #496736). Removed old |
6 | |
7 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-util/dwdiff/files/dwdiff-2.0.7-configure_fixes.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/dwdiff/files/dwdiff-2.0.7-configure_fixes.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/dwdiff/files/dwdiff-2.0.7-configure_fixes.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: dwdiff-2.0.7-configure_fixes.patch |
16 | =================================================================== |
17 | --- dwdiff-2.0.7/config.pkg |
18 | +++ dwdiff-2.0.7/config.pkg |
19 | @@ -104,6 +104,7 @@ |
20 | |
21 | if [ "yes" = "${with_dwfilter}" ] ; then |
22 | cat > .config.c <<EOF |
23 | +#include <sys/types.h> |
24 | #include <unistd.h> |
25 | |
26 | int main(int argc, char *argv[]) { |
27 | @@ -114,8 +115,8 @@ |
28 | clean .config.o |
29 | |
30 | test_link "required functions for dwfilter" || { |
31 | - checkfunction "fork" 'pid_t pid = fork();' "<unistd.h>" |
32 | - checkfunction "open" 'execvp("test", NULL);' "<unistd.h>" |
33 | + checkfunction "fork" 'pid_t pid = fork();' "<unistd.h>" "<sys/types.h>" |
34 | + checkfunction "open" 'execvp("test", NULL);' "<unistd.h>" "<sys/types.h>" |
35 | check_message_result "!! A required function for dwfilter is not availabe. Try configuring with --without-dwfilter" |
36 | exit 1 |
37 | } |