summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr/apr
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/apr/apr')
-rw-r--r--meta/recipes-support/apr/apr/cleanup.patch42
-rw-r--r--meta/recipes-support/apr/apr/configfix.patch51
-rw-r--r--meta/recipes-support/apr/apr/configure_fixes.patch66
3 files changed, 159 insertions, 0 deletions
diff --git a/meta/recipes-support/apr/apr/cleanup.patch b/meta/recipes-support/apr/apr/cleanup.patch
new file mode 100644
index 0000000000..fd74826480
--- /dev/null
+++ b/meta/recipes-support/apr/apr/cleanup.patch
@@ -0,0 +1,42 @@
1Index: apr-1.3.3/build/buildcheck.sh
2===================================================================
3--- apr-1.3.3.orig/build/buildcheck.sh 2009-01-15 13:32:33.000000000 +0000
4+++ apr-1.3.3/build/buildcheck.sh 2009-01-15 13:33:06.000000000 +0000
5@@ -32,35 +32,4 @@
6 echo "buildconf: autoconf version $ac_version (ok)"
7 fi
8
9-# Sample libtool --version outputs:
10-# ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
11-# ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a
12-# output is multiline from 1.5 onwards
13-
14-# Require libtool 1.4 or newer
15-libtool=`build/PrintPath glibtool libtool libtool15 libtool14`
16-lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
17-if test -z "$lt_pversion"; then
18-echo "buildconf: libtool not found."
19-echo " You need libtool version 1.4 or newer installed"
20-echo " to build APR from SVN."
21-exit 1
22-fi
23-lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
24-IFS=.; set $lt_version; IFS=' '
25-lt_status="good"
26-if test "$1" = "1"; then
27- if test "$2" -lt "4"; then
28- lt_status="bad"
29- fi
30-fi
31-if test $lt_status = "good"; then
32- echo "buildconf: libtool version $lt_pversion (ok)"
33- exit 0
34-fi
35-
36-echo "buildconf: libtool version $lt_pversion found."
37-echo " You need libtool version 1.4 or newer installed"
38-echo " to build APR from SVN."
39-
40-exit 1
41+exit 0
42\ No newline at end of file
diff --git a/meta/recipes-support/apr/apr/configfix.patch b/meta/recipes-support/apr/apr/configfix.patch
new file mode 100644
index 0000000000..995555e8ba
--- /dev/null
+++ b/meta/recipes-support/apr/apr/configfix.patch
@@ -0,0 +1,51 @@
1Index: apr-1.3.3/apr-config.in
2===================================================================
3--- apr-1.3.3.orig/apr-config.in 2009-01-12 15:16:31.000000000 +0000
4+++ apr-1.3.3/apr-config.in 2009-01-12 15:19:25.000000000 +0000
5@@ -152,14 +152,7 @@
6 flags="$flags $LDFLAGS"
7 ;;
8 --includes)
9- if test "$location" = "installed"; then
10 flags="$flags -I$includedir $EXTRA_INCLUDES"
11- elif test "$location" = "source"; then
12- flags="$flags -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
13- else
14- # this is for VPATH builds
15- flags="$flags -I$APR_BUILD_DIR/include -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
16- fi
17 ;;
18 --srcdir)
19 echo $APR_SOURCE_DIR
20@@ -181,29 +167,14 @@
21 exit 0
22 ;;
23 --link-ld)
24- if test "$location" = "installed"; then
25- ### avoid using -L if libdir is a "standard" location like /usr/lib
26- flags="$flags -L$libdir -l${APR_LIBNAME}"
27- else
28- ### this surely can't work since the library is in .libs?
29- flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"
30- fi
31+ flags="$flags -l${APR_LIBNAME}"
32 ;;
33 --link-libtool)
34 # If the LA_FILE exists where we think it should be, use it. If we're
35 # installed and the LA_FILE does not exist, assume to use -L/-l
36 # (the LA_FILE may not have been installed). If we're building ourselves,
37 # we'll assume that at some point the .la file be created.
38- if test -f "$LA_FILE"; then
39- flags="$flags $LA_FILE"
40- elif test "$location" = "installed"; then
41- ### avoid using -L if libdir is a "standard" location like /usr/lib
42- # Since the user is specifying they are linking with libtool, we
43- # *know* that -R will be recognized by libtool.
44- flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
45- else
46- flags="$flags $LA_FILE"
47- fi
48+ flags="$flags -l${APR_LIBNAME}"
49 ;;
50 --shlib-path-var)
51 echo "$SHLIBPATH_VAR"
diff --git a/meta/recipes-support/apr/apr/configure_fixes.patch b/meta/recipes-support/apr/apr/configure_fixes.patch
new file mode 100644
index 0000000000..86ceb8cf08
--- /dev/null
+++ b/meta/recipes-support/apr/apr/configure_fixes.patch
@@ -0,0 +1,66 @@
1Index: apr-1.3.3/configure.in
2===================================================================
3--- apr-1.3.3.orig/configure.in
4+++ apr-1.3.3/configure.in
5@@ -794,39 +794,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm
6 create_area])
7
8 APR_CHECK_DEFINE(MAP_ANON, sys/mman.h)
9-AC_CHECK_FILE(/dev/zero)
10-
11-# Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
12-if test "$ac_cv_func_mmap" = "yes" &&
13- test "$ac_cv_file__dev_zero" = "yes"; then
14- AC_MSG_CHECKING(for mmap that can map /dev/zero)
15- AC_TRY_RUN([
16-#include <sys/types.h>
17-#include <sys/stat.h>
18-#include <fcntl.h>
19-#ifdef HAVE_SYS_MMAN_H
20-#include <sys/mman.h>
21-#endif
22- int main()
23- {
24- int fd;
25- void *m;
26- fd = open("/dev/zero", O_RDWR);
27- if (fd < 0) {
28- return 1;
29- }
30- m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
31- if (m == (void *)-1) { /* aka MAP_FAILED */
32- return 2;
33- }
34- if (munmap(m, sizeof(void*)) < 0) {
35- return 3;
36- }
37- return 0;
38- }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])
39-
40- AC_MSG_RESULT($ac_cv_file__dev_zero)
41-fi
42
43 # Now we determine which one is our anonymous shmem preference.
44 haveshmgetanon="0"
45@@ -1518,13 +1485,14 @@ else
46 bigendian=0
47 fi
48
49-APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>
50-#include <sys/uio.h>],struct iovec,0)
51-if test "$ac_cv_sizeof_struct_iovec" = "0"; then
52- have_iovec=0
53-else
54- have_iovec=1
55-fi
56+#APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>
57+##include <sys/uio.h>],struct iovec,0)
58+#if test "$ac_cv_sizeof_struct_iovec" = "0"; then
59+# have_iovec=0
60+#else
61+# have_iovec=1
62+#fi
63+have_iovec=1
64
65 AC_SUBST(voidp_size)
66 AC_SUBST(short_value)