diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-support | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-support')
219 files changed, 15468 insertions, 0 deletions
diff --git a/meta/recipes-support/apr/apr-util/configfix.patch b/meta/recipes-support/apr/apr-util/configfix.patch new file mode 100644 index 0000000000..dbb1148809 --- /dev/null +++ b/meta/recipes-support/apr/apr-util/configfix.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: apr-util-1.3.4/apu-config.in | ||
4 | =================================================================== | ||
5 | --- apr-util-1.3.4.orig/apu-config.in 2009-01-12 17:08:06.000000000 +0000 | ||
6 | +++ apr-util-1.3.4/apu-config.in 2009-01-12 17:09:00.000000000 +0000 | ||
7 | @@ -134,14 +134,7 @@ | ||
8 | exit 0 | ||
9 | ;; | ||
10 | --includes) | ||
11 | - if test "$location" = "installed"; then | ||
12 | flags="$flags -I$includedir $INCLUDES" | ||
13 | - elif test "$location" = "source"; then | ||
14 | - flags="$flags -I$APU_SOURCE_DIR/include $INCLUDES" | ||
15 | - else | ||
16 | - # this is for VPATH builds | ||
17 | - flags="$flags -I$APU_BUILD_DIR/include -I$APU_SOURCE_DIR/include $INCLUDES" | ||
18 | - fi | ||
19 | ;; | ||
20 | --ldflags) | ||
21 | flags="$flags $LDFLAGS" | ||
22 | @@ -155,28 +148,10 @@ | ||
23 | exit 0 | ||
24 | ;; | ||
25 | --link-ld) | ||
26 | - if test "$location" = "installed"; then | ||
27 | - ### avoid using -L if libdir is a "standard" location like /usr/lib | ||
28 | flags="$flags -L$libdir -l$APRUTIL_LIBNAME" | ||
29 | - else | ||
30 | - flags="$flags -L$APU_BUILD_DIR -l$APRUTIL_LIBNAME" | ||
31 | - fi | ||
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$APRUTIL_LIBNAME" | ||
45 | - else | ||
46 | - flags="$flags $LA_FILE" | ||
47 | - fi | ||
48 | + flags="$flags -l$APRUTIL_LIBNAME" | ||
49 | ;; | ||
50 | --apu-la-file) | ||
51 | if test -f "$LA_FILE"; then | ||
diff --git a/meta/recipes-support/apr/apr-util/configure_fixes.patch b/meta/recipes-support/apr/apr-util/configure_fixes.patch new file mode 100644 index 0000000000..91e244ce2c --- /dev/null +++ b/meta/recipes-support/apr/apr-util/configure_fixes.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: apr-util-1.4.1/configure.in | ||
4 | =================================================================== | ||
5 | --- apr-util-1.4.1.orig/configure.in 2009-12-18 03:15:19.000000000 +0800 | ||
6 | +++ apr-util-1.4.1/configure.in 2011-12-30 13:32:07.000000000 +0800 | ||
7 | @@ -8,15 +8,15 @@ | ||
8 | AC_CONFIG_HEADER(include/private/apu_config.h) | ||
9 | AC_CONFIG_AUX_DIR(build) | ||
10 | |||
11 | -sinclude(build/apu-conf.m4) | ||
12 | -sinclude(build/apu-iconv.m4) | ||
13 | -sinclude(build/apu-hints.m4) | ||
14 | -sinclude(build/apr_common.m4) | ||
15 | -sinclude(build/find_apr.m4) | ||
16 | -sinclude(build/crypto.m4) | ||
17 | -sinclude(build/dbm.m4) | ||
18 | -sinclude(build/dbd.m4) | ||
19 | -sinclude(build/dso.m4) | ||
20 | +#sinclude(build/apu-conf.m4) | ||
21 | +#sinclude(build/apu-iconv.m4) | ||
22 | +#sinclude(build/apu-hints.m4) | ||
23 | +#sinclude(build/apr_common.m4) | ||
24 | +#sinclude(build/find_apr.m4) | ||
25 | +#sinclude(build/crypto.m4) | ||
26 | +#sinclude(build/dbm.m4) | ||
27 | +#sinclude(build/dbd.m4) | ||
28 | +#sinclude(build/dso.m4) | ||
29 | |||
30 | dnl Generate ./config.nice for reproducing runs of configure | ||
31 | dnl | ||
diff --git a/meta/recipes-support/apr/apr-util/run-ptest b/meta/recipes-support/apr/apr-util/run-ptest new file mode 100644 index 0000000000..ae19a1d11b --- /dev/null +++ b/meta/recipes-support/apr/apr-util/run-ptest | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd test | ||
4 | ./testall |sed \ | ||
5 | -e 's|\(.*\): SUCCESS|PASS: \1|' \ | ||
6 | -e 's|\(.*\): FAILED|FAIL: \1|' | ||
diff --git a/meta/recipes-support/apr/apr-util_1.5.2.bb b/meta/recipes-support/apr/apr-util_1.5.2.bb new file mode 100644 index 0000000000..4546b9791b --- /dev/null +++ b/meta/recipes-support/apr/apr-util_1.5.2.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | SUMMARY = "Apache Portable Runtime (APR) companion library" | ||
2 | HOMEPAGE = "http://apr.apache.org/" | ||
3 | SECTION = "libs" | ||
4 | DEPENDS = "apr expat gdbm" | ||
5 | |||
6 | BBCLASSEXTEND = "native" | ||
7 | |||
8 | LICENSE = "Apache-2.0" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=519e0a18e03f7c023070568c14b077bb \ | ||
10 | file://include/apu_version.h;endline=17;md5=806685a84e71f10c80144c48eb35df42" | ||
11 | |||
12 | SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \ | ||
13 | file://configfix.patch \ | ||
14 | file://configure_fixes.patch \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[md5sum] = "eb682cfb8642babba427a4fb391b15e8" | ||
19 | SRC_URI[sha256sum] = "a1ec5025373815795d2fa5bfac40c0984675feffc88e049be9a162c408c2f613" | ||
20 | |||
21 | EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \ | ||
22 | --without-odbc \ | ||
23 | --without-pgsql \ | ||
24 | --with-dbm=gdbm \ | ||
25 | --with-gdbm=${STAGING_DIR_HOST}${prefix} \ | ||
26 | --without-sqlite2 \ | ||
27 | --without-sqlite3 \ | ||
28 | --with-expat=${STAGING_DIR_HOST}${prefix}" | ||
29 | |||
30 | |||
31 | inherit autotools-brokensep lib_package binconfig | ||
32 | |||
33 | OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'" | ||
34 | |||
35 | do_configure_append() { | ||
36 | if [ "${CLASSOVERRIDE}" = "class-target" ]; then | ||
37 | cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk | ||
38 | fi | ||
39 | } | ||
40 | do_configure_prepend_class-native() { | ||
41 | cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk | ||
42 | } | ||
43 | do_configure_append_class-native() { | ||
44 | sed -i "s#LIBTOOL=\$(SHELL) \$(apr_builddir)#LIBTOOL=\$(SHELL) ${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk | ||
45 | # sometimes there isn't SHELL | ||
46 | sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk | ||
47 | } | ||
48 | |||
49 | FILES_${PN} += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so" | ||
50 | FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la" | ||
51 | FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*" | ||
52 | FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a" | ||
53 | |||
54 | inherit ptest | ||
55 | |||
56 | do_compile_ptest() { | ||
57 | cd ${S}/test | ||
58 | oe_runmake | ||
59 | } | ||
60 | |||
61 | do_install_ptest() { | ||
62 | t=${D}${PTEST_PATH}/test | ||
63 | mkdir $t | ||
64 | for i in testall data; do \ | ||
65 | cp -r ${S}/test/$i $t; \ | ||
66 | done | ||
67 | } | ||
diff --git a/meta/recipes-support/apr/apr/cleanup.patch b/meta/recipes-support/apr/apr/cleanup.patch new file mode 100644 index 0000000000..b6784e015d --- /dev/null +++ b/meta/recipes-support/apr/apr/cleanup.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: apr-1.4.2/build/buildcheck.sh | ||
4 | =================================================================== | ||
5 | --- apr-1.4.2.orig/build/buildcheck.sh 2009-11-13 08:27:16.000000000 +0800 | ||
6 | +++ apr-1.4.2/build/buildcheck.sh 2010-11-26 15:44:00.000000000 +0800 | ||
7 | @@ -32,35 +32,4 @@ | ||
8 | echo "buildconf: autoconf version $ac_version (ok)" | ||
9 | fi | ||
10 | |||
11 | -# Sample libtool --version outputs: | ||
12 | -# ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11) | ||
13 | -# ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a | ||
14 | -# output is multiline from 1.5 onwards | ||
15 | - | ||
16 | -# Require libtool 1.4 or newer | ||
17 | -libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14` | ||
18 | -lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` | ||
19 | -if test -z "$lt_pversion"; then | ||
20 | -echo "buildconf: libtool not found." | ||
21 | -echo " You need libtool version 1.4 or newer installed" | ||
22 | -echo " to build APR from SVN." | ||
23 | -exit 1 | ||
24 | -fi | ||
25 | -lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'` | ||
26 | -IFS=.; set $lt_version; IFS=' ' | ||
27 | -lt_status="good" | ||
28 | -if test "$1" = "1"; then | ||
29 | - if test "$2" -lt "4"; then | ||
30 | - lt_status="bad" | ||
31 | - fi | ||
32 | -fi | ||
33 | -if test $lt_status = "good"; then | ||
34 | - echo "buildconf: libtool version $lt_pversion (ok)" | ||
35 | - exit 0 | ||
36 | -fi | ||
37 | - | ||
38 | -echo "buildconf: libtool version $lt_pversion found." | ||
39 | -echo " You need libtool version 1.4 or newer installed" | ||
40 | -echo " to build APR from SVN." | ||
41 | - | ||
42 | -exit 1 | ||
43 | +exit 0 | ||
diff --git a/meta/recipes-support/apr/apr/configfix.patch b/meta/recipes-support/apr/apr/configfix.patch new file mode 100644 index 0000000000..605c4f632c --- /dev/null +++ b/meta/recipes-support/apr/apr/configfix.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: apr-1.3.3/apr-config.in | ||
4 | =================================================================== | ||
5 | --- apr-1.3.3.orig/apr-config.in 2009-01-12 15:16:31.000000000 +0000 | ||
6 | +++ apr-1.3.3/apr-config.in 2009-01-12 15:19:25.000000000 +0000 | ||
7 | @@ -152,14 +152,7 @@ | ||
8 | flags="$flags $LDFLAGS" | ||
9 | ;; | ||
10 | --includes) | ||
11 | - if test "$location" = "installed"; then | ||
12 | flags="$flags -I$includedir $EXTRA_INCLUDES" | ||
13 | - elif test "$location" = "source"; then | ||
14 | - flags="$flags -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES" | ||
15 | - else | ||
16 | - # this is for VPATH builds | ||
17 | - flags="$flags -I$APR_BUILD_DIR/include -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES" | ||
18 | - fi | ||
19 | ;; | ||
20 | --srcdir) | ||
21 | echo $APR_SOURCE_DIR | ||
22 | @@ -181,29 +167,14 @@ | ||
23 | exit 0 | ||
24 | ;; | ||
25 | --link-ld) | ||
26 | - if test "$location" = "installed"; then | ||
27 | - ### avoid using -L if libdir is a "standard" location like /usr/lib | ||
28 | - flags="$flags -L$libdir -l${APR_LIBNAME}" | ||
29 | - else | ||
30 | - ### this surely can't work since the library is in .libs? | ||
31 | - flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}" | ||
32 | - fi | ||
33 | + flags="$flags -l${APR_LIBNAME}" | ||
34 | ;; | ||
35 | --link-libtool) | ||
36 | # If the LA_FILE exists where we think it should be, use it. If we're | ||
37 | # installed and the LA_FILE does not exist, assume to use -L/-l | ||
38 | # (the LA_FILE may not have been installed). If we're building ourselves, | ||
39 | # we'll assume that at some point the .la file be created. | ||
40 | - if test -f "$LA_FILE"; then | ||
41 | - flags="$flags $LA_FILE" | ||
42 | - elif test "$location" = "installed"; then | ||
43 | - ### avoid using -L if libdir is a "standard" location like /usr/lib | ||
44 | - # Since the user is specifying they are linking with libtool, we | ||
45 | - # *know* that -R will be recognized by libtool. | ||
46 | - flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}" | ||
47 | - else | ||
48 | - flags="$flags $LA_FILE" | ||
49 | - fi | ||
50 | + flags="$flags -l${APR_LIBNAME}" | ||
51 | ;; | ||
52 | --shlib-path-var) | ||
53 | 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..0514000599 --- /dev/null +++ b/meta/recipes-support/apr/apr/configure_fixes.patch | |||
@@ -0,0 +1,68 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: apr-1.3.3/configure.in | ||
4 | =================================================================== | ||
5 | --- apr-1.3.3.orig/configure.in | ||
6 | +++ apr-1.3.3/configure.in | ||
7 | @@ -794,39 +794,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm | ||
8 | create_area]) | ||
9 | |||
10 | APR_CHECK_DEFINE(MAP_ANON, sys/mman.h) | ||
11 | -AC_CHECK_FILE(/dev/zero) | ||
12 | - | ||
13 | -# Not all systems can mmap /dev/zero (such as HP-UX). Check for that. | ||
14 | -if test "$ac_cv_func_mmap" = "yes" && | ||
15 | - test "$ac_cv_file__dev_zero" = "yes"; then | ||
16 | - AC_MSG_CHECKING(for mmap that can map /dev/zero) | ||
17 | - AC_TRY_RUN([ | ||
18 | -#include <sys/types.h> | ||
19 | -#include <sys/stat.h> | ||
20 | -#include <fcntl.h> | ||
21 | -#ifdef HAVE_SYS_MMAN_H | ||
22 | -#include <sys/mman.h> | ||
23 | -#endif | ||
24 | - int main() | ||
25 | - { | ||
26 | - int fd; | ||
27 | - void *m; | ||
28 | - fd = open("/dev/zero", O_RDWR); | ||
29 | - if (fd < 0) { | ||
30 | - return 1; | ||
31 | - } | ||
32 | - m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); | ||
33 | - if (m == (void *)-1) { /* aka MAP_FAILED */ | ||
34 | - return 2; | ||
35 | - } | ||
36 | - if (munmap(m, sizeof(void*)) < 0) { | ||
37 | - return 3; | ||
38 | - } | ||
39 | - return 0; | ||
40 | - }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no]) | ||
41 | - | ||
42 | - AC_MSG_RESULT($ac_cv_file__dev_zero) | ||
43 | -fi | ||
44 | |||
45 | # Now we determine which one is our anonymous shmem preference. | ||
46 | haveshmgetanon="0" | ||
47 | @@ -1518,13 +1485,14 @@ else | ||
48 | bigendian=0 | ||
49 | fi | ||
50 | |||
51 | -APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h> | ||
52 | -#include <sys/uio.h>],struct iovec,0) | ||
53 | -if test "$ac_cv_sizeof_struct_iovec" = "0"; then | ||
54 | - have_iovec=0 | ||
55 | -else | ||
56 | - have_iovec=1 | ||
57 | -fi | ||
58 | +#APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h> | ||
59 | +##include <sys/uio.h>],struct iovec,0) | ||
60 | +#if test "$ac_cv_sizeof_struct_iovec" = "0"; then | ||
61 | +# have_iovec=0 | ||
62 | +#else | ||
63 | +# have_iovec=1 | ||
64 | +#fi | ||
65 | +have_iovec=1 | ||
66 | |||
67 | AC_SUBST(voidp_size) | ||
68 | AC_SUBST(short_value) | ||
diff --git a/meta/recipes-support/apr/apr/run-ptest b/meta/recipes-support/apr/apr/run-ptest new file mode 100644 index 0000000000..ae19a1d11b --- /dev/null +++ b/meta/recipes-support/apr/apr/run-ptest | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd test | ||
4 | ./testall |sed \ | ||
5 | -e 's|\(.*\): SUCCESS|PASS: \1|' \ | ||
6 | -e 's|\(.*\): FAILED|FAIL: \1|' | ||
diff --git a/meta/recipes-support/apr/apr_1.4.8.bb b/meta/recipes-support/apr/apr_1.4.8.bb new file mode 100644 index 0000000000..4d36585a3e --- /dev/null +++ b/meta/recipes-support/apr/apr_1.4.8.bb | |||
@@ -0,0 +1,82 @@ | |||
1 | SUMMARY = "Apache Portable Runtime (APR) library" | ||
2 | HOMEPAGE = "http://apr.apache.org/" | ||
3 | SECTION = "libs" | ||
4 | DEPENDS = "util-linux" | ||
5 | |||
6 | LICENSE = "Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0c35ff3c4c83b89d2f076e315caac28b \ | ||
8 | file://include/apr_lib.h;endline=17;md5=ee42fa7575dc40580a9e01c1b75fae96" | ||
9 | |||
10 | BBCLASSEXTEND = "native" | ||
11 | |||
12 | SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \ | ||
13 | file://configure_fixes.patch \ | ||
14 | file://cleanup.patch \ | ||
15 | file://configfix.patch \ | ||
16 | file://run-ptest \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "ce2ab01a0c3cdb71cf0a6326b8654f41" | ||
20 | SRC_URI[sha256sum] = "61b8d2f8d321c6365ee3d71d0bb41f3a89c44da6124cc5b407a3b8319d660421" | ||
21 | |||
22 | inherit autotools-brokensep lib_package binconfig multilib_header ptest | ||
23 | |||
24 | OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'" | ||
25 | |||
26 | # Added to fix some issues with cmake. Refer to https://github.com/bmwcarit/meta-ros/issues/68#issuecomment-19896928 | ||
27 | CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes" | ||
28 | |||
29 | do_configure_prepend() { | ||
30 | cd ${S} | ||
31 | ./buildconf | ||
32 | } | ||
33 | |||
34 | FILES_${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*" | ||
35 | |||
36 | #for some reason, build/libtool.m4 handled by buildconf still be overwritten | ||
37 | #when autoconf, so handle it again. | ||
38 | do_configure_append() { | ||
39 | sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' ${S}/build/libtool.m4 | ||
40 | sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' ${S}/build/apr_rules.mk | ||
41 | } | ||
42 | |||
43 | do_install_append() { | ||
44 | oe_multilib_header apr.h | ||
45 | install -d ${D}${datadir}/apr | ||
46 | cp ${S}/${HOST_SYS}-libtool ${D}${datadir}/build-1/libtool | ||
47 | } | ||
48 | |||
49 | SSTATE_SCAN_FILES += "apr_rules.mk libtool" | ||
50 | |||
51 | SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess" | ||
52 | |||
53 | apr_sysroot_preprocess () { | ||
54 | d=${SYSROOT_DESTDIR}${datadir}/apr | ||
55 | install -d $d/ | ||
56 | cp ${S}/build/apr_rules.mk $d/ | ||
57 | sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk | ||
58 | sed -i s,apr_builders=.*,apr_builders=,g $d/apr_rules.mk | ||
59 | sed -i s,LIBTOOL=.*,LIBTOOL=\$\(SHELL\)\ ${HOST_SYS}-libtool,g $d/apr_rules.mk | ||
60 | sed -i s,\$\(apr_builders\),${STAGING_DATADIR}/apr/,g $d/apr_rules.mk | ||
61 | cp ${S}/build/mkdir.sh $d/ | ||
62 | cp ${S}/build/make_exports.awk $d/ | ||
63 | cp ${S}/build/make_var_export.awk $d/ | ||
64 | } | ||
65 | |||
66 | do_compile_ptest() { | ||
67 | cd ${S}/test | ||
68 | oe_runmake | ||
69 | } | ||
70 | |||
71 | do_install_ptest() { | ||
72 | t=${D}${PTEST_PATH}/test | ||
73 | mkdir -p $t/.libs | ||
74 | cp -r ${S}/test/data $t/ | ||
75 | cp -r ${S}/test/.libs/*.so $t/.libs/ | ||
76 | cp ${S}/test/proc_child $t/ | ||
77 | cp ${S}/test/readchild $t/ | ||
78 | cp ${S}/test/sockchild $t/ | ||
79 | cp ${S}/test/sockperf $t/ | ||
80 | cp ${S}/test/testall $t/ | ||
81 | cp ${S}/test/tryread $t/ | ||
82 | } | ||
diff --git a/meta/recipes-support/aspell/aspell_0.60.6.1.bb b/meta/recipes-support/aspell/aspell_0.60.6.1.bb new file mode 100644 index 0000000000..8ac8809a06 --- /dev/null +++ b/meta/recipes-support/aspell/aspell_0.60.6.1.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "GNU Aspell spell-checker" | ||
2 | SECTION = "console/utils" | ||
3 | |||
4 | LICENSE = "LGPLv2 | LGPLv2.1" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" | ||
6 | |||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI = "${GNU_MIRROR}/aspell/aspell-${PV}.tar.gz" | ||
10 | SRC_URI[md5sum] = "e66a9c9af6a60dc46134fdacf6ce97d7" | ||
11 | SRC_URI[sha256sum] = "f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1" | ||
12 | |||
13 | PACKAGECONFIG ??= "" | ||
14 | PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses" | ||
15 | |||
16 | PACKAGES += "libaspell libpspell libpspell-dev aspell-utils" | ||
17 | |||
18 | FILES_${PN}-dbg += "${libdir}/aspell-0.60/.debu*" | ||
19 | FILES_libaspell = "${libdir}/libaspell.so.* ${libdir}/aspell*" | ||
20 | FILES_aspell-utils = "${bindir}/word-list-compress ${bindir}/aspell-import ${bindir}/run-with-aspell ${bindir}/pre*" | ||
21 | FILES_${PN} = "${bindir}/aspell" | ||
22 | FILES_libpspell = "${libdir}/libpspell.so.*" | ||
23 | FILES_libpspell-dev = "${libdir}/libpspell* ${bindir}/pspell-config ${includedir}/pspell" | ||
24 | |||
25 | ARM_INSTRUCTION_SET = "arm" | ||
26 | inherit autotools-brokensep gettext | ||
diff --git a/meta/recipes-support/atk/at-spi2-atk_2.10.0.bb b/meta/recipes-support/atk/at-spi2-atk_2.10.0.bb new file mode 100644 index 0000000000..f8cb4e6725 --- /dev/null +++ b/meta/recipes-support/atk/at-spi2-atk_2.10.0.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | SUMMARY = "AT-SPI 2 Toolkit Bridge" | ||
2 | LICENSE = "LGPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=e9f288ba982d60518f375b5898283886" | ||
4 | |||
5 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
6 | |||
7 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz" | ||
8 | SRC_URI[md5sum] = "38e4f7e2898f7ba3cc3ec269d9402789" | ||
9 | SRC_URI[sha256sum] = "dea7ff2f9bc9bbdb0351112616d738de718b55739cd2511afecac51604c31a94" | ||
10 | |||
11 | DEPENDS = "dbus glib-2.0 atk at-spi2-core" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | PACKAGES =+ "${PN}-gnome ${PN}-gtk2" | ||
16 | |||
17 | FILES_${PN}-gnome = "${libdir}/gnome-settings-daemon-3.0/gtk-modules" | ||
18 | FILES_${PN}-gtk2 = "${libdir}/gtk-2.0/modules/libatk-bridge.*" | ||
19 | FILES_${PN}-dbg += "${libdir}/gtk-2.0/modules/.debug" | ||
diff --git a/meta/recipes-support/atk/at-spi2-core_2.10.2.bb b/meta/recipes-support/atk/at-spi2-core_2.10.2.bb new file mode 100644 index 0000000000..1cfbc9f511 --- /dev/null +++ b/meta/recipes-support/atk/at-spi2-core_2.10.2.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "Assistive Technology Service Provider Interface (dbus core)" | ||
2 | LICENSE = "LGPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=e9f288ba982d60518f375b5898283886" | ||
4 | |||
5 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
6 | |||
7 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz" | ||
8 | SRC_URI[md5sum] = "d4a198201f6189fb248f3edd19efe39c" | ||
9 | SRC_URI[sha256sum] = "d3da58f84f4c8e4d5fe940ecb52fb27b4d9ea2b4dcdb3e1fae0f46b5eaa2dde1" | ||
10 | |||
11 | DEPENDS = "dbus glib-2.0 virtual/libx11 libxi libxtst intltool-native" | ||
12 | |||
13 | inherit autotools gtk-doc | ||
14 | |||
15 | EXTRA_OECONF = "--disable-introspection --disable-xevie" | ||
16 | |||
17 | FILES_${PN} += "${datadir}/dbus-1/services/*.service" | ||
diff --git a/meta/recipes-support/atk/atk_2.10.0.bb b/meta/recipes-support/atk/atk_2.10.0.bb new file mode 100644 index 0000000000..538d6147b2 --- /dev/null +++ b/meta/recipes-support/atk/atk_2.10.0.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "Accessibility toolkit for GNOME" | ||
2 | HOMEPAGE = "http://live.gnome.org/GAP/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | SECTION = "x11/libs" | ||
5 | |||
6 | LICENSE = "GPLv2+ & LGPLv2+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ | ||
8 | file://atk/atkutil.c;endline=20;md5=db21b0bdbef9da4dc6eb122debc9f9bc \ | ||
9 | file://atk/atk.h;endline=20;md5=c58238d688c24387376d6c69d06248a7" | ||
10 | |||
11 | DEPENDS = "glib-2.0" | ||
12 | |||
13 | inherit gnomebase gtk-doc | ||
14 | |||
15 | GNOME_COMPRESS_TYPE = "xz" | ||
16 | |||
17 | SRC_URI[archive.md5sum] = "e77833d4445ebe6842e9f9a0667b0be7" | ||
18 | SRC_URI[archive.sha256sum] = "636917a5036bc851d8491194645d284798ec118919a828be5e713b6ecc5b50b0" | ||
19 | |||
20 | BBCLASSEXTEND = "native" | ||
21 | |||
22 | EXTRA_OECONF = "--disable-glibtest \ | ||
23 | --disable-introspection" | ||
diff --git a/meta/recipes-support/attr/acl.inc b/meta/recipes-support/attr/acl.inc new file mode 100644 index 0000000000..355dbdd9b0 --- /dev/null +++ b/meta/recipes-support/attr/acl.inc | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Utilities for managing POSIX Access Control Lists" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/acl/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | LICENSE = "LGPLv2.1+ & GPLv2+" | ||
6 | LICENSE_${PN} = "GPLv2+" | ||
7 | LICENSE_lib${BPN} = "LGPLv2.1+" | ||
8 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \ | ||
9 | file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764" | ||
10 | |||
11 | DEPENDS = "attr" | ||
12 | SRC_URI = "http://download.savannah.gnu.org/releases/acl/${BP}.src.tar.gz \ | ||
13 | file://run-ptest \ | ||
14 | file://acl-fix-the-order-of-expected-output-of-getfacl.patch \ | ||
15 | " | ||
16 | |||
17 | require ea-acl.inc | ||
18 | |||
19 | # avoid RPATH hardcode to staging dir | ||
20 | do_configure_append() { | ||
21 | sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\', | ||
22 | ${S}/config.status | ||
23 | } | ||
24 | |||
25 | # libdir should point to .la | ||
26 | do_install_append() { | ||
27 | sed -i ${D}${libdir}/libacl.la -e \ | ||
28 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', | ||
29 | } | ||
30 | |||
31 | inherit ptest | ||
32 | |||
33 | do_install_ptest() { | ||
34 | tar -cf - test/ --exclude nfs | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
35 | mkdir ${D}${PTEST_PATH}/include | ||
36 | cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/ | ||
37 | } | ||
38 | |||
39 | RDEPENDS_${PN}-ptest = "bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow" | ||
diff --git a/meta/recipes-support/attr/acl/acl-fix-the-order-of-expected-output-of-getfacl.patch b/meta/recipes-support/attr/acl/acl-fix-the-order-of-expected-output-of-getfacl.patch new file mode 100644 index 0000000000..cf765fdbb8 --- /dev/null +++ b/meta/recipes-support/attr/acl/acl-fix-the-order-of-expected-output-of-getfacl.patch | |||
@@ -0,0 +1,198 @@ | |||
1 | acl: fix the order of expected output of getfacl | ||
2 | |||
3 | The result of getfacl is sorted by user id. | ||
4 | In Centos or RHEL, bin user id is 1 and daemon user id is 2. | ||
5 | But in our image, bin user id is 2 and daemon user id is 1. | ||
6 | The patch fixes this issue to make ptest pass. | ||
7 | |||
8 | Upstream-Status: Inappropriate [embedded specific] | ||
9 | |||
10 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
11 | --- | ||
12 | test/misc.test | 38 +++++++++++++++++++------------------- | ||
13 | 1 file changed, 19 insertions(+), 19 deletions(-) | ||
14 | |||
15 | diff --git a/test/misc.test b/test/misc.test | ||
16 | index 6e98053..53ae5b0 100644 | ||
17 | --- a/test/misc.test | ||
18 | +++ b/test/misc.test | ||
19 | @@ -79,8 +79,8 @@ Multiple users | ||
20 | |||
21 | $ getfacl --omit-header f | ||
22 | > user::rw- | ||
23 | - > user:bin:rw- | ||
24 | > user:daemon:r-- | ||
25 | + > user:bin:rw- | ||
26 | > group::r-- | ||
27 | > mask::rw- | ||
28 | > other::r-- | ||
29 | @@ -94,8 +94,8 @@ Multiple groups | ||
30 | |||
31 | $ getfacl --omit-header f | ||
32 | > user::rw- | ||
33 | - > user:bin:rw- | ||
34 | > user:daemon:r-- | ||
35 | + > user:bin:rw- | ||
36 | > group::r-- | ||
37 | > group:daemon:r-- | ||
38 | > group:users:rw- | ||
39 | @@ -111,8 +111,8 @@ Remove one group | ||
40 | |||
41 | $ getfacl --omit-header f | ||
42 | > user::rw- | ||
43 | - > user:bin:rw- | ||
44 | > user:daemon:r-- | ||
45 | + > user:bin:rw- | ||
46 | > group::r-- | ||
47 | > group:daemon:r-- | ||
48 | > mask::rw- | ||
49 | @@ -146,8 +146,8 @@ Default ACL | ||
50 | |||
51 | $ getfacl --omit-header d | ||
52 | > user::rwx | ||
53 | - > user:bin:rwx | ||
54 | > user:daemon:rw- | ||
55 | + > user:bin:rwx | ||
56 | > group::r-x | ||
57 | > mask::rwx | ||
58 | > other::--- | ||
59 | @@ -236,16 +236,16 @@ Add some users and groups | ||
60 | |||
61 | $ getfacl --omit-header d/d | ||
62 | > user::rwx | ||
63 | - > user:bin:rwx #effective:r-x | ||
64 | > user:daemon:r-x | ||
65 | + > user:bin:rwx #effective:r-x | ||
66 | > group::r-x | ||
67 | > group:daemon:rwx #effective:r-x | ||
68 | > group:users:r-x | ||
69 | > mask::r-x | ||
70 | > other::--- | ||
71 | > default:user::rwx | ||
72 | - > default:user:bin:rwx #effective:r-x | ||
73 | > default:user:daemon:r-x | ||
74 | + > default:user:bin:rwx #effective:r-x | ||
75 | > default:group::r-x | ||
76 | > default:mask::r-x | ||
77 | > default:other::--- | ||
78 | @@ -262,16 +262,16 @@ Symlink in directory with default ACL? | ||
79 | |||
80 | $ getfacl --omit-header d/l | ||
81 | > user::rwx | ||
82 | - > user:bin:rwx #effective:r-x | ||
83 | > user:daemon:r-x | ||
84 | + > user:bin:rwx #effective:r-x | ||
85 | > group::r-x | ||
86 | > group:daemon:rwx #effective:r-x | ||
87 | > group:users:r-x | ||
88 | > mask::r-x | ||
89 | > other::--- | ||
90 | > default:user::rwx | ||
91 | - > default:user:bin:rwx #effective:r-x | ||
92 | > default:user:daemon:r-x | ||
93 | + > default:user:bin:rwx #effective:r-x | ||
94 | > default:group::r-x | ||
95 | > default:mask::r-x | ||
96 | > default:other::--- | ||
97 | @@ -287,16 +287,16 @@ Does mask manipulation work? | ||
98 | |||
99 | $ getfacl --omit-header d/d | ||
100 | > user::rwx | ||
101 | - > user:bin:r-x | ||
102 | > user:daemon:r-x | ||
103 | + > user:bin:r-x | ||
104 | > group::r-x | ||
105 | > group:daemon:r-x | ||
106 | > group:users:r-x | ||
107 | > mask::r-x | ||
108 | > other::--- | ||
109 | > default:user::rwx | ||
110 | - > default:user:bin:rwx #effective:r-x | ||
111 | > default:user:daemon:r-x | ||
112 | + > default:user:bin:rwx #effective:r-x | ||
113 | > default:group::r-x | ||
114 | > default:mask::r-x | ||
115 | > default:other::--- | ||
116 | @@ -308,16 +308,16 @@ Does mask manipulation work? | ||
117 | |||
118 | $ getfacl --omit-header d/d | ||
119 | > user::rwx | ||
120 | - > user:bin:r-x | ||
121 | > user:daemon:r-x | ||
122 | + > user:bin:r-x | ||
123 | > group::r-x | ||
124 | > group:daemon:r-x | ||
125 | > group:users:r-x | ||
126 | > mask::r-x | ||
127 | > other::--- | ||
128 | > default:user::rwx | ||
129 | - > default:user:bin:rwx | ||
130 | > default:user:daemon:r-x | ||
131 | + > default:user:bin:rwx | ||
132 | > default:group::r-x | ||
133 | > default:mask::rwx | ||
134 | > default:other::--- | ||
135 | @@ -333,8 +333,8 @@ Remove the default ACL | ||
136 | |||
137 | $ getfacl --omit-header d | ||
138 | > user::rwx | ||
139 | - > user:bin:rwx | ||
140 | > user:daemon:rw- | ||
141 | + > user:bin:rwx | ||
142 | > group::r-x | ||
143 | > mask::rwx | ||
144 | > other::--- | ||
145 | @@ -373,14 +373,14 @@ Now, chmod should change the group_obj entry | ||
146 | |||
147 | $ getfacl --omit-header d | ||
148 | > user::rwx | ||
149 | - > user:bin:r-x | ||
150 | > user:daemon:rwx | ||
151 | + > user:bin:r-x | ||
152 | > group::rwx | ||
153 | > mask::rwx | ||
154 | > other::r-x | ||
155 | > default:user::rwx | ||
156 | - > default:user:bin:r-x | ||
157 | > default:user:daemon:rwx | ||
158 | + > default:user:bin:r-x | ||
159 | > default:group::rwx | ||
160 | > default:mask::rwx | ||
161 | > default:other::r-x | ||
162 | @@ -392,14 +392,14 @@ Now, chmod should change the group_obj entry | ||
163 | |||
164 | $ getfacl --omit-header d | ||
165 | > user::rwx | ||
166 | - > user:bin:r-x | ||
167 | > user:daemon:rwx #effective:r-x | ||
168 | + > user:bin:r-x | ||
169 | > group::rwx #effective:r-x | ||
170 | > mask::r-x | ||
171 | > other::--- | ||
172 | > default:user::rwx | ||
173 | - > default:user:bin:r-x | ||
174 | > default:user:daemon:rwx | ||
175 | + > default:user:bin:r-x | ||
176 | > default:group::rwx | ||
177 | > default:mask::rwx | ||
178 | > default:other::r-x | ||
179 | @@ -411,14 +411,14 @@ Now, chmod should change the group_obj entry | ||
180 | |||
181 | $ getfacl --omit-header d | ||
182 | > user::rwx | ||
183 | - > user:bin:r-x | ||
184 | > user:daemon:rwx #effective:r-x | ||
185 | + > user:bin:r-x | ||
186 | > group::rwx #effective:r-x | ||
187 | > mask::r-x | ||
188 | > other::--- | ||
189 | > default:user::rwx | ||
190 | - > default:user:bin:r-x | ||
191 | > default:user:daemon:rwx | ||
192 | + > default:user:bin:r-x | ||
193 | > default:group::rwx | ||
194 | > default:mask::rwx | ||
195 | > default:other::r-x | ||
196 | -- | ||
197 | 1.7.9.5 | ||
198 | |||
diff --git a/meta/recipes-support/attr/acl/add-missing-configure.ac.patch b/meta/recipes-support/attr/acl/add-missing-configure.ac.patch new file mode 100644 index 0000000000..eb6979fa3c --- /dev/null +++ b/meta/recipes-support/attr/acl/add-missing-configure.ac.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | Upstream-Status: Backport [configure.ac is missing from tarball] | ||
2 | |||
3 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
4 | |||
5 | Index: acl-2.2.52/configure.ac | ||
6 | =================================================================== | ||
7 | --- /dev/null | ||
8 | +++ acl-2.2.52/configure.ac | ||
9 | @@ -0,0 +1,50 @@ | ||
10 | + | ||
11 | +# Copyright (C) 2009 Andreas Gruenbacher <agruen@suse.de> | ||
12 | +# | ||
13 | +# This program is free software: you can redistribute it and/or modify it | ||
14 | +# under the terms of the GNU General Public License as published by | ||
15 | +# the Free Software Foundation, either version 2 of the License, or | ||
16 | +# (at your option) any later version. | ||
17 | +# | ||
18 | +# This program is distributed in the hope that it will be useful, | ||
19 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | +# GNU General Public License for more details. | ||
22 | +# | ||
23 | +# You should have received a copy of the GNU General Public License | ||
24 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
25 | +# | ||
26 | +AC_INIT(include/acl.h) | ||
27 | +AC_CONFIG_AUX_DIR([.]) | ||
28 | +AC_CONFIG_MACRO_DIR([m4]) | ||
29 | +AC_CONFIG_HEADER(include/config.h) | ||
30 | +AC_PREFIX_DEFAULT(/usr) | ||
31 | + | ||
32 | +AC_PROG_LIBTOOL | ||
33 | + | ||
34 | +AC_ARG_ENABLE(shared, | ||
35 | +[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, | ||
36 | + enable_shared=yes) | ||
37 | +AC_SUBST(enable_shared) | ||
38 | + | ||
39 | +AC_ARG_ENABLE(gettext, | ||
40 | +[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],, | ||
41 | + enable_gettext=yes) | ||
42 | +AC_SUBST(enable_gettext) | ||
43 | + | ||
44 | +AC_ARG_ENABLE(lib64, | ||
45 | +[ --enable-lib64=[yes/no] Enable lib64 support [default=no]],, | ||
46 | + enable_lib64=no) | ||
47 | +AC_SUBST(enable_lib64) | ||
48 | + | ||
49 | +AC_PACKAGE_GLOBALS(acl) | ||
50 | +AC_PACKAGE_UTILITIES(acl) | ||
51 | +AC_PACKAGE_NEED_ATTR_XATTR_H | ||
52 | +AC_PACKAGE_NEED_ATTR_ERROR_H | ||
53 | +AC_MULTILIB($enable_lib64) | ||
54 | +AC_PACKAGE_NEED_GETXATTR_LIBATTR | ||
55 | +AC_MANUAL_FORMAT | ||
56 | + | ||
57 | +AC_FUNC_GCC_VISIBILITY | ||
58 | + | ||
59 | +AC_OUTPUT(include/builddefs) | ||
diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest new file mode 100644 index 0000000000..3b31cc99af --- /dev/null +++ b/meta/recipes-support/attr/acl/run-ptest | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | gpasswd -a daemon bin | ||
4 | make -C test -k tests root-tests |sed \ | ||
5 | -e 's|^\[.*\] \(.*\) -- ok$|PASS: \1|' \ | ||
6 | -e 's|^\[.*\] \(.*\) -- failed|FAIL: \1|' | ||
7 | gpasswd -d daemon bin | ||
diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb new file mode 100644 index 0000000000..ecdbdb6b79 --- /dev/null +++ b/meta/recipes-support/attr/acl_2.2.52.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require acl.inc | ||
2 | |||
3 | SRC_URI += "file://add-missing-configure.ac.patch" | ||
4 | |||
5 | SRC_URI[md5sum] = "a61415312426e9c2212bd7dc7929abda" | ||
6 | SRC_URI[sha256sum] = "179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23" | ||
7 | |||
8 | |||
9 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc new file mode 100644 index 0000000000..873c1fffd9 --- /dev/null +++ b/meta/recipes-support/attr/attr.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | SUMMARY = "Utilities for manipulating filesystem extended attributes" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | DEPENDS = "ncurses" | ||
6 | |||
7 | LICENSE = "LGPLv2.1+ & GPLv2+" | ||
8 | LICENSE_${PN} = "GPLv2+" | ||
9 | LICENSE_lib${BPN} = "LGPLv2.1+" | ||
10 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ | ||
11 | file://attr/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ | ||
12 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" | ||
13 | |||
14 | SRC_URI = "http://download.savannah.gnu.org/releases/attr/${BP}.src.tar.gz \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | |||
18 | require ea-acl.inc | ||
19 | |||
20 | # libdir should point to .la | ||
21 | do_install_append() { | ||
22 | sed -i ${D}${libdir}/libattr.la -e \ | ||
23 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', | ||
24 | } | ||
25 | |||
26 | inherit ptest | ||
27 | |||
28 | do_install_ptest() { | ||
29 | tar -cf - test/ --exclude ext | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
30 | mkdir ${D}${PTEST_PATH}/include | ||
31 | for i in builddefs buildmacros buildrules; \ | ||
32 | do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \ | ||
33 | done | ||
34 | sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile | ||
35 | } | ||
36 | |||
37 | RDEPENDS_${PN}-ptest = "coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix" | ||
diff --git a/meta/recipes-support/attr/attr_2.4.47.bb b/meta/recipes-support/attr/attr_2.4.47.bb new file mode 100644 index 0000000000..ad40c9b72a --- /dev/null +++ b/meta/recipes-support/attr/attr_2.4.47.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require attr.inc | ||
2 | |||
3 | # configure.ac was missing from the release tarball. This should be fixed in | ||
4 | # future releases of attr, remove this when updating the recipe. | ||
5 | SRC_URI_append += "file://attr-Missing-configure.ac.patch" | ||
6 | |||
7 | SRC_URI[md5sum] = "84f58dec00b60f2dc8fd1c9709291cc7" | ||
8 | SRC_URI[sha256sum] = "25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859" | ||
9 | |||
10 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/attr/ea-acl.inc b/meta/recipes-support/attr/ea-acl.inc new file mode 100644 index 0000000000..785ce0cf50 --- /dev/null +++ b/meta/recipes-support/attr/ea-acl.inc | |||
@@ -0,0 +1,58 @@ | |||
1 | # this build system is mostly shared by attr and acl | ||
2 | |||
3 | SRC_URI += "file://relative-libdir.patch;striplevel=0 \ | ||
4 | " | ||
5 | |||
6 | inherit autotools-brokensep gettext | ||
7 | |||
8 | # the package comes with a custom config.h.in, it cannot be | ||
9 | # overwritten by autoheader | ||
10 | export AUTOHEADER = "true" | ||
11 | EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root" | ||
12 | EXTRA_OECONF_append_class-native = " --enable-gettext=no" | ||
13 | |||
14 | EXTRA_OEMAKE = "PKG_LIB_DIR=${base_libdir} PKG_DEVLIB_DIR=${libdir}" | ||
15 | |||
16 | do_install () { | ||
17 | oe_runmake install install-lib install-dev DIST_ROOT="${D}" | ||
18 | } | ||
19 | |||
20 | PACKAGES =+ "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev lib${BPN}-doc" | ||
21 | |||
22 | FILES_lib${BPN} = "${base_libdir}/lib*${SOLIBS}" | ||
23 | |||
24 | FILES_lib${BPN}-dev = "${includedir} \ | ||
25 | ${libdir}/lib*${SOLIBSDEV} \ | ||
26 | ${libdir}/lib*.la \ | ||
27 | ${base_libdir}/lib*${SOLIBSDEV} \ | ||
28 | ${base_libdir}/lib*.la" | ||
29 | |||
30 | FILES_lib${BPN}-staticdev = "${libdir}/*.a ${base_libdir}/*.a" | ||
31 | |||
32 | FILES_lib${BPN}-doc = "${mandir}/man2 \ | ||
33 | ${mandir}/man3" | ||
34 | |||
35 | BBCLASSEXTEND = "native" | ||
36 | # Only append ldflags for target recipe and if USE_NLS is enabled | ||
37 | LDFLAGS_append_libc-uclibc = "${@['', ' -lintl '][(d.getVar('PN', True) == d.getVar('BPN', True)) and (d.getVar('USE_NLS', True) == 'yes')]}" | ||
38 | EXTRA_OECONF_append_libc-uclibc = "${@['', ' --disable-gettext '][(d.getVar('PN', True) == d.getVar('BPN', True)) and (d.getVar('USE_NLS', True) == 'no')]}" | ||
39 | |||
40 | fix_symlink () { | ||
41 | if test "${libdir}" = "${base_libdir}" ; then | ||
42 | return | ||
43 | fi | ||
44 | # Remove bad symlinks & create the correct symlinks | ||
45 | if test -L ${libdir}/lib${BPN}.so ; then | ||
46 | rm -rf ${libdir}/lib${BPN}.so | ||
47 | ln -sf ${base_libdir}/lib${BPN}.so ${libdir}/lib${BPN}.so | ||
48 | fi | ||
49 | if test -L ${base_libdir}/lib${BPN}.a ; then | ||
50 | rm -rf ${base_libdir}/lib${BPN}.a | ||
51 | ln -sf ${libdir}/lib${BPN}.a ${base_libdir}/lib${BPN}.a | ||
52 | fi | ||
53 | if test -L ${base_libdir}/lib${BPN}.la ; then | ||
54 | rm -rf ${base_libdir}/lib${BPN}.la | ||
55 | ln -sf ${libdir}/lib${BPN}.la ${base_libdir}/lib${BPN}.la | ||
56 | fi | ||
57 | } | ||
58 | SSTATEPOSTINSTFUNCS_class-native += "fix_symlink" | ||
diff --git a/meta/recipes-support/attr/files/attr-Missing-configure.ac.patch b/meta/recipes-support/attr/files/attr-Missing-configure.ac.patch new file mode 100644 index 0000000000..20fcc3cee7 --- /dev/null +++ b/meta/recipes-support/attr/files/attr-Missing-configure.ac.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | Subject: [PATCH] attr: Missing configure.ac | ||
2 | |||
3 | Upstream-Status: Backport [Upstream released tarball missing this file] | ||
4 | Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> | ||
5 | --- | ||
6 | configure.ac | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ | ||
7 | 1 file changed, 48 insertions(+) | ||
8 | create mode 100644 configure.ac | ||
9 | |||
10 | diff --git a/configure.ac b/configure.ac | ||
11 | new file mode 100644 | ||
12 | index 0000000..b966d0e | ||
13 | --- /dev/null | ||
14 | +++ b/configure.ac | ||
15 | @@ -0,0 +1,48 @@ | ||
16 | +# Copyright (C) 2009 Andreas Gruenbacher <agruen@suse.de> | ||
17 | +# | ||
18 | +# This program is free software: you can redistribute it and/or modify it | ||
19 | +# under the terms of the GNU General Public License as published by | ||
20 | +# the Free Software Foundation, either version 2 of the License, or | ||
21 | +# (at your option) any later version. | ||
22 | +# | ||
23 | +# This program is distributed in the hope that it will be useful, | ||
24 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
25 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 | +# GNU General Public License for more details. | ||
27 | +# | ||
28 | +# You should have received a copy of the GNU General Public License | ||
29 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
30 | +# | ||
31 | +AC_INIT(include/attributes.h) | ||
32 | +AC_CONFIG_AUX_DIR([.]) | ||
33 | +AC_CONFIG_MACRO_DIR([m4]) | ||
34 | +AC_CONFIG_HEADER(include/config.h) | ||
35 | +AC_PREFIX_DEFAULT(/usr) | ||
36 | + | ||
37 | +AC_PROG_LIBTOOL | ||
38 | + | ||
39 | +AC_ARG_ENABLE(shared, | ||
40 | +[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, | ||
41 | + enable_shared=yes) | ||
42 | +AC_SUBST(enable_shared) | ||
43 | + | ||
44 | +AC_ARG_ENABLE(gettext, | ||
45 | +[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],, | ||
46 | + enable_gettext=yes) | ||
47 | +AC_SUBST(enable_gettext) | ||
48 | + | ||
49 | +AC_ARG_ENABLE(lib64, | ||
50 | +[ --enable-lib64=[yes/no] Enable lib64 support [default=no]],, | ||
51 | + enable_lib64=no) | ||
52 | +AC_SUBST(enable_lib64) | ||
53 | + | ||
54 | +AC_PACKAGE_GLOBALS(attr) | ||
55 | +AC_PACKAGE_UTILITIES(attr) | ||
56 | +AC_MANUAL_FORMAT | ||
57 | +AC_MULTILIB($enable_lib64) | ||
58 | + | ||
59 | +AC_C_CONST | ||
60 | +AC_TYPE_MODE_T | ||
61 | +AC_FUNC_ALLOCA | ||
62 | + | ||
63 | +AC_OUTPUT(include/builddefs) | ||
diff --git a/meta/recipes-support/attr/files/relative-libdir.patch b/meta/recipes-support/attr/files/relative-libdir.patch new file mode 100644 index 0000000000..b72bf184d6 --- /dev/null +++ b/meta/recipes-support/attr/files/relative-libdir.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | use relative path in symbolic links, or it fails in staging | ||
4 | sed expression from udev | ||
5 | |||
6 | 7/29/2010 - created by Qing He <qing.he@intel.com> | ||
7 | |||
8 | diff -u include.orig/buildmacros include/buildmacros | ||
9 | --- include.orig/buildmacros 2010-07-29 17:39:48.000000000 +0800 | ||
10 | +++ include/buildmacros 2010-07-29 18:20:34.000000000 +0800 | ||
11 | @@ -88,9 +88,11 @@ | ||
12 | ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \ | ||
13 | ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \ | ||
14 | if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \ | ||
15 | - ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \ | ||
16 | - ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \ | ||
17 | - ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \ | ||
18 | + rel_lib_prefix=$$(echo $(PKG_LIB_DIR) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ | ||
19 | + ../$(INSTALL) -S $$rel_lib_prefix$(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \ | ||
20 | + ../$(INSTALL) -S $$rel_lib_prefix$(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \ | ||
21 | + rel_devlib_prefix=$$(echo $(PKG_DEVLIB_DIR) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ | ||
22 | + ../$(INSTALL) -S $$rel_devlib_prefix$(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \ | ||
23 | fi | ||
24 | else | ||
25 | INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC) | ||
diff --git a/meta/recipes-support/attr/files/run-ptest b/meta/recipes-support/attr/files/run-ptest new file mode 100644 index 0000000000..a6c6867f2d --- /dev/null +++ b/meta/recipes-support/attr/files/run-ptest | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | make -C test -k tests root-tests |sed \ | ||
4 | -e 's|^\[.*\] \(.*\) -- ok$|PASS: \1|' \ | ||
5 | -e 's|^\[.*\] \(.*\) -- failed|FAIL: \1|' | ||
diff --git a/meta/recipes-support/bdwgc/bdwgc_7.2d.bb b/meta/recipes-support/bdwgc/bdwgc_7.2d.bb new file mode 100644 index 0000000000..2ba7aa5a87 --- /dev/null +++ b/meta/recipes-support/bdwgc/bdwgc_7.2d.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "A garbage collector for C and C++" | ||
2 | |||
3 | DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\ | ||
4 | used as a garbage collecting replacement for C malloc or C++ new. It allows\ | ||
5 | you to allocate memory basically as you normally would, without explicitly\ | ||
6 | deallocating memory that is no longer useful. The collector automatically\ | ||
7 | recycles memory when it determines that it can no longer be otherwise\ | ||
8 | accessed.\ | ||
9 | The collector is also used by a number of programming language\ | ||
10 | implementations that either use C as intermediate code, want to facilitate\ | ||
11 | easier interoperation with C libraries, or just prefer the simple collector\ | ||
12 | interface.\ | ||
13 | Alternatively, the garbage collector may be used as a leak detector for C\ | ||
14 | or C++ programs, though that is not its primary goal.\ | ||
15 | Empirically, this collector works with most unmodified C programs, simply\ | ||
16 | by replacing malloc with GC_malloc calls, replacing realloc with GC_realloc\ | ||
17 | calls, and removing free calls." | ||
18 | |||
19 | HOMEPAGE = "http://www.hpl.hp.com/personal/Hans_Boehm/gc/" | ||
20 | SECTION = "devel" | ||
21 | LICENSE = "MIT & FSF-Unlimited & GPL-2.0" | ||
22 | LIC_FILES_CHKSUM = "file://README.QUICK;md5=9b9dd874f6940641b6ab19893ee8f1cc \ | ||
23 | file://doc/README;md5=92e7dd0334d1f672b699cd0aca08bef0 \ | ||
24 | file://libatomic_ops/doc/LICENSING.txt;md5=607073e04548eac7d1f763e480477bab" | ||
25 | |||
26 | SRC_URI = "http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-${PV}.tar.gz" | ||
27 | |||
28 | SRC_URI[md5sum] = "91340b28c61753a789eb6077675d87d2" | ||
29 | SRC_URI[sha256sum] = "d9fe0ae8650d43746a48bfb394cab01a319f3809cee19f8ebd16aa985b511c5e" | ||
30 | FILES_${PN}-doc = "/usr/share" | ||
31 | |||
32 | REAL_PV = "${@[d.getVar('PV',1)[:-1], d.getVar('PV',1)][(d.getVar('PV',1)[-1]).isdigit()]}" | ||
33 | S = "${WORKDIR}/gc-${REAL_PV}" | ||
34 | |||
35 | ARM_INSTRUCTION_SET = "arm" | ||
36 | |||
37 | inherit autotools pkgconfig | ||
38 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch b/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch new file mode 100644 index 0000000000..3e5513fce9 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/beecrypt-enable-ptest-support.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | beecrypt: enable ptest support | ||
2 | |||
3 | Upstream-Status: Inappropriate [embedded specific] | ||
4 | |||
5 | Add install-ptest rules. | ||
6 | |||
7 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
8 | --- | ||
9 | Makefile.am | 3 +++ | ||
10 | tests/Makefile.am | 3 +++ | ||
11 | 2 files changed, 6 insertions(+) | ||
12 | |||
13 | diff --git a/Makefile.am b/Makefile.am | ||
14 | index b7e7869..5076f59 100644 | ||
15 | --- a/Makefile.am | ||
16 | +++ b/Makefile.am | ||
17 | @@ -73,3 +73,6 @@ DISTCLEANFILES = mpopt.s blowfishopt.s sha1opt.s | ||
18 | |||
19 | bench: | ||
20 | (cd tests && $(MAKE) $(AM_MAKEFLAGS) bench) | ||
21 | + | ||
22 | +install-ptest: | ||
23 | + (cd tests && $(MAKE) $(AM_MAKEFLAGS) check_PROGRAMS) | ||
24 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
25 | index 1604e5e..d8db8d8 100644 | ||
26 | --- a/tests/Makefile.am | ||
27 | +++ b/tests/Makefile.am | ||
28 | @@ -101,3 +101,6 @@ bench: benchme benchrsa benchhf benchbc | ||
29 | ./benchbc AES 128 | ||
30 | ./benchbc Blowfish 128 | ||
31 | ./benchbc Blowfish 128 | ||
32 | + | ||
33 | +check_PROGRAMS: | ||
34 | + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) | ||
35 | -- | ||
36 | 1.8.1.2 | ||
37 | |||
diff --git a/meta/recipes-support/beecrypt/beecrypt/disable-icu-check.patch b/meta/recipes-support/beecrypt/beecrypt/disable-icu-check.patch new file mode 100644 index 0000000000..91b1fa6ef5 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/disable-icu-check.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | We are unable to run code at configure time in a cross environemnt, but as we | ||
2 | control the build we can be fairly certain this dependency is met. | ||
3 | |||
4 | Upstream-Status: Inappropriate [embedded specific] | ||
5 | |||
6 | JL 05/07/10 | ||
7 | Index: beecrypt-4.2.1/configure.ac | ||
8 | =================================================================== | ||
9 | --- beecrypt-4.2.1.orig/configure.ac 2010-11-26 17:12:25.000000000 +0800 | ||
10 | +++ beecrypt-4.2.1/configure.ac 2010-11-26 17:12:30.000000000 +0800 | ||
11 | @@ -292,32 +292,6 @@ | ||
12 | # Predefines and checks for C++ API support | ||
13 | AH_TEMPLATE([CPPGLUE],[Define to 1 if you want to include the C++ code]) | ||
14 | |||
15 | -if test "$ac_with_cplusplus" = yes; then | ||
16 | - AC_MSG_CHECKING([for IBM's ICU library version >= 2.8]) | ||
17 | - AC_LANG_PUSH(C) | ||
18 | - AC_RUN_IFELSE([ | ||
19 | - AC_LANG_PROGRAM([[#include <unicode/uversion.h>]],[[ | ||
20 | - #if U_ICU_VERSION_MAJOR_NUM < 2 | ||
21 | - exit(1); | ||
22 | - #elif U_ICU_VERSION_MAJOR_NUM == 2 | ||
23 | - # if U_ICU_VERSION_MINOR_NUM < 8 | ||
24 | - exit(1); | ||
25 | - # else | ||
26 | - exit(0); | ||
27 | - # endif | ||
28 | - #else | ||
29 | - exit(0); | ||
30 | - #endif | ||
31 | - ]])],[ | ||
32 | - AC_MSG_RESULT([yes]) | ||
33 | - ],[ | ||
34 | - AC_MSG_RESULT([no]) | ||
35 | - AC_MSG_WARN([disabling cplusplus]) | ||
36 | - ac_with_cplusplus=no | ||
37 | - ]) | ||
38 | - AC_LANG_POP(C) | ||
39 | -fi | ||
40 | - | ||
41 | AM_CONDITIONAL([WITH_CPLUSPLUS],[test "$ac_with_cplusplus" = yes]) | ||
42 | |||
43 | if test "$ac_with_cplusplus" = yes ; then | ||
diff --git a/meta/recipes-support/beecrypt/beecrypt/fix-for-gcc-4.7.patch b/meta/recipes-support/beecrypt/beecrypt/fix-for-gcc-4.7.patch new file mode 100644 index 0000000000..8144e39be0 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/fix-for-gcc-4.7.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | |||
2 | gcc-4.7 seems to be stricter about some things, so follow | ||
3 | the suggestion from the error/note information. | ||
4 | |||
5 | ../../x86_64-linux-libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. | ||
6 | x86_64-linux-libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -isyst | ||
7 | In file included from ../../include/beecrypt/c++/util/Hashtable.h:42:0, | ||
8 | from ../../include/beecrypt/c++/util/Properties.h:36, | ||
9 | from Properties.cxx:25: | ||
10 | ../../include/beecrypt/c++/util/AbstractSet.h: In instantiation of 'bool beecrypt::uti | ||
11 | Properties.cxx:228:1: required from here | ||
12 | ../../include/beecrypt/c++/util/AbstractSet.h:59:27: error: 'containsAll' was not decl | ||
13 | ../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: declarations in dependent b | ||
14 | ../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: use 'this->containsAll' ins | ||
15 | ../../include/beecrypt/c++/util/AbstractSet.h: In instantiation of 'bool beecrypt::uti | ||
16 | Properties.cxx:228:1: required from here | ||
17 | ../../include/beecrypt/c++/util/AbstractSet.h:59:27: error: 'containsAll' was not decl | ||
18 | ../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: declarations in dependent b | ||
19 | ../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: use 'this->containsAll' ins | ||
20 | |||
21 | |||
22 | Upstream-Status: Pending | ||
23 | |||
24 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
25 | |||
26 | |||
27 | Index: beecrypt-4.2.1/include/beecrypt/c++/util/AbstractSet.h | ||
28 | =================================================================== | ||
29 | --- beecrypt-4.2.1.orig/include/beecrypt/c++/util/AbstractSet.h | ||
30 | +++ beecrypt-4.2.1/include/beecrypt/c++/util/AbstractSet.h | ||
31 | @@ -56,7 +56,7 @@ namespace beecrypt { | ||
32 | if (c->size() != size()) | ||
33 | return false; | ||
34 | |||
35 | - return containsAll(*c); | ||
36 | + return this->containsAll(*c); | ||
37 | } | ||
38 | return false; | ||
39 | } | ||
diff --git a/meta/recipes-support/beecrypt/beecrypt/fix-security.patch b/meta/recipes-support/beecrypt/beecrypt/fix-security.patch new file mode 100644 index 0000000000..6cb0c00205 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/fix-security.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | Fix visibility of various C++ functions, inspired by a similar patch in the Fink | ||
2 | project: | ||
3 | http://www.mail-archive.com/fink-commits@lists.sourceforge.net/msg75742.html | ||
4 | |||
5 | JL 05/07/10 | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Index: beecrypt-4.2.1/include/beecrypt/c++/beeyond/BeeCertificate.h | ||
10 | =================================================================== | ||
11 | --- beecrypt-4.2.1.orig/include/beecrypt/c++/beeyond/BeeCertificate.h 2010-11-26 17:22:57.000000000 +0800 | ||
12 | +++ beecrypt-4.2.1/include/beecrypt/c++/beeyond/BeeCertificate.h 2010-11-26 17:23:01.000000000 +0800 | ||
13 | @@ -147,13 +147,13 @@ | ||
14 | mutable bytearray* enc; | ||
15 | |||
16 | BeeCertificate(); | ||
17 | - BeeCertificate(InputStream& in) throw (IOException); | ||
18 | |||
19 | void encodeTBS(DataOutputStream& out) const throw (IOException); | ||
20 | |||
21 | bytearray* encodeTBS() const throw (CertificateEncodingException); | ||
22 | |||
23 | public: | ||
24 | + BeeCertificate(InputStream& in) throw (IOException); | ||
25 | BeeCertificate(const BeeCertificate&) throw (CloneNotSupportedException); | ||
26 | virtual ~BeeCertificate(); | ||
27 | |||
28 | Index: beecrypt-4.2.1/include/beecrypt/c++/security/Security.h | ||
29 | =================================================================== | ||
30 | --- beecrypt-4.2.1.orig/include/beecrypt/c++/security/Security.h 2010-11-26 17:20:55.000000000 +0800 | ||
31 | +++ beecrypt-4.2.1/include/beecrypt/c++/security/Security.h 2010-11-26 17:21:36.000000000 +0800 | ||
32 | @@ -61,7 +61,6 @@ | ||
33 | friend class SecureRandom; | ||
34 | friend class Signature; | ||
35 | |||
36 | - private: | ||
37 | struct spi | ||
38 | { | ||
39 | Object* cspi; | ||
40 | @@ -76,6 +75,7 @@ | ||
41 | static spi* getSpi(const String& algo, const String& type, const Provider&) throw (NoSuchAlgorithmException); | ||
42 | static spi* getFirstSpi(const String& type); | ||
43 | |||
44 | + private: | ||
45 | static const String& getKeyStoreDefault(); | ||
46 | |||
47 | static bool _init; | ||
diff --git a/meta/recipes-support/beecrypt/beecrypt/run-ptest b/meta/recipes-support/beecrypt/beecrypt/run-ptest new file mode 100644 index 0000000000..5bc7460be9 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt/run-ptest | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd tests | ||
4 | for i in `ls`; do ./$i; if [ $? == 0 ]; then echo "PASS: $i"; \ | ||
5 | else echo "FAIL: $i"; fi; done | ||
diff --git a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb new file mode 100644 index 0000000000..209b92e653 --- /dev/null +++ b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | # Beecrypt OE build file | ||
2 | # Copyright (C) 2004-2005, Advanced Micro Devices, Inc. All Rights Reserved | ||
3 | # Released under the MIT license (see packages/COPYING) | ||
4 | |||
5 | SUMMARY = "A general-purpose cryptography library" | ||
6 | HOMEPAGE = "http://sourceforge.net/projects/beecrypt" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz \ | ||
9 | file://disable-icu-check.patch \ | ||
10 | file://fix-security.patch \ | ||
11 | file://fix-for-gcc-4.7.patch \ | ||
12 | file://run-ptest \ | ||
13 | file://beecrypt-enable-ptest-support.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e" | ||
17 | SRC_URI[sha256sum] = "286f1f56080d1a6b1d024003a5fa2158f4ff82cae0c6829d3c476a4b5898c55d" | ||
18 | |||
19 | LICENSE = "GPLv2 & LGPLv2.1" | ||
20 | LIC_FILES_CHKSUM = "file://COPYING;md5=9894370afd5dfe7d02b8d14319e729a1 \ | ||
21 | file://COPYING.LIB;md5=dcf3c825659e82539645da41a7908589 \ | ||
22 | file://include/beecrypt/beecrypt.h;endline=20;md5=47a93eef539aac237eef86297a4d71c1" | ||
23 | |||
24 | PR = "r3" | ||
25 | |||
26 | inherit autotools multilib_header ptest | ||
27 | acpaths="" | ||
28 | |||
29 | do_install_append() { | ||
30 | oe_multilib_header beecrypt/gnu.h | ||
31 | } | ||
32 | |||
33 | EXTRA_OECONF = "--without-python --enable-shared --enable-static --disable-openmp --with-java=no" | ||
34 | |||
35 | PACKAGECONFIG ??= "" | ||
36 | PACKAGECONFIG[cplusplus] = "--with-cplusplus,--without-cplusplus,icu" | ||
37 | |||
38 | FILES_${PN} = "${sysconfdir} ${libdir}/*.so.* ${libdir}/${BPN}/*.so.*" | ||
39 | FILES_${PN}-dev += "${libdir}/${BPN}/*.so ${libdir}/${BPN}/*.la" | ||
40 | FILES_${PN}-staticdev += "${libdir}/${BPN}/*.a" | ||
41 | |||
42 | BBCLASSEXTEND = "native nativesdk" | ||
43 | |||
44 | do_install_ptest () { | ||
45 | mkdir ${D}${PTEST_PATH}/tests | ||
46 | cp -r ${B}/tests/.libs/test* ${D}${PTEST_PATH}/tests | ||
47 | } | ||
diff --git a/meta/recipes-support/boost/bjam-native_1.55.0.bb b/meta/recipes-support/boost/bjam-native_1.55.0.bb new file mode 100644 index 0000000000..d85d1a96cb --- /dev/null +++ b/meta/recipes-support/boost/bjam-native_1.55.0.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | include boost-${PV}.inc | ||
2 | |||
3 | SUMMARY = "Portable Boost.Jam build tool for boost" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | inherit native | ||
7 | |||
8 | do_compile() { | ||
9 | ./bootstrap.sh --with-toolset=gcc | ||
10 | } | ||
11 | |||
12 | do_install() { | ||
13 | install -d ${D}${bindir}/ | ||
14 | install -c -m 755 bjam ${D}${bindir}/ | ||
15 | } | ||
diff --git a/meta/recipes-support/boost/boost-1.55.0.inc b/meta/recipes-support/boost/boost-1.55.0.inc new file mode 100644 index 0000000000..7daadb6c9e --- /dev/null +++ b/meta/recipes-support/boost/boost-1.55.0.inc | |||
@@ -0,0 +1,19 @@ | |||
1 | # The Boost web site provides free peer-reviewed portable | ||
2 | # C++ source libraries. The emphasis is on libraries which | ||
3 | # work well with the C++ Standard Library. The libraries are | ||
4 | # intended to be widely useful, and are in regular use by | ||
5 | # thousands of programmers across a broad spectrum of applications. | ||
6 | HOMEPAGE = "http://www.boost.org/" | ||
7 | LICENSE = "BSL-1.0 & MIT & Python-2.0" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" | ||
9 | |||
10 | BOOST_VER = "${@"_".join(d.getVar("PV",1).split("."))}" | ||
11 | BOOST_MAJ = "${@"_".join(d.getVar("PV",1).split(".")[0:2])}" | ||
12 | BOOST_P = "boost_${BOOST_VER}" | ||
13 | |||
14 | SRC_URI = "${SOURCEFORGE_MIRROR}/boost/${BOOST_P}.tar.bz2" | ||
15 | |||
16 | SRC_URI[md5sum] = "d6eef4b4cacb2183f2bf265a5a03a354" | ||
17 | SRC_URI[sha256sum] = "fff00023dd79486d444c8e29922f4072e1d451fc5a4d2b6075852ead7f2b7b52" | ||
18 | |||
19 | S = "${WORKDIR}/${BOOST_P}" | ||
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc new file mode 100644 index 0000000000..356ca22f4a --- /dev/null +++ b/meta/recipes-support/boost/boost.inc | |||
@@ -0,0 +1,173 @@ | |||
1 | SUMMARY = "Free peer-reviewed portable C++ source libraries" | ||
2 | SECTION = "libs" | ||
3 | DEPENDS = "bjam-native zlib bzip2" | ||
4 | |||
5 | ARM_INSTRUCTION_SET = "arm" | ||
6 | |||
7 | BOOST_LIBS = "\ | ||
8 | date_time \ | ||
9 | filesystem \ | ||
10 | graph \ | ||
11 | iostreams \ | ||
12 | program_options \ | ||
13 | regex \ | ||
14 | serialization \ | ||
15 | signals \ | ||
16 | system \ | ||
17 | test \ | ||
18 | thread \ | ||
19 | " | ||
20 | |||
21 | # optional boost-python library | ||
22 | PACKAGECONFIG ??= "" | ||
23 | PACKAGECONFIG[python] = ",,python" | ||
24 | BOOST_LIBS += "${@base_contains('PACKAGECONFIG', 'python', 'python', '', d)}" | ||
25 | inherit python-dir | ||
26 | PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" | ||
27 | |||
28 | # Make a package for each library, plus -dev | ||
29 | PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}" | ||
30 | python __anonymous () { | ||
31 | packages = [] | ||
32 | extras = [] | ||
33 | for lib in d.getVar('BOOST_LIBS', True).split( ): | ||
34 | pkg = "boost-%s" % lib.replace("_", "-") | ||
35 | extras.append("--with-%s" % lib) | ||
36 | packages.append(pkg) | ||
37 | if not d.getVar("FILES_%s" % pkg, True): | ||
38 | d.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so.*" % lib) | ||
39 | d.setVar("BOOST_PACKAGES", " ".join(packages)) | ||
40 | d.setVar("BJAM_EXTRA", " ".join(extras)) | ||
41 | } | ||
42 | |||
43 | # Override the contents of specific packages | ||
44 | FILES_boost-serialization = "${libdir}/libboost_serialization*.so.* \ | ||
45 | ${libdir}/libboost_wserialization*.so.*" | ||
46 | FILES_boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \ | ||
47 | ${libdir}/libboost_unit_test_framework*.so.*" | ||
48 | |||
49 | # -dev last to pick up the remaining stuff | ||
50 | PACKAGES += "${PN}-dev ${PN}-staticdev" | ||
51 | FILES_${PN}-dev = "${includedir} ${libdir}/libboost_*.so" | ||
52 | FILES_${PN}-staticdev = "${libdir}/libboost_*.a" | ||
53 | |||
54 | # "boost" is a metapackage which pulls in all boost librabries | ||
55 | PACKAGES += "${PN}" | ||
56 | RRECOMMENDS_${PN} += "${BOOST_PACKAGES}" | ||
57 | RRECOMMENDS_${PN}_class-native = "" | ||
58 | ALLOW_EMPTY_${PN} = "1" | ||
59 | |||
60 | # to avoid GNU_HASH QA errors added LDFLAGS to ARCH; a little bit dirty but at least it works | ||
61 | TARGET_CC_ARCH += " ${LDFLAGS}" | ||
62 | |||
63 | # Oh yippee, a new build system, it's sooo cooool I could eat my own | ||
64 | # foot. inlining=on lets the compiler choose, I think. At least this | ||
65 | # stuff is documented... | ||
66 | # NOTE: if you leave <debug-symbols>on then in a debug build the build sys | ||
67 | # objcopy will be invoked, and that won't work. Building debug apparently | ||
68 | # requires hacking gcc-tools.jam | ||
69 | # | ||
70 | # Sometimes I wake up screaming. Famous figures are gathered in the nightmare, | ||
71 | # Steve Bourne, Larry Wall, the whole of the ANSI C committee. They're just | ||
72 | # standing there, waiting, but the truely terrifying thing is what they carry | ||
73 | # in their hands. At first sight each seems to bear the same thing, but it is | ||
74 | # not so for the forms in their grasp are ever so slightly different one from | ||
75 | # the other. Each is twisted in some grotesque way from the other to make each | ||
76 | # an unspeakable perversion impossible to perceive without the onset of madness. | ||
77 | # True insanity awaits anyone who perceives all of these horrors together. | ||
78 | # | ||
79 | # Quotation marks, there might be an easier way to do this, but I can't find | ||
80 | # it. The problem is that the user.hpp configuration file must receive a | ||
81 | # pre-processor macro defined as the appropriate string - complete with "'s | ||
82 | # around it. (<> is a possibility here but the danger to that is that the | ||
83 | # failure case interprets the < and > as shell redirections, creating | ||
84 | # random files in the source tree.) | ||
85 | # | ||
86 | #bjam: '-DBOOST_PLATFORM_CONFIG=\"config\"' | ||
87 | #do_compile: '-sGCC=... '"'-DBOOST_PLATFORM_CONFIG=\"config\"'" | ||
88 | SQD = '"' | ||
89 | EQD = '\"' | ||
90 | #boost.bb: "... '-sGCC=... '${SQD}'-DBOOST_PLATFORM_CONFIG=${EQD}config${EQD}'${SQD} ..." | ||
91 | BJAM_CONF = "${SQD}'-DBOOST_PLATFORM_CONFIG=${EQD}boost/config/platform/${TARGET_OS}.hpp${EQD}'${SQD}" | ||
92 | |||
93 | BJAM_TOOLS = "-sTOOLS=gcc \ | ||
94 | '-sGCC=${CC} '${BJAM_CONF} \ | ||
95 | '-sGXX=${CXX} '${BJAM_CONF} \ | ||
96 | '-sGCC_INCLUDE_DIRECTORY=${STAGING_INCDIR}' \ | ||
97 | '-sGCC_STDLIB_DIRECTORY=${STAGING_LIBDIR}' \ | ||
98 | '-sBUILD=release <optimization>space <threading>multi <inlining>on <debug-symbols>off' \ | ||
99 | '-sPYTHON_VERSION=${PYTHON_BASEVERSION}' \ | ||
100 | '-sPYTHON_ROOT=${PYTHON_ROOT}' \ | ||
101 | '--layout=system' \ | ||
102 | " | ||
103 | |||
104 | # use PARALLEL_MAKE to speed up the build, but limit it by -j 64, greater paralelism causes bjam to segfault or to ignore -j | ||
105 | # https://svn.boost.org/trac/boost/ticket/7634 | ||
106 | def get_boost_parallel_make(bb, d): | ||
107 | pm = d.getVar('PARALLEL_MAKE', True) | ||
108 | if pm: | ||
109 | # people are usually using "-jN" or "-j N", but let it work with something else appended to it | ||
110 | import re | ||
111 | pm_prefix = re.search("\D+", pm) | ||
112 | pm_val = re.search("\d+", pm) | ||
113 | if pm_prefix is None or pm_val is None: | ||
114 | bb.error("Unable to analyse format of PARALLEL_MAKE variable: %s" % pm) | ||
115 | pm_nval = min(64, int(pm_val.group(0))) | ||
116 | return pm_prefix.group(0) + str(pm_nval) + pm[pm_val.end():] | ||
117 | else: | ||
118 | return "" | ||
119 | |||
120 | BOOST_PARALLEL_MAKE = "${@get_boost_parallel_make(bb, d)}" | ||
121 | BJAM_OPTS = '${BOOST_PARALLEL_MAKE} \ | ||
122 | ${BJAM_TOOLS} \ | ||
123 | -sBOOST_BUILD_USER_CONFIG=${S}/tools/build/v2/user-config.jam \ | ||
124 | --builddir=${S}/${TARGET_SYS} \ | ||
125 | --disable-icu \ | ||
126 | ${BJAM_EXTRA}' | ||
127 | |||
128 | # Native compilation of bzip2 isn't working | ||
129 | BJAM_OPTS_append_class-native = ' -sNO_BZIP2=1' | ||
130 | |||
131 | do_boostconfig() { | ||
132 | cp -f boost/config/platform/linux.hpp boost/config/platform/linux-gnueabi.hpp | ||
133 | |||
134 | # D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation. | ||
135 | if ! grep -qe "^using gcc : 4.3.1" ${S}/tools/build/v2/user-config.jam | ||
136 | then | ||
137 | echo 'using gcc : 4.3.1 : ${CXX} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;' >> ${S}/tools/build/v2/user-config.jam | ||
138 | fi | ||
139 | |||
140 | echo "using python : ${PYTHON_BASEVERSION} : : ${STAGING_INCDIR}/python${PYTHON_BASEVERSION} ;" >> ${S}/tools/build/v2/user-config.jam | ||
141 | |||
142 | CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=bjam --with-toolset=gcc --with-python-root=${PYTHON_ROOT} | ||
143 | sed -i '/^using python/d' project-config.jam | ||
144 | } | ||
145 | |||
146 | addtask do_boostconfig after do_patch before do_configure | ||
147 | |||
148 | do_compile() { | ||
149 | set -ex | ||
150 | bjam ${BJAM_OPTS} --prefix=${prefix} \ | ||
151 | --exec-prefix=${exec_prefix} \ | ||
152 | --libdir=${libdir} \ | ||
153 | --includedir=${includedir} | ||
154 | } | ||
155 | |||
156 | do_install() { | ||
157 | set -ex | ||
158 | bjam ${BJAM_OPTS} \ | ||
159 | --libdir=${D}${libdir} \ | ||
160 | --includedir=${D}${includedir} \ | ||
161 | install | ||
162 | for lib in ${BOOST_LIBS}; do | ||
163 | if [ -e ${D}${libdir}/libboost_${lib}.a ]; then | ||
164 | ln -s libboost_${lib}.a ${D}${libdir}/libboost_${lib}-mt.a | ||
165 | fi | ||
166 | if [ -e ${D}${libdir}/libboost_${lib}.so ]; then | ||
167 | ln -s libboost_${lib}.so ${D}${libdir}/libboost_${lib}-mt.so | ||
168 | fi | ||
169 | done | ||
170 | |||
171 | } | ||
172 | |||
173 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/boost/boost/arm-intrinsics.patch b/meta/recipes-support/boost/boost/arm-intrinsics.patch new file mode 100644 index 0000000000..fe85c69a82 --- /dev/null +++ b/meta/recipes-support/boost/boost/arm-intrinsics.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | 8/17/2010 - rebased to 1.44 by Qing He <qing.he@intel.com> | ||
4 | |||
5 | diff --git a/boost/smart_ptr/detail/atomic_count_sync.hpp b/boost/smart_ptr/detail/atomic_count_sync.hpp | ||
6 | index b6359b5..78b1cc2 100644 | ||
7 | --- a/boost/smart_ptr/detail/atomic_count_sync.hpp | ||
8 | +++ b/boost/smart_ptr/detail/atomic_count_sync.hpp | ||
9 | @@ -33,17 +33,46 @@ public: | ||
10 | |||
11 | long operator++() | ||
12 | { | ||
13 | +#ifdef __ARM_ARCH_7A__ | ||
14 | + int v1, tmp; | ||
15 | + asm volatile ("1: \n\t" | ||
16 | + "ldrex %0, %1 \n\t" | ||
17 | + "add %0 ,%0, #1 \n\t" | ||
18 | + "strex %2, %0, %1 \n\t" | ||
19 | + "cmp %2, #0 \n\t" | ||
20 | + "bne 1b \n\t" | ||
21 | + : "=&r" (v1), "+Q"(value_), "=&r"(tmp) | ||
22 | + ); | ||
23 | +#else | ||
24 | return __sync_add_and_fetch( &value_, 1 ); | ||
25 | +#endif | ||
26 | } | ||
27 | |||
28 | long operator--() | ||
29 | { | ||
30 | +#ifdef __ARM_ARCH_7A__ | ||
31 | + int v1, tmp; | ||
32 | + asm volatile ("1: \n\t" | ||
33 | + "ldrex %0, %1 \n\t" | ||
34 | + "sub %0 ,%0, #1 \n\t" | ||
35 | + "strex %2, %0, %1 \n\t" | ||
36 | + "cmp %2, #0 \n\t" | ||
37 | + "bne 1b \n\t" | ||
38 | + : "=&r" (v1), "+Q"(value_), "=&r"(tmp) | ||
39 | + ); | ||
40 | + return value_; | ||
41 | +#else | ||
42 | return __sync_add_and_fetch( &value_, -1 ); | ||
43 | +#endif | ||
44 | } | ||
45 | |||
46 | operator long() const | ||
47 | { | ||
48 | +#if __ARM_ARCH_7A__ | ||
49 | + return value_; | ||
50 | +#else | ||
51 | return __sync_fetch_and_add( &value_, 0 ); | ||
52 | +#endif | ||
53 | } | ||
54 | |||
55 | private: | ||
diff --git a/meta/recipes-support/boost/boost_1.55.0.bb b/meta/recipes-support/boost/boost_1.55.0.bb new file mode 100644 index 0000000000..b199c88577 --- /dev/null +++ b/meta/recipes-support/boost/boost_1.55.0.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | include boost-${PV}.inc | ||
2 | include boost.inc | ||
3 | |||
4 | SRC_URI += "file://arm-intrinsics.patch" | ||
diff --git a/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-remove-c-rehash.patch b/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-remove-c-rehash.patch new file mode 100644 index 0000000000..bf027233d1 --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-remove-c-rehash.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | From 111e905fe931da1a3800accfc675cc01c8ee080c Mon Sep 17 00:00:00 2001 | ||
4 | From: Ulf Samuelsson <ulf@emagii.com> | ||
5 | Date: Tue, 28 Feb 2012 06:42:58 +0100 | ||
6 | Subject: [PATCH] update-ca-certificates: remove c rehash | ||
7 | |||
8 | Updated earlier patch to apply clean on 2012-02-12 | ||
9 | Signed-off-by: Ulf Samuelsson <ulf@emagii.com> | ||
10 | --- | ||
11 | sbin/update-ca-certificates | 20 ++++++++++---------- | ||
12 | 1 files changed, 10 insertions(+), 10 deletions(-) | ||
13 | |||
14 | diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates | ||
15 | index 5375950..c567e3d 100755 | ||
16 | --- a/sbin/update-ca-certificates | ||
17 | +++ b/sbin/update-ca-certificates | ||
18 | @@ -132,16 +132,16 @@ rm -f "$CERTBUNDLE" | ||
19 | ADDED_CNT=$(wc -l < "$ADDED") | ||
20 | REMOVED_CNT=$(wc -l < "$REMOVED") | ||
21 | |||
22 | -if [ "$ADDED_CNT" -gt 0 ] || [ "$REMOVED_CNT" -gt 0 ] | ||
23 | -then | ||
24 | - # only run if set of files has changed | ||
25 | - if [ "$verbose" = 0 ] | ||
26 | - then | ||
27 | - c_rehash . > /dev/null | ||
28 | - else | ||
29 | - c_rehash . | ||
30 | - fi | ||
31 | -fi | ||
32 | +#if [ "$ADDED_CNT" -gt 0 ] || [ "$REMOVED_CNT" -gt 0 ] | ||
33 | +#then | ||
34 | +# # only run if set of files has changed | ||
35 | +# if [ "$verbose" = 0 ] | ||
36 | +# then | ||
37 | +# c_rehash . > /dev/null | ||
38 | +# else | ||
39 | +# c_rehash . | ||
40 | +# fi | ||
41 | +#fi | ||
42 | |||
43 | chmod 0644 "$TEMPBUNDLE" | ||
44 | mv -f "$TEMPBUNDLE" "$CERTBUNDLE" | ||
45 | -- | ||
46 | 1.7.4.1 | ||
diff --git a/meta/recipes-support/ca-certificates/ca-certificates/0002-update-ca-certificates-use-SYSROOT.patch b/meta/recipes-support/ca-certificates/ca-certificates/0002-update-ca-certificates-use-SYSROOT.patch new file mode 100644 index 0000000000..f4c84fea44 --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates/0002-update-ca-certificates-use-SYSROOT.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | From 724cb153ca0f607fb38b3a8db3ebb2742601cd81 Mon Sep 17 00:00:00 2001 | ||
4 | From: Andreas Oberritter <obi@opendreambox.org> | ||
5 | Date: Tue, 19 Mar 2013 17:14:33 +0100 | ||
6 | Subject: [PATCH 2/2] update-ca-certificates: use $SYSROOT | ||
7 | |||
8 | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> | ||
9 | --- | ||
10 | sbin/update-ca-certificates | 14 +++++++------- | ||
11 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
12 | |||
13 | diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates | ||
14 | index c567e3d..923b68a 100755 | ||
15 | --- a/sbin/update-ca-certificates | ||
16 | +++ b/sbin/update-ca-certificates | ||
17 | @@ -37,11 +37,11 @@ do | ||
18 | shift | ||
19 | done | ||
20 | |||
21 | -CERTSCONF=/etc/ca-certificates.conf | ||
22 | -CERTSDIR=/usr/share/ca-certificates | ||
23 | -LOCALCERTSDIR=/usr/local/share/ca-certificates | ||
24 | +CERTSCONF=$SYSROOT/etc/ca-certificates.conf | ||
25 | +CERTSDIR=$SYSROOT/usr/share/ca-certificates | ||
26 | +LOCALCERTSDIR=$SYSROOT/usr/local/share/ca-certificates | ||
27 | CERTBUNDLE=ca-certificates.crt | ||
28 | -ETCCERTSDIR=/etc/ssl/certs | ||
29 | +ETCCERTSDIR=$SYSROOT/etc/ssl/certs | ||
30 | |||
31 | cleanup() { | ||
32 | rm -f "$TEMPBUNDLE" | ||
33 | @@ -64,9 +64,9 @@ add() { | ||
34 | PEM="$ETCCERTSDIR/$(basename "$CERT" .crt | sed -e 's/ /_/g' \ | ||
35 | -e 's/[()]/=/g' \ | ||
36 | -e 's/,/_/g').pem" | ||
37 | - if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ] | ||
38 | + if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "${CERT##$SYSROOT}" ] | ||
39 | then | ||
40 | - ln -sf "$CERT" "$PEM" | ||
41 | + ln -sf "${CERT##$SYSROOT}" "$PEM" | ||
42 | echo +$PEM >> "$ADDED" | ||
43 | fi | ||
44 | cat "$CERT" >> "$TEMPBUNDLE" | ||
45 | @@ -148,7 +148,7 @@ mv -f "$TEMPBUNDLE" "$CERTBUNDLE" | ||
46 | |||
47 | echo "$ADDED_CNT added, $REMOVED_CNT removed; done." | ||
48 | |||
49 | -HOOKSDIR=/etc/ca-certificates/update.d | ||
50 | +HOOKSDIR=$SYSROOT/etc/ca-certificates/update.d | ||
51 | echo -n "Running hooks in $HOOKSDIR...." | ||
52 | VERBOSE_ARG= | ||
53 | [ "$verbose" = 0 ] || VERBOSE_ARG=--verbose | ||
54 | -- | ||
55 | 1.7.10.4 | ||
diff --git a/meta/recipes-support/ca-certificates/ca-certificates/default-sysroot.patch b/meta/recipes-support/ca-certificates/ca-certificates/default-sysroot.patch new file mode 100644 index 0000000000..7e0ee4cd24 --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates/default-sysroot.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | update-ca-certificates: find SYSROOT relative to its own location | ||
4 | |||
5 | This makes the script relocatable. | ||
6 | |||
7 | --- ca-certificates-20130119.orig/sbin/update-ca-certificates | ||
8 | +++ ca-certificates-20130119/sbin/update-ca-certificates | ||
9 | @@ -37,11 +37,44 @@ do | ||
10 | shift | ||
11 | done | ||
12 | |||
13 | -CERTSCONF=$SYSROOT/etc/ca-certificates.conf | ||
14 | +if [ -z "$SYSROOT" ]; then | ||
15 | + local_which () { | ||
16 | + if [ $# -lt 1 ]; then | ||
17 | + return 1 | ||
18 | + fi | ||
19 | + | ||
20 | + ( | ||
21 | + IFS=: | ||
22 | + for entry in $PATH; do | ||
23 | + if [ -x "$entry/$1" ]; then | ||
24 | + echo "$entry/$1" | ||
25 | + exit 0 | ||
26 | + fi | ||
27 | + done | ||
28 | + exit 1 | ||
29 | + ) | ||
30 | + } | ||
31 | + | ||
32 | + case "$0" in | ||
33 | + */*) | ||
34 | + sbindir=$(cd ${0%/*} && pwd) | ||
35 | + ;; | ||
36 | + *) | ||
37 | + sbindir=$(cd $(dirname $(local_which $0)) && pwd) | ||
38 | + ;; | ||
39 | + esac | ||
40 | + prefix=${sbindir%/*} | ||
41 | + SYSROOT=${prefix%/*} | ||
42 | + if [ ! -d "$SYSROOT/usr/share/ca-certificates" ]; then | ||
43 | + SYSROOT= | ||
44 | + fi | ||
45 | +fi | ||
46 | + | ||
47 | CERTSDIR=$SYSROOT/usr/share/ca-certificates | ||
48 | +CERTSCONF=$SYSROOT/etc/ca-certificates.conf | ||
49 | +ETCCERTSDIR=$SYSROOT/etc/ssl/certs | ||
50 | LOCALCERTSDIR=$SYSROOT/usr/local/share/ca-certificates | ||
51 | CERTBUNDLE=ca-certificates.crt | ||
52 | -ETCCERTSDIR=$SYSROOT/etc/ssl/certs | ||
53 | |||
54 | cleanup() { | ||
55 | rm -f "$TEMPBUNDLE" | ||
diff --git a/meta/recipes-support/ca-certificates/ca-certificates/sbindir.patch b/meta/recipes-support/ca-certificates/ca-certificates/sbindir.patch new file mode 100644 index 0000000000..a113fa8b15 --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates/sbindir.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Let us alter the install destination of the script via SBINDIR | ||
4 | |||
5 | --- ca-certificates-20130119.orig/sbin/Makefile | ||
6 | +++ ca-certificates-20130119/sbin/Makefile | ||
7 | @@ -3,9 +3,12 @@ | ||
8 | # | ||
9 | # | ||
10 | |||
11 | +SBINDIR = /usr/sbin | ||
12 | + | ||
13 | all: | ||
14 | |||
15 | clean: | ||
16 | |||
17 | install: | ||
18 | - install -m755 update-ca-certificates $(DESTDIR)/usr/sbin/ | ||
19 | + install -d $(DESTDIR)$(SBINDIR) | ||
20 | + install -m755 update-ca-certificates $(DESTDIR)$(SBINDIR)/ | ||
diff --git a/meta/recipes-support/ca-certificates/ca-certificates_20130610.bb b/meta/recipes-support/ca-certificates/ca-certificates_20130610.bb new file mode 100644 index 0000000000..2dd3742282 --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates_20130610.bb | |||
@@ -0,0 +1,70 @@ | |||
1 | SUMMARY = "Common CA certificates" | ||
2 | DESCRIPTION = "This package includes PEM files of CA certificates to allow \ | ||
3 | SSL-based applications to check for the authenticity of SSL connections. \ | ||
4 | This derived from Debian's CA Certificates." | ||
5 | HOMEPAGE = "http://packages.debian.org/sid/ca-certificates" | ||
6 | SECTION = "misc" | ||
7 | LICENSE = "GPL-2.0+ & MPL-2.0" | ||
8 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=d8fc4ed45f01c31c87c9b496d4babcae" | ||
9 | |||
10 | # This is needed to ensure we can run the postinst at image creation time | ||
11 | DEPENDS = "ca-certificates-native" | ||
12 | DEPENDS_class-native = "" | ||
13 | |||
14 | # tag: debian/20130610 | ||
15 | SRCREV = "9f3c12784eaee1e2b005a23ce8b5c38e1e851404" | ||
16 | |||
17 | SRC_URI = "git://anonscm.debian.org/collab-maint/ca-certificates.git \ | ||
18 | file://0001-update-ca-certificates-remove-c-rehash.patch \ | ||
19 | file://0002-update-ca-certificates-use-SYSROOT.patch \ | ||
20 | file://default-sysroot.patch \ | ||
21 | file://sbindir.patch" | ||
22 | S = "${WORKDIR}/git" | ||
23 | |||
24 | inherit allarch | ||
25 | |||
26 | EXTRA_OEMAKE = "\ | ||
27 | 'CERTSDIR=${datadir}/ca-certificates' \ | ||
28 | 'SBINDIR=${sbindir}' \ | ||
29 | " | ||
30 | |||
31 | do_install () { | ||
32 | install -d ${D}${datadir}/ca-certificates \ | ||
33 | ${D}${sysconfdir}/ssl/certs \ | ||
34 | ${D}${sysconfdir}/ca-certificates/update.d | ||
35 | oe_runmake 'DESTDIR=${D}' install | ||
36 | |||
37 | install -d ${D}${mandir}/man8 | ||
38 | install -m 0644 sbin/update-ca-certificates.8 ${D}${mandir}/man8/ | ||
39 | |||
40 | install -d ${D}${sysconfdir} | ||
41 | { | ||
42 | echo "# Lines starting with # will be ignored" | ||
43 | echo "# Lines starting with ! will remove certificate on next update" | ||
44 | echo "#" | ||
45 | find ${D}${datadir}/ca-certificates -type f -name '*.crt' | \ | ||
46 | sed 's,^${D}${datadir}/ca-certificates/,,' | ||
47 | } >${D}${sysconfdir}/ca-certificates.conf | ||
48 | } | ||
49 | |||
50 | do_install_append_class-target () { | ||
51 | sed -i -e 's,/etc/,${sysconfdir}/,' \ | ||
52 | -e 's,/usr/share/,${datadir}/,' \ | ||
53 | -e 's,/usr/local,${prefix}/local,' \ | ||
54 | ${D}${sbindir}/update-ca-certificates \ | ||
55 | ${D}${mandir}/man8/update-ca-certificates.8 | ||
56 | } | ||
57 | |||
58 | pkg_postinst_${PN} () { | ||
59 | SYSROOT="$D" update-ca-certificates | ||
60 | } | ||
61 | |||
62 | CONFFILES_${PN} += "${sysconfdir}/ca-certificates.conf" | ||
63 | |||
64 | # Postinsts don't seem to be run for nativesdk packages when populating SDKs. | ||
65 | CONFFILES_${PN}_append_class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt" | ||
66 | do_install_append_class-nativesdk () { | ||
67 | SYSROOT="${D}${SDKPATHNATIVE}" update-ca-certificates | ||
68 | } | ||
69 | |||
70 | BBCLASSEXTEND += "native nativesdk" | ||
diff --git a/meta/recipes-support/consolekit/consolekit/sepbuildfix.patch b/meta/recipes-support/consolekit/consolekit/sepbuildfix.patch new file mode 100644 index 0000000000..f2f9b9c682 --- /dev/null +++ b/meta/recipes-support/consolekit/consolekit/sepbuildfix.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Fix builds in the case of seprate source from the build directory. | ||
2 | |||
3 | RP 2013/4/17 | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Index: pam-ck-connector/Makefile.am | ||
8 | =================================================================== | ||
9 | --- consolekit/pam-ck-connector.orig/Makefile.am 2010-09-03 13:54:31.000000000 +0000 | ||
10 | +++ consolekit/pam-ck-connector/Makefile.am 2013-04-17 09:06:49.093524918 +0000 | ||
11 | @@ -4,7 +4,7 @@ | ||
12 | |||
13 | INCLUDES = \ | ||
14 | $(LIBDBUS_CFLAGS) \ | ||
15 | - -I$(top_builddir)/libck-connector \ | ||
16 | + -I$(top_srcdir)/libck-connector \ | ||
17 | $(NULL) | ||
18 | |||
19 | pamlibdir = $(PAM_MODULE_DIR) | ||
diff --git a/meta/recipes-support/consolekit/consolekit_0.4.6.bb b/meta/recipes-support/consolekit/consolekit_0.4.6.bb new file mode 100644 index 0000000000..c97b4498f7 --- /dev/null +++ b/meta/recipes-support/consolekit/consolekit_0.4.6.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "Framework for defining and tracking users, login sessions, and seats" | ||
2 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ConsoleKit" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit" | ||
4 | |||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3" | ||
8 | |||
9 | DEPENDS = "glib-2.0 dbus dbus-glib virtual/libx11" | ||
10 | RDEPENDS_${PN} += "base-files" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.xz \ | ||
15 | file://sepbuildfix.patch" | ||
16 | |||
17 | SRC_URI[md5sum] = "611792b4d616253a5bdec9175f8b7678" | ||
18 | SRC_URI[sha256sum] = "b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c" | ||
19 | |||
20 | S = "${WORKDIR}/ConsoleKit-${PV}" | ||
21 | |||
22 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \ | ||
23 | ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | ||
24 | |||
25 | PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam" | ||
26 | # No option to turn it on or off, so rely on the build dependency for now. | ||
27 | PACKAGECONFIG[policykit] = ",,polkit" | ||
28 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir=" | ||
29 | |||
30 | FILES_${PN} += "${localstatedir}/log/ConsoleKit ${exec_prefix}/lib/ConsoleKit \ | ||
31 | ${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \ | ||
32 | ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*" | ||
33 | FILES_${PN}-dbg += "${base_libdir}/security/.debug" | ||
34 | |||
35 | PACKAGES =+ "pam-plugin-ck-connector" | ||
36 | FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so" | ||
37 | RDEPENDS_pam-plugin-ck-connector += "${PN}" | ||
38 | |||
39 | do_install_append() { | ||
40 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
41 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
42 | echo "d ${localstatedir}/log/ConsoleKit - - - -" \ | ||
43 | > ${D}${sysconfdir}/tmpfiles.d/consolekit.conf | ||
44 | fi | ||
45 | |||
46 | # Remove /var/run from package as console-kit-daemon will populate it on startup | ||
47 | rm -fr "${D}${localstatedir}/run" | ||
48 | } | ||
diff --git a/meta/recipes-support/createrepo/createrepo/createrepo-rpm549.patch b/meta/recipes-support/createrepo/createrepo/createrepo-rpm549.patch new file mode 100644 index 0000000000..bc7200d072 --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo/createrepo-rpm549.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | dumpMetadata.py: Fix for RPM5 - 5.4.9 integration | ||
2 | |||
3 | RPM5 no longer has a switch to disable signature validation. (Due to security | ||
4 | validation concerns.) | ||
5 | |||
6 | Upstream-Status: Inappropriate [other] | ||
7 | createrepo does not support RPM5 upstream | ||
8 | |||
9 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
10 | |||
11 | diff -u createrepo-0.4.11.orig/dumpMetadata.py createrepo-0.4.11/dumpMetadata.py | ||
12 | --- createrepo-0.4.11.orig/dumpMetadata.py 2012-06-05 10:12:55.687964222 -0500 | ||
13 | +++ createrepo-0.4.11/dumpMetadata.py 2012-06-05 10:40:08.154060600 -0500 | ||
14 | @@ -92,7 +92,7 @@ | ||
15 | fdno = package # let's assume this is an fdno and go with it :) | ||
16 | except OSError: | ||
17 | raise MDError, "Error opening file" | ||
18 | - ts.setVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD)) | ||
19 | + ts.setVSFlags((rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD)) | ||
20 | try: | ||
21 | hdr = ts.hdrFromFdno(fdno) | ||
22 | except rpm.error: | ||
diff --git a/meta/recipes-support/createrepo/createrepo/fix-native-install.patch b/meta/recipes-support/createrepo/createrepo/fix-native-install.patch new file mode 100644 index 0000000000..d8202a4f7c --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo/fix-native-install.patch | |||
@@ -0,0 +1,163 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Date: Jan 31, 2011 | ||
4 | |||
5 | There are two fixes: | ||
6 | 1. -native needs to customize prefix | ||
7 | 2. needs to change python reference in binaries | ||
8 | |||
9 | Signed-off-by: Qing He <qing.he@intel.com> | ||
10 | |||
11 | diff --git a/Makefile b/Makefile | ||
12 | index b2d1a32..3c3639f 100644 | ||
13 | --- a/Makefile | ||
14 | +++ b/Makefile | ||
15 | @@ -3,22 +3,22 @@ VERSION = 0.4.11 | ||
16 | SHELL = /bin/sh | ||
17 | top_srcdir = . | ||
18 | srcdir = . | ||
19 | -prefix = /usr | ||
20 | -exec_prefix = ${prefix} | ||
21 | - | ||
22 | -bindir = ${exec_prefix}/bin | ||
23 | -sbindir = ${exec_prefix}/sbin | ||
24 | -libexecdir = ${exec_prefix}/libexec | ||
25 | -datadir = ${prefix}/share | ||
26 | -sysconfdir = ${prefix}/etc | ||
27 | -sharedstatedir = ${prefix}/com | ||
28 | -localstatedir = ${prefix}/var | ||
29 | -libdir = ${exec_prefix}/lib | ||
30 | -infodir = ${prefix}/info | ||
31 | +prefix ?= /usr | ||
32 | +exec_prefix ?= ${prefix} | ||
33 | + | ||
34 | +bindir ?= ${exec_prefix}/bin | ||
35 | +sbindir ?= ${exec_prefix}/sbin | ||
36 | +libexecdir ?= ${exec_prefix}/libexec | ||
37 | +datadir ?= ${prefix}/share | ||
38 | +sysconfdir ?= ${prefix}/etc | ||
39 | +sharedstatedir ?= ${prefix}/com | ||
40 | +localstatedir ?= ${prefix}/var | ||
41 | +libdir ?= ${exec_prefix}/lib | ||
42 | +infodir ?= ${prefix}/info | ||
43 | docdir = | ||
44 | -includedir = ${prefix}/include | ||
45 | +includedir ?= ${prefix}/include | ||
46 | oldincludedir = /usr/include | ||
47 | -mandir = ${prefix}/share/man | ||
48 | +mandir ?= ${prefix}/share/man | ||
49 | |||
50 | pkgdatadir = $(datadir)/$(PACKAGE) | ||
51 | pkglibdir = $(libdir)/$(PACKAGE) | ||
52 | diff --git a/bin/Makefile b/bin/Makefile | ||
53 | index 52c1f50..e30610e 100644 | ||
54 | --- a/bin/Makefile | ||
55 | +++ b/bin/Makefile | ||
56 | @@ -1,22 +1,22 @@ | ||
57 | SHELL = /bin/sh | ||
58 | top_srcdir = .. | ||
59 | srcdir = ../bin | ||
60 | -prefix = /usr | ||
61 | -exec_prefix = ${prefix} | ||
62 | - | ||
63 | -bindir = ${exec_prefix}/bin | ||
64 | -sbindir = ${exec_prefix}/sbin | ||
65 | -libexecdir = ${exec_prefix}/libexec | ||
66 | -datadir = ${prefix}/share | ||
67 | -sysconfdir = ${prefix}/etc | ||
68 | -sharedstatedir = ${prefix}/com | ||
69 | -localstatedir = ${prefix}/var | ||
70 | -libdir = ${exec_prefix}/lib | ||
71 | -infodir = ${prefix}/info | ||
72 | +prefix ?= /usr | ||
73 | +exec_prefix ?= ${prefix} | ||
74 | + | ||
75 | +bindir ?= ${exec_prefix}/bin | ||
76 | +sbindir ?= ${exec_prefix}/sbin | ||
77 | +libexecdir ?= ${exec_prefix}/libexec | ||
78 | +datadir ?= ${prefix}/share | ||
79 | +sysconfdir ?= ${prefix}/etc | ||
80 | +sharedstatedir ?= ${prefix}/com | ||
81 | +localstatedir ?= ${prefix}/var | ||
82 | +libdir ?= ${exec_prefix}/lib | ||
83 | +infodir ?= ${prefix}/info | ||
84 | docdir = | ||
85 | -includedir = ${prefix}/include | ||
86 | +includedir ?= ${prefix}/include | ||
87 | oldincludedir = /usr/include | ||
88 | -mandir = ${prefix}/man | ||
89 | +mandir ?= ${prefix}/man | ||
90 | |||
91 | pkgdatadir = $(datadir)/$(PACKAGE) | ||
92 | pkglibdir = $(libdir)/$(PACKAGE) | ||
93 | @@ -40,8 +40,11 @@ all: $(srcdir)/$(PACKAGE) | ||
94 | |||
95 | |||
96 | install: all installdirs | ||
97 | - $(INSTALL_BIN) $(srcdir)/$(PACKAGE) $(DESTDIR)$(bindir)/$(PACKAGE) | ||
98 | - $(INSTALL_BIN) $(srcdir)/modifyrepo $(DESTDIR)$(bindir)/modifyrepo | ||
99 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/$(PACKAGE) > $(srcdir)/$(PACKAGE).tmp | ||
100 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/modifyrepo > $(srcdir)/modifyrepo.tmp | ||
101 | + $(INSTALL_BIN) $(srcdir)/$(PACKAGE).tmp $(DESTDIR)$(bindir)/$(PACKAGE) | ||
102 | + $(INSTALL_BIN) $(srcdir)/modifyrepo.tmp $(DESTDIR)$(bindir)/modifyrepo | ||
103 | + rm -f $(srcdir)/$(PACKAGE).tmp $(srcdir)/modifyrepo.tmp | ||
104 | |||
105 | |||
106 | uninstall: | ||
107 | diff --git a/bin/createrepo b/bin/createrepo | ||
108 | index b0de515..eaacb39 100755 | ||
109 | --- a/bin/createrepo | ||
110 | +++ b/bin/createrepo | ||
111 | @@ -1,2 +1,2 @@ | ||
112 | #!/bin/sh | ||
113 | -exec /usr/share/createrepo/genpkgmetadata.py "$@" | ||
114 | +exec @DATADIR@/createrepo/genpkgmetadata.py "$@" | ||
115 | diff --git a/bin/modifyrepo b/bin/modifyrepo | ||
116 | index c9732d8..6f7c1d4 100755 | ||
117 | --- a/bin/modifyrepo | ||
118 | +++ b/bin/modifyrepo | ||
119 | @@ -1,2 +1,2 @@ | ||
120 | #!/bin/sh | ||
121 | -exec /usr/share/createrepo/modifyrepo.py "$@" | ||
122 | +exec @DATADIR@/createrepo/modifyrepo.py "$@" | ||
123 | diff --git a/docs/Makefile b/docs/Makefile | ||
124 | index 0a41179..e128c85 100644 | ||
125 | --- a/docs/Makefile | ||
126 | +++ b/docs/Makefile | ||
127 | @@ -1,22 +1,22 @@ | ||
128 | SHELL = /bin/sh | ||
129 | top_srcdir = .. | ||
130 | srcdir = ../docs | ||
131 | -prefix = /usr | ||
132 | -exec_prefix = ${prefix} | ||
133 | - | ||
134 | -bindir = ${exec_prefix}/bin | ||
135 | -sbindir = ${exec_prefix}/sbin | ||
136 | -libexecdir = ${exec_prefix}/libexec | ||
137 | -datadir = ${prefix}/share | ||
138 | -sysconfdir = ${prefix}/etc | ||
139 | -sharedstatedir = ${prefix}/com | ||
140 | -localstatedir = ${prefix}/var | ||
141 | -libdir = ${exec_prefix}/lib | ||
142 | -infodir = ${prefix}/info | ||
143 | +prefix ?= /usr | ||
144 | +exec_prefix ?= ${prefix} | ||
145 | + | ||
146 | +bindir ?= ${exec_prefix}/bin | ||
147 | +sbindir ?= ${exec_prefix}/sbin | ||
148 | +libexecdir ?= ${exec_prefix}/libexec | ||
149 | +datadir ?= ${prefix}/share | ||
150 | +sysconfdir ?= ${prefix}/etc | ||
151 | +sharedstatedir ?= ${prefix}/com | ||
152 | +localstatedir ?= ${prefix}/var | ||
153 | +libdir ?= ${exec_prefix}/lib | ||
154 | +infodir ?= ${prefix}/info | ||
155 | docdir = | ||
156 | -includedir = ${prefix}/include | ||
157 | +includedir ?= ${prefix}/include | ||
158 | oldincludedir = /usr/include | ||
159 | -mandir = ${datadir}/man | ||
160 | +mandir ?= ${datadir}/man | ||
161 | |||
162 | pkgdatadir = $(datadir)/$(PACKAGE) | ||
163 | pkglibdir = $(libdir)/$(PACKAGE) | ||
diff --git a/meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch b/meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch new file mode 100644 index 0000000000..80205a1507 --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | Author: Andrei Gherzan <andrei@gherzan.ro> | ||
2 | |||
3 | Python interpreter should be use from PATH - native python - and not the one from | ||
4 | host. | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Index: createrepo-0.4.11/genpkgmetadata.py | ||
9 | =================================================================== | ||
10 | --- createrepo-0.4.11.orig/genpkgmetadata.py 2012-04-10 17:14:05.278649384 +0300 | ||
11 | +++ createrepo-0.4.11/genpkgmetadata.py 2012-04-10 17:14:22.290648886 +0300 | ||
12 | @@ -1,4 +1,4 @@ | ||
13 | -#!/usr/bin/python -t | ||
14 | +#! /usr/bin/env python | ||
15 | # primary functions and glue for generating the repository metadata | ||
16 | # | ||
17 | |||
18 | Index: createrepo-0.4.11/modifyrepo.py | ||
19 | =================================================================== | ||
20 | --- createrepo-0.4.11.orig/modifyrepo.py 2012-04-10 17:14:09.106649272 +0300 | ||
21 | +++ createrepo-0.4.11/modifyrepo.py 2012-04-10 17:14:27.818648725 +0300 | ||
22 | @@ -1,4 +1,4 @@ | ||
23 | -#!/usr/bin/env python | ||
24 | +#! /usr/bin/env python | ||
25 | # $Id$ | ||
26 | # | ||
27 | # This tools is used to insert arbitrary metadata into an RPM repository. | ||
28 | Index: createrepo-0.4.11/dumpMetadata.py | ||
29 | =================================================================== | ||
30 | --- createrepo-0.4.11.orig/dumpMetadata.py 2012-04-10 17:19:23.874640068 +0300 | ||
31 | +++ createrepo-0.4.11/dumpMetadata.py 2012-04-10 17:19:34.502639756 +0300 | ||
32 | @@ -1,4 +1,4 @@ | ||
33 | -#!/usr/bin/python -t | ||
34 | +#! /usr/bin/env python | ||
35 | # base classes and functions for dumping out package Metadata | ||
36 | # | ||
37 | # This program is free software; you can redistribute it and/or modify | ||
38 | Index: createrepo-0.4.11/readMetadata.py | ||
39 | =================================================================== | ||
40 | --- createrepo-0.4.11.orig/readMetadata.py 2012-04-10 17:19:19.626640193 +0300 | ||
41 | +++ createrepo-0.4.11/readMetadata.py 2012-04-10 17:19:40.198639590 +0300 | ||
42 | @@ -1,4 +1,4 @@ | ||
43 | -#!/usr/bin/python -t | ||
44 | +#! /usr/bin/env python | ||
45 | |||
46 | # This program is free software; you can redistribute it and/or modify | ||
47 | # it under the terms of the GNU General Public License as published by | ||
diff --git a/meta/recipes-support/createrepo/createrepo/recommends.patch b/meta/recipes-support/createrepo/createrepo/recommends.patch new file mode 100644 index 0000000000..dc5de2b5b0 --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo/recommends.patch | |||
@@ -0,0 +1,71 @@ | |||
1 | createrepo: implement recommends support | ||
2 | |||
3 | Record against the corresponding requires entry in the output metadata | ||
4 | if a dependency relationship is marked with the RPMSENSE_MISSINGOK flag | ||
5 | (indicating it is a recommendation, rather than a hard dependency). | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
10 | |||
11 | diff --git a/dumpMetadata.py b/dumpMetadata.py | ||
12 | index 70bb2d8..e40e8ac 100644 | ||
13 | --- a/dumpMetadata.py | ||
14 | +++ b/dumpMetadata.py | ||
15 | @@ -319,6 +319,23 @@ class RpmMetaData: | ||
16 | reqs.append(0) | ||
17 | return reqs | ||
18 | |||
19 | + def _checkMissingOk(self, flags): | ||
20 | + reqs=[] | ||
21 | + if flags is None: | ||
22 | + return reqs | ||
23 | + | ||
24 | + if type(flags) is not types.ListType: | ||
25 | + flags = [flags] | ||
26 | + for flag in flags: | ||
27 | + newflag = flag | ||
28 | + if flag is not None: | ||
29 | + newflag = flag & rpm.RPMSENSE_MISSINGOK | ||
30 | + if newflag: | ||
31 | + reqs.append(1) | ||
32 | + else: | ||
33 | + reqs.append(0) | ||
34 | + return reqs | ||
35 | + | ||
36 | |||
37 | def _correctVersion(self, vers): | ||
38 | returnvers = [] | ||
39 | @@ -537,9 +554,10 @@ class RpmMetaData: | ||
40 | tmpflags = self.hdr[rpm.RPMTAG_REQUIREFLAGS] | ||
41 | flags = self._correctFlags(tmpflags) | ||
42 | prereq = self._checkPreReq(tmpflags) | ||
43 | + missingok = self._checkMissingOk(tmpflags) | ||
44 | ver = self._correctVersion(self.hdr[rpm.RPMTAG_REQUIREVERSION]) | ||
45 | if names is not None: | ||
46 | - lst = zip(names, flags, ver, prereq) | ||
47 | + lst = zip(names, flags, ver, prereq, missingok) | ||
48 | return self._uniq(lst) | ||
49 | |||
50 | def obsoletesList(self): | ||
51 | @@ -692,7 +710,7 @@ def generateXML(doc, node, formatns, rpmObj, sumtype): | ||
52 | depsList = rpmObj.depsList() | ||
53 | if len(depsList) > 0: | ||
54 | rpconode = format.newChild(formatns, 'requires', None) | ||
55 | - for (name, flags, (e,v,r), prereq) in depsList: | ||
56 | + for (name, flags, (e,v,r), prereq, missingok) in depsList: | ||
57 | entry = rpconode.newChild(formatns, 'entry', None) | ||
58 | entry.newProp('name', name) | ||
59 | if flags != 0: | ||
60 | @@ -711,6 +729,8 @@ def generateXML(doc, node, formatns, rpmObj, sumtype): | ||
61 | entry.newProp('rel', str(r)) | ||
62 | if prereq == 1: | ||
63 | entry.newProp('pre', str(prereq)) | ||
64 | + if missingok: | ||
65 | + entry.newProp('missingok', '1') | ||
66 | |||
67 | for file in rpmObj.usefulFiles(): | ||
68 | files = format.newChild(None, 'file', None) | ||
69 | -- | ||
70 | 1.7.9.5 | ||
71 | |||
diff --git a/meta/recipes-support/createrepo/createrepo/rpm-createsolvedb.py b/meta/recipes-support/createrepo/createrepo/rpm-createsolvedb.py new file mode 100755 index 0000000000..a5b61bade7 --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo/rpm-createsolvedb.py | |||
@@ -0,0 +1,64 @@ | |||
1 | #!/usr/bin/env python | ||
2 | # | ||
3 | # This script generates a solution database for a directory containing rpm packages | ||
4 | # but tries to be efficient about this, only doing so when the packages have changed | ||
5 | # in some way. | ||
6 | # | ||
7 | # It is assumed something already went through and removed all the solvedb.done stamp files | ||
8 | # in advance. | ||
9 | # | ||
10 | # First argument - the rpm binary to use | ||
11 | # Subsequent arguments - paths to process solution databases for | ||
12 | # | ||
13 | |||
14 | import sys, os | ||
15 | import hashlib | ||
16 | import stat | ||
17 | import subprocess | ||
18 | |||
19 | if len(sys.argv) < 1: | ||
20 | print("Error, rpm command not specified") | ||
21 | sys.exit(1) | ||
22 | |||
23 | if len(sys.argv) < 2: | ||
24 | print("Error, no paths specified") | ||
25 | sys.exit(1) | ||
26 | |||
27 | paths = sys.argv[2:] | ||
28 | |||
29 | for path in paths: | ||
30 | if os.path.exists(path + "/solvedb.done"): | ||
31 | continue | ||
32 | data = "" | ||
33 | manifest = [] | ||
34 | for root, dirs, files in os.walk(path): | ||
35 | for file in files: | ||
36 | f = os.path.join(root, file) | ||
37 | if f.startswith(path + "/" + "solvedb"): | ||
38 | continue | ||
39 | data = data + str(os.stat(f)[stat.ST_MTIME]) | ||
40 | manifest.append(f) | ||
41 | checksum = hashlib.md5(data).hexdigest() | ||
42 | |||
43 | if os.path.exists(path + "/solvedb.checksum") and open(path + "/solvedb.checksum", "r").read() == checksum: | ||
44 | open(path + "/solvedb.done", "w") | ||
45 | continue | ||
46 | |||
47 | if os.path.exists(path + "/solvedb"): | ||
48 | subprocess.call("rm -rf %s" % (path + "/solvedb"), shell=True) | ||
49 | os.mkdir(path + "/solvedb") | ||
50 | m = open(path + "/solvedb/manifest", "w") | ||
51 | m.write("# Dynamically generated solve manifest\n") | ||
52 | for f in manifest: | ||
53 | m.write(f + "\n") | ||
54 | m.close() | ||
55 | |||
56 | cmd = sys.argv[1] + ' -i --replacepkgs --replacefiles --oldpackage -D "_dbpath ' + path + '/solvedb" --justdb \ | ||
57 | --noaid --nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos --stats \ | ||
58 | --ignoresize --nosignature --nodigest -D "__dbi_txn create nofsync" \ | ||
59 | ' + path + '/solvedb/manifest' | ||
60 | subprocess.call(cmd, shell=True) | ||
61 | |||
62 | open(path + "/solvedb.checksum", "w").write(checksum) | ||
63 | open(path + "/solvedb.done", "w") | ||
64 | |||
diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb new file mode 100644 index 0000000000..159a6c4b27 --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "Creates metadata indexes for RPM package repositories" | ||
2 | HOMEPAGE = "http://createrepo.baseurl.org/" | ||
3 | |||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" | ||
6 | |||
7 | DEPENDS_class-native += "libxml2-native rpm-native" | ||
8 | |||
9 | PR = "r9" | ||
10 | |||
11 | SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ | ||
12 | file://fix-native-install.patch \ | ||
13 | file://python-scripts-should-use-interpreter-from-env.patch \ | ||
14 | file://createrepo-rpm549.patch \ | ||
15 | file://recommends.patch \ | ||
16 | file://rpm-createsolvedb.py \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2" | ||
20 | SRC_URI[sha256sum] = "a73ae11a0dcde8bde36d900bc3f7f8f1083ba752c70a5c61b72d1e1e7608f21b" | ||
21 | |||
22 | BBCLASSEXTEND = "native" | ||
23 | |||
24 | do_install () { | ||
25 | oe_runmake -e 'DESTDIR=${D}' install | ||
26 | install -m 0755 ${WORKDIR}/rpm-createsolvedb.py ${D}${bindir}/ | ||
27 | } | ||
28 | |||
29 | # Wrap the python script since the native python is | ||
30 | # ${bindir}/python-native/python, and the "#! /usr/bin/env python" can't | ||
31 | # find it since it is not in PATH. | ||
32 | do_install_append_class-native () { | ||
33 | # Not all the python scripts should be wrapped since some of | ||
34 | # them are modules (be imported). | ||
35 | for i in ${D}${datadir}/createrepo/genpkgmetadata.py \ | ||
36 | ${D}${datadir}/createrepo/modifyrepo.py \ | ||
37 | ${D}${bindir}/rpm-createsolvedb.py ; do | ||
38 | sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' $i | ||
39 | done | ||
40 | |||
41 | create_wrapper ${D}/${bindir}/createrepo \ | ||
42 | RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \ | ||
43 | RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \ | ||
44 | RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale | ||
45 | } | ||
diff --git a/meta/recipes-support/curl/curl/configure_ac.patch b/meta/recipes-support/curl/curl/configure_ac.patch new file mode 100644 index 0000000000..b8bd304d71 --- /dev/null +++ b/meta/recipes-support/curl/curl/configure_ac.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- a/configure.ac | ||
4 | +++ b/configure.ac | ||
5 | @@ -281,7 +281,7 @@ dnl ************************************ | ||
6 | |||
7 | CURL_CHECK_COMPILER | ||
8 | CURL_SET_COMPILER_BASIC_OPTS | ||
9 | -CURL_SET_COMPILER_DEBUG_OPTS | ||
10 | +dnl CURL_SET_COMPILER_DEBUG_OPTS | ||
11 | CURL_SET_COMPILER_OPTIMIZE_OPTS | ||
12 | CURL_SET_COMPILER_WARNING_OPTS | ||
13 | |||
diff --git a/meta/recipes-support/curl/curl/pkgconfig_fix.patch b/meta/recipes-support/curl/curl/pkgconfig_fix.patch new file mode 100644 index 0000000000..5d8769d522 --- /dev/null +++ b/meta/recipes-support/curl/curl/pkgconfig_fix.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Upstream-Status: Inappropriate [packaging] | ||
2 | |||
3 | diff -Nurd curl-7.29.0/configure.ac curl-7.29.0/configure.ac | ||
4 | --- curl-7.29.0/configure.ac 2013-02-06 11:47:19.000000000 +0200 | ||
5 | +++ curl-7.29.0/configure.ac 2013-02-16 12:32:22.132327764 +0200 | ||
6 | @@ -1883,6 +1883,7 @@ | ||
7 | AC_SUBST(USE_GNUTLS, [1]) | ||
8 | GNUTLS_ENABLED=1 | ||
9 | USE_GNUTLS="yes" | ||
10 | + GNUTLS_REQUIRED="gnutls" | ||
11 | curl_ssl_msg="enabled (GnuTLS)" | ||
12 | ], | ||
13 | [ | ||
14 | @@ -1953,6 +1954,8 @@ | ||
15 | ]) | ||
16 | fi | ||
17 | |||
18 | +AC_SUBST(GNUTLS_REQUIRED) | ||
19 | + | ||
20 | dnl ---------------------------------------------------- | ||
21 | dnl check for PolarSSL | ||
22 | dnl ---------------------------------------------------- | ||
23 | diff -Nurd curl-7.29.0/libcurl.pc.in curl-7.29.0/libcurl.pc.in | ||
24 | --- curl-7.29.0/libcurl.pc.in 2012-12-12 00:32:22.000000000 +0200 | ||
25 | +++ curl-7.29.0/libcurl.pc.in 2013-02-16 12:33:27.063844337 +0200 | ||
26 | @@ -35,5 +35,5 @@ | ||
27 | Description: Library to transfer files with ftp, http, etc. | ||
28 | Version: @CURLVERSION@ | ||
29 | Libs: -L${libdir} -lcurl | ||
30 | -Libs.private: @LIBCURL_LIBS@ | ||
31 | +Libs.private: -ldl -lz | ||
32 | Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@ | ||
diff --git a/meta/recipes-support/curl/curl_7.35.0.bb b/meta/recipes-support/curl/curl_7.35.0.bb new file mode 100644 index 0000000000..9cc60c88f7 --- /dev/null +++ b/meta/recipes-support/curl/curl_7.35.0.bb | |||
@@ -0,0 +1,63 @@ | |||
1 | SUMMARY = "Command line tool and library for client-side URL transfers" | ||
2 | HOMEPAGE = "http://curl.haxx.se/" | ||
3 | BUGTRACKER = "http://curl.haxx.se/mail/list.cgi?list=curl-tracker" | ||
4 | SECTION = "console/network" | ||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;beginline=7;md5=3a34942f4ae3fbf1a303160714e664ac" | ||
7 | |||
8 | DEPENDS = "zlib gnutls" | ||
9 | DEPENDS_class-native = "zlib-native openssl-native" | ||
10 | DEPENDS_class-nativesdk = "nativesdk-zlib" | ||
11 | |||
12 | SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \ | ||
13 | file://pkgconfig_fix.patch \ | ||
14 | " | ||
15 | |||
16 | # curl likes to set -g0 in CFLAGS, so we stop it | ||
17 | # from mucking around with debug options | ||
18 | # | ||
19 | SRC_URI += " file://configure_ac.patch" | ||
20 | |||
21 | SRC_URI[md5sum] = "c18fbdd031adb0529ae09fce399f2d10" | ||
22 | SRC_URI[sha256sum] = "d774d1701454f1b7d331c2075fc4f6dd972bddc2d171f43645ef3647c7fc0d83" | ||
23 | |||
24 | inherit autotools pkgconfig binconfig multilib_header | ||
25 | |||
26 | EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \ | ||
27 | --without-libssh2 \ | ||
28 | --with-random=/dev/urandom \ | ||
29 | --without-libidn \ | ||
30 | --enable-crypto-auth \ | ||
31 | --disable-ldap \ | ||
32 | --disable-ldaps \ | ||
33 | --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ | ||
34 | ${CURLGNUTLS} \ | ||
35 | " | ||
36 | |||
37 | CURLGNUTLS = " --with-gnutls=${STAGING_LIBDIR}/../ --without-ssl" | ||
38 | CURLGNUTLS_class-native = "--without-gnutls --with-ssl" | ||
39 | CURLGNUTLS_class-nativesdk = "--without-gnutls --without-ssl" | ||
40 | |||
41 | do_configure_prepend() { | ||
42 | sed -i s:OPT_GNUTLS/bin:OPT_GNUTLS:g ${S}/configure.ac | ||
43 | } | ||
44 | |||
45 | do_install_append() { | ||
46 | oe_multilib_header curl/curlbuild.h | ||
47 | } | ||
48 | |||
49 | PACKAGES =+ "libcurl libcurl-dev libcurl-staticdev libcurl-doc" | ||
50 | |||
51 | FILES_lib${BPN} = "${libdir}/lib*.so.*" | ||
52 | RRECOMMENDS_lib${BPN} += "ca-certificates" | ||
53 | FILES_lib${BPN}-dev = "${includedir} \ | ||
54 | ${libdir}/lib*.so \ | ||
55 | ${libdir}/lib*.la \ | ||
56 | ${libdir}/pkgconfig \ | ||
57 | ${datadir}/aclocal \ | ||
58 | ${bindir}/*-config" | ||
59 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" | ||
60 | FILES_lib${BPN}-doc = "${mandir}/man3 \ | ||
61 | ${mandir}/man1/curl-config.1" | ||
62 | |||
63 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch b/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch new file mode 100644 index 0000000000..40b13dee79 --- /dev/null +++ b/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | --- db-5.1.19/src/dbinc/mutex_int.h.orig 2011-01-05 19:21:42.181805366 -0600 | ||
4 | +++ db-5.1.19/src/dbinc/mutex_int.h 2011-01-05 19:24:53.141853117 -0600 | ||
5 | @@ -474,6 +474,25 @@ | ||
6 | |||
7 | #ifdef LOAD_ACTUAL_MUTEX_CODE | ||
8 | /* gcc/arm: 0 is clear, 1 is set. */ | ||
9 | +#if defined __thumb__ | ||
10 | +#define MUTEX_SET(tsl) ({ \ | ||
11 | + int __r, __p; \ | ||
12 | + __asm__ volatile( \ | ||
13 | + ".align 2\n\t" \ | ||
14 | + "bx pc\n\t" \ | ||
15 | + "nop\n\t" \ | ||
16 | + ".arm\n\t" \ | ||
17 | + "swpb %0, %2, [%3]\n\t" \ | ||
18 | + "eor %0, %0, #1\n\t" \ | ||
19 | + "orr %1, pc, #1\n\t" \ | ||
20 | + "bx %1\n\t" \ | ||
21 | + ".force_thumb" \ | ||
22 | + : "=&r" (__r), "=r" (__p) \ | ||
23 | + : "r" (1), "r" (tsl) \ | ||
24 | + ); \ | ||
25 | + __r & 1; \ | ||
26 | +}) | ||
27 | +#else | ||
28 | #define MUTEX_SET(tsl) ({ \ | ||
29 | int __r; \ | ||
30 | __asm__ volatile( \ | ||
31 | @@ -484,6 +503,7 @@ | ||
32 | ); \ | ||
33 | __r & 1; \ | ||
34 | }) | ||
35 | +#endif | ||
36 | |||
37 | #define MUTEX_UNSET(tsl) (*(volatile tsl_t *)(tsl) = 0) | ||
38 | #define MUTEX_INIT(tsl) (MUTEX_UNSET(tsl), 0) | ||
diff --git a/meta/recipes-support/db/db/fix-parallel-build.patch b/meta/recipes-support/db/db/fix-parallel-build.patch new file mode 100644 index 0000000000..2c7f1e186b --- /dev/null +++ b/meta/recipes-support/db/db/fix-parallel-build.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | With higher paralelism it sometimes fails with: | ||
2 | libtool: link: `util_log.lo' is not a valid libtool object | ||
3 | make: *** [db_replicate] Error 1 | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
8 | |||
9 | --- dist.orig/Makefile.in 2012-05-11 19:57:48.000000000 +0200 | ||
10 | +++ dist/Makefile.in 2013-10-31 18:17:11.875532522 +0100 | ||
11 | @@ -1034,7 +1034,7 @@ | ||
12 | db_recover@o@ util_sig@o@ $(DEF_LIB) $(LIBS) | ||
13 | $(POSTLINK) $@ | ||
14 | |||
15 | -db_replicate: db_replicate@o@ util_sig@o@ $(DEF_LIB) | ||
16 | +db_replicate: db_replicate@o@ util_log@o@ util_sig@o@ $(DEF_LIB) | ||
17 | $(CCLINK) -o $@ $(LDFLAGS) \ | ||
18 | db_replicate@o@ util_log@o@ util_sig@o@ $(DEF_LIB) $(LIBS) | ||
19 | $(POSTLINK) $@ | ||
diff --git a/meta/recipes-support/db/db_5.3.21.bb b/meta/recipes-support/db/db_5.3.21.bb new file mode 100644 index 0000000000..caf6890261 --- /dev/null +++ b/meta/recipes-support/db/db_5.3.21.bb | |||
@@ -0,0 +1,115 @@ | |||
1 | # Version 5 of the Berkeley DB from Sleepycat | ||
2 | # | ||
3 | # At present this package only installs the DB code | ||
4 | # itself (shared libraries, .a in the dev package), | ||
5 | # documentation and headers. | ||
6 | # | ||
7 | # The headers have the same names as those as v3 | ||
8 | # of the DB, only one version can be used *for dev* | ||
9 | # at once - DB3 and DB5 can both be installed on the | ||
10 | # same system at the same time if really necessary. | ||
11 | SECTION = "libs" | ||
12 | SUMMARY = "Berkeley Database v5" | ||
13 | HOMEPAGE = "http://www.oracle.com/technology/products/berkeley-db/db/index.html" | ||
14 | LICENSE = "Sleepycat" | ||
15 | VIRTUAL_NAME ?= "virtual/db" | ||
16 | RCONFLICTS_${PN} = "db3" | ||
17 | |||
18 | SRC_URI = "http://download.oracle.com/berkeley-db/db-${PV}.tar.gz" | ||
19 | SRC_URI += "file://arm-thumb-mutex_db5.patch;patchdir=.. \ | ||
20 | file://fix-parallel-build.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI[md5sum] = "3fda0b004acdaa6fa350bfc41a3b95ca" | ||
24 | SRC_URI[sha256sum] = "ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8" | ||
25 | |||
26 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=32aefa5a8e7318be1f657432cbe2e768" | ||
27 | |||
28 | inherit autotools | ||
29 | |||
30 | # Put virtual/db in any appropriate provider of a | ||
31 | # relational database, use it as a dependency in | ||
32 | # place of a specific db and use: | ||
33 | # | ||
34 | # PREFERRED_PROVIDER_virtual/db | ||
35 | # | ||
36 | # to select the correct db in the build (distro) .conf | ||
37 | PROVIDES += "${VIRTUAL_NAME}" | ||
38 | |||
39 | # bitbake isn't quite clever enough to deal with sleepycat, | ||
40 | # the distribution sits in the expected directory, but all | ||
41 | # the builds must occur from a sub-directory. The following | ||
42 | # persuades bitbake to go to the right place | ||
43 | S = "${WORKDIR}/db-${PV}/dist" | ||
44 | B = "${WORKDIR}/db-${PV}/build_unix" | ||
45 | |||
46 | # The executables go in a separate package - typically there | ||
47 | # is no need to install these unless doing real database | ||
48 | # management on the system. | ||
49 | inherit lib_package | ||
50 | |||
51 | PACKAGES =+ "${PN}-cxx" | ||
52 | FILES_${PN}-cxx = "${libdir}/*cxx*so" | ||
53 | |||
54 | |||
55 | # The dev package has the .so link (as in db3) and the .a's - | ||
56 | # it is therefore incompatible (cannot be installed at the | ||
57 | # same time) as the db3 package | ||
58 | # sort out the .so since they do version prior to the .so | ||
59 | SOLIBS = "-5*.so" | ||
60 | FILES_SOLIBSDEV = "${libdir}/libdb.so ${libdir}/libdb_cxx.so" | ||
61 | |||
62 | #configuration - set in local.conf to override | ||
63 | # All the --disable-* options replace --enable-smallbuild, which breaks a bunch of stuff (eg. postfix) | ||
64 | DB5_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disable-replication --disable-verify --disable-compat185 --disable-sql" | ||
65 | |||
66 | EXTRA_OECONF = "${DB5_CONFIG} --enable-shared --enable-cxx --with-sysroot" | ||
67 | |||
68 | # Override the MUTEX setting here, the POSIX library is | ||
69 | # the default - "POSIX/pthreads/library". | ||
70 | # Don't ignore the nice SWP instruction on the ARM: | ||
71 | # These enable the ARM assembler mutex code, this won't | ||
72 | # work with thumb compilation... | ||
73 | ARM_MUTEX = "--with-mutex=ARM/gcc-assembly" | ||
74 | MUTEX = "" | ||
75 | MUTEX_arm = "${ARM_MUTEX}" | ||
76 | MUTEX_armeb = "${ARM_MUTEX}" | ||
77 | EXTRA_OECONF += "${MUTEX}" | ||
78 | |||
79 | # Cancel the site stuff - it's set for db3 and destroys the | ||
80 | # configure. | ||
81 | CONFIG_SITE = "" | ||
82 | do_configure() { | ||
83 | gnu-configize --force ${S} | ||
84 | export STRIP="true" | ||
85 | oe_runconf | ||
86 | } | ||
87 | |||
88 | do_compile_prepend() { | ||
89 | sed -i -e 's|hardcode_into_libs=yes|hardcode_into_libs=no|' \ | ||
90 | ${B}/libtool | ||
91 | } | ||
92 | |||
93 | do_install_append() { | ||
94 | mkdir -p ${D}/${includedir}/db51 | ||
95 | mv ${D}/${includedir}/db.h ${D}/${includedir}/db51/. | ||
96 | mv ${D}/${includedir}/db_cxx.h ${D}/${includedir}/db51/. | ||
97 | ln -s db51/db.h ${D}/${includedir}/db.h | ||
98 | ln -s db51/db_cxx.h ${D}/${includedir}/db_cxx.h | ||
99 | |||
100 | # The docs end up in /usr/docs - not right. | ||
101 | if test -d "${D}/${prefix}/docs" | ||
102 | then | ||
103 | mkdir -p "${D}/${datadir}" | ||
104 | test ! -d "${D}/${docdir}" || rm -rf "${D}/${docdir}" | ||
105 | mv "${D}/${prefix}/docs" "${D}/${docdir}" | ||
106 | fi | ||
107 | |||
108 | chown -R root:root ${D} | ||
109 | } | ||
110 | |||
111 | INSANE_SKIP_${PN} = "dev-so" | ||
112 | INSANE_SKIP_${PN}-cxx = "dev-so" | ||
113 | |||
114 | BBCLASSEXTEND = "native nativesdk" | ||
115 | |||
diff --git a/meta/recipes-support/enchant/enchant_1.6.0.bb b/meta/recipes-support/enchant/enchant_1.6.0.bb new file mode 100644 index 0000000000..97a47614cd --- /dev/null +++ b/meta/recipes-support/enchant/enchant_1.6.0.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Enchant Spell checker API Library" | ||
2 | SECTION = "libs" | ||
3 | HOMEPAGE = "http://www.abisource.com/projects/enchant/" | ||
4 | BUGTRACKER = "http://bugzilla.abisource.com/enter_bug.cgi?product=Enchant" | ||
5 | |||
6 | LICENSE = "LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=dfcbabf9131dc9a95febef6753a2958b \ | ||
8 | file://src/enchant.h;beginline=1;endline=29;md5=8d881caa1d37523567e1d8f726675a18" | ||
9 | |||
10 | DEPENDS = "aspell glib-2.0" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | PR = "r3" | ||
15 | |||
16 | SRC_URI = "http://www.abisource.com/downloads/enchant/${PV}/enchant-${PV}.tar.gz" | ||
17 | |||
18 | SRC_URI[md5sum] = "de11011aff801dc61042828041fb59c7" | ||
19 | SRC_URI[sha256sum] = "2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f" | ||
20 | |||
21 | EXTRA_OECONF = "--with-aspell-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
22 | --enable-aspell br_cv_binreloc=no \ | ||
23 | " | ||
24 | |||
25 | export CXXFLAGS += " -L${STAGING_LIBDIR} -lstdc++ " | ||
26 | |||
27 | FILES_${PN} = "${bindir} ${libdir}/*${SOLIBS} ${datadir}/${BPN} ${libdir}/${BPN}/*.so" | ||
28 | FILES_${PN}-dev += "${libdir}/${BPN}/*{SOLIBSDEV} ${libdir}/${BPN}/*.la" | ||
29 | FILES_${PN}-staticdev += "${libdir}/${BPN}/*.a" | ||
30 | |||
31 | RDEPENDS_${PN} += "aspell" | ||
32 | |||
diff --git a/meta/recipes-support/gdbm/files/ptest.patch b/meta/recipes-support/gdbm/files/ptest.patch new file mode 100644 index 0000000000..65648699fb --- /dev/null +++ b/meta/recipes-support/gdbm/files/ptest.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | Add install-ptest rules. | ||
2 | |||
3 | Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | diff -ur a/Makefile.am b/Makefile.am | ||
7 | --- a/Makefile.am 2011-08-16 10:13:10.000000000 +0200 | ||
8 | +++ b/Makefile.am 2013-04-12 18:02:16.473715873 +0200 | ||
9 | @@ -31,3 +31,8 @@ | ||
10 | d=`date '+%d/%m/%Y'`; \ | ||
11 | sed 's|/\*@DIST_DATE@\*/|"'"$$d"'"|' $(srcdir)/src/version.c > \ | ||
12 | $(distdir)/src/version.c | ||
13 | + | ||
14 | +install-ptest: | ||
15 | + @for subdir in $(SUBDIRS); do \ | ||
16 | + $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \ | ||
17 | + done | ||
18 | diff -ur a/tests/Makefile.am b/tests/Makefile.am | ||
19 | --- a/tests/Makefile.am 2011-11-11 19:39:42.000000000 +0100 | ||
20 | +++ b/tests/Makefile.am 2013-04-12 18:30:57.066301037 +0200 | ||
21 | @@ -132,4 +132,14 @@ | ||
22 | dtdel_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la | ||
23 | d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la | ||
24 | |||
25 | +buildtests: $(check_PROGRAMS) $(TESTSUITE) | ||
26 | |||
27 | +install-ptest: $(check_PROGRAMS) $(TESTSUITE) | ||
28 | + @$(INSTALL) -d $(DESTDIR) | ||
29 | + @for file in $^; do \ | ||
30 | + if [ -x .libs/$$file ]; then \ | ||
31 | + $(INSTALL_PROGRAM) .libs/$$file $(DESTDIR)/$$file; \ | ||
32 | + else \ | ||
33 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ | ||
34 | + fi \ | ||
35 | + done | ||
diff --git a/meta/recipes-support/gdbm/files/run-ptest b/meta/recipes-support/gdbm/files/run-ptest new file mode 100755 index 0000000000..1afde158aa --- /dev/null +++ b/meta/recipes-support/gdbm/files/run-ptest | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # This script is used to run the gmdb test suite | ||
4 | |||
5 | cd tests | ||
6 | |||
7 | ./testsuite AUTOTEST_PATH=$PWD abs_builddir=$PWD COMPAT=1 | sed 's/^[^0-9]*\([0-9]\+\): \(.*\)\(ok\|pass\|skipped\|fail\|FAILED\)\(.*\)$/\3: \2 \4/;s/ \+/ /g;s/^ok/PASS/;s/^skipped/SKIP/;s/^fail/FAIL/;s/^FAILED/FAIL/' | ||
8 | |||
diff --git a/meta/recipes-support/gdbm/gdbm-1.8.3/libtool-mode.patch b/meta/recipes-support/gdbm/gdbm-1.8.3/libtool-mode.patch new file mode 100644 index 0000000000..0f9d04f4a1 --- /dev/null +++ b/meta/recipes-support/gdbm/gdbm-1.8.3/libtool-mode.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- gdbm-1.8.3/Makefile.in.orig 2006-02-16 15:17:25.000000000 +0000 | ||
4 | +++ gdbm-1.8.3/Makefile.in 2006-02-16 15:18:08.000000000 +0000 | ||
5 | @@ -131,7 +131,7 @@ | ||
6 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \ | ||
7 | $(DESTDIR)$(includedir) $(DESTDIR)$(man3dir) \ | ||
8 | $(DESTDIR)$(infodir) | ||
9 | - $(LIBTOOL) $(INSTALL) -c libgdbm.la $(DESTDIR)$(libdir)/libgdbm.la | ||
10 | + $(LIBTOOL) --mode=install $(INSTALL) -c libgdbm.la $(DESTDIR)$(libdir)/libgdbm.la | ||
11 | $(INSTALL_DATA) gdbm.h \ | ||
12 | $(DESTDIR)$(includedir)/gdbm.h | ||
13 | $(INSTALL_DATA) $(srcdir)/gdbm.3 \ | ||
14 | @@ -142,7 +142,7 @@ | ||
15 | install-compat: | ||
16 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \ | ||
17 | $(DESTDIR)$(includedir) | ||
18 | - $(LIBTOOL) $(INSTALL) -c libgdbm_compat.la \ | ||
19 | + $(LIBTOOL) --mode=install $(INSTALL) -c libgdbm_compat.la \ | ||
20 | $(DESTDIR)$(libdir)/libgdbm_compat.la | ||
21 | $(INSTALL_DATA) $(srcdir)/dbm.h \ | ||
22 | $(DESTDIR)$(includedir)/dbm.h | ||
diff --git a/meta/recipes-support/gdbm/gdbm-1.8.3/makefile.patch b/meta/recipes-support/gdbm/gdbm-1.8.3/makefile.patch new file mode 100644 index 0000000000..369145c410 --- /dev/null +++ b/meta/recipes-support/gdbm/gdbm-1.8.3/makefile.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | # | ||
4 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
5 | # | ||
6 | |||
7 | --- gdbm-1.8.3/Makefile.in~makefile | ||
8 | +++ gdbm-1.8.3/Makefile.in | ||
9 | @@ -22,6 +22,7 @@ | ||
10 | TEXI2DVI = texi2dvi | ||
11 | |||
12 | DEFS = | ||
13 | +DESTDIR = | ||
14 | |||
15 | # Where the system [n]dbm routines are... | ||
16 | LIBS = @LIBS@ -lc | ||
17 | @@ -127,26 +128,26 @@ | ||
18 | progs: $(PROGS) | ||
19 | |||
20 | install: libgdbm.la gdbm.h gdbm.info | ||
21 | - $(srcdir)/mkinstalldirs $(INSTALL_ROOT)$(libdir) \ | ||
22 | - $(INSTALL_ROOT)$(includedir) $(INSTALL_ROOT)$(man3dir) \ | ||
23 | - $(INSTALL_ROOT)$(infodir) | ||
24 | - $(LIBTOOL) $(INSTALL) -c libgdbm.la $(INSTALL_ROOT)$(libdir)/libgdbm.la | ||
25 | - $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h \ | ||
26 | - $(INSTALL_ROOT)$(includedir)/gdbm.h | ||
27 | - $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \ | ||
28 | - $(INSTALL_ROOT)$(man3dir)/gdbm.3 | ||
29 | - $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \ | ||
30 | - $(INSTALL_ROOT)$(infodir)/gdbm.info | ||
31 | + $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \ | ||
32 | + $(DESTDIR)$(includedir) $(DESTDIR)$(man3dir) \ | ||
33 | + $(DESTDIR)$(infodir) | ||
34 | + $(LIBTOOL) $(INSTALL) -c libgdbm.la $(DESTDIR)$(libdir)/libgdbm.la | ||
35 | + $(INSTALL_DATA) gdbm.h \ | ||
36 | + $(DESTDIR)$(includedir)/gdbm.h | ||
37 | + $(INSTALL_DATA) $(srcdir)/gdbm.3 \ | ||
38 | + $(DESTDIR)$(man3dir)/gdbm.3 | ||
39 | + $(INSTALL_DATA) $(srcdir)/gdbm.info \ | ||
40 | + $(DESTDIR)$(infodir)/gdbm.info | ||
41 | |||
42 | install-compat: | ||
43 | - $(srcdir)/mkinstalldirs $(INSTALL_ROOT)$(libdir) \ | ||
44 | - $(INSTALL_ROOT)$(includedir) | ||
45 | + $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \ | ||
46 | + $(DESTDIR)$(includedir) | ||
47 | $(LIBTOOL) $(INSTALL) -c libgdbm_compat.la \ | ||
48 | - $(INSTALL_ROOT)$(libdir)/libgdbm_compat.la | ||
49 | - $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/dbm.h \ | ||
50 | - $(INSTALL_ROOT)$(includedir)/dbm.h | ||
51 | - $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/ndbm.h \ | ||
52 | - $(INSTALL_ROOT)$(includedir)/ndbm.h | ||
53 | + $(DESTDIR)$(libdir)/libgdbm_compat.la | ||
54 | + $(INSTALL_DATA) $(srcdir)/dbm.h \ | ||
55 | + $(DESTDIR)$(includedir)/dbm.h | ||
56 | + $(INSTALL_DATA) $(srcdir)/ndbm.h \ | ||
57 | + $(DESTDIR)$(includedir)/ndbm.h | ||
58 | |||
59 | #libgdbm.a: $(OBJS) gdbm.h | ||
60 | # rm -f libgdbm.a | ||
diff --git a/meta/recipes-support/gdbm/gdbm_1.11.bb b/meta/recipes-support/gdbm/gdbm_1.11.bb new file mode 100644 index 0000000000..d723b1ad50 --- /dev/null +++ b/meta/recipes-support/gdbm/gdbm_1.11.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Key/value database library with extensible hashing" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdbm/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv3" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" | ||
6 | |||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \ | ||
9 | file://run-ptest \ | ||
10 | file://ptest.patch \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "72c832680cf0999caedbe5b265c8c1bd" | ||
14 | SRC_URI[sha256sum] = "8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3" | ||
15 | |||
16 | inherit autotools gettext lib_package ptest | ||
17 | |||
18 | # Needed for dbm python module | ||
19 | EXTRA_OECONF = "-enable-libgdbm-compat" | ||
20 | |||
21 | # Stop presence of dbm/nbdm on the host contaminating builds | ||
22 | CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no" | ||
23 | |||
24 | BBCLASSEXTEND = "native nativesdk" | ||
25 | |||
26 | do_install_append () { | ||
27 | # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find | ||
28 | # these headers | ||
29 | install -d ${D}${includedir}/gdbm | ||
30 | ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h | ||
31 | ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h | ||
32 | } | ||
33 | |||
34 | RDEPENDS_${PN}-ptest += "diffutils" | ||
35 | |||
36 | do_compile_ptest() { | ||
37 | oe_runmake -C tests buildtests | ||
38 | } | ||
39 | |||
40 | PACKAGES =+ "${PN}-compat \ | ||
41 | " | ||
42 | FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ | ||
43 | " | ||
diff --git a/meta/recipes-support/gdbm/gdbm_1.8.3.bb b/meta/recipes-support/gdbm/gdbm_1.8.3.bb new file mode 100644 index 0000000000..bcf6b99f61 --- /dev/null +++ b/meta/recipes-support/gdbm/gdbm_1.8.3.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Key/value database library with extensible hashing" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdbm/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d8e20eece214df8ef953ed5857862150" | ||
6 | |||
7 | PR = "r4" | ||
8 | |||
9 | SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \ | ||
10 | file://makefile.patch \ | ||
11 | file://libtool-mode.patch" | ||
12 | |||
13 | SRC_URI[md5sum] = "1d1b1d5c0245b1c00aff92da751e9aa1" | ||
14 | SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9" | ||
15 | |||
16 | inherit autotools | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/gmp/gmp-4.2.1/configure.patch b/meta/recipes-support/gmp/gmp-4.2.1/configure.patch new file mode 100644 index 0000000000..7597a935a2 --- /dev/null +++ b/meta/recipes-support/gmp/gmp-4.2.1/configure.patch | |||
@@ -0,0 +1,209 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | acinclude.m4 | 26 ++++++++++++++------------ | ||
4 | configure.in | 24 +++++++++--------------- | ||
5 | 2 files changed, 23 insertions(+), 27 deletions(-) | ||
6 | |||
7 | Index: gmp-5.0.3/acinclude.m4 | ||
8 | =================================================================== | ||
9 | --- gmp-5.0.3.orig/acinclude.m4 | ||
10 | +++ gmp-5.0.3/acinclude.m4 | ||
11 | @@ -30,29 +30,29 @@ dnl a_out.exe - OpenVMS DEC C called | ||
12 | dnl conftest.exe - various DOS compilers | ||
13 | |||
14 | |||
15 | -define(IA64_PATTERN, | ||
16 | +define([IA64_PATTERN], | ||
17 | [[ia64*-*-* | itanium-*-* | itanium2-*-*]]) | ||
18 | |||
19 | dnl Need to be careful not to match m6811, m6812, m68hc11 and m68hc12, all | ||
20 | dnl of which config.sub accepts. (Though none of which are likely to work | ||
21 | dnl with GMP.) | ||
22 | dnl | ||
23 | -define(M68K_PATTERN, | ||
24 | +define([M68K_PATTERN], | ||
25 | [[m68k-*-* | m68[0-9][0-9][0-9]-*-*]]) | ||
26 | |||
27 | -define(POWERPC64_PATTERN, | ||
28 | +define([POWERPC64_PATTERN], | ||
29 | [[powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*]]) | ||
30 | |||
31 | -define(S390_PATTERN, | ||
32 | +define([S390_PATTERN], | ||
33 | [[s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-*]]) | ||
34 | |||
35 | -define(S390X_PATTERN, | ||
36 | +define([S390X_PATTERN], | ||
37 | [[s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*]]) | ||
38 | |||
39 | -define(X86_PATTERN, | ||
40 | +define([X86_PATTERN], | ||
41 | [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*]]) | ||
42 | |||
43 | -define(X86_64_PATTERN, | ||
44 | +define([X86_64_PATTERN], | ||
45 | [[athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*]]) | ||
46 | |||
47 | dnl GMP_FAT_SUFFIX(DSTVAR, DIRECTORY) | ||
48 | @@ -70,7 +70,7 @@ dnl x86 -> x86 | ||
49 | dnl x86/k6 -> k6 | ||
50 | dnl x86/k6/mmx -> k6_mmx | ||
51 | |||
52 | -define(GMP_FAT_SUFFIX, | ||
53 | +define([GMP_FAT_SUFFIX], | ||
54 | [[$1=`echo $2 | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`]]) | ||
55 | |||
56 | |||
57 | @@ -79,7 +79,7 @@ dnl ---------------------------------- | ||
58 | dnl Emit code to remove any occurrence of ITEM from $LISTVAR. ITEM can be a | ||
59 | dnl shell expression like $foo if desired. | ||
60 | |||
61 | -define(GMP_REMOVE_FROM_LIST, | ||
62 | +define([GMP_REMOVE_FROM_LIST], | ||
63 | [remove_from_list_tmp= | ||
64 | for remove_from_list_i in $[][$1]; do | ||
65 | if test $remove_from_list_i = [$2]; then :; | ||
66 | @@ -95,12 +95,12 @@ dnl GMP_STRIP_PATH(subdir) | ||
67 | dnl ---------------------- | ||
68 | dnl Strip entries */subdir from $path and $fat_path. | ||
69 | |||
70 | -define(GMP_STRIP_PATH, | ||
71 | +define([GMP_STRIP_PATH], | ||
72 | [GMP_STRIP_PATH_VAR(path, [$1]) | ||
73 | GMP_STRIP_PATH_VAR(fat_path, [$1]) | ||
74 | ]) | ||
75 | |||
76 | -define(GMP_STRIP_PATH_VAR, | ||
77 | +define([GMP_STRIP_PATH_VAR], | ||
78 | [tmp_path= | ||
79 | for i in $[][$1]; do | ||
80 | case $i in | ||
81 | @@ -121,7 +121,7 @@ dnl | ||
82 | dnl Dummy value for GMP_LIMB_BITS is enough | ||
83 | dnl for all current configure-time uses of gmp.h. | ||
84 | |||
85 | -define(GMP_INCLUDE_GMP_H, | ||
86 | +define([GMP_INCLUDE_GMP_H], | ||
87 | [[#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ | ||
88 | #define GMP_NAIL_BITS $GMP_NAIL_BITS | ||
89 | #define GMP_LIMB_BITS 123 | ||
90 | @@ -136,7 +136,7 @@ dnl Expand at autoconf time to the valu | ||
91 | dnl FILE. The regexps here aren't very rugged, but are enough for gmp. | ||
92 | dnl /dev/null as a parameter prevents a hang if $2 is accidentally omitted. | ||
93 | |||
94 | -define(GMP_HEADER_GETVAL, | ||
95 | +define([GMP_HEADER_GETVAL], | ||
96 | [patsubst(patsubst( | ||
97 | esyscmd([grep "^#define $1 " $2 /dev/null 2>/dev/null]), | ||
98 | [^.*$1[ ]+],[]), | ||
99 | @@ -150,7 +150,7 @@ dnl The gmp version number, extracted f | ||
100 | dnl autoconf time. Two digits like 3.0 if patchlevel <= 0, or three digits | ||
101 | dnl like 3.0.1 if patchlevel > 0. | ||
102 | |||
103 | -define(GMP_VERSION, | ||
104 | +define([GMP_VERSION], | ||
105 | [GMP_HEADER_GETVAL(__GNU_MP_VERSION,gmp-h.in)[]dnl | ||
106 | .GMP_HEADER_GETVAL(__GNU_MP_VERSION_MINOR,gmp-h.in)[]dnl | ||
107 | .GMP_HEADER_GETVAL(__GNU_MP_VERSION_PATCHLEVEL,gmp-h.in)]) | ||
108 | @@ -1512,7 +1512,9 @@ esac | ||
109 | echo ["define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)"] >>$gmp_tmpconfigm4 | ||
110 | |||
111 | # All CPUs use asm-defs.m4 | ||
112 | -echo ["include][(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')"] >>$gmp_tmpconfigm4i | ||
113 | +echo -n ["include("] >>$gmp_tmpconfigm4i | ||
114 | +echo -n ["CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4'"] >>$gmp_tmpconfigm4i | ||
115 | +echo [")"] >>$gmp_tmpconfigm4i | ||
116 | ]) | ||
117 | |||
118 | |||
119 | Index: gmp-5.0.3/configure.in | ||
120 | =================================================================== | ||
121 | --- gmp-5.0.3.orig/configure.in | ||
122 | +++ gmp-5.0.3/configure.in | ||
123 | @@ -29,12 +29,6 @@ AC_REVISION($Revision$) | ||
124 | AC_PREREQ(2.59) | ||
125 | AC_INIT(GNU MP, GMP_VERSION, [gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html], gmp) | ||
126 | AC_CONFIG_SRCDIR(gmp-impl.h) | ||
127 | -m4_pattern_forbid([^[ \t]*GMP_]) | ||
128 | -m4_pattern_allow(GMP_LDFLAGS) | ||
129 | -m4_pattern_allow(GMP_LIMB_BITS) | ||
130 | -m4_pattern_allow(GMP_MPARAM_H_SUGGEST) | ||
131 | -m4_pattern_allow(GMP_NAIL_BITS) | ||
132 | -m4_pattern_allow(GMP_NUMB_BITS) | ||
133 | |||
134 | # If --target is not used then $target_alias is empty, but if say | ||
135 | # "./configure athlon-pc-freebsd3.5" is used, then all three of | ||
136 | @@ -311,7 +305,7 @@ AH_VERBATIM([HAVE_HOST_CPU_1], | ||
137 | # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is | ||
138 | # called. User selections of CC etc are respected. | ||
139 | # | ||
140 | -# Care is taken not to use macros like AC_TRY_COMPILE during the GMP | ||
141 | +# Care is taken not to use macros like AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) during the GMP | ||
142 | # pre-testing, since they of course depend on AC_PROG_CC, and also some of | ||
143 | # them cache their results, which is not wanted. | ||
144 | # | ||
145 | @@ -403,7 +397,7 @@ abilist="standard" | ||
146 | # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring | ||
147 | # c89 over cc here. But note that on HP-UX c89 provides a castrated | ||
148 | # environment, and would want to be excluded somehow. Maybe | ||
149 | -# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and | ||
150 | +# already does enough to stick cc into ANSI mode and | ||
151 | # we don't need to worry. | ||
152 | # | ||
153 | cclist="gcc cc" | ||
154 | @@ -1666,7 +1660,7 @@ esac | ||
155 | CFLAGS_or_unset=${CFLAGS-'(unset)'} | ||
156 | CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} | ||
157 | |||
158 | -cat >&AC_FD_CC <<EOF | ||
159 | +cat >&AS_MESSAGE_LOG_FD() <<EOF | ||
160 | User: | ||
161 | ABI=$ABI | ||
162 | CC=$CC | ||
163 | @@ -2073,7 +2067,6 @@ AC_SUBST(DEFN_LONG_LONG_LIMB) | ||
164 | |||
165 | # The C compiler and preprocessor, put into ANSI mode if possible. | ||
166 | AC_PROG_CC | ||
167 | -AC_PROG_CC_STDC | ||
168 | AC_PROG_CPP | ||
169 | GMP_H_ANSI | ||
170 | |||
171 | @@ -2096,11 +2089,11 @@ AC_SUBST(CCAS) | ||
172 | |||
173 | # The C++ compiler, if desired. | ||
174 | want_cxx=no | ||
175 | +AC_PROG_CXX | ||
176 | if test $enable_cxx != no; then | ||
177 | test_CXXFLAGS=${CXXFLAGS+set} | ||
178 | - AC_PROG_CXX | ||
179 | |||
180 | - echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC | ||
181 | + echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD() | ||
182 | cxxflags_ac_prog_cxx=$CXXFLAGS | ||
183 | cxxflags_list=ac_prog_cxx | ||
184 | |||
185 | @@ -2206,7 +2199,7 @@ case $host in | ||
186 | esac | ||
187 | |||
188 | |||
189 | -cat >&AC_FD_CC <<EOF | ||
190 | +cat >&AS_MESSAGE_LOG_FD() <<EOF | ||
191 | Decided: | ||
192 | ABI=$ABI | ||
193 | CC=$CC | ||
194 | @@ -3465,7 +3458,7 @@ GMP_FINISH | ||
195 | # FIXME: Upcoming version of autoconf/automake may not like broken lines. | ||
196 | # Right now automake isn't accepting the new AC_CONFIG_FILES scheme. | ||
197 | |||
198 | -AC_OUTPUT(Makefile \ | ||
199 | +AC_CONFIG_FILES([Makefile \ | ||
200 | mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile \ | ||
201 | mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile \ | ||
202 | tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile \ | ||
203 | @@ -3474,4 +3467,5 @@ AC_OUTPUT(Makefile \ | ||
204 | tests/cxx/Makefile \ | ||
205 | doc/Makefile tune/Makefile \ | ||
206 | demos/Makefile demos/calc/Makefile demos/expr/Makefile \ | ||
207 | - gmp.h:gmp-h.in mp.h:mp-h.in) | ||
208 | + gmp.h:gmp-h.in mp.h:mp-h.in]) | ||
209 | +AC_OUTPUT | ||
diff --git a/meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch b/meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch new file mode 100644 index 0000000000..aaffaf14c5 --- /dev/null +++ b/meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | # "extern inline" in traditional gcc means that the function should be | ||
4 | # inlined wherever it's seen, while in C99, "extern inline" means that i | ||
5 | # the function should only be inlined where the inline definition is | ||
6 | # seen while in other places it's not inlined: | ||
7 | # http://gcc.gnu.org/ml/gcc/2006-11/msg00006.html | ||
8 | # | ||
9 | # gmp checks "--std=gnu99" to use C99 convention however it internally | ||
10 | # defines some "extern inline" functions in gmp.h, which is included | ||
11 | # by mainly .c files and finally lead a flood of redefinition function | ||
12 | # errors when linking objects together. | ||
13 | # | ||
14 | # So disable C99/ANSI detection to stick to tranditional gcc behavior | ||
15 | # | ||
16 | # by Kevin Tian <kevin.tian@intel.com>, 2010-08-13 | ||
17 | # | ||
18 | # (this patch is licensed under GPLv2+) | ||
19 | |||
20 | diff --git a/configure.in b/configure.in | ||
21 | index 450cc92..aab0b59 100644 | ||
22 | --- a/configure.in | ||
23 | +++ b/configure.in | ||
24 | @@ -1869,9 +1869,7 @@ AC_SUBST(DEFN_LONG_LONG_LIMB) | ||
25 | |||
26 | # The C compiler and preprocessor, put into ANSI mode if possible. | ||
27 | AC_PROG_CC | ||
28 | -AC_PROG_CC_STDC | ||
29 | AC_PROG_CPP | ||
30 | -GMP_H_ANSI | ||
31 | |||
32 | |||
33 | # The C compiler on the build system, and associated tests. | ||
diff --git a/meta/recipes-support/gmp/gmp-4.2.1/gmp_fix_for_automake-1.12.patch b/meta/recipes-support/gmp/gmp-4.2.1/gmp_fix_for_automake-1.12.patch new file mode 100644 index 0000000000..fbd8a39d01 --- /dev/null +++ b/meta/recipes-support/gmp/gmp-4.2.1/gmp_fix_for_automake-1.12.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake 1.12 has depricated automatic de-ANSI-fication support | ||
4 | |||
5 | this patch avoids these kinds of errors: | ||
6 | |||
7 | | configure.in:2240: error: automatic de-ANSI-fication support has been removed | ||
8 | | Makefile.am:28: error: automatic de-ANSI-fication support has been removed | ||
9 | |||
10 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
11 | 2012/05/02 | ||
12 | |||
13 | Index: gmp-4.2.1/configure.in | ||
14 | =================================================================== | ||
15 | --- gmp-4.2.1.orig/configure.in | ||
16 | +++ gmp-4.2.1/configure.in | ||
17 | @@ -67,7 +67,7 @@ dnl | ||
18 | dnl Note that there's a copy of these options in the top-level Makefile.am, | ||
19 | dnl so update there too if changing anything. | ||
20 | dnl | ||
21 | -AM_INIT_AUTOMAKE([1.8 gnu no-dependencies $(top_builddir)/ansi2knr]) | ||
22 | +AM_INIT_AUTOMAKE([1.8 gnu no-dependencies]) | ||
23 | AM_CONFIG_HEADER(config.h:config.in) | ||
24 | AM_MAINTAINER_MODE | ||
25 | |||
26 | @@ -2022,9 +2022,6 @@ fi | ||
27 | echo " MPN_PATH=\"$path\"" | ||
28 | |||
29 | |||
30 | -# Automake ansi2knr support. | ||
31 | -AM_C_PROTOTYPES | ||
32 | - | ||
33 | GMP_PROG_AR | ||
34 | GMP_PROG_NM | ||
35 | |||
36 | Index: gmp-4.2.1/Makefile.am | ||
37 | =================================================================== | ||
38 | --- gmp-4.2.1.orig/Makefile.am | ||
39 | +++ gmp-4.2.1/Makefile.am | ||
40 | @@ -27,7 +27,7 @@ | ||
41 | # Makefiles in subdirectories, but here we must omit it so automake gives | ||
42 | # the actual ansi2knr build rule, not "cd $(top_builddir) && make ansi2knr". | ||
43 | # | ||
44 | -AUTOMAKE_OPTIONS = 1.8 gnu no-dependencies ansi2knr | ||
45 | +AUTOMAKE_OPTIONS = 1.8 gnu no-dependencies | ||
46 | |||
47 | |||
48 | # Libtool -version-info for libgmp.la and libmp.la. See "Versioning" in the | ||
diff --git a/meta/recipes-support/gmp/gmp-5.1.1/append_user_provided_flags.patch b/meta/recipes-support/gmp/gmp-5.1.1/append_user_provided_flags.patch new file mode 100644 index 0000000000..ae1386c4c1 --- /dev/null +++ b/meta/recipes-support/gmp/gmp-5.1.1/append_user_provided_flags.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | Upstream-Status: Inappropriate | ||
2 | |||
3 | Append the user provided flags to the auto-detected ones. | ||
4 | |||
5 | Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> | ||
6 | |||
7 | Index: gmp-5.1.1/configure.ac | ||
8 | =================================================================== | ||
9 | --- gmp-5.1.1.orig/configure.ac 2014-02-11 15:05:44.925202403 +0200 | ||
10 | +++ gmp-5.1.1/configure.ac 2014-02-11 15:19:03.918511398 +0200 | ||
11 | @@ -1745,8 +1745,12 @@ | ||
12 | EOF | ||
13 | |||
14 | |||
15 | -test_CFLAGS=${CFLAGS+set} | ||
16 | -test_CPPFLAGS=${CPPFLAGS+set} | ||
17 | +test_CFLAGS= | ||
18 | +test_CPPFLAGS= | ||
19 | + | ||
20 | +user_CFLAGS=$CFLAGS | ||
21 | +user_CPPFLAGS=$CPPFLAGS | ||
22 | +user_CXXFLAGS=$CXXFLAGS | ||
23 | |||
24 | for abi in $abilist; do | ||
25 | abi_last="$abi" | ||
26 | @@ -2175,7 +2179,7 @@ | ||
27 | want_cxx=no | ||
28 | AC_PROG_CXX | ||
29 | if test $enable_cxx != no; then | ||
30 | - test_CXXFLAGS=${CXXFLAGS+set} | ||
31 | + test_CXXFLAGS= | ||
32 | |||
33 | echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD() | ||
34 | cxxflags_ac_prog_cxx=$CXXFLAGS | ||
35 | @@ -2202,7 +2206,7 @@ | ||
36 | # Automake includes $CPPFLAGS in a C++ compile, so we do the same here. | ||
37 | # | ||
38 | for cxxflags_choice in $cxxflags_list; do | ||
39 | - eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\" | ||
40 | + eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice $user_CXXFLAGS\" | ||
41 | GMP_PROG_CXX_WORKS($CXX $CPPFLAGS $CXXFLAGS, | ||
42 | [want_cxx=yes | ||
43 | break]) | ||
44 | @@ -2292,6 +2296,8 @@ | ||
45 | # done | ||
46 | fi | ||
47 | |||
48 | +CFLAGS="$CFLAGS $user_CFLAGS" | ||
49 | +CPPFLAGS="$CPPFLAGS $user_CPPFLAGS" | ||
50 | |||
51 | cat >&AS_MESSAGE_LOG_FD() <<EOF | ||
52 | Decided: | ||
diff --git a/meta/recipes-support/gmp/gmp-5.1.1/configure.patch b/meta/recipes-support/gmp/gmp-5.1.1/configure.patch new file mode 100644 index 0000000000..591ea79051 --- /dev/null +++ b/meta/recipes-support/gmp/gmp-5.1.1/configure.patch | |||
@@ -0,0 +1,210 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Updated to apply to gmp-5.1.0 | ||
4 | |||
5 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
6 | |||
7 | diff -Nurd gmp-5.1.0/acinclude.m4 gmp-5.1.0/acinclude.m4 | ||
8 | --- gmp-5.1.0/acinclude.m4 2012-12-18 21:05:09.000000000 +0200 | ||
9 | +++ gmp-5.1.0/acinclude.m4 2013-01-02 05:19:26.977013073 +0200 | ||
10 | @@ -30,29 +30,29 @@ | ||
11 | dnl conftest.exe - various DOS compilers | ||
12 | |||
13 | |||
14 | -define(IA64_PATTERN, | ||
15 | +define([IA64_PATTERN], | ||
16 | [[ia64*-*-* | itanium-*-* | itanium2-*-*]]) | ||
17 | |||
18 | dnl Need to be careful not to match m6811, m6812, m68hc11 and m68hc12, all | ||
19 | dnl of which config.sub accepts. (Though none of which are likely to work | ||
20 | dnl with GMP.) | ||
21 | dnl | ||
22 | -define(M68K_PATTERN, | ||
23 | +define([M68K_PATTERN], | ||
24 | [[m68k-*-* | m68[0-9][0-9][0-9]-*-*]]) | ||
25 | |||
26 | -define(POWERPC64_PATTERN, | ||
27 | +define([POWERPC64_PATTERN], | ||
28 | [[powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*]]) | ||
29 | |||
30 | -define(S390_PATTERN, | ||
31 | +define([S390_PATTERN], | ||
32 | [[s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-*]]) | ||
33 | |||
34 | -define(S390X_PATTERN, | ||
35 | +define([S390X_PATTERN], | ||
36 | [[s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*]]) | ||
37 | |||
38 | -define(X86_PATTERN, | ||
39 | +define([X86_PATTERN], | ||
40 | [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*]]) | ||
41 | |||
42 | -define(X86_64_PATTERN, | ||
43 | +define([X86_64_PATTERN], | ||
44 | [[athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*]]) | ||
45 | |||
46 | dnl GMP_FAT_SUFFIX(DSTVAR, DIRECTORY) | ||
47 | @@ -70,7 +70,7 @@ | ||
48 | dnl x86/k6 -> k6 | ||
49 | dnl x86/k6/mmx -> k6_mmx | ||
50 | |||
51 | -define(GMP_FAT_SUFFIX, | ||
52 | +define([GMP_FAT_SUFFIX], | ||
53 | [[$1=`echo $2 | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`]]) | ||
54 | |||
55 | |||
56 | @@ -79,7 +79,7 @@ | ||
57 | dnl Emit code to remove any occurrence of ITEM from $LISTVAR. ITEM can be a | ||
58 | dnl shell expression like $foo if desired. | ||
59 | |||
60 | -define(GMP_REMOVE_FROM_LIST, | ||
61 | +define([GMP_REMOVE_FROM_LIST], | ||
62 | [remove_from_list_tmp= | ||
63 | for remove_from_list_i in $[][$1]; do | ||
64 | if test $remove_from_list_i = [$2]; then :; | ||
65 | @@ -95,12 +95,12 @@ | ||
66 | dnl ---------------------- | ||
67 | dnl Strip entries */subdir from $path and $fat_path. | ||
68 | |||
69 | -define(GMP_STRIP_PATH, | ||
70 | +define([GMP_STRIP_PATH], | ||
71 | [GMP_STRIP_PATH_VAR(path, [$1]) | ||
72 | GMP_STRIP_PATH_VAR(fat_path, [$1]) | ||
73 | ]) | ||
74 | |||
75 | -define(GMP_STRIP_PATH_VAR, | ||
76 | +define([GMP_STRIP_PATH_VAR], | ||
77 | [tmp_path= | ||
78 | for i in $[][$1]; do | ||
79 | case $i in | ||
80 | @@ -121,7 +121,7 @@ | ||
81 | dnl Dummy value for GMP_LIMB_BITS is enough | ||
82 | dnl for all current configure-time uses of gmp.h. | ||
83 | |||
84 | -define(GMP_INCLUDE_GMP_H, | ||
85 | +define([GMP_INCLUDE_GMP_H], | ||
86 | [[#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ | ||
87 | #define GMP_NAIL_BITS $GMP_NAIL_BITS | ||
88 | #define GMP_LIMB_BITS 123 | ||
89 | @@ -136,7 +136,7 @@ | ||
90 | dnl FILE. The regexps here aren't very rugged, but are enough for gmp. | ||
91 | dnl /dev/null as a parameter prevents a hang if $2 is accidentally omitted. | ||
92 | |||
93 | -define(GMP_HEADER_GETVAL, | ||
94 | +define([GMP_HEADER_GETVAL], | ||
95 | [patsubst(patsubst( | ||
96 | esyscmd([grep "^#define $1 " $2 /dev/null 2>/dev/null]), | ||
97 | [^.*$1[ ]+],[]), | ||
98 | @@ -150,7 +150,7 @@ | ||
99 | dnl autoconf time. Two digits like 3.0 if patchlevel <= 0, or three digits | ||
100 | dnl like 3.0.1 if patchlevel > 0. | ||
101 | |||
102 | -define(GMP_VERSION, | ||
103 | +define([GMP_VERSION], | ||
104 | [GMP_HEADER_GETVAL(__GNU_MP_VERSION,gmp-h.in)[]dnl | ||
105 | .GMP_HEADER_GETVAL(__GNU_MP_VERSION_MINOR,gmp-h.in)[]dnl | ||
106 | .GMP_HEADER_GETVAL(__GNU_MP_VERSION_PATCHLEVEL,gmp-h.in)]) | ||
107 | @@ -1512,7 +1512,9 @@ | ||
108 | echo ["define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)"] >>$gmp_tmpconfigm4 | ||
109 | |||
110 | # All CPUs use asm-defs.m4 | ||
111 | -echo ["include][(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')"] >>$gmp_tmpconfigm4i | ||
112 | +echo -n ["include("] >>$gmp_tmpconfigm4i | ||
113 | +echo -n ["CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4'"] >>$gmp_tmpconfigm4i | ||
114 | +echo [")"] >>$gmp_tmpconfigm4i | ||
115 | ]) | ||
116 | |||
117 | |||
118 | diff -Nurd gmp-5.1.0/configure.ac gmp-5.1.0/configure.ac | ||
119 | --- gmp-5.1.0/configure.ac 2012-12-18 21:05:09.000000000 +0200 | ||
120 | +++ gmp-5.1.0/configure.ac 2013-01-02 05:19:26.977013073 +0200 | ||
121 | @@ -29,13 +29,6 @@ | ||
122 | AC_PREREQ(2.59) | ||
123 | AC_INIT(GNU MP, GMP_VERSION, [gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html], gmp) | ||
124 | AC_CONFIG_SRCDIR(gmp-impl.h) | ||
125 | -m4_pattern_forbid([^[ \t]*GMP_]) | ||
126 | -m4_pattern_allow(GMP_LDFLAGS) | ||
127 | -m4_pattern_allow(GMP_LIMB_BITS) | ||
128 | -m4_pattern_allow(GMP_MPARAM_H_SUGGEST) | ||
129 | -m4_pattern_allow(GMP_NAIL_BITS) | ||
130 | -m4_pattern_allow(GMP_NUMB_BITS) | ||
131 | -m4_pattern_allow(GMP_NONSTD_ABI) | ||
132 | |||
133 | # If --target is not used then $target_alias is empty, but if say | ||
134 | # "./configure athlon-pc-freebsd3.5" is used, then all three of | ||
135 | @@ -314,7 +307,7 @@ | ||
136 | # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is | ||
137 | # called. User selections of CC etc are respected. | ||
138 | # | ||
139 | -# Care is taken not to use macros like AC_TRY_COMPILE during the GMP | ||
140 | +# Care is taken not to use macros like AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) during the GMP | ||
141 | # pre-testing, since they of course depend on AC_PROG_CC, and also some of | ||
142 | # them cache their results, which is not wanted. | ||
143 | # | ||
144 | @@ -406,7 +399,7 @@ | ||
145 | # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring | ||
146 | # c89 over cc here. But note that on HP-UX c89 provides a castrated | ||
147 | # environment, and would want to be excluded somehow. Maybe | ||
148 | -# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and | ||
149 | +# already does enough to stick cc into ANSI mode and | ||
150 | # we don't need to worry. | ||
151 | # | ||
152 | cclist="gcc cc" | ||
153 | @@ -1727,7 +1720,7 @@ | ||
154 | CFLAGS_or_unset=${CFLAGS-'(unset)'} | ||
155 | CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} | ||
156 | |||
157 | -cat >&AC_FD_CC <<EOF | ||
158 | +cat >&AS_MESSAGE_LOG_FD() <<EOF | ||
159 | User: | ||
160 | ABI=$ABI | ||
161 | CC=$CC | ||
162 | @@ -2147,7 +2140,6 @@ | ||
163 | |||
164 | # The C compiler and preprocessor, put into ANSI mode if possible. | ||
165 | AC_PROG_CC | ||
166 | -AC_PROG_CC_STDC | ||
167 | AC_PROG_CPP | ||
168 | |||
169 | |||
170 | @@ -2169,11 +2161,11 @@ | ||
171 | |||
172 | # The C++ compiler, if desired. | ||
173 | want_cxx=no | ||
174 | +AC_PROG_CXX | ||
175 | if test $enable_cxx != no; then | ||
176 | test_CXXFLAGS=${CXXFLAGS+set} | ||
177 | - AC_PROG_CXX | ||
178 | |||
179 | - echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC | ||
180 | + echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD() | ||
181 | cxxflags_ac_prog_cxx=$CXXFLAGS | ||
182 | cxxflags_list=ac_prog_cxx | ||
183 | |||
184 | @@ -2289,7 +2281,7 @@ | ||
185 | fi | ||
186 | |||
187 | |||
188 | -cat >&AC_FD_CC <<EOF | ||
189 | +cat >&AS_MESSAGE_LOG_FD() <<EOF | ||
190 | Decided: | ||
191 | ABI=$ABI | ||
192 | CC=$CC | ||
193 | @@ -3638,7 +3630,7 @@ | ||
194 | # FIXME: Upcoming version of autoconf/automake may not like broken lines. | ||
195 | # Right now automake isn't accepting the new AC_CONFIG_FILES scheme. | ||
196 | |||
197 | -AC_OUTPUT(Makefile \ | ||
198 | +AC_CONFIG_FILES([Makefile \ | ||
199 | mpf/Makefile mpn/Makefile mpq/Makefile \ | ||
200 | mpz/Makefile printf/Makefile scanf/Makefile rand/Makefile cxx/Makefile \ | ||
201 | tests/Makefile tests/devel/Makefile \ | ||
202 | @@ -3647,7 +3639,8 @@ | ||
203 | tests/cxx/Makefile \ | ||
204 | doc/Makefile tune/Makefile \ | ||
205 | demos/Makefile demos/calc/Makefile demos/expr/Makefile \ | ||
206 | - gmp.h:gmp-h.in) | ||
207 | + gmp.h:gmp-h.in]) | ||
208 | +AC_OUTPUT | ||
209 | |||
210 | AC_MSG_NOTICE([summary of build options: | ||
diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc new file mode 100644 index 0000000000..be2983ffc4 --- /dev/null +++ b/meta/recipes-support/gmp/gmp.inc | |||
@@ -0,0 +1,26 @@ | |||
1 | SECTION = "devel" | ||
2 | SUMMARY = "GNU multiprecision arithmetic library" | ||
3 | DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers" | ||
4 | HOMEPAGE = "http://gmplib.org/" | ||
5 | LICENSE = "GPLv3 LGPLv3" | ||
6 | |||
7 | REVISION = "" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.gmplib.org/pub/gmp-${PV}/gmp-${PV}${REVISION}.tar.bz2 \ | ||
10 | file://configure.patch \ | ||
11 | file://amd64.patch " | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | ARM_INSTRUCTION_SET = "arm" | ||
16 | |||
17 | acpaths = "" | ||
18 | |||
19 | BBCLASSEXTEND = "native nativesdk" | ||
20 | |||
21 | EXTRA_OECONF += " --enable-cxx=detect" | ||
22 | |||
23 | PACKAGES =+ "libgmpxx" | ||
24 | FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}" | ||
25 | |||
26 | SSTATE_SCAN_FILES += "gmp.h" | ||
diff --git a/meta/recipes-support/gmp/gmp/amd64.patch b/meta/recipes-support/gmp/gmp/amd64.patch new file mode 100644 index 0000000000..564d12d42b --- /dev/null +++ b/meta/recipes-support/gmp/gmp/amd64.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Index: gmp-5.0.3/longlong.h | ||
4 | =================================================================== | ||
5 | --- gmp-5.0.3.orig/longlong.h | ||
6 | +++ gmp-5.0.3/longlong.h | ||
7 | @@ -994,8 +994,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( | ||
8 | count is only an int. */ | ||
9 | #define count_trailing_zeros(count, x) \ | ||
10 | do { \ | ||
11 | + UDItype __cbtmp; \ | ||
12 | ASSERT ((x) != 0); \ | ||
13 | - __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ | ||
14 | + __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ | ||
15 | + (count) = __cbtmp; \ | ||
16 | } while (0) | ||
17 | #endif /* x86_64 */ | ||
18 | |||
diff --git a/meta/recipes-support/gmp/gmp/use-includedir.patch b/meta/recipes-support/gmp/gmp/use-includedir.patch new file mode 100644 index 0000000000..74904a2530 --- /dev/null +++ b/meta/recipes-support/gmp/gmp/use-includedir.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Index: gmp-4.2.4/Makefile.am | ||
4 | =================================================================== | ||
5 | --- gmp-4.2.4.orig/Makefile.am 2008-09-10 19:31:27.000000000 +0000 | ||
6 | +++ gmp-4.2.4/Makefile.am 2009-07-06 20:19:19.000000000 +0000 | ||
7 | @@ -106,7 +106,7 @@ | ||
8 | # but anyone knowledgable enough to be playing with exec_prefix will be able | ||
9 | # to address that. | ||
10 | # | ||
11 | -includeexecdir = $(exec_prefix)/include | ||
12 | +includeexecdir = $(includedir) | ||
13 | include_HEADERS = $(GMPXX_HEADERS_OPTION) | ||
14 | nodist_includeexec_HEADERS = gmp.h $(MPBSD_HEADERS_OPTION) | ||
15 | lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION) $(MPBSD_LTLIBRARIES_OPTION) | ||
diff --git a/meta/recipes-support/gmp/gmp_4.2.1.bb b/meta/recipes-support/gmp/gmp_4.2.1.bb new file mode 100644 index 0000000000..362aacf46c --- /dev/null +++ b/meta/recipes-support/gmp/gmp_4.2.1.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "GNU multiprecision arithmetic library" | ||
2 | DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers" | ||
3 | HOMEPAGE = "http://gmplib.org/" | ||
4 | BUGTRACKER = "http://gmplib.org/mailman/listinfo/gmp-bugs" | ||
5 | # demo is licensed under GPLv2+, which however we don't package at all | ||
6 | LICENSE = "LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a \ | ||
8 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24 \ | ||
9 | file://gmp-h.in;beginline=6;endline=21;md5=e056f74a12c3277d730dbcfb85d2ca34" | ||
10 | PR = "r2" | ||
11 | |||
12 | SRC_URI = "${GNU_MIRROR}/gmp/${BP}.tar.bz2 \ | ||
13 | file://disable-stdc.patch \ | ||
14 | file://gmp_fix_for_automake-1.12.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3" | ||
18 | SRC_URI[sha256sum] = "d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941" | ||
19 | |||
20 | inherit autotools | ||
diff --git a/meta/recipes-support/gmp/gmp_5.1.1.bb b/meta/recipes-support/gmp/gmp_5.1.1.bb new file mode 100644 index 0000000000..602061096a --- /dev/null +++ b/meta/recipes-support/gmp/gmp_5.1.1.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require gmp.inc | ||
2 | LICENSE="LGPLv3&GPLv3" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
4 | file://version.c;endline=18;md5=d8c56b52b9092346b9f93b4da65ef790" | ||
5 | |||
6 | SRC_URI_append = " file://use-includedir.patch \ | ||
7 | file://append_user_provided_flags.patch \ | ||
8 | " | ||
9 | |||
10 | SRC_URI[md5sum] = "2fa018a7cd193c78494525f236d02dd6" | ||
11 | SRC_URI[sha256sum] = "a0d4779f48b36519dfaceb5f987a7c76fcac223258bebea3bb2244310970afad" | ||
diff --git a/meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing_2014.1.bb b/meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing_2014.1.bb new file mode 100644 index 0000000000..146a02ac7d --- /dev/null +++ b/meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing_2014.1.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "Test runner for GNOME-style installed tests" | ||
2 | HOMEPAGE = "https://wiki.gnome.org/GnomeGoals/InstalledTests" | ||
3 | LICENSE = "LGPLv2+" | ||
4 | |||
5 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${PV}/${BPN}-${PV}.tar.xz" | ||
6 | SRC_URI[md5sum] = "a608ad72a77e23a1aecdfd8d07a94baf" | ||
7 | SRC_URI[sha256sum] = "1a3eed73678dd22d09d6a7ec4f899557df3e8b4a802affa76d0f163b31286539" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ | ||
10 | file://src/gnome-desktop-testing-runner.c;endline=19;md5=67311a600b83fd0068dfc7e5b84ffb3f" | ||
11 | |||
12 | DEPENDS = "glib-2.0" | ||
13 | |||
14 | inherit autotools-brokensep pkgconfig | ||
15 | |||
16 | PACKAGECONFIG ??= "" | ||
17 | PACKAGECONFIG[journald] = "--with-systemd-journal,--without-systemd-journal,systemd,systemd" | ||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/CVE-2013-4351.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/CVE-2013-4351.patch new file mode 100644 index 0000000000..b29ede4233 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/CVE-2013-4351.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | Index: gnupg-1.4.7/g10/getkey.c | ||
4 | =================================================================== | ||
5 | --- gnupg-1.4.7.orig/g10/getkey.c 2007-03-05 16:54:41.000000000 +0800 | ||
6 | +++ gnupg-1.4.7/g10/getkey.c 2013-11-28 14:41:59.640212240 +0800 | ||
7 | @@ -1454,7 +1454,11 @@ | ||
8 | |||
9 | if(flags) | ||
10 | key_usage |= PUBKEY_USAGE_UNKNOWN; | ||
11 | + if (!key_usage) | ||
12 | + key_usage |= PUBKEY_USAGE_NONE; | ||
13 | } | ||
14 | + else if (p) | ||
15 | + key_usage |= PUBKEY_USAGE_NONE; | ||
16 | |||
17 | /* We set PUBKEY_USAGE_UNKNOWN to indicate that this key has a | ||
18 | capability that we do not handle. This serves to distinguish | ||
19 | Index: gnupg-1.4.7/g10/keygen.c | ||
20 | =================================================================== | ||
21 | --- gnupg-1.4.7.orig/g10/keygen.c 2007-02-05 00:27:40.000000000 +0800 | ||
22 | +++ gnupg-1.4.7/g10/keygen.c 2013-11-28 14:43:05.016670092 +0800 | ||
23 | @@ -209,9 +209,6 @@ | ||
24 | if (use & PUBKEY_USAGE_AUTH) | ||
25 | buf[0] |= 0x20; | ||
26 | |||
27 | - if (!buf[0]) | ||
28 | - return; | ||
29 | - | ||
30 | build_sig_subpkt (sig, SIGSUBPKT_KEY_FLAGS, buf, 1); | ||
31 | } | ||
32 | |||
33 | Index: gnupg-1.4.7/include/cipher.h | ||
34 | =================================================================== | ||
35 | --- gnupg-1.4.7.orig/include/cipher.h 2006-04-21 20:39:49.000000000 +0800 | ||
36 | +++ gnupg-1.4.7/include/cipher.h 2013-11-28 14:49:24.159322744 +0800 | ||
37 | @@ -52,6 +52,7 @@ | ||
38 | #define PUBKEY_USAGE_CERT 4 /* key is also good to certify other keys*/ | ||
39 | #define PUBKEY_USAGE_AUTH 8 /* key is good for authentication */ | ||
40 | #define PUBKEY_USAGE_UNKNOWN 128 /* key has an unknown usage bit */ | ||
41 | +#define PUBKEY_USAGE_NONE 256 /* No usage given. */ | ||
42 | |||
43 | #define DIGEST_ALGO_MD5 1 | ||
44 | #define DIGEST_ALGO_SHA1 2 | ||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/CVE-2013-4576.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/CVE-2013-4576.patch new file mode 100644 index 0000000000..b1a22f5853 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/CVE-2013-4576.patch | |||
@@ -0,0 +1,153 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | Index: gnupg-1.4.7/cipher/dsa.c | ||
4 | =================================================================== | ||
5 | --- gnupg-1.4.7.orig/cipher/dsa.c 2006-12-12 02:27:21.000000000 +0800 | ||
6 | +++ gnupg-1.4.7/cipher/dsa.c 2014-01-23 11:30:17.300915919 +0800 | ||
7 | @@ -287,6 +287,8 @@ | ||
8 | MPI kinv; | ||
9 | MPI tmp; | ||
10 | |||
11 | + mpi_normalize (hash); | ||
12 | + | ||
13 | /* select a random k with 0 < k < q */ | ||
14 | k = gen_k( skey->q ); | ||
15 | |||
16 | Index: gnupg-1.4.7/cipher/elgamal.c | ||
17 | =================================================================== | ||
18 | --- gnupg-1.4.7.orig/cipher/elgamal.c 2006-12-12 03:08:05.000000000 +0800 | ||
19 | +++ gnupg-1.4.7/cipher/elgamal.c 2014-01-23 11:30:17.300915919 +0800 | ||
20 | @@ -376,6 +376,9 @@ | ||
21 | { | ||
22 | MPI t1 = mpi_alloc_secure( mpi_get_nlimbs( skey->p ) ); | ||
23 | |||
24 | + mpi_normalize (a); | ||
25 | + mpi_normalize (b); | ||
26 | + | ||
27 | /* output = b/(a^x) mod p */ | ||
28 | mpi_powm( t1, a, skey->x, skey->p ); | ||
29 | mpi_invm( t1, t1, skey->p ); | ||
30 | Index: gnupg-1.4.7/cipher/random.c | ||
31 | =================================================================== | ||
32 | --- gnupg-1.4.7.orig/cipher/random.c 2006-11-03 18:09:39.000000000 +0800 | ||
33 | +++ gnupg-1.4.7/cipher/random.c 2014-01-23 11:31:53.993495462 +0800 | ||
34 | @@ -273,6 +273,18 @@ | ||
35 | } | ||
36 | |||
37 | |||
38 | +/* Randomize the MPI */ | ||
39 | +void | ||
40 | +randomize_mpi (MPI mpi, size_t nbits, int level) | ||
41 | +{ | ||
42 | + unsigned char *buffer; | ||
43 | + | ||
44 | + buffer = get_random_bits (nbits, level, mpi_is_secure (mpi)); | ||
45 | + mpi_set_buffer (mpi, buffer, (nbits+7)/8, 0); | ||
46 | + xfree (buffer); | ||
47 | +} | ||
48 | + | ||
49 | + | ||
50 | int | ||
51 | random_is_faked() | ||
52 | { | ||
53 | Index: gnupg-1.4.7/cipher/random.h | ||
54 | =================================================================== | ||
55 | --- gnupg-1.4.7.orig/cipher/random.h 2006-02-09 19:29:29.000000000 +0800 | ||
56 | +++ gnupg-1.4.7/cipher/random.h 2014-01-23 11:30:17.300915919 +0800 | ||
57 | @@ -32,6 +32,7 @@ | ||
58 | int random_is_faked(void); | ||
59 | void random_disable_locking (void); | ||
60 | void randomize_buffer( byte *buffer, size_t length, int level ); | ||
61 | +void randomize_mpi (MPI mpi, size_t nbits, int level); | ||
62 | byte *get_random_bits( size_t nbits, int level, int secure ); | ||
63 | void fast_random_poll( void ); | ||
64 | |||
65 | Index: gnupg-1.4.7/cipher/rsa.c | ||
66 | =================================================================== | ||
67 | --- gnupg-1.4.7.orig/cipher/rsa.c 2006-12-12 03:09:00.000000000 +0800 | ||
68 | +++ gnupg-1.4.7/cipher/rsa.c 2014-01-23 11:35:04.330639125 +0800 | ||
69 | @@ -301,9 +301,26 @@ | ||
70 | #if 0 | ||
71 | mpi_powm( output, input, skey->d, skey->n ); | ||
72 | #else | ||
73 | - MPI m1 = mpi_alloc_secure( mpi_get_nlimbs(skey->n)+1 ); | ||
74 | - MPI m2 = mpi_alloc_secure( mpi_get_nlimbs(skey->n)+1 ); | ||
75 | - MPI h = mpi_alloc_secure( mpi_get_nlimbs(skey->n)+1 ); | ||
76 | + int nlimbs = mpi_get_nlimbs (skey->n)+1; | ||
77 | + MPI m1 = mpi_alloc_secure (nlimbs); | ||
78 | + MPI m2 = mpi_alloc_secure (nlimbs); | ||
79 | + MPI h = mpi_alloc_secure (nlimbs); | ||
80 | +# if 1 | ||
81 | + MPI bdata= mpi_alloc_secure (nlimbs); | ||
82 | + MPI r = mpi_alloc_secure (nlimbs); | ||
83 | +# endif | ||
84 | + | ||
85 | + /* Remove superfluous leading zeroes from INPUT. */ | ||
86 | + mpi_normalize (input); | ||
87 | + | ||
88 | +# if 1 | ||
89 | + /* Blind: bdata = (data * r^e) mod n */ | ||
90 | + randomize_mpi (r, mpi_get_nbits (skey->n), 0); | ||
91 | + mpi_fdiv_r (r, r, skey->n); | ||
92 | + mpi_powm (bdata, r, skey->e, skey->n); | ||
93 | + mpi_mulm (bdata, bdata, input, skey->n); | ||
94 | + input = bdata; | ||
95 | +# endif | ||
96 | |||
97 | /* m1 = c ^ (d mod (p-1)) mod p */ | ||
98 | mpi_sub_ui( h, skey->p, 1 ); | ||
99 | @@ -321,8 +338,15 @@ | ||
100 | /* m = m2 + h * p */ | ||
101 | mpi_mul ( h, h, skey->p ); | ||
102 | mpi_add ( output, m1, h ); | ||
103 | - /* ready */ | ||
104 | - | ||
105 | + | ||
106 | +# if 1 | ||
107 | + mpi_free (bdata); | ||
108 | + /* Unblind: output = (output * r^(-1)) mod n */ | ||
109 | + mpi_invm (r, r, skey->n); | ||
110 | + mpi_mulm (output, output, r, skey->n); | ||
111 | + mpi_free (r); | ||
112 | +# endif | ||
113 | + | ||
114 | mpi_free ( h ); | ||
115 | mpi_free ( m1 ); | ||
116 | mpi_free ( m2 ); | ||
117 | @@ -397,6 +421,7 @@ | ||
118 | rsa_decrypt( int algo, MPI *result, MPI *data, MPI *skey ) | ||
119 | { | ||
120 | RSA_secret_key sk; | ||
121 | + MPI input; | ||
122 | |||
123 | if( algo != 1 && algo != 2 ) | ||
124 | return G10ERR_PUBKEY_ALGO; | ||
125 | @@ -407,8 +432,14 @@ | ||
126 | sk.p = skey[3]; | ||
127 | sk.q = skey[4]; | ||
128 | sk.u = skey[5]; | ||
129 | - *result = mpi_alloc_secure( mpi_get_nlimbs( sk.n ) ); | ||
130 | - secret( *result, data[0], &sk ); | ||
131 | + | ||
132 | + /* Mitigates side-channel attacks (CVE-2013-4576). */ | ||
133 | + input = mpi_alloc (0); | ||
134 | + mpi_normalize (data[0]); | ||
135 | + mpi_fdiv_r (input, data[0], sk.n); | ||
136 | + *result = mpi_alloc_secure (mpi_get_nlimbs (sk.n)); | ||
137 | + secret (*result, input, &sk); | ||
138 | + mpi_free (input); | ||
139 | return 0; | ||
140 | } | ||
141 | |||
142 | Index: gnupg-1.4.7/g10/gpgv.c | ||
143 | =================================================================== | ||
144 | --- gnupg-1.4.7.orig/g10/gpgv.c 2006-12-13 19:25:04.000000000 +0800 | ||
145 | +++ gnupg-1.4.7/g10/gpgv.c 2014-01-23 11:30:17.300915919 +0800 | ||
146 | @@ -390,6 +390,7 @@ | ||
147 | void random_dump_stats(void) {} | ||
148 | int quick_random_gen( int onoff ) { return -1;} | ||
149 | void randomize_buffer( byte *buffer, size_t length, int level ) {} | ||
150 | +void randomize_mpi (MPI mpi, size_t nbits, int level) {} | ||
151 | int random_is_faked() { return -1;} | ||
152 | byte *get_random_bits( size_t nbits, int level, int secure ) { return NULL;} | ||
153 | void set_random_seed_file( const char *name ) {} | ||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/GnuPG1-CVE-2012-6085.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/GnuPG1-CVE-2012-6085.patch new file mode 100644 index 0000000000..8b5d9a1693 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/GnuPG1-CVE-2012-6085.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | commit f0b33b6fb8e0586e9584a7a409dcc31263776a67 | ||
2 | Author: Werner Koch <wk@gnupg.org> | ||
3 | Date: Thu Dec 20 09:43:41 2012 +0100 | ||
4 | |||
5 | gpg: Import only packets which are allowed in a keyblock. | ||
6 | |||
7 | * g10/import.c (valid_keyblock_packet): New. | ||
8 | (read_block): Store only valid packets. | ||
9 | -- | ||
10 | |||
11 | A corrupted key, which for example included a mangled public key | ||
12 | encrypted packet, used to corrupt the keyring. This change skips all | ||
13 | packets which are not allowed in a keyblock. | ||
14 | |||
15 | GnuPG-bug-id: 1455 | ||
16 | |||
17 | (cherry-picked from commit f795a0d59e197455f8723c300eebf59e09853efa) | ||
18 | |||
19 | Upstream-Status: Backport | ||
20 | |||
21 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
22 | |||
23 | diff --git a/g10/import.c b/g10/import.c | ||
24 | index bfe02eb..a57b32e 100644 | ||
25 | --- a/g10/import.c | ||
26 | +++ b/g10/import.c | ||
27 | @@ -384,6 +384,27 @@ import_print_stats (void *hd) | ||
28 | } | ||
29 | |||
30 | |||
31 | +/* Return true if PKTTYPE is valid in a keyblock. */ | ||
32 | +static int | ||
33 | +valid_keyblock_packet (int pkttype) | ||
34 | +{ | ||
35 | + switch (pkttype) | ||
36 | + { | ||
37 | + case PKT_PUBLIC_KEY: | ||
38 | + case PKT_PUBLIC_SUBKEY: | ||
39 | + case PKT_SECRET_KEY: | ||
40 | + case PKT_SECRET_SUBKEY: | ||
41 | + case PKT_SIGNATURE: | ||
42 | + case PKT_USER_ID: | ||
43 | + case PKT_ATTRIBUTE: | ||
44 | + case PKT_RING_TRUST: | ||
45 | + return 1; | ||
46 | + default: | ||
47 | + return 0; | ||
48 | + } | ||
49 | +} | ||
50 | + | ||
51 | + | ||
52 | /**************** | ||
53 | * Read the next keyblock from stream A. | ||
54 | * PENDING_PKT should be initialzed to NULL | ||
55 | @@ -461,7 +482,7 @@ read_block( IOBUF a, PACKET **pending_pkt, KBNODE *ret_root ) | ||
56 | } | ||
57 | in_cert = 1; | ||
58 | default: | ||
59 | - if( in_cert ) { | ||
60 | + if (in_cert && valid_keyblock_packet (pkt->pkttype)) { | ||
61 | if( !root ) | ||
62 | root = new_kbnode( pkt ); | ||
63 | else | ||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/configure.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/configure.patch new file mode 100644 index 0000000000..e005ac658f --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/configure.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | |||
2 | Upstream-Status: Inappropriate [configuration] | ||
3 | |||
4 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
5 | |||
6 | Index: gnupg-1.4.7/configure.ac | ||
7 | =================================================================== | ||
8 | --- gnupg-1.4.7.orig/configure.ac | ||
9 | +++ gnupg-1.4.7/configure.ac | ||
10 | @@ -827,7 +827,6 @@ else | ||
11 | AC_SUBST(USE_NLS) | ||
12 | AC_SUBST(USE_INCLUDED_LIBINTL) | ||
13 | AC_SUBST(BUILD_INCLUDED_LIBINTL) | ||
14 | - AM_PO_SUBDIRS | ||
15 | fi | ||
16 | |||
17 | if test "$try_extensions" = yes || test x"$card_support" = xyes ; then | ||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/curl_typeof_fix_backport.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/curl_typeof_fix_backport.patch new file mode 100644 index 0000000000..e5fb24aa63 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/curl_typeof_fix_backport.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | |||
2 | This has been discussed in a couple of different bug reported | ||
3 | upstream: | ||
4 | |||
5 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=486250 | ||
6 | http://bugs.sourcemage.org/show_bug.cgi?id=14446 | ||
7 | |||
8 | Fix: | ||
9 | http://lists.gnupg.org/pipermail/gnupg-devel/2008-April/024344.html | ||
10 | |||
11 | Upstream-Status: Backport [Debian] | ||
12 | |||
13 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
14 | |||
15 | Index: gnupg-1.4.7/keyserver/gpgkeys_curl.c | ||
16 | =================================================================== | ||
17 | --- gnupg-1.4.7.orig/keyserver/gpgkeys_curl.c | ||
18 | +++ gnupg-1.4.7/keyserver/gpgkeys_curl.c | ||
19 | @@ -286,7 +286,7 @@ main(int argc,char *argv[]) | ||
20 | curl_easy_setopt(curl,CURLOPT_VERBOSE,1); | ||
21 | } | ||
22 | |||
23 | - curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert); | ||
24 | + curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert); | ||
25 | curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file); | ||
26 | |||
27 | if(proxy) | ||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/long-long-thumb.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/long-long-thumb.patch new file mode 100644 index 0000000000..2855cab24b --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/long-long-thumb.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Orignal Patch came from OpenWrt via OE-Classic | ||
2 | https://dev.openwrt.org/browser/packages/utils/gnupg/patches/001-mips_gcc4.4 | ||
3 | which is no longer a valid revision! | ||
4 | |||
5 | Upstream-Status: Inappropriate [configuration] | ||
6 | |||
7 | |||
8 | --- gnupg/mpi/longlong.h~ 2006-02-14 10:09:55.000000000 +0000 | ||
9 | +++ gnupg/mpi/longlong.h 2008-10-27 13:11:09.000000000 +0000 | ||
10 | @@ -181,7 +181,7 @@ | ||
11 | /*************************************** | ||
12 | ************** ARM ****************** | ||
13 | ***************************************/ | ||
14 | -#if defined (__arm__) && W_TYPE_SIZE == 32 | ||
15 | +#if defined (__arm__) && W_TYPE_SIZE == 32 && !defined(__thumb__) | ||
16 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | ||
17 | __asm__ ("adds %1, %4, %5\n" \ | ||
18 | "adc %0, %2, %3" \ | ||
19 | |||
diff --git a/meta/recipes-support/gnupg/gnupg-1.4.7/mips_gcc4.4.patch b/meta/recipes-support/gnupg/gnupg-1.4.7/mips_gcc4.4.patch new file mode 100644 index 0000000000..9a03b2b705 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg-1.4.7/mips_gcc4.4.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | |||
2 | From Openembedded-Classic | ||
3 | |||
4 | gnupg-1.4.10: Readd the ARM Thumb patch as debian has no thumb support | ||
5 | |||
6 | |||
7 | Upstream-Status: Inappropriate [embedded-specific] | ||
8 | |||
9 | Index: gnupg-1.4.10/mpi/longlong.h | ||
10 | =================================================================== | ||
11 | --- gnupg-1.4.10.orig/mpi/longlong.h 2008-12-11 17:39:43.000000000 +0100 | ||
12 | +++ gnupg-1.4.10/mpi/longlong.h 2010-03-27 14:27:53.000000000 +0100 | ||
13 | @@ -706,18 +706,35 @@ | ||
14 | #endif /* __m88110__ */ | ||
15 | #endif /* __m88000__ */ | ||
16 | |||
17 | +/* Test for gcc >= maj.min, as per __GNUC_PREREQ in glibc */ | ||
18 | +#if defined (__GNUC__) && defined (__GNUC_MINOR__) | ||
19 | +#define __GNUC_PREREQ(maj, min) \ | ||
20 | + ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) | ||
21 | +#else | ||
22 | +#define __GNUC_PREREQ(maj, min) 0 | ||
23 | +#endif | ||
24 | + | ||
25 | /*************************************** | ||
26 | ************** MIPS ***************** | ||
27 | ***************************************/ | ||
28 | #if defined (__mips__) && W_TYPE_SIZE == 32 | ||
29 | -#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 | ||
30 | +#if __GNUC_PREREQ (4,4) | ||
31 | +#define umul_ppmm(w1, w0, u, v) \ | ||
32 | + do { \ | ||
33 | + UDItype __ll = (UDItype)(u) * (v); \ | ||
34 | + w1 = __ll >> 32; \ | ||
35 | + w0 = __ll; \ | ||
36 | + } while (0) | ||
37 | +#endif | ||
38 | +#if !defined (umul_ppmm) && __GNUC_PREREQ (2,7) | ||
39 | #define umul_ppmm(w1, w0, u, v) \ | ||
40 | __asm__ ("multu %2,%3" \ | ||
41 | : "=l" ((USItype)(w0)), \ | ||
42 | "=h" ((USItype)(w1)) \ | ||
43 | : "d" ((USItype)(u)), \ | ||
44 | "d" ((USItype)(v))) | ||
45 | -#else | ||
46 | +#endif | ||
47 | +#if !defined (umul_ppmm) | ||
48 | #define umul_ppmm(w1, w0, u, v) \ | ||
49 | __asm__ ("multu %2,%3 \n" \ | ||
50 | "mflo %0 \n" \ | ||
diff --git a/meta/recipes-support/gnupg/gnupg_1.4.7.bb b/meta/recipes-support/gnupg/gnupg_1.4.7.bb new file mode 100644 index 0000000000..e8f797d4f4 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg_1.4.7.bb | |||
@@ -0,0 +1,97 @@ | |||
1 | SUMMARY = "GNU Privacy Guard - encryption and signing tools" | ||
2 | HOMEPAGE = "http://www.gnupg.org/" | ||
3 | DEPENDS = "zlib bzip2 readline" | ||
4 | SECTION = "console/utils" | ||
5 | |||
6 | LICENSE = "GPLv2" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | ||
9 | |||
10 | PR = "r9" | ||
11 | |||
12 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${PV}.tar.bz2 \ | ||
13 | file://long-long-thumb.patch \ | ||
14 | file://configure.patch \ | ||
15 | file://mips_gcc4.4.patch \ | ||
16 | file://GnuPG1-CVE-2012-6085.patch \ | ||
17 | file://curl_typeof_fix_backport.patch \ | ||
18 | file://CVE-2013-4351.patch \ | ||
19 | file://CVE-2013-4576.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "b06a141cca5cd1a55bbdd25ab833303c" | ||
23 | SRC_URI[sha256sum] = "69d18b7d193f62ca27ed4febcb4c9044aa0c95305d3258fe902e2fae5fc6468d" | ||
24 | |||
25 | inherit autotools gettext | ||
26 | |||
27 | # --with-egd-socket=NAME use NAME for the EGD socket | ||
28 | # --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer | ||
29 | # --with-included-zlib use the zlib code included here | ||
30 | # --with-capabilities use linux capabilities default=no | ||
31 | # --with-mailprog=NAME use "NAME -t" for mail transport | ||
32 | # --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | ||
33 | # --without-libiconv-prefix don't search for libiconv in includedir and libdir | ||
34 | # --with-included-gettext use the GNU gettext library included here | ||
35 | # --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | ||
36 | # --without-libintl-prefix don't search for libintl in includedir and libdir | ||
37 | # --without-readline do not support fancy command line editing | ||
38 | # --with-included-regex use the included GNU regex library | ||
39 | # --with-zlib=DIR use libz in DIR | ||
40 | # --with-bzip2=DIR look for bzip2 in DIR | ||
41 | # --enable-static-rnd=egd|unix|linux|auto | ||
42 | # --disable-dev-random disable the use of dev random | ||
43 | # --disable-asm do not use assembler modules | ||
44 | # --enable-m-guard enable memory guard facility | ||
45 | # --enable-selinux-support | ||
46 | # enable SELinux support | ||
47 | # --disable-card-support disable OpenPGP card support | ||
48 | # --disable-gnupg-iconv disable the new iconv code | ||
49 | # --enable-backsigs enable the experimental backsigs code | ||
50 | # --enable-minimal build the smallest gpg binary possible | ||
51 | # --disable-rsa disable the RSA public key algorithm | ||
52 | # --disable-idea disable the IDEA cipher | ||
53 | # --disable-cast5 disable the CAST5 cipher | ||
54 | # --disable-blowfish disable the BLOWFISH cipher | ||
55 | # --disable-aes disable the AES, AES192, and AES256 ciphers | ||
56 | # --disable-twofish disable the TWOFISH cipher | ||
57 | # --disable-sha256 disable the SHA-256 digest | ||
58 | # --disable-sha512 disable the SHA-384 and SHA-512 digests | ||
59 | # --disable-bzip2 disable the BZIP2 compression algorithm | ||
60 | # --disable-exec disable all external program execution | ||
61 | # --disable-photo-viewers disable photo ID viewers | ||
62 | # --disable-keyserver-helpers disable all external keyserver support | ||
63 | # --disable-ldap disable LDAP keyserver interface | ||
64 | # --disable-hkp disable HKP keyserver interface | ||
65 | # --disable-http disable HTTP key fetching interface | ||
66 | # --disable-finger disable Finger key fetching interface | ||
67 | # --disable-mailto disable email keyserver interface | ||
68 | # --disable-keyserver-path disable the exec-path option for keyserver helpers | ||
69 | # --enable-key-cache=SIZE Set key cache to SIZE (default 4096) | ||
70 | # --disable-largefile omit support for large files | ||
71 | # --disable-dns-srv disable the use of DNS SRV in HKP and HTTP | ||
72 | # --disable-nls do not use Native Language Support | ||
73 | # --disable-regex do not handle regular expressions in trust sigs | ||
74 | |||
75 | EXTRA_OECONF = "--disable-ldap \ | ||
76 | --with-zlib=${STAGING_LIBDIR}/.. \ | ||
77 | --with-bzip2=${STAGING_LIBDIR}/.. \ | ||
78 | --disable-selinux-support \ | ||
79 | --with-readline=${STAGING_LIBDIR}/.. \ | ||
80 | ac_cv_sys_symbol_underscore=no \ | ||
81 | " | ||
82 | |||
83 | do_install () { | ||
84 | autotools_do_install | ||
85 | install -d ${D}${docdir}/${BPN} | ||
86 | mv ${D}${datadir}/${BPN}/* ${D}/${docdir}/${BPN}/ || : | ||
87 | mv ${D}${prefix}/doc/* ${D}/${docdir}/${BPN}/ || : | ||
88 | } | ||
89 | |||
90 | # split out gpgv from main package | ||
91 | RDEPENDS_${PN} = "gpgv" | ||
92 | PACKAGES =+ "gpgv" | ||
93 | FILES_gpgv = "${bindir}/gpgv" | ||
94 | |||
95 | # Exclude debug files from the main packages | ||
96 | FILES_${PN} = "${bindir}/* ${datadir}/${BPN} ${libexecdir}/${BPN}/*" | ||
97 | FILES_${PN}-dbg += "${libexecdir}/${BPN}/.debug" | ||
diff --git a/meta/recipes-support/gnupg/gnupg_2.0.22.bb b/meta/recipes-support/gnupg/gnupg_2.0.22.bb new file mode 100644 index 0000000000..7f36df5bd3 --- /dev/null +++ b/meta/recipes-support/gnupg/gnupg_2.0.22.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "GNU Privacy Guard - encryption and signing tools (2.x)" | ||
2 | HOMEPAGE = "http://www.gnupg.org/" | ||
3 | LICENSE = "GPLv3 & LGPLv3" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ | ||
5 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" | ||
6 | |||
7 | DEPENDS = "${PTH} libassuan libksba zlib bzip2 readline libgcrypt" | ||
8 | PTH = "pth" | ||
9 | PTH_libc-uclibc = "npth" | ||
10 | |||
11 | inherit autotools gettext | ||
12 | |||
13 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/${BPN}/${BPN}-${PV}.tar.bz2" | ||
14 | |||
15 | SRC_URI[md5sum] = "ee22e7b4fdbfcb50229c2e6db6db291e" | ||
16 | SRC_URI[sha256sum] = "437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251" | ||
17 | |||
18 | EXTRA_OECONF = "--disable-ldap \ | ||
19 | --disable-ccid-driver \ | ||
20 | --without-libcurl \ | ||
21 | --with-zlib=${STAGING_LIBDIR}/.. \ | ||
22 | --with-bzip2=${STAGING_LIBDIR}/.. \ | ||
23 | --with-readline=${STAGING_LIBDIR}/.. \ | ||
24 | " | ||
25 | |||
26 | do_install_append() { | ||
27 | ln -sf gpg2 ${D}${bindir}/gpg | ||
28 | ln -sf gpgv2 ${D}${bindir}/gpgv | ||
29 | } | ||
diff --git a/meta/recipes-support/gnutls/gnutls.inc b/meta/recipes-support/gnutls/gnutls.inc new file mode 100644 index 0000000000..25ec3a6659 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls.inc | |||
@@ -0,0 +1,49 @@ | |||
1 | SUMMARY = "GNU Transport Layer Security Library" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gnutls/" | ||
3 | BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls" | ||
4 | DEPENDS = "zlib lzo libtasn1 libgcrypt (>= 1.4.2) libcap readline" | ||
5 | |||
6 | INC_PR = "r8" | ||
7 | |||
8 | LICENSE = "GPLv3+ & LGPLv2.1+" | ||
9 | LICENSE_${PN} = "LGPLv2.1+" | ||
10 | LICENSE_${PN}-xx = "LGPLv2.1+" | ||
11 | LICENSE_${PN}-bin = "GPLv3+" | ||
12 | LICENSE_${PN}-extra = "GPLv3+" | ||
13 | LICENSE_${PN}-openssl = "GPLv3+" | ||
14 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
15 | file://lib/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
16 | file://libextra/COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
17 | |||
18 | SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" | ||
19 | |||
20 | SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.bz2" | ||
21 | |||
22 | inherit autotools-brokensep binconfig pkgconfig gettext lib_package | ||
23 | |||
24 | EXTRA_OECONF="--with-included-opencdk --with-included-libcfg --disable-rpath \ | ||
25 | --with-libtasn1-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
26 | --with-libgcrypt --with-libgcrypt-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
27 | --with-libdl-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
28 | --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
29 | --with-libreadline-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
30 | --with-libz-prefix=${STAGING_DIR_HOST}${prefix} \ | ||
31 | --with-lzo --disable-guile \ | ||
32 | --without-p11-kit \ | ||
33 | " | ||
34 | do_configure_prepend() { | ||
35 | for dir in . lib libextra; do | ||
36 | rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4 | ||
37 | done | ||
38 | } | ||
39 | |||
40 | PACKAGES =+ "${PN}-openssl ${PN}-extra ${PN}-xx" | ||
41 | |||
42 | FILES_${PN}-dev += "${bindir}/gnutls-cli-debug" | ||
43 | FILES_${PN}-extra = "${libdir}/libgnutls-extra.so.*" | ||
44 | FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*" | ||
45 | FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*" | ||
46 | |||
47 | LDFLAGS_append_libc-uclibc += " -pthread" | ||
48 | |||
49 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/gnutls/gnutls/25_updatedgdocfrommaster.diff b/meta/recipes-support/gnutls/gnutls/25_updatedgdocfrommaster.diff new file mode 100644 index 0000000000..76108a09fc --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/25_updatedgdocfrommaster.diff | |||
@@ -0,0 +1,636 @@ | |||
1 | Description: Update gdoc script from gnutls master. | ||
2 | This includes bef38b98c0536d81c0e4b2e78a9182e1df1d451c among other fixes: | ||
3 | . | ||
4 | [PATCH] Avoid depending on hash order in gdoc. | ||
5 | . | ||
6 | Previously, gdoc had a hash of regexp replacements for each output | ||
7 | format, and applied the replacements in the order that "keys" returned | ||
8 | for the hash. However, not all orders are safe -- and now that Perl 5.18 | ||
9 | randomises hash order per-process, it only worked sometimes! | ||
10 | |||
11 | Bug-Debian: http://bugs.debian.org/724167 | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | |||
15 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
16 | |||
17 | --- gnutls26-2.12.23.orig/doc/scripts/gdoc | ||
18 | +++ gnutls26-2.12.23/doc/scripts/gdoc | ||
19 | @@ -1,4 +1,6 @@ | ||
20 | -#!/usr/bin/perl | ||
21 | +eval '(exit $?0)' && eval 'exec perl "$0" ${1+"$@"}' | ||
22 | + & eval 'exec perl "$0" $argv:q' | ||
23 | + if 0; | ||
24 | |||
25 | ## Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson | ||
26 | ## added -texinfo, -listfunc, -pkg-name | ||
27 | @@ -7,6 +9,8 @@ | ||
28 | ## Copyright (c) 2001, 2002 Nikos Mavrogiannopoulos | ||
29 | ## added -tex | ||
30 | ## Copyright (c) 1998 Michael Zucchi | ||
31 | +## Copyright (c) 2013 Adam Sampson | ||
32 | +## made highlighting not depend on hash order, for Perl 5.18 | ||
33 | |||
34 | # This program is free software: you can redistribute it and/or modify | ||
35 | # it under the terms of the GNU General Public License as published by | ||
36 | @@ -132,57 +136,59 @@ | ||
37 | use POSIX qw(strftime); | ||
38 | |||
39 | # match expressions used to find embedded type information | ||
40 | -$type_constant = "((?<!\")\\\%(\\w+))"; | ||
41 | -$type_func = "(\\w+\\(\\))"; | ||
42 | -$type_param = "\\\@(\\w+)"; | ||
43 | -$type_struct = "\\\#(\\w+)"; | ||
44 | -$type_env = "(\\\$\\w+)"; | ||
45 | +$type_constant = "\\\%([A-Za-z0-9_]+)"; | ||
46 | +$type_func = "([A-Za-z0-9_]+\\(\\))"; | ||
47 | +$type_param = '\@([A-Za-z0-9_]+)\s*'; | ||
48 | +$type_struct = "\\\#([A-Za-z0-9_]+)"; | ||
49 | +$type_env = "(\\\$[A-Za-z0-9_]+)"; | ||
50 | |||
51 | |||
52 | # Output conversion substitutions. | ||
53 | # One for each output format | ||
54 | |||
55 | # these work fairly well | ||
56 | -%highlights_html = ( $type_constant, "<i>\$2</i>", | ||
57 | - $type_func, "<b>\$1</b>", | ||
58 | - $type_struct, "<i>\$1</i>", | ||
59 | - $type_param, "<tt><b>\$1</b></tt>" ); | ||
60 | +@highlights_html = ( [$type_constant, '"<i>$1</i>"'], | ||
61 | + [$type_func, '"<b>$1</b>"'], | ||
62 | + [$type_struct, '"<i>$1</i>"'], | ||
63 | + [$type_param, '" <tt><b>$1</b></tt> "'] ); | ||
64 | $blankline_html = "<p>"; | ||
65 | |||
66 | -%highlights_texinfo = ( $type_constant, "\\\@code{\$2}", | ||
67 | - $type_func, "\\\@code{\$1}", | ||
68 | - $type_struct, "\\\@code{\$1}", | ||
69 | - $type_param, "\\\@code{\$1}" ); | ||
70 | +@highlights_texinfo = ( [$type_param, '" \@code{$1} "'], | ||
71 | + [$type_constant, '"\@code{$1} "'], | ||
72 | + [$type_func, '"\@code{$1} "'], | ||
73 | + [$type_struct, '"\@code{$1} "'], | ||
74 | + ); | ||
75 | $blankline_texinfo = ""; | ||
76 | |||
77 | -%highlights_tex = ( $type_constant, "{\\\\it \$2}", | ||
78 | - $type_func, "{\\\\bf \$1}", | ||
79 | - $type_struct, "{\\\\it \$1}", | ||
80 | - $type_param, "{\\\\bf \$1}" ); | ||
81 | +@highlights_tex = ( [$type_param, '" {\\\bf $1} "'], | ||
82 | + [$type_constant, '"{\\\it $1}"'], | ||
83 | + [$type_func, '"{\\\bf $1}"'], | ||
84 | + [$type_struct, '"{\\\it $1}"'], | ||
85 | + ); | ||
86 | $blankline_tex = "\\\\"; | ||
87 | |||
88 | # sgml, docbook format | ||
89 | -%highlights_sgml = ( $type_constant, "<replaceable class=\"option\">\$2</replaceable>", | ||
90 | - $type_func, "<function>\$1</function>", | ||
91 | - $type_struct, "<structname>\$1</structname>", | ||
92 | - $type_env, "<envar>\$1</envar>", | ||
93 | - $type_param, "<parameter>\$1</parameter>" ); | ||
94 | +@highlights_sgml = ( [$type_constant, '"<replaceable class=\"option\">$1</replaceable>"'], | ||
95 | + [$type_func, '"<function>$1</function>"'], | ||
96 | + [$type_struct, '"<structname>$1</structname>"'], | ||
97 | + [$type_env, '"<envar>$1</envar>"'], | ||
98 | + [$type_param, '" <parameter>$1</parameter> "'] ); | ||
99 | $blankline_sgml = "</para><para>\n"; | ||
100 | |||
101 | # these are pretty rough | ||
102 | -%highlights_man = ( $type_constant, "\\\\fB\$2\\\\fP", | ||
103 | - $type_func, "\\\\fB\$1\\\\fP", | ||
104 | - $type_struct, "\\\\fB\$1\\\\fP", | ||
105 | - $type_param, "\\\\fI\$1\\\\fP" ); | ||
106 | +@highlights_man = ( [$type_constant, '"\\\fB$1\\\fP"'], | ||
107 | + [$type_func, '"\\\fB$1\\\fP"'], | ||
108 | + [$type_struct, '"\\\fB$1\\\fP"'], | ||
109 | + [$type_param, '" \\\fI$1\\\fP "'] ); | ||
110 | $blankline_man = ""; | ||
111 | |||
112 | # text-mode | ||
113 | -%highlights_text = ( $type_constant, "\$2", | ||
114 | - $type_func, "\$1", | ||
115 | - $type_struct, "\$1", | ||
116 | - $type_param, "\$1" ); | ||
117 | +@highlights_text = ( [$type_constant, '"$1"'], | ||
118 | + [$type_func, '"$1"'], | ||
119 | + [$type_struct, '"$1"'], | ||
120 | + [$type_param, '"$1 "'] ); | ||
121 | $blankline_text = ""; | ||
122 | - | ||
123 | +my $lineprefix = ""; | ||
124 | |||
125 | sub usage { | ||
126 | print "Usage: $0 [ -v ] [ -docbook | -html | -text | -man | -tex | -texinfo -listfunc ]\n"; | ||
127 | @@ -201,7 +207,7 @@ if ($#ARGV==-1) { | ||
128 | |||
129 | $verbose = 0; | ||
130 | $output_mode = "man"; | ||
131 | -%highlights = %highlights_man; | ||
132 | +@highlights = @highlights_man; | ||
133 | $blankline = $blankline_man; | ||
134 | $modulename = "API Documentation"; | ||
135 | $sourceversion = strftime "%Y-%m-%d", localtime; | ||
136 | @@ -210,27 +216,27 @@ while ($ARGV[0] =~ m/^-(.*)/) { | ||
137 | $cmd = shift @ARGV; | ||
138 | if ($cmd eq "-html") { | ||
139 | $output_mode = "html"; | ||
140 | - %highlights = %highlights_html; | ||
141 | + @highlights = @highlights_html; | ||
142 | $blankline = $blankline_html; | ||
143 | } elsif ($cmd eq "-man") { | ||
144 | $output_mode = "man"; | ||
145 | - %highlights = %highlights_man; | ||
146 | + @highlights = @highlights_man; | ||
147 | $blankline = $blankline_man; | ||
148 | } elsif ($cmd eq "-tex") { | ||
149 | $output_mode = "tex"; | ||
150 | - %highlights = %highlights_tex; | ||
151 | + @highlights = @highlights_tex; | ||
152 | $blankline = $blankline_tex; | ||
153 | } elsif ($cmd eq "-texinfo") { | ||
154 | $output_mode = "texinfo"; | ||
155 | - %highlights = %highlights_texinfo; | ||
156 | + @highlights = @highlights_texinfo; | ||
157 | $blankline = $blankline_texinfo; | ||
158 | } elsif ($cmd eq "-text") { | ||
159 | $output_mode = "text"; | ||
160 | - %highlights = %highlights_text; | ||
161 | + @highlights = @highlights_text; | ||
162 | $blankline = $blankline_text; | ||
163 | } elsif ($cmd eq "-docbook") { | ||
164 | $output_mode = "sgml"; | ||
165 | - %highlights = %highlights_sgml; | ||
166 | + @highlights = @highlights_sgml; | ||
167 | $blankline = $blankline_sgml; | ||
168 | } elsif ($cmd eq "-listfunc") { | ||
169 | $output_mode = "listfunc"; | ||
170 | @@ -270,6 +276,8 @@ sub dump_section { | ||
171 | my $name = shift @_; | ||
172 | my $contents = join "\n", @_; | ||
173 | |||
174 | + $name = " $name"; | ||
175 | + | ||
176 | if ($name =~ m/$type_constant/) { | ||
177 | $name = $1; | ||
178 | # print STDERR "constant section '$1' = '$contents'\n"; | ||
179 | @@ -280,6 +288,7 @@ sub dump_section { | ||
180 | $parameters{$name} = $contents; | ||
181 | } else { | ||
182 | # print STDERR "other section '$name' = '$contents'\n"; | ||
183 | + $name =~ tr/ //d; | ||
184 | $sections{$name} = $contents; | ||
185 | push @sectionlist, $name; | ||
186 | } | ||
187 | @@ -296,35 +305,15 @@ sub dump_section { | ||
188 | # sections => %descriont descriptions | ||
189 | # | ||
190 | |||
191 | -sub repstr { | ||
192 | - $pattern = shift; | ||
193 | - $repl = shift; | ||
194 | - $match1 = shift; | ||
195 | - $match2 = shift; | ||
196 | - $match3 = shift; | ||
197 | - $match4 = shift; | ||
198 | - | ||
199 | - $output = $repl; | ||
200 | - $output =~ s,\$1,$match1,g; | ||
201 | - $output =~ s,\$2,$match2,g; | ||
202 | - $output =~ s,\$3,$match3,g; | ||
203 | - $output =~ s,\$4,$match4,g; | ||
204 | - | ||
205 | - eval "\$return = qq/$output/"; | ||
206 | - | ||
207 | -# print "pattern $pattern matched 1=$match1 2=$match2 3=$match3 4=$match4 replace $repl yielded $output interpolated $return\n"; | ||
208 | - | ||
209 | - $return; | ||
210 | -} | ||
211 | - | ||
212 | sub just_highlight { | ||
213 | my $contents = join "\n", @_; | ||
214 | my $line; | ||
215 | my $ret = ""; | ||
216 | |||
217 | - foreach $pattern (keys %highlights) { | ||
218 | -# print "scanning pattern $pattern ($highlights{$pattern})\n"; | ||
219 | - $contents =~ s:$pattern:repstr($pattern, $highlights{$pattern}, $1, $2, $3, $4):gse; | ||
220 | + foreach $highlight (@highlights) { | ||
221 | + my ($pattern, $replace) = @$highlight; | ||
222 | + #print "scanning pattern $pattern ($replace)\n"; | ||
223 | + $contents =~ s/$pattern/$replace/gees; | ||
224 | } | ||
225 | foreach $line (split "\n", $contents) { | ||
226 | if ($line eq ""){ | ||
227 | @@ -370,13 +359,45 @@ sub output_texinfo { | ||
228 | } | ||
229 | } | ||
230 | foreach $section (@{$args{'sectionlist'}}) { | ||
231 | + $section =~ s/\@//g; | ||
232 | print "\n\@strong{$section:} " if $section ne $section_default; | ||
233 | - $args{'sections'}{$section} =~ s:([{}]):\@\1:gs; | ||
234 | + $args{'sections'}{$section} =~ s:([{}]):\@$1:gs; | ||
235 | output_highlight($args{'sections'}{$section}); | ||
236 | } | ||
237 | print "\@end deftypefun\n\n"; | ||
238 | } | ||
239 | |||
240 | +sub output_enum_texinfo { | ||
241 | + my %args = %{$_[0]}; | ||
242 | + my ($parameter, $section); | ||
243 | + my $count; | ||
244 | + my $name = $args{'enum'}; | ||
245 | + my $param; | ||
246 | + my $param2; | ||
247 | + my $sec; | ||
248 | + my $check; | ||
249 | + my $type; | ||
250 | + | ||
251 | + print "\n\@c $name\n"; | ||
252 | + print "\@table \@code\n"; | ||
253 | + | ||
254 | + $check=0; | ||
255 | + foreach $parameter (@{$args{'parameterlist'}}) { | ||
256 | + $param1 = $parameter; | ||
257 | + $param1 =~ s/_/_\@-/g; | ||
258 | + | ||
259 | + $check = 1; | ||
260 | + print "\@item ".$param1."\n"; | ||
261 | +# print "\n"; | ||
262 | + | ||
263 | + $param2 = $args{'parameters'}{$parameter}; | ||
264 | + $out = just_highlight($param2); | ||
265 | + chomp $out; | ||
266 | + print $out . "\n"; | ||
267 | + } | ||
268 | + print "\@end table\n"; | ||
269 | +} | ||
270 | + | ||
271 | # output in html | ||
272 | sub output_html { | ||
273 | my %args = %{$_[0]}; | ||
274 | @@ -428,7 +449,9 @@ sub output_tex { | ||
275 | |||
276 | $func =~ s/_/\\_/g; | ||
277 | |||
278 | - print "\n\n\\subsection{". $func . "}\n\\label{" . $args{'function'} . "}\n"; | ||
279 | + print "\n\n\\begin{function}\n"; | ||
280 | + print "\\functionTitle{". $func . "}\n"; | ||
281 | + print "\\index{". $func . "}\n"; | ||
282 | |||
283 | $type = $args{'functiontype'}; | ||
284 | $type =~ s/_/\\_/g; | ||
285 | @@ -451,9 +474,8 @@ sub output_tex { | ||
286 | } | ||
287 | print ")\n"; | ||
288 | |||
289 | - print "\n{\\large{Arguments}}\n"; | ||
290 | + print "\n\\begin{functionArguments}\n"; | ||
291 | |||
292 | - print "\\begin{itemize}\n"; | ||
293 | $check=0; | ||
294 | foreach $parameter (@{$args{'parameterlist'}}) { | ||
295 | $param1 = $args{'parametertypes'}{$parameter}; | ||
296 | @@ -462,11 +484,12 @@ sub output_tex { | ||
297 | $param2 =~ s/_/\\_/g; | ||
298 | |||
299 | $check = 1; | ||
300 | - print "\\item {\\it ".$param1."} {\\bf ".$param2."}: \n"; | ||
301 | + print "\\functionArgument {\\it ".$param1."} {\\bf ".$param2."}: \n"; | ||
302 | # print "\n"; | ||
303 | |||
304 | $param3 = $args{'parameters'}{$parameter}; | ||
305 | - $param3 =~ s/#([a-zA-Z\_]+)/{\\it \1}/g; | ||
306 | + $param3 =~ s/\#([a-zA-Z\_]+)/{\\it $1}/g; | ||
307 | + $param3 =~ s/\%([a-zA-Z\_]+)/{\\bf $1}/g; | ||
308 | |||
309 | $out = just_highlight($param3); | ||
310 | $out =~ s/_/\\_/g; | ||
311 | @@ -475,31 +498,72 @@ sub output_tex { | ||
312 | if ($check==0) { | ||
313 | print "\\item void\n"; | ||
314 | } | ||
315 | - print "\\end{itemize}\n"; | ||
316 | + print "\\end{functionArguments}\n"; | ||
317 | |||
318 | foreach $section (@{$args{'sectionlist'}}) { | ||
319 | $sec = $section; | ||
320 | $sec =~ s/_/\\_/g; | ||
321 | - $sec =~ s/#([a-zA-Z\_]+)/{\\it \1}/g; | ||
322 | + $sec =~ s/#([a-zA-Z\_]+)/{\\it $1}/g; | ||
323 | |||
324 | - print "\n{\\large{$sec}}\\\\\n"; | ||
325 | - print "\\begin{rmfamily}\n"; | ||
326 | + print "\n\\begin{function${sec}}\n"; | ||
327 | + $out = $args{'sections'}{$section}; | ||
328 | |||
329 | - $sec = $args{'sections'}{$section}; | ||
330 | - $sec =~ s/\\:/:/g; | ||
331 | - $sec =~ s/#([a-zA-Z\_]+)/{\\it \1}/g; | ||
332 | - $sec =~ s/->/\$\\rightarrow\$/g; | ||
333 | - $sec =~ s/([0-9]+)\^([0-9]+)/\$\{\1\}\^\{\2\}\$/g; | ||
334 | - | ||
335 | - $out = just_highlight($sec); | ||
336 | - $out =~ s/_/\\_/g; | ||
337 | + $out =~ s/\#([a-zA-Z\_]+)/{\\it $1}/g; | ||
338 | + $out =~ s/\%([a-zA-Z\_]+)/{\\bf $1}/g; | ||
339 | + $out =~ s/\@([a-zA-Z\_]+)/{\\bf $1}/g; | ||
340 | + $out =~ s/_/\\_\\-/g; | ||
341 | + $out =~ s/\$/\\\$/g; | ||
342 | + $out =~ s/#/\\#/g; | ||
343 | + $out =~ s/\n\n/\n/g; | ||
344 | + $out =~ s/\\:/:/g; | ||
345 | + $out =~ s/\-\>/\$\\rightarrow\$/g; | ||
346 | + $out =~ s/([0-9]+)\^([0-9]+)/\$\{$1\}\^\{$2\}\$/g; | ||
347 | |||
348 | print $out; | ||
349 | - print "\\end{rmfamily}\n"; | ||
350 | + print "\\end{function${sec}}\n"; | ||
351 | } | ||
352 | - print "\n"; | ||
353 | + print "\\end{function}\n\n"; | ||
354 | } | ||
355 | |||
356 | +sub output_enum_tex { | ||
357 | + my %args = %{$_[0]}; | ||
358 | + my ($parameter, $section); | ||
359 | + my $count; | ||
360 | + my $name = $args{'enum'}; | ||
361 | + my $param; | ||
362 | + my $param2; | ||
363 | + my $sec; | ||
364 | + my $check; | ||
365 | + my $type; | ||
366 | + | ||
367 | + print "\n\n\\begin{enum}\n"; | ||
368 | + $name =~ s/_/\\_/g; | ||
369 | + print "\\enumTitle{". $name . "}\n"; | ||
370 | + print "\\index{". $name . "}\n"; | ||
371 | + | ||
372 | + print "\n\\begin{enumList}\n"; | ||
373 | + | ||
374 | + $check=0; | ||
375 | + foreach $parameter (@{$args{'parameterlist'}}) { | ||
376 | + $param1 = $parameter; | ||
377 | + $param1 =~ s/_/\\_\\-/g; | ||
378 | + | ||
379 | + $check = 1; | ||
380 | + print "\\enumElement{".$param1."}{"; | ||
381 | +# print "\n"; | ||
382 | + | ||
383 | + $param2 = $args{'parameters'}{$parameter}; | ||
384 | + $param2 =~ s/\#([a-zA-Z\_]+)/{\\it $1}/g; | ||
385 | + $param2 =~ s/\%([a-zA-Z\_]+)/{\\bf $1}/g; | ||
386 | + $out = just_highlight($param2); | ||
387 | + $out =~ s/_/\\_/g; | ||
388 | + chomp $out; | ||
389 | + print $out . "}\n"; | ||
390 | + } | ||
391 | + print "\\end{enumList}\n"; | ||
392 | + | ||
393 | + print "\\end{enum}\n\n"; | ||
394 | +} | ||
395 | |||
396 | # output in sgml DocBook | ||
397 | sub output_sgml { | ||
398 | @@ -639,11 +703,14 @@ sub output_man { | ||
399 | if ($args{'bugsto'}) { | ||
400 | print ".SH \"REPORTING BUGS\"\n"; | ||
401 | print "Report bugs to <". $args{'bugsto'} . ">.\n"; | ||
402 | + print ".br\n"; | ||
403 | + print "General guidelines for reporting bugs: http://www.gnu.org/gethelp/\n"; | ||
404 | + print ".br\n"; | ||
405 | if ($args{'pkgname'}) { | ||
406 | print $args{'pkgname'} . " home page: " . | ||
407 | "http://www.gnu.org/software/" . $args{'module'} . "/\n"; | ||
408 | } | ||
409 | - print "General help using GNU software: http://www.gnu.org/gethelp/\n"; | ||
410 | + print "\n"; | ||
411 | } | ||
412 | |||
413 | if ($args{'copyright'}) { | ||
414 | @@ -670,6 +737,10 @@ sub output_man { | ||
415 | print ".B info " . $args{'seeinfo'} . "\n"; | ||
416 | print ".PP\n"; | ||
417 | print "should give you access to the complete manual.\n"; | ||
418 | + print "As an alternative you may obtain the manual from:\n"; | ||
419 | + print ".IP\n"; | ||
420 | + print ".B http://www.gnu.org/software/" . $args{'module'} . "/manual/\n"; | ||
421 | + print ".PP\n"; | ||
422 | } | ||
423 | } | ||
424 | |||
425 | @@ -705,6 +776,10 @@ sub output_function { | ||
426 | eval "output_".$output_mode."(\@_);"; | ||
427 | } | ||
428 | |||
429 | +sub output_enum { | ||
430 | + eval "output_enum_".$output_mode."(\@_);"; | ||
431 | +} | ||
432 | + | ||
433 | |||
434 | ## | ||
435 | # takes a function prototype and spits out all the details | ||
436 | @@ -744,7 +819,7 @@ sub dump_function { | ||
437 | # print STDERR " :> @args\n"; | ||
438 | $type = join " ", @args; | ||
439 | |||
440 | - if ($parameters{$param} eq "" && $param != "void") { | ||
441 | + if ((!defined($parameters{$param}) || $parameters{$param} eq "") && $param ne "void") { | ||
442 | $parameters{$param} = "-- undescribed --"; | ||
443 | print STDERR "warning: $lineno: Function parameter '$param' not described in '$function_name'\n"; | ||
444 | } | ||
445 | @@ -781,6 +856,56 @@ sub dump_function { | ||
446 | } | ||
447 | } | ||
448 | |||
449 | +sub dump_enum { | ||
450 | + my $prototype = shift @_; | ||
451 | + | ||
452 | + if (($prototype =~ m/^\s*typedef\s+enum\s*[a-zA-Z0-9_~:]*\s*\{([\-a-zA-Z0-9_~=,:\s\(\)\<]+)\s*\}\s*([a-zA-Z0-9_]+);.*/)) { | ||
453 | +# || $prototype =~ m/^\s*enum\s+([a-zA-Z0-9_~:]+).*/) { | ||
454 | + $args = $1; | ||
455 | + $name = $2; | ||
456 | + | ||
457 | + foreach $arg (split ',', $args) { | ||
458 | + # strip leading/trailing spaces | ||
459 | + $arg =~ s/^\s*//; | ||
460 | + $arg =~ s/\s*$//; | ||
461 | + $arg =~ s/([A-Za-z0-9_]+)\s*=.*/$1/g; | ||
462 | +# print STDERR "SCAN ARG: '$arg'\n"; | ||
463 | + | ||
464 | + next if $arg eq ''; | ||
465 | + if ((!defined($parameters{$arg}) || $parameters{$arg} eq "")) { | ||
466 | + $parameters{$arg} = "-- undescribed --"; | ||
467 | + print STDERR "warning: $lineno: Enumeration parameter '$arg' not described in '$name'\n"; | ||
468 | + } | ||
469 | + | ||
470 | + push @parameterlist, $arg; | ||
471 | + | ||
472 | +# print STDERR "param = '$arg'\n"; | ||
473 | + } | ||
474 | + } else { | ||
475 | +# print STDERR "warning: $lineno: Cannot understand enumeration: '$prototype'\n"; | ||
476 | + return; | ||
477 | + } | ||
478 | + | ||
479 | + output_enum({'enum' => $name, | ||
480 | + 'module' => $modulename, | ||
481 | + 'sourceversion' => $sourceversion, | ||
482 | + 'include' => $include, | ||
483 | + 'includefuncprefix' => $includefuncprefix, | ||
484 | + 'bugsto' => $bugsto, | ||
485 | + 'pkgname' => $pkgname, | ||
486 | + 'copyright' => $copyright, | ||
487 | + 'verbatimcopying' => $verbatimcopying, | ||
488 | + 'seeinfo' => $seeinfo, | ||
489 | + 'functiontype' => $return_type, | ||
490 | + 'parameterlist' => \@parameterlist, | ||
491 | + 'parameters' => \%parameters, | ||
492 | + 'parametertypes' => \%parametertypes, | ||
493 | + 'sectionlist' => \@sectionlist, | ||
494 | + 'sections' => \%sections, | ||
495 | + 'purpose' => $function_purpose | ||
496 | + }); | ||
497 | +} | ||
498 | + | ||
499 | ###################################################################### | ||
500 | # main | ||
501 | # states | ||
502 | @@ -797,7 +922,7 @@ $doc_start = "^/\\*\\*\$"; | ||
503 | $doc_end = "\\*/"; | ||
504 | $doc_com = "\\s*\\*\\s*"; | ||
505 | $doc_func = $doc_com."(\\w+):?"; | ||
506 | -$doc_sect = $doc_com."([".$doc_special."[:upper:]][\\w ]+):\\s*(.*)"; | ||
507 | +$doc_sect = $doc_com."([".$doc_special."[:upper:]][\\w]+):\\s*(.*)"; | ||
508 | $doc_content = $doc_com."(.*)"; | ||
509 | |||
510 | %constants = (); | ||
511 | @@ -809,6 +934,7 @@ $doc_content = $doc_com."(.*)"; | ||
512 | $contents = ""; | ||
513 | $section_default = "Description"; # default section | ||
514 | $section = $section_default; | ||
515 | +$enum = 0; | ||
516 | |||
517 | $lineno = 0; | ||
518 | foreach $file (@ARGV) { | ||
519 | @@ -816,18 +942,21 @@ foreach $file (@ARGV) { | ||
520 | print STDERR "Error: Cannot open file $file\n"; | ||
521 | next; | ||
522 | } | ||
523 | - while (<IN>) { | ||
524 | + while ($line = <IN>) { | ||
525 | $lineno++; | ||
526 | |||
527 | if ($state == 0) { | ||
528 | - if (/$doc_start/o) { | ||
529 | + if ($line =~ /$doc_start/o) { | ||
530 | $state = 1; # next line is always the function name | ||
531 | +# print STDERR "XXX: start of doc comment\n"; | ||
532 | } | ||
533 | } elsif ($state == 1) { # this line is the function name (always) | ||
534 | - if (/$doc_func/o) { | ||
535 | + if ($line =~ /$doc_func/o) { | ||
536 | $function = $1; | ||
537 | $state = 2; | ||
538 | - if (/-\s*(.*)/) { | ||
539 | +# print STDERR "XXX: start of doc comment, looking for prototype\n"; | ||
540 | + | ||
541 | + if ($line =~ /-\s*(.*)/) { | ||
542 | $function_purpose = $1; | ||
543 | } else { | ||
544 | $function_purpose = ""; | ||
545 | @@ -841,11 +970,11 @@ foreach $file (@ARGV) { | ||
546 | $state = 0; | ||
547 | } | ||
548 | } elsif ($state == 2) { # look for head: lines, and include content | ||
549 | - if (/$doc_sect/o) { | ||
550 | + if ($line =~ /$doc_sect/o) { | ||
551 | $newsection = $1; | ||
552 | $newcontents = $2; | ||
553 | |||
554 | - if ($contents ne "") { | ||
555 | + if ($contents ne '') { | ||
556 | dump_section($section, $contents); | ||
557 | $section = $section_default; | ||
558 | } | ||
559 | @@ -855,7 +984,7 @@ foreach $file (@ARGV) { | ||
560 | $contents .= "\n"; | ||
561 | } | ||
562 | $section = $newsection; | ||
563 | - } elsif (/$doc_end/) { | ||
564 | + } elsif ($line =~ /$doc_end/) { | ||
565 | |||
566 | if ($contents ne "") { | ||
567 | dump_section($section, $contents); | ||
568 | @@ -863,13 +992,12 @@ foreach $file (@ARGV) { | ||
569 | $contents = ""; | ||
570 | } | ||
571 | |||
572 | -# print STDERR "end of doc comment, looking for prototype\n"; | ||
573 | $prototype = ""; | ||
574 | $state = 3; | ||
575 | - } elsif (/$doc_content/) { | ||
576 | + } elsif ($line =~ /$doc_content/) { | ||
577 | # miguel-style comment kludge, look for blank lines after | ||
578 | # @parameter line to signify start of description | ||
579 | - if ($1 eq "" && $section =~ m/^@/) { | ||
580 | + if ($1 eq '' && $section =~ m/^@/) { | ||
581 | dump_section($section, $contents); | ||
582 | $section = $section_default; | ||
583 | $contents = ""; | ||
584 | @@ -881,13 +1009,16 @@ foreach $file (@ARGV) { | ||
585 | print STDERR "warning: $lineno: Bad line: $_"; | ||
586 | } | ||
587 | } elsif ($state == 3) { # scanning for function { (end of prototype) | ||
588 | - if (m#\s*/\*\s+MACDOC\s*#io) { | ||
589 | + if ($line =~ m#\s*/\*\s+MACDOC\s*#io) { | ||
590 | # do nothing | ||
591 | } | ||
592 | - elsif (/([^\{]*)/) { | ||
593 | + elsif ($enum == 1 && $line =~ /(^\s*\{).*/) { | ||
594 | + $prototype .= "{"; | ||
595 | + } | ||
596 | + elsif ($line =~ /([^\{]*)/) { | ||
597 | $prototype .= $1; | ||
598 | } | ||
599 | - if (/\{/) { | ||
600 | + if ($enum == 0 && $line =~ /\{/) { | ||
601 | $prototype =~ s@/\*.*?\*/@@gos; # strip comments. | ||
602 | $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's. | ||
603 | $prototype =~ s@^ +@@gos; # strip leading spaces | ||
604 | @@ -901,9 +1032,32 @@ foreach $file (@ARGV) { | ||
605 | %sections = (); | ||
606 | @sectionlist = (); | ||
607 | $prototype = ""; | ||
608 | + $enum = 0; | ||
609 | |||
610 | $state = 0; | ||
611 | } | ||
612 | + elsif ($enum == 1 && $line =~ /\}/) { | ||
613 | + $prototype =~ s@/\*.*?\*/@@gos; # strip comments. | ||
614 | + $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's. | ||
615 | + $prototype =~ s@^ +@@gos; # strip leading spaces | ||
616 | + dump_enum($prototype); | ||
617 | + | ||
618 | + $function = ""; | ||
619 | + %constants = (); | ||
620 | + %parameters = (); | ||
621 | + %parametertypes = (); | ||
622 | + @parameterlist = (); | ||
623 | + %sections = (); | ||
624 | + @sectionlist = (); | ||
625 | + $prototype = ""; | ||
626 | + $enum = 0; | ||
627 | + | ||
628 | + $state = 0; | ||
629 | + } | ||
630 | + elsif ($line =~ /([a-zA-Z\s]+)enum(.*)$/) { | ||
631 | + $enum = 1; | ||
632 | + } | ||
633 | + | ||
634 | } | ||
635 | } | ||
636 | } | ||
diff --git a/meta/recipes-support/gnutls/gnutls/CVE-2014-0092-corrected-return-codes.patch b/meta/recipes-support/gnutls/gnutls/CVE-2014-0092-corrected-return-codes.patch new file mode 100644 index 0000000000..68ee5bc426 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/CVE-2014-0092-corrected-return-codes.patch | |||
@@ -0,0 +1,106 @@ | |||
1 | From 6aa26f78150ccbdf0aec1878a41c17c41d358a3b Mon Sep 17 00:00:00 2001 | ||
2 | From: Nikos Mavrogiannopoulos <nmav@gnutls.org> | ||
3 | Date: Thu, 27 Feb 2014 19:42:26 +0100 | ||
4 | Subject: [PATCH 1/3] corrected return codes | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Signed-off-by: Karl Hiramoto <karl@hiramoto.org> | ||
9 | |||
10 | --- | ||
11 | lib/x509/verify.c | 16 ++++++++++------ | ||
12 | 1 file changed, 10 insertions(+), 6 deletions(-) | ||
13 | |||
14 | diff --git a/lib/x509/verify.c b/lib/x509/verify.c | ||
15 | index c9a6b0d..eef85a8 100644 | ||
16 | --- a/lib/x509/verify.c | ||
17 | +++ b/lib/x509/verify.c | ||
18 | @@ -141,7 +141,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, | ||
19 | if (result < 0) | ||
20 | { | ||
21 | gnutls_assert (); | ||
22 | - goto cleanup; | ||
23 | + goto fail; | ||
24 | } | ||
25 | |||
26 | result = | ||
27 | @@ -150,7 +150,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, | ||
28 | if (result < 0) | ||
29 | { | ||
30 | gnutls_assert (); | ||
31 | - goto cleanup; | ||
32 | + goto fail; | ||
33 | } | ||
34 | |||
35 | result = | ||
36 | @@ -158,7 +158,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, | ||
37 | if (result < 0) | ||
38 | { | ||
39 | gnutls_assert (); | ||
40 | - goto cleanup; | ||
41 | + goto fail; | ||
42 | } | ||
43 | |||
44 | result = | ||
45 | @@ -166,7 +166,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, | ||
46 | if (result < 0) | ||
47 | { | ||
48 | gnutls_assert (); | ||
49 | - goto cleanup; | ||
50 | + goto fail; | ||
51 | } | ||
52 | |||
53 | /* If the subject certificate is the same as the issuer | ||
54 | @@ -206,6 +206,7 @@ check_if_ca (gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, | ||
55 | else | ||
56 | gnutls_assert (); | ||
57 | |||
58 | +fail: | ||
59 | result = 0; | ||
60 | |||
61 | cleanup: | ||
62 | @@ -330,7 +331,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, | ||
63 | gnutls_datum_t cert_signed_data = { NULL, 0 }; | ||
64 | gnutls_datum_t cert_signature = { NULL, 0 }; | ||
65 | gnutls_x509_crt_t issuer = NULL; | ||
66 | - int issuer_version, result; | ||
67 | + int issuer_version, result = 0; | ||
68 | |||
69 | if (output) | ||
70 | *output = 0; | ||
71 | @@ -363,7 +364,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, | ||
72 | if (issuer_version < 0) | ||
73 | { | ||
74 | gnutls_assert (); | ||
75 | - return issuer_version; | ||
76 | + return 0; | ||
77 | } | ||
78 | |||
79 | if (!(flags & GNUTLS_VERIFY_DISABLE_CA_SIGN) && | ||
80 | @@ -385,6 +386,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, | ||
81 | if (result < 0) | ||
82 | { | ||
83 | gnutls_assert (); | ||
84 | + result = 0; | ||
85 | goto cleanup; | ||
86 | } | ||
87 | |||
88 | @@ -393,6 +395,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, | ||
89 | if (result < 0) | ||
90 | { | ||
91 | gnutls_assert (); | ||
92 | + result = 0; | ||
93 | goto cleanup; | ||
94 | } | ||
95 | |||
96 | @@ -410,6 +413,7 @@ _gnutls_verify_certificate2 (gnutls_x509_crt_t cert, | ||
97 | else if (result < 0) | ||
98 | { | ||
99 | gnutls_assert(); | ||
100 | + result = 0; | ||
101 | goto cleanup; | ||
102 | } | ||
103 | |||
104 | -- | ||
105 | 1.8.3.2 | ||
106 | |||
diff --git a/meta/recipes-support/gnutls/gnutls/CVE-2014-1959-rejection-of-v1-intermediate-cert.patch b/meta/recipes-support/gnutls/gnutls/CVE-2014-1959-rejection-of-v1-intermediate-cert.patch new file mode 100644 index 0000000000..6567257a83 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/CVE-2014-1959-rejection-of-v1-intermediate-cert.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 467478d8ff08a3cb4be3034ff04c9d08a0ceba3e Mon Sep 17 00:00:00 2001 | ||
2 | From: Nikos Mavrogiannopoulos <nmav@redhat.com> | ||
3 | Date: Wed, 12 Feb 2014 16:41:33 +0100 | ||
4 | Subject: [PATCH 1/5] Fixed bug that prevented the rejection of v1 intermediate | ||
5 | CA certificates. | ||
6 | |||
7 | Upstream-Status: Backport | ||
8 | |||
9 | Signed-off-by: Karl Hiramoto <karl@hiramoto.org> | ||
10 | |||
11 | --- | ||
12 | lib/x509/verify.c | 5 ++++- | ||
13 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/lib/x509/verify.c b/lib/x509/verify.c | ||
16 | index 2efcebf..c9a6b0d 100644 | ||
17 | --- a/lib/x509/verify.c | ||
18 | +++ b/lib/x509/verify.c | ||
19 | @@ -645,7 +645,10 @@ _gnutls_x509_verify_certificate (const gnutls_x509_crt_t * certificate_list, | ||
20 | * certificates can exist in a supplied chain. | ||
21 | */ | ||
22 | if (!(flags & GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT)) | ||
23 | - flags &= ~(GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT); | ||
24 | + { | ||
25 | + flags &= ~(GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT); | ||
26 | + flags |= GNUTLS_VERIFY_DO_NOT_ALLOW_X509_V1_CA_CRT; | ||
27 | + } | ||
28 | if ((ret = | ||
29 | _gnutls_verify_certificate2 (certificate_list[i - 1], | ||
30 | &certificate_list[i], 1, flags, | ||
31 | -- | ||
32 | 1.8.3.2 | ||
33 | |||
diff --git a/meta/recipes-support/gnutls/gnutls/avoid_AM_PROG_MKDIR_P_warning_error_with_automake_1.12.patch b/meta/recipes-support/gnutls/gnutls/avoid_AM_PROG_MKDIR_P_warning_error_with_automake_1.12.patch new file mode 100644 index 0000000000..479596e53f --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/avoid_AM_PROG_MKDIR_P_warning_error_with_automake_1.12.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | Upstream-Status: Inappropriate | ||
2 | |||
3 | automake 1.12.x has deprecated AM_PROG_MKDIR_P , and throws a warning for that, | ||
4 | and the warnings are treated as errors because of the -Werror parameter. | ||
5 | |||
6 | These AM_PROG_MKDIR_P are coming from gettext, and the latest gettext code has not | ||
7 | eliminated these deprecated macros yet. So disable the treatment of warnings | ||
8 | as errors until gettext is updated to remove the deprecated macros. | ||
9 | |||
10 | Signed-Off-by: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
11 | 2012/07/09 | ||
12 | |||
13 | Index: gnutls-2.12.19/configure.ac | ||
14 | =================================================================== | ||
15 | --- gnutls-2.12.19.orig/configure.ac | ||
16 | +++ gnutls-2.12.19/configure.ac | ||
17 | @@ -26,7 +26,7 @@ AC_INIT([GnuTLS], [2.12.19], [bug-gnutls | ||
18 | AC_CONFIG_AUX_DIR([build-aux]) | ||
19 | AC_CONFIG_MACRO_DIR([m4]) | ||
20 | |||
21 | -AM_INIT_AUTOMAKE([1.10 no-dist-gzip dist-bzip2 -Wall -Werror -Wno-override]) | ||
22 | +AM_INIT_AUTOMAKE([1.10 no-dist-gzip dist-bzip2 -Wall -Wno-override]) | ||
23 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
24 | AM_CONFIG_HEADER(config.h) | ||
25 | |||
26 | Index: gnutls-2.12.19/lib/configure.ac | ||
27 | =================================================================== | ||
28 | --- gnutls-2.12.19.orig/lib/configure.ac | ||
29 | +++ gnutls-2.12.19/lib/configure.ac | ||
30 | @@ -26,7 +26,7 @@ AC_INIT([libgnutls], [2.12.19], [bug-gnu | ||
31 | AC_CONFIG_AUX_DIR([build-aux]) | ||
32 | AC_CONFIG_MACRO_DIR([m4]) | ||
33 | |||
34 | -AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override]) | ||
35 | +AM_INIT_AUTOMAKE([1.10 -Wall -Wno-override]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | AM_CONFIG_HEADER(config.h) | ||
38 | |||
39 | Index: gnutls-2.12.19/libextra/configure.ac | ||
40 | =================================================================== | ||
41 | --- gnutls-2.12.19.orig/libextra/configure.ac | ||
42 | +++ gnutls-2.12.19/libextra/configure.ac | ||
43 | @@ -26,7 +26,7 @@ AC_INIT([libgnutls-extra], [2.12.19], [b | ||
44 | AC_CONFIG_AUX_DIR([build-aux]) | ||
45 | AC_CONFIG_MACRO_DIR([m4]) | ||
46 | |||
47 | -AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override]) | ||
48 | +AM_INIT_AUTOMAKE([1.10 -Wall -Wno-override]) | ||
49 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
50 | AM_CONFIG_HEADER(config.h) | ||
51 | |||
diff --git a/meta/recipes-support/gnutls/gnutls/configure-fix.patch b/meta/recipes-support/gnutls/gnutls/configure-fix.patch new file mode 100644 index 0000000000..14f87e03d3 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/configure-fix.patch | |||
@@ -0,0 +1,65 @@ | |||
1 | Upstream-Status: Inappropriate [distribution] | ||
2 | |||
3 | rebased from original configure_madness.patch | ||
4 | |||
5 | libtasn1 provides an .pc file in upstream, | ||
6 | and a libgcrypt.pc is added in libgcrypt recipe, | ||
7 | so use Requires.private for these two. | ||
8 | |||
9 | against 2.8.6 | ||
10 | |||
11 | 07/02/2010 - qhe | ||
12 | |||
13 | --- | ||
14 | Index: gnutls-2.12.11/lib/configure.ac | ||
15 | =================================================================== | ||
16 | --- gnutls-2.12.11.orig/lib/configure.ac | ||
17 | +++ gnutls-2.12.11/lib/configure.ac | ||
18 | @@ -126,8 +126,8 @@ lgl_INIT | ||
19 | AC_CHECK_FUNCS(getrusage,,) | ||
20 | AC_LIB_HAVE_LINKFLAGS(pthread,, [#include <pthread.h>], [pthread_mutex_lock (0);]) | ||
21 | |||
22 | -LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS" | ||
23 | -LIBGNUTLS_CFLAGS="-I${includedir}" | ||
24 | +LIBGNUTLS_LIBS="-lgnutls $LIBS" | ||
25 | +LIBGNUTLS_CFLAGS="" | ||
26 | AC_SUBST(LIBGNUTLS_LIBS) | ||
27 | AC_SUBST(LIBGNUTLS_CFLAGS) | ||
28 | |||
29 | Index: gnutls-2.12.11/lib/gnutls.pc.in | ||
30 | =================================================================== | ||
31 | --- gnutls-2.12.11.orig/lib/gnutls.pc.in | ||
32 | +++ gnutls-2.12.11/lib/gnutls.pc.in | ||
33 | @@ -20,6 +20,4 @@ Description: Transport Security Layer im | ||
34 | URL: http://www.gnu.org/software/gnutls/ | ||
35 | Version: @VERSION@ | ||
36 | Libs: -L${libdir} -lgnutls | ||
37 | -Libs.private: @LTLIBGCRYPT@ @LTLIBNETTLE@ @NETTLE_LIBS@ @GNUTLS_ZLIB_LIBS_PRIVATE@ | ||
38 | -@GNUTLS_REQUIRES_PRIVATE@ | ||
39 | Cflags: -I${includedir} | ||
40 | Index: gnutls-2.12.11/libextra/configure.ac | ||
41 | =================================================================== | ||
42 | --- gnutls-2.12.11.orig/libextra/configure.ac | ||
43 | +++ gnutls-2.12.11/libextra/configure.ac | ||
44 | @@ -41,8 +41,8 @@ LIBGNUTLS_EXTRA_HOOKS | ||
45 | |||
46 | xgl_INIT | ||
47 | |||
48 | -LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS" | ||
49 | -LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}" | ||
50 | +LIBGNUTLS_EXTRA_LIBS="-lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS" | ||
51 | +LIBGNUTLS_EXTRA_CFLAGS="" | ||
52 | AC_SUBST(LIBGNUTLS_EXTRA_LIBS) | ||
53 | AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS) | ||
54 | |||
55 | Index: gnutls-2.12.11/libextra/gnutls-extra.pc.in | ||
56 | =================================================================== | ||
57 | --- gnutls-2.12.11.orig/libextra/gnutls-extra.pc.in | ||
58 | +++ gnutls-2.12.11/libextra/gnutls-extra.pc.in | ||
59 | @@ -22,5 +22,5 @@ URL: http://www.gnu.org/software/gnutls/ | ||
60 | Requires: gnutls | ||
61 | Version: @VERSION@ | ||
62 | Libs: -L${libdir} -lgnutls-extra | ||
63 | -Libs.private: @LIBGNUTLS_EXTRA_LIBS@ | ||
64 | +Libs.private: -llzo2 | ||
65 | Cflags: -I${includedir} | ||
diff --git a/meta/recipes-support/gnutls/gnutls/correct_rpl_gettimeofday_signature.patch b/meta/recipes-support/gnutls/gnutls/correct_rpl_gettimeofday_signature.patch new file mode 100644 index 0000000000..b8f0d727ab --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/correct_rpl_gettimeofday_signature.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | Currently we fail on uclibc like below | ||
2 | |||
3 | | In file included from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/sys/procfs.h:32:0, | ||
4 | | from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/sys/ucontext.h:26, | ||
5 | | from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/signal.h:392, | ||
6 | | from ../../gl/signal.h:52, | ||
7 | | from ../../gl/sys/select.h:58, | ||
8 | | from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/sys/types.h:220, | ||
9 | | from ../../gl/sys/types.h:28, | ||
10 | | from ../../lib/includes/gnutls/gnutls.h:46, | ||
11 | | from ex-cxx.cpp:3: | ||
12 | | ../../gl/sys/time.h:396:66: error: conflicting declaration 'void* restrict' | ||
13 | | ../../gl/sys/time.h:396:50: error: 'restrict' has a previous declaration as 'timeval* restrict' | ||
14 | | make[4]: *** [ex-cxx.o] Error 1 | ||
15 | | make[4]: *** Waiting for unfinished jobs.... | ||
16 | |||
17 | |||
18 | GCC detects that we call 'restrict' as param name in function | ||
19 | signatures and complains since both params are called 'restrict' | ||
20 | therefore we use __restrict to denote the C99 keywork | ||
21 | |||
22 | This only happens of uclibc since this code is not excercised with | ||
23 | eglibc otherwise we will have same issue there too | ||
24 | |||
25 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
26 | |||
27 | Upstream-Status: Pending | ||
28 | |||
29 | Index: gnutls-2.12.14/gl/sys_time.in.h | ||
30 | =================================================================== | ||
31 | --- gnutls-2.12.14.orig/gl/sys_time.in.h 2012-01-15 10:54:39.517285351 -0800 | ||
32 | +++ gnutls-2.12.14/gl/sys_time.in.h 2012-01-15 10:59:23.773299108 -0800 | ||
33 | @@ -82,20 +82,20 @@ | ||
34 | # define gettimeofday rpl_gettimeofday | ||
35 | # endif | ||
36 | _GL_FUNCDECL_RPL (gettimeofday, int, | ||
37 | - (struct timeval *restrict, void *restrict) | ||
38 | + (struct timeval *__restrict, void *__restrict) | ||
39 | _GL_ARG_NONNULL ((1))); | ||
40 | _GL_CXXALIAS_RPL (gettimeofday, int, | ||
41 | - (struct timeval *restrict, void *restrict)); | ||
42 | + (struct timeval *__restrict, void *__restrict)); | ||
43 | # else | ||
44 | # if !@HAVE_GETTIMEOFDAY@ | ||
45 | _GL_FUNCDECL_SYS (gettimeofday, int, | ||
46 | - (struct timeval *restrict, void *restrict) | ||
47 | + (struct timeval *__restrict, void *__restrict) | ||
48 | _GL_ARG_NONNULL ((1))); | ||
49 | # endif | ||
50 | /* Need to cast, because on glibc systems, by default, the second argument is | ||
51 | struct timezone *. */ | ||
52 | _GL_CXXALIAS_SYS_CAST (gettimeofday, int, | ||
53 | - (struct timeval *restrict, void *restrict)); | ||
54 | + (struct timeval *__restrict, void *__restrict)); | ||
55 | # endif | ||
56 | _GL_CXXALIASWARN (gettimeofday); | ||
57 | # elif defined GNULIB_POSIXCHECK | ||
diff --git a/meta/recipes-support/gnutls/gnutls/fix-gettext-version.patch b/meta/recipes-support/gnutls/gnutls/fix-gettext-version.patch new file mode 100644 index 0000000000..4c9137a657 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/fix-gettext-version.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | |||
2 | Upstream-Status: Inappropriate [configuration] | ||
3 | |||
4 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
5 | |||
6 | Index: gnutls-2.12.14/lib/po/Makefile.in.in | ||
7 | =================================================================== | ||
8 | --- gnutls-2.12.14.orig/lib/po/Makefile.in.in | ||
9 | +++ gnutls-2.12.14/lib/po/Makefile.in.in | ||
10 | @@ -8,8 +8,8 @@ | ||
11 | # Please note that the actual code of GNU gettext is covered by the GNU | ||
12 | # General Public License and is *not* in the public domain. | ||
13 | # | ||
14 | -# Origin: gettext-0.17 | ||
15 | -GETTEXT_MACRO_VERSION = 0.17 | ||
16 | +# Origin: gettext-0.18 | ||
17 | +GETTEXT_MACRO_VERSION = 0.18 | ||
18 | |||
19 | PACKAGE = @PACKAGE@ | ||
20 | VERSION = @VERSION@ | ||
21 | Index: gnutls-2.12.14/lib/m4/po.m4 | ||
22 | =================================================================== | ||
23 | --- gnutls-2.12.14.orig/lib/m4/po.m4 | ||
24 | +++ gnutls-2.12.14/lib/m4/po.m4 | ||
25 | @@ -29,7 +29,7 @@ AC_DEFUN([AM_PO_SUBDIRS], | ||
26 | |||
27 | dnl Release version of the gettext macros. This is used to ensure that | ||
28 | dnl the gettext macros and po/Makefile.in.in are in sync. | ||
29 | - AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) | ||
30 | + AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) | ||
31 | |||
32 | dnl Perform the following tests also if --disable-nls has been given, | ||
33 | dnl because they are needed for "make dist" to work. | ||
34 | Index: gnutls-2.12.14/lib/configure.ac | ||
35 | =================================================================== | ||
36 | --- gnutls-2.12.14.orig/lib/configure.ac | ||
37 | +++ gnutls-2.12.14/lib/configure.ac | ||
38 | @@ -39,7 +39,7 @@ AC_PROG_LIBTOOL | ||
39 | LIBGNUTLS_HOOKS | ||
40 | |||
41 | AM_GNU_GETTEXT([external]) | ||
42 | -AM_GNU_GETTEXT_VERSION([0.17]) | ||
43 | +AM_GNU_GETTEXT_VERSION([0.18]) | ||
44 | |||
45 | AC_C_BIGENDIAN | ||
46 | |||
diff --git a/meta/recipes-support/gnutls/gnutls/gnutls-openssl.patch b/meta/recipes-support/gnutls/gnutls/gnutls-openssl.patch new file mode 100644 index 0000000000..ef70674881 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/gnutls-openssl.patch | |||
@@ -0,0 +1,126 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | Index: gnutls-1.6.0/libextra/gnutls_openssl.c | ||
4 | =================================================================== | ||
5 | --- gnutls-1.6.0.orig/libextra/gnutls_openssl.c 2006-08-13 22:34:09.000000000 +0200 | ||
6 | +++ gnutls-1.6.0/libextra/gnutls_openssl.c 2006-12-12 15:07:59.002227000 +0100 | ||
7 | @@ -256,12 +256,17 @@ | ||
8 | ssl->rfd = (gnutls_transport_ptr_t) - 1; | ||
9 | ssl->wfd = (gnutls_transport_ptr_t) - 1; | ||
10 | |||
11 | + ssl->ssl_peek_buffer = NULL; | ||
12 | + ssl->ssl_peek_buffer_size = ssl->ssl_peek_avail = 0; | ||
13 | + | ||
14 | return ssl; | ||
15 | } | ||
16 | |||
17 | void | ||
18 | SSL_free (SSL * ssl) | ||
19 | { | ||
20 | + if (ssl->ssl_peek_buffer) | ||
21 | + free(ssl->ssl_peek_buffer); | ||
22 | gnutls_certificate_free_credentials (ssl->gnutls_cred); | ||
23 | gnutls_deinit (ssl->gnutls_state); | ||
24 | free (ssl); | ||
25 | @@ -285,6 +290,7 @@ | ||
26 | SSL_set_fd (SSL * ssl, int fd) | ||
27 | { | ||
28 | gnutls_transport_set_ptr (ssl->gnutls_state, GNUTLS_INT_TO_POINTER (fd)); | ||
29 | + ssl->rfd = ssl->wfd = fd; | ||
30 | return 1; | ||
31 | } | ||
32 | |||
33 | @@ -310,6 +316,17 @@ | ||
34 | return 1; | ||
35 | } | ||
36 | |||
37 | +int SSL_get_rfd(SSL *ssl) | ||
38 | +{ | ||
39 | + return ssl->rfd; | ||
40 | +} | ||
41 | + | ||
42 | +int SSL_get_wfd(SSL *ssl) | ||
43 | +{ | ||
44 | + return ssl->wfd; | ||
45 | +} | ||
46 | + | ||
47 | + | ||
48 | void | ||
49 | SSL_set_bio (SSL * ssl, BIO * rbio, BIO * wbio) | ||
50 | { | ||
51 | @@ -325,6 +342,8 @@ | ||
52 | int | ||
53 | SSL_pending (SSL * ssl) | ||
54 | { | ||
55 | + if (ssl->ssl_peek_avail) | ||
56 | + return ssl->ssl_peek_avail; | ||
57 | return gnutls_record_check_pending (ssl->gnutls_state); | ||
58 | } | ||
59 | |||
60 | @@ -480,11 +499,50 @@ | ||
61 | return 1; | ||
62 | } | ||
63 | |||
64 | +int SSL_peek(SSL *ssl, void *buf, int len) | ||
65 | +{ | ||
66 | + if (len > ssl->ssl_peek_buffer_size) { | ||
67 | + ssl->ssl_peek_buffer = realloc (ssl->ssl_peek_buffer, len); | ||
68 | + ssl->ssl_peek_buffer_size = len; | ||
69 | + } | ||
70 | + | ||
71 | + if (ssl->ssl_peek_avail == 0) { | ||
72 | + | ||
73 | + int ret; | ||
74 | + | ||
75 | + ret = gnutls_record_recv(ssl->gnutls_state, ssl->ssl_peek_buffer, len); | ||
76 | + ssl->last_error = ret; | ||
77 | + | ||
78 | + if (ret > 0) | ||
79 | + ssl->ssl_peek_avail += ret; | ||
80 | + } | ||
81 | + | ||
82 | + if (len > ssl->ssl_peek_avail) | ||
83 | + len = ssl->ssl_peek_avail; | ||
84 | + | ||
85 | + memcpy (buf, ssl->ssl_peek_buffer, len); | ||
86 | + | ||
87 | + return len; | ||
88 | +} | ||
89 | + | ||
90 | int | ||
91 | SSL_read (SSL * ssl, void *buf, int len) | ||
92 | { | ||
93 | int ret; | ||
94 | |||
95 | + if (ssl->ssl_peek_avail) { | ||
96 | + int n = (ssl->ssl_peek_avail > len) ? len : ssl->ssl_peek_avail; | ||
97 | + | ||
98 | + memcpy (buf, ssl->ssl_peek_buffer, n); | ||
99 | + | ||
100 | + if (ssl->ssl_peek_avail > n) | ||
101 | + memmove (ssl->ssl_peek_buffer, ssl->ssl_peek_buffer + n, ssl->ssl_peek_avail - n); | ||
102 | + | ||
103 | + ssl->ssl_peek_avail -= n; | ||
104 | + | ||
105 | + return n; | ||
106 | + } | ||
107 | + | ||
108 | ret = gnutls_record_recv (ssl->gnutls_state, buf, len); | ||
109 | ssl->last_error = ret; | ||
110 | |||
111 | Index: gnutls-1.6.0/includes/gnutls/openssl.h | ||
112 | =================================================================== | ||
113 | --- gnutls-1.6.0.orig/libextra/includes/gnutls/openssl.h 2006-03-08 11:44:58.000000000 +0100 | ||
114 | +++ gnutls-1.6.0/libextra/includes/gnutls/openssl.h 2006-12-12 15:07:26.032227000 +0100 | ||
115 | @@ -164,6 +164,11 @@ | ||
116 | |||
117 | gnutls_transport_ptr_t rfd; | ||
118 | gnutls_transport_ptr_t wfd; | ||
119 | + | ||
120 | + char *ssl_peek_buffer; | ||
121 | + size_t ssl_peek_buffer_size; | ||
122 | + size_t ssl_peek_avail; | ||
123 | + | ||
124 | }; | ||
125 | |||
126 | #define rbio gnutls_state | ||
diff --git a/meta/recipes-support/gnutls/gnutls_2.12.23.bb b/meta/recipes-support/gnutls/gnutls_2.12.23.bb new file mode 100644 index 0000000000..22182426ee --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls_2.12.23.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | require gnutls.inc | ||
2 | |||
3 | PR = "${INC_PR}.4" | ||
4 | |||
5 | SRC_URI += "file://gnutls-openssl.patch \ | ||
6 | file://correct_rpl_gettimeofday_signature.patch \ | ||
7 | file://configure-fix.patch \ | ||
8 | file://avoid_AM_PROG_MKDIR_P_warning_error_with_automake_1.12.patch \ | ||
9 | file://CVE-2014-1959-rejection-of-v1-intermediate-cert.patch \ | ||
10 | file://CVE-2014-0092-corrected-return-codes.patch \ | ||
11 | file://25_updatedgdocfrommaster.diff \ | ||
12 | ${@['', 'file://fix-gettext-version.patch'][bb.data.inherits_class('native', d) or (not ((d.getVar("INCOMPATIBLE_LICENSE", True) or "").find("GPLv3") != -1))]} \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[md5sum] = "f3c1d34bd5f113395c4be0d5dfc2b7fe" | ||
16 | SRC_URI[sha256sum] = "dfa67a7e40727eb0913e75f3c44911d5d8cd58d1ead5acfe73dd933fc0d17ed2" | ||
diff --git a/meta/recipes-support/gnutls/libtasn1/dont-depend-on-help2man.patch b/meta/recipes-support/gnutls/libtasn1/dont-depend-on-help2man.patch new file mode 100644 index 0000000000..2ac89f3b32 --- /dev/null +++ b/meta/recipes-support/gnutls/libtasn1/dont-depend-on-help2man.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-Status: Inappropriate | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd libtasn1-2.14/doc/Makefile.am libtasn1-2.14/doc/Makefile.am | ||
5 | --- libtasn1-2.14/doc/Makefile.am 2012-09-24 15:08:42.000000000 +0300 | ||
6 | +++ libtasn1-2.14/doc/Makefile.am 2013-01-03 07:35:26.702763403 +0200 | ||
7 | @@ -31,7 +31,7 @@ | ||
8 | AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) \ | ||
9 | --no-split --number-sections --css-include=texinfo.css | ||
10 | |||
11 | -dist_man_MANS = $(gdoc_MANS) asn1Parser.1 asn1Coding.1 asn1Decoding.1 | ||
12 | +dist_man_MANS = $(gdoc_MANS) | ||
13 | |||
14 | HELP2MAN_OPTS = --info-page libtasn1 | ||
diff --git a/meta/recipes-support/gnutls/libtasn1/libtasn1_fix_for_automake_1.12.patch b/meta/recipes-support/gnutls/libtasn1/libtasn1_fix_for_automake_1.12.patch new file mode 100644 index 0000000000..5540bef940 --- /dev/null +++ b/meta/recipes-support/gnutls/libtasn1/libtasn1_fix_for_automake_1.12.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | This patch avoids following issues with automake 1.12: | ||
4 | |||
5 | | automake: warnings are treated as errors | ||
6 | | /srv/home/nitin/builds/build-gcc47/tmp/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libtasn1.la': linking libtool libraries using a non-POSIX | ||
7 | | /srv/home/nitin/builds/build-gcc47/tmp/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' | ||
8 | |||
9 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
10 | 2012/05/02 | ||
11 | |||
12 | |||
13 | Index: libtasn1-2.11/configure.ac | ||
14 | =================================================================== | ||
15 | --- libtasn1-2.11.orig/configure.ac | ||
16 | +++ libtasn1-2.11/configure.ac | ||
17 | @@ -38,6 +38,11 @@ lgl_EARLY | ||
18 | AC_PROG_YACC | ||
19 | AC_PROG_LN_S | ||
20 | |||
21 | +# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it | ||
22 | +m4_pattern_allow([AM_PROG_AR]) | ||
23 | +AM_PROG_AR | ||
24 | + | ||
25 | + | ||
26 | dnl Checks for programs. | ||
27 | AC_PROG_INSTALL | ||
28 | AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) | ||
diff --git a/meta/recipes-support/gnutls/libtasn1_3.4.bb b/meta/recipes-support/gnutls/libtasn1_3.4.bb new file mode 100644 index 0000000000..590987e504 --- /dev/null +++ b/meta/recipes-support/gnutls/libtasn1_3.4.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | SUMMARY = "Library for ASN.1 and DER manipulation" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/libtasn1/" | ||
3 | |||
4 | LICENSE = "GPLv3+ & LGPLv2.1+" | ||
5 | LICENSE_${PN}-bin = "GPLv3+" | ||
6 | LICENSE_${PN} = "LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
8 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ | ||
9 | file://README;endline=8;md5=c3803a3e8ca5ab5eb1e5912faa405351" | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/libtasn1/libtasn1-${PV}.tar.gz \ | ||
12 | file://libtasn1_fix_for_automake_1.12.patch \ | ||
13 | file://dont-depend-on-help2man.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "21ec021c534b0f30b2834ce233c70f15" | ||
17 | SRC_URI[sha256sum] = "f353507a458fe2372b791016a056c95946eebfc7256b49013851f134a5e6acc8" | ||
18 | |||
19 | inherit autotools binconfig lib_package | ||
20 | |||
21 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/gpgme/gpgme-1.4.3/disable_gpgconf_check.patch b/meta/recipes-support/gpgme/gpgme-1.4.3/disable_gpgconf_check.patch new file mode 100644 index 0000000000..df0953069c --- /dev/null +++ b/meta/recipes-support/gpgme/gpgme-1.4.3/disable_gpgconf_check.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 1.2.0, gpgme will check if gpgconf & g13(from 1.3.0) exist, and cause | ||
2 | configure failure if not founding them in cross-compile environment. We can | ||
3 | add the gnupg-native to get them, but still have some issues: | ||
4 | |||
5 | 1. need add new package: libksba, update libassuan(not in sato), and extend | ||
6 | native support in some other packages(libgcrypt, libgpg-error, pth...) | ||
7 | 2. Even we have gnupg, the g13 only exist in development branch, so that we | ||
8 | still have the g13 check failure in configure. | ||
9 | |||
10 | I have searched the compile log, and found gpgconf/g13 are not used. So use a | ||
11 | simple method here, throw a warning mesg rather than an error here just like in | ||
12 | non-cross-compile environment. | ||
13 | |||
14 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
15 | |||
16 | Upstream-Status: Inappropriate [embedded specific] | ||
17 | |||
18 | Index: gpgme-1.3.0/configure.ac | ||
19 | =================================================================== | ||
20 | --- gpgme-1.3.0.orig/configure.ac 2010-07-21 09:38:09.000000000 +0800 | ||
21 | +++ gpgme-1.3.0/configure.ac 2010-07-21 09:39:19.000000000 +0800 | ||
22 | @@ -574,7 +574,7 @@ | ||
23 | *** Could not find gpgconf, install gpgconf or use --with-gpgconf=PATH to enable it | ||
24 | ***]) | ||
25 | else | ||
26 | - AC_MSG_ERROR([ | ||
27 | + AC_MSG_WARN([ | ||
28 | *** | ||
29 | *** Can not determine path to gpgconf when cross-compiling, use --with-gpgconf=PATH | ||
30 | ***]) | ||
31 | @@ -670,7 +670,7 @@ | ||
32 | *** Could not find g13, install g13 or use --with-g13=PATH to enable it | ||
33 | ***]) | ||
34 | else | ||
35 | - AC_MSG_ERROR([ | ||
36 | + AC_MSG_WARN([ | ||
37 | *** | ||
38 | *** Can not determine path to g13 when cross-compiling, use --with-g13=PATH | ||
39 | ***]) | ||
diff --git a/meta/recipes-support/gpgme/gpgme_1.4.3.bb b/meta/recipes-support/gpgme/gpgme_1.4.3.bb new file mode 100644 index 0000000000..78182c01bd --- /dev/null +++ b/meta/recipes-support/gpgme/gpgme_1.4.3.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "High-level GnuPG encryption/signing API" | ||
2 | DESCRIPTION = "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management" | ||
3 | HOMEPAGE = "http://www.gnupg.org/gpgme.html" | ||
4 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
5 | |||
6 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
8 | file://COPYING.LESSER;md5=bbb461211a33b134d42ed5ee802b37ff \ | ||
9 | file://src/gpgme.h.in;endline=23;md5=dccb4bb624011e36513c61ef0422d054 \ | ||
10 | file://src/engine.h;endline=22;md5=4b6d8ba313d9b564cc4d4cfb1640af9d" | ||
11 | |||
12 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-${PV}.tar.bz2 \ | ||
13 | file://disable_gpgconf_check.patch" | ||
14 | |||
15 | SRC_URI[md5sum] = "334e524cffa8af4e2f43ae8afe585672" | ||
16 | SRC_URI[sha256sum] = "2d1cc12411753752d9c5b9037e6fd3fd363517af720154768cc7b46b60120496" | ||
17 | |||
18 | DEPENDS = "libgpg-error libassuan" | ||
19 | |||
20 | EXTRA_OECONF = "--with-gpg=${bindir}/gpg --without-gpgsm" | ||
21 | |||
22 | inherit autotools binconfig | ||
23 | |||
24 | PACKAGES =+ "${PN}-pthread" | ||
25 | FILES_${PN}-pthread = "${libdir}/libgpgme-pthread.so.*" | ||
26 | FILES_${PN}-dev += "${datadir}/common-lisp/source/gpgme/*" | ||
diff --git a/meta/recipes-support/icu/icu-51.2/0001-Disable-LDFLAGSICUDT-for-Linux.patch b/meta/recipes-support/icu/icu-51.2/0001-Disable-LDFLAGSICUDT-for-Linux.patch new file mode 100644 index 0000000000..2968d571bb --- /dev/null +++ b/meta/recipes-support/icu/icu-51.2/0001-Disable-LDFLAGSICUDT-for-Linux.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 0c82d6aa02c08e41b13c83b14782bd7024e25d59 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 15 Feb 2014 21:06:42 +0000 | ||
4 | Subject: [PATCH] Disable LDFLAGSICUDT for Linux | ||
5 | |||
6 | Upstream-Status: Inappropriate [ OE Configuration ] | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | source/config/mh-linux | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/config/mh-linux b/config/mh-linux | ||
14 | index 366f0cc..2689aab 100644 | ||
15 | --- a/config/mh-linux | ||
16 | +++ b/config/mh-linux | ||
17 | @@ -21,7 +21,7 @@ LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN | ||
18 | LD_RPATH_PRE = -Wl,-rpath, | ||
19 | |||
20 | ## These are the library specific LDFLAGS | ||
21 | -LDFLAGSICUDT=-nodefaultlibs -nostdlib | ||
22 | +# LDFLAGSICUDT=-nodefaultlibs -nostdlib | ||
23 | |||
24 | ## Compiler switch to embed a library name | ||
25 | # The initial tab in the next line is to prevent icu-config from reading it. | ||
26 | -- | ||
27 | 1.7.10.4 | ||
28 | |||
diff --git a/meta/recipes-support/icu/icu-51.2/add_buffer_length_check_to_UTF_16_or_32_detector.patch b/meta/recipes-support/icu/icu-51.2/add_buffer_length_check_to_UTF_16_or_32_detector.patch new file mode 100644 index 0000000000..ad4d61c3ea --- /dev/null +++ b/meta/recipes-support/icu/icu-51.2/add_buffer_length_check_to_UTF_16_or_32_detector.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | --- source/i18n/csrucode.cpp | ||
2 | +++ source/i18n/csrucode.cpp | ||
3 | @@ -33,8 +33,9 @@ UBool CharsetRecog_UTF_16_BE::match(Inpu | ||
4 | { | ||
5 | const uint8_t *input = textIn->fRawInput; | ||
6 | int32_t confidence = 0; | ||
7 | + int32_t length = textIn->fRawLength; | ||
8 | |||
9 | - if (input[0] == 0xFE && input[1] == 0xFF) { | ||
10 | + if (length >=2 && input[0] == 0xFE && input[1] == 0xFF) { | ||
11 | confidence = 100; | ||
12 | } | ||
13 | |||
14 | @@ -57,8 +58,9 @@ UBool CharsetRecog_UTF_16_LE::match(Inpu | ||
15 | { | ||
16 | const uint8_t *input = textIn->fRawInput; | ||
17 | int32_t confidence = 0; | ||
18 | + int32_t length = textIn->fRawLength; | ||
19 | |||
20 | - if (input[0] == 0xFF && input[1] == 0xFE && (input[2] != 0x00 || input[3] != 0x00)) { | ||
21 | + if (length >= 4 && input[0] == 0xFF && input[1] == 0xFE && (input[2] != 0x00 || input[3] != 0x00)) { | ||
22 | confidence = 100; | ||
23 | } | ||
24 | |||
25 | @@ -81,7 +83,7 @@ UBool CharsetRecog_UTF_32::match(InputTe | ||
26 | bool hasBOM = FALSE; | ||
27 | int32_t confidence = 0; | ||
28 | |||
29 | - if (getChar(input, 0) == 0x0000FEFFUL) { | ||
30 | + if (limit > 0 && getChar(input, 0) == 0x0000FEFFUL) { | ||
31 | hasBOM = TRUE; | ||
32 | } | ||
33 | |||
diff --git a/meta/recipes-support/icu/icu-51.2/icu-pkgdata-large-cmd.patch b/meta/recipes-support/icu/icu-51.2/icu-pkgdata-large-cmd.patch new file mode 100644 index 0000000000..6e40659227 --- /dev/null +++ b/meta/recipes-support/icu/icu-51.2/icu-pkgdata-large-cmd.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | pkgdata.cpp: use LARGE_BUFFER_MAX_SIZE for cmd | ||
2 | |||
3 | Use LARGE_BUFFER_MAX_SIZE for cmd rather than SMALL_BUFFER_MAX_SIZE, | ||
4 | otherwise there was a Segmentation fault error when the command line is | ||
5 | long, this should be a misplay since other cmd uses | ||
6 | LARGE_BUFFER_MAX_SIZE. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
11 | --- | ||
12 | tools/pkgdata/pkgdata.cpp | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/tools/pkgdata/pkgdata.cpp b/tools/pkgdata/pkgdata.cpp | ||
16 | --- a/tools/pkgdata/pkgdata.cpp | ||
17 | +++ b/tools/pkgdata/pkgdata.cpp | ||
18 | @@ -1019,7 +1019,7 @@ normal_symlink_mode: | ||
19 | |||
20 | static int32_t pkg_installLibrary(const char *installDir, const char *targetDir, UBool noVersion) { | ||
21 | int32_t result = 0; | ||
22 | - char cmd[SMALL_BUFFER_MAX_SIZE]; | ||
23 | + char cmd[LARGE_BUFFER_MAX_SIZE]; | ||
24 | |||
25 | sprintf(cmd, "cd %s && %s %s %s%s%s", | ||
26 | targetDir, | ||
27 | -- | ||
28 | 1.7.10.4 | ||
29 | |||
diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-support/icu/icu.inc new file mode 100644 index 0000000000..c592f85911 --- /dev/null +++ b/meta/recipes-support/icu/icu.inc | |||
@@ -0,0 +1,56 @@ | |||
1 | SUMMARY = "International Component for Unicode libraries" | ||
2 | DESCRIPTION = "The International Component for Unicode (ICU) is a mature, portable set of C/C++ and Java libraries for Unicode support, software internationalization (I18N) and globalization (G11N), giving applications the same results on all platforms." | ||
3 | HOMEPAGE = "http://site.icu-project.org/" | ||
4 | |||
5 | LICENSE = "ICU" | ||
6 | DEPENDS = "icu-native" | ||
7 | DEPENDS_class-native = "" | ||
8 | |||
9 | S = "${WORKDIR}/icu/source" | ||
10 | STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" | ||
11 | |||
12 | PARALLEL_MAKE = "" | ||
13 | CPPFLAGS_append_libc-uclibc = " -DU_TIMEZONE=0" | ||
14 | |||
15 | inherit autotools pkgconfig binconfig | ||
16 | |||
17 | # ICU needs the native build directory as an argument to its --with-cross-build option when | ||
18 | # cross-compiling. Taken the situation that different builds may share a common sstate-cache | ||
19 | # into consideration, the native build directory needs to be staged. | ||
20 | EXTRA_OECONF = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}" | ||
21 | EXTRA_OECONF_class-native = "" | ||
22 | EXTRA_OECONF_class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}" | ||
23 | |||
24 | # ICU puts custom m4 autoconf functions in aclocal.m4. | ||
25 | # However, this file is deleted in our build system. | ||
26 | # To make it work, we copy aclocal.m4 to acinclude.m4. | ||
27 | # This is a bug of ICU. See bug reference: | ||
28 | # http://bugs.icu-project.org/trac/ticket/9790 | ||
29 | do_configure_prepend() { | ||
30 | [ -f ${S}/acinclude.m4 ] || cp ${S}/aclocal.m4 ${S}/acinclude.m4 | ||
31 | } | ||
32 | |||
33 | do_install_append_class-native() { | ||
34 | mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config | ||
35 | cp -r ${B}/config/icucross.mk ${D}/${STAGING_ICU_DIR_NATIVE}/config | ||
36 | cp -r ${B}/config/icucross.inc ${D}/${STAGING_ICU_DIR_NATIVE}/config | ||
37 | cp -r ${B}/lib ${D}/${STAGING_ICU_DIR_NATIVE} | ||
38 | cp -r ${B}/bin ${D}/${STAGING_ICU_DIR_NATIVE} | ||
39 | cp -r ${B}/tools ${D}/${STAGING_ICU_DIR_NATIVE} | ||
40 | |||
41 | } | ||
42 | |||
43 | PACKAGES =+ "libicudata libicuuc libicui18n libicule libiculx libicutu libicuio" | ||
44 | |||
45 | FILES_${PN}-dev += "${libdir}/${BPN}/" | ||
46 | |||
47 | FILES_libicudata = "${libdir}/libicudata.so.*" | ||
48 | FILES_libicuuc = "${libdir}/libicuuc.so.*" | ||
49 | FILES_libicui18n = "${libdir}/libicui18n.so.*" | ||
50 | FILES_libicule = "${libdir}/libicule.so.*" | ||
51 | FILES_libiculx = "${libdir}/libiculx.so.*" | ||
52 | FILES_libicutu = "${libdir}/libicutu.so.*" | ||
53 | FILES_libicuio = "${libdir}/libicuio.so.*" | ||
54 | |||
55 | BBCLASSEXTEND = "native nativesdk" | ||
56 | |||
diff --git a/meta/recipes-support/icu/icu_51.2.bb b/meta/recipes-support/icu/icu_51.2.bb new file mode 100644 index 0000000000..2d1fd42924 --- /dev/null +++ b/meta/recipes-support/icu/icu_51.2.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | require icu.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://../license.html;md5=443a74288a72fad9069a74e7637192c1" | ||
4 | |||
5 | |||
6 | BASE_SRC_URI = "http://download.icu-project.org/files/icu4c/${PV}/icu4c-51_2-src.tgz" | ||
7 | SRC_URI = "${BASE_SRC_URI} \ | ||
8 | file://icu-pkgdata-large-cmd.patch \ | ||
9 | file://add_buffer_length_check_to_UTF_16_or_32_detector.patch \ | ||
10 | " | ||
11 | |||
12 | SRC_URI_append_class-target = "\ | ||
13 | file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "072e501b87065f3a0ca888f1b5165709" | ||
16 | SRC_URI[sha256sum] = "deb027a05f1b3bec03298b96fb93b28c84e9683c22e6f94effa67fdc7bd704cc" | ||
diff --git a/meta/recipes-support/libassuan/files/libassuan-add-pkgconfig-support.patch b/meta/recipes-support/libassuan/files/libassuan-add-pkgconfig-support.patch new file mode 100644 index 0000000000..ac1604fe0b --- /dev/null +++ b/meta/recipes-support/libassuan/files/libassuan-add-pkgconfig-support.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | Add pkgconfig support to libassuan. | ||
2 | This patch is rejected by upstream for the reason below: | ||
3 | They think pkgconfig adds no portability and maintaining them is not worthwhile. | ||
4 | |||
5 | Upstream-Status: Rejected | ||
6 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
7 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
8 | |||
9 | Index: libassuan-2.1.0/Makefile.am | ||
10 | =================================================================== | ||
11 | --- libassuan-2.1.0.orig/Makefile.am | ||
12 | +++ libassuan-2.1.0/Makefile.am | ||
13 | @@ -24,10 +24,13 @@ AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gz | ||
14 | # (A suitable gitlog-to-changelog script can be found in GnuPG master.) | ||
15 | GITLOG_TO_CHANGELOG=gitlog-to-changelog | ||
16 | |||
17 | +pkgconfigdir = $(libdir)/pkgconfig | ||
18 | +pkgconfig_DATA = assuan.pc | ||
19 | + | ||
20 | EXTRA_DIST = config.rpath autogen.sh README.GIT \ | ||
21 | ChangeLog-2011 doc/ChangeLog-2011 src/ChangeLog-2011 \ | ||
22 | tests/ChangeLog-2011 contrib/ChangeLog-2011 \ | ||
23 | - build-aux/git-log-footer build-aux/git-log-fix | ||
24 | + build-aux/git-log-footer build-aux/git-log-fix assuan.pc.in | ||
25 | |||
26 | SUBDIRS = m4 src doc tests | ||
27 | |||
28 | Index: libassuan-2.1.0/assuan.pc.in | ||
29 | =================================================================== | ||
30 | --- /dev/null | ||
31 | +++ libassuan-2.1.0/assuan.pc.in | ||
32 | @@ -0,0 +1,12 @@ | ||
33 | +prefix=@prefix@ | ||
34 | +exec_prefix=@exec_prefix@ | ||
35 | +libdir=@libdir@ | ||
36 | +includedir=@includedir@ | ||
37 | + | ||
38 | +Name: libassuan | ||
39 | +Description: IPC library used by GnuPG and GPGME | ||
40 | +Requires: | ||
41 | +Version: @VERSION@ | ||
42 | +Libs: -L${libdir} -lassuan | ||
43 | +Libs.private: -lgpg-error | ||
44 | +Cflags: -I${includedir} | ||
45 | Index: libassuan-2.1.0/configure.ac | ||
46 | =================================================================== | ||
47 | --- libassuan-2.1.0.orig/configure.ac | ||
48 | +++ libassuan-2.1.0/configure.ac | ||
49 | @@ -433,7 +433,7 @@ AC_CONFIG_FILES([doc/Makefile]) | ||
50 | AC_CONFIG_FILES([tests/Makefile]) | ||
51 | AC_CONFIG_FILES([src/libassuan-config], [chmod +x src/libassuan-config]) | ||
52 | AC_CONFIG_FILES([src/versioninfo.rc]) | ||
53 | - | ||
54 | +AC_CONFIG_FILES([assuan.pc]) | ||
55 | AC_OUTPUT | ||
56 | |||
57 | echo " | ||
diff --git a/meta/recipes-support/libassuan/libassuan_2.1.1.bb b/meta/recipes-support/libassuan/libassuan_2.1.1.bb new file mode 100644 index 0000000000..4e6b4f8ad6 --- /dev/null +++ b/meta/recipes-support/libassuan/libassuan_2.1.1.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | SUMMARY = "IPC library used by GnuPG and GPGME" | ||
2 | HOMEPAGE = "http://www.gnupg.org/related_software/libassuan/" | ||
3 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
4 | |||
5 | LICENSE = "GPLv3 & LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ | ||
7 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
8 | file://src/assuan.c;endline=20;md5=0f465544183405055ec179869fc5b5ba \ | ||
9 | file://src/assuan-defs.h;endline=20;md5=20cd55535260ca1779edae5c7b80b21e" | ||
10 | |||
11 | DEPENDS = "libgpg-error" | ||
12 | |||
13 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-${PV}.tar.bz2 \ | ||
14 | file://libassuan-add-pkgconfig-support.patch" | ||
15 | |||
16 | SRC_URI[md5sum] = "757243cc4a71b30ed8d8dbe784035d36" | ||
17 | SRC_URI[sha256sum] = "23e2d67779b88e90d29fe1df6b157109f1c2a647d0f1b2a0f4295bb3c0b2039d" | ||
18 | |||
19 | inherit autotools binconfig pkgconfig | ||
diff --git a/meta/recipes-support/libbsd/libbsd_0.6.0.bb b/meta/recipes-support/libbsd/libbsd_0.6.0.bb new file mode 100644 index 0000000000..70926bf742 --- /dev/null +++ b/meta/recipes-support/libbsd/libbsd_0.6.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | # Copyright (C) 2013 Khem Raj <raj.khem@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | SUMMARY = "Library of utility functions from BSD systems" | ||
5 | DESCRIPTION = "This library provides useful functions commonly found on BSD systems, \ | ||
6 | and lacking on others like GNU systems, thus making it easier to port \ | ||
7 | projects with strong BSD origins, without needing to embed the same \ | ||
8 | code over and over again on each project." | ||
9 | |||
10 | HOMEPAGE = "http://libbsd.freedesktop.org/wiki/" | ||
11 | LICENSE = "BSD-4-Clause & MIT" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=98a015f07e71239b058398054f506f07" | ||
13 | SECTION = "libs" | ||
14 | DEPENDS = "" | ||
15 | |||
16 | SRC_URI = "http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz" | ||
17 | SRC_URI[md5sum] = "f6c75f0a9818e323a589bcbd560a0eb4" | ||
18 | SRC_URI[sha256sum] = "9e8f34ffa9c8579c87965a55a82d8ac37a1dc64858f717b7c49452ade277cc62" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc new file mode 100644 index 0000000000..fef700a629 --- /dev/null +++ b/meta/recipes-support/libcap/libcap.inc | |||
@@ -0,0 +1,68 @@ | |||
1 | SUMMARY = "Library for getting/setting POSIX.1e capabilities" | ||
2 | HOMEPAGE = "http://sites.google.com/site/fullycapable/" | ||
3 | |||
4 | # no specific GPL version required | ||
5 | LICENSE = "BSD | GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1" | ||
7 | |||
8 | DEPENDS = "attr perl-native-runtime" | ||
9 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
10 | # attr and pam are disabled by EXTRA_OEMAKE_class-native | ||
11 | DEPENDS_class-native = "perl-native-runtime" | ||
12 | |||
13 | SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz \ | ||
14 | file://fix-CAP_LAST_CAP.patch" | ||
15 | |||
16 | PR = "r1" | ||
17 | |||
18 | inherit lib_package | ||
19 | |||
20 | # do NOT pass target cflags to host compilations | ||
21 | # | ||
22 | do_configure() { | ||
23 | # libcap uses := for compilers, fortunately, it gives us a hint | ||
24 | # on what should be replaced with ?= | ||
25 | sed -e 's,:=,?=,g' -i Make.Rules | ||
26 | sed -e 's,^BUILD_CFLAGS ?= $(.*CFLAGS),BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules | ||
27 | |||
28 | # disable gperf detection | ||
29 | sed -e '/shell gperf/cifeq (,yes)' -i libcap/Makefile | ||
30 | } | ||
31 | |||
32 | EXTRA_OEMAKE = " \ | ||
33 | LIBATTR=yes \ | ||
34 | PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \ | ||
35 | INDENT= SYSTEM_HEADERS=${STAGING_INCDIR} RAISE_SETFCAP=no \ | ||
36 | lib=${@os.path.basename('${libdir}')} \ | ||
37 | " | ||
38 | EXTRA_OEMAKE_class-native = " \ | ||
39 | LIBATTR=no \ | ||
40 | PAM_CAP=no \ | ||
41 | INDENT= \ | ||
42 | lib=${@os.path.basename('${libdir}')} \ | ||
43 | " | ||
44 | |||
45 | do_compile() { | ||
46 | oe_runmake | ||
47 | } | ||
48 | |||
49 | do_install() { | ||
50 | oe_runmake install DESTDIR="${D}" prefix="${prefix}" SBINDIR="${D}${sbindir}" | ||
51 | } | ||
52 | |||
53 | do_install_append() { | ||
54 | # Move the library to base_libdir | ||
55 | install -d ${D}${base_libdir} | ||
56 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
57 | mv ${D}${libdir}/* ${D}${base_libdir} | ||
58 | rmdir ${D}${libdir} | ||
59 | fi | ||
60 | } | ||
61 | |||
62 | FILES_${PN}-dev += "${base_libdir}/*.so" | ||
63 | |||
64 | # pam files | ||
65 | FILES_${PN} += "${base_libdir}/security/*.so" | ||
66 | FILES_${PN}-dbg += "${base_libdir}/security/.debug/*.so" | ||
67 | |||
68 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/libcap/libcap/fix-CAP_LAST_CAP.patch b/meta/recipes-support/libcap/libcap/fix-CAP_LAST_CAP.patch new file mode 100644 index 0000000000..a5571883d3 --- /dev/null +++ b/meta/recipes-support/libcap/libcap/fix-CAP_LAST_CAP.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | fix CAP_LAST_CAP | ||
2 | |||
3 | Upstream-Status: pending | ||
4 | |||
5 | Two new capability CAP_BLOCK_SUSPEND and CAP_WAKE_ALARM have been added into | ||
6 | kernel, but libcap did not update them. | ||
7 | Once libcap uses its capability.h (the default value of KERNEL_HEADERS), and | ||
8 | application always use capability.h from kernel, that will make cap_get_flag | ||
9 | return wrong value. | ||
10 | |||
11 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
12 | --- | ||
13 | libcap/include/linux/capability.h | 10 +++++++++- | ||
14 | 1 file changed, 9 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/libcap/include/linux/capability.h b/libcap/include/linux/capability.h | ||
17 | index 4924f2a..57026be 100644 | ||
18 | --- a/libcap/include/linux/capability.h | ||
19 | +++ b/libcap/include/linux/capability.h | ||
20 | @@ -360,7 +360,15 @@ struct cpu_vfs_cap_data { | ||
21 | CAP_SYS_ADMIN is not acceptable anymore. */ | ||
22 | #define CAP_SYSLOG 34 | ||
23 | |||
24 | -#define CAP_LAST_CAP CAP_SYSLOG | ||
25 | +/* Allow triggering something that will wake the system */ | ||
26 | + | ||
27 | +#define CAP_WAKE_ALARM 35 | ||
28 | + | ||
29 | +/* Allow preventing system suspends */ | ||
30 | + | ||
31 | +#define CAP_BLOCK_SUSPEND 36 | ||
32 | + | ||
33 | +#define CAP_LAST_CAP CAP_BLOCK_SUSPEND | ||
34 | |||
35 | #define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP) | ||
36 | |||
37 | -- | ||
38 | 1.7.10.4 | ||
39 | |||
diff --git a/meta/recipes-support/libcap/libcap_2.22.bb b/meta/recipes-support/libcap/libcap_2.22.bb new file mode 100644 index 0000000000..a989bb6a6b --- /dev/null +++ b/meta/recipes-support/libcap/libcap_2.22.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require libcap.inc | ||
2 | |||
3 | PR = "r6" | ||
4 | |||
5 | SRC_URI[md5sum] = "b4896816b626bea445f0b3849bdd4077" | ||
6 | SRC_URI[sha256sum] = "e1cae65d8febf2579be37c255d2e058715785ead481a4e6a4357a06aff84721f" | ||
diff --git a/meta/recipes-support/libcheck/libcheck_0.9.12.bb b/meta/recipes-support/libcheck/libcheck_0.9.12.bb new file mode 100644 index 0000000000..12ef1d455d --- /dev/null +++ b/meta/recipes-support/libcheck/libcheck_0.9.12.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Check - unit testing framework for C code" | ||
2 | HOMEPAGE = "http://check.sourceforge.net/" | ||
3 | SECTION = "devel" | ||
4 | |||
5 | LICENSE = "LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/check/check-${PV}.tar.gz \ | ||
9 | " | ||
10 | |||
11 | SRC_URI[md5sum] = "46fe540d1a03714c7a1967dbc6d484e7" | ||
12 | SRC_URI[sha256sum] = "c7d47e55e133a0ca19a52e08a99333ac55cb22618b53719b7f4117a1875b1ea3" | ||
13 | |||
14 | S = "${WORKDIR}/check-${PV}" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
17 | |||
18 | CACHED_CONFIGUREVARS += "ac_cv_path_AWK_PATH=${bindir}/gawk" | ||
19 | |||
20 | RREPLACES_${PN} = "check (<= 0.9.5)" | ||
21 | RDEPENDS_${PN} += "gawk" | ||
22 | RDEPENDS_${PN}_class-native = "" | ||
23 | |||
24 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/libcroco/libcroco_0.6.8.bb b/meta/recipes-support/libcroco/libcroco_0.6.8.bb new file mode 100644 index 0000000000..385665f0fd --- /dev/null +++ b/meta/recipes-support/libcroco/libcroco_0.6.8.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | SUMMARY = "Cascading Style Sheet (CSS) parsing and manipulation toolkit" | ||
2 | HOMEPAGE = "http://www.gnome.org/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | |||
5 | LICENSE = "LGPLv2 & LGPLv2.1" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605 \ | ||
7 | file://src/cr-rgb.c;endline=22;md5=31d5f0944d556c8589d04ea6055fcc66 \ | ||
8 | file://tests/cr-test-utils.c;endline=21;md5=2382c27934cae1d3792fcb17a6142c4e" | ||
9 | |||
10 | SECTION = "x11/utils" | ||
11 | DEPENDS = "glib-2.0 libxml2 zlib" | ||
12 | BBCLASSEXTEND = "native" | ||
13 | EXTRA_OECONF += "--enable-Bsymbolic=auto" | ||
14 | PR = "r1" | ||
15 | |||
16 | inherit autotools-brokensep pkgconfig gnomebase | ||
17 | |||
18 | GNOME_COMPRESS_TYPE = "xz" | ||
19 | |||
20 | SRC_URI[archive.md5sum] = "767e73c4174f75b99695d4530fd9bb80" | ||
21 | SRC_URI[archive.sha256sum] = "ea6e1b858c55219cefd7109756bff5bc1a774ba7a55f7d3ccd734d6b871b8570" | ||
diff --git a/meta/recipes-support/libdaemon/libdaemon_0.14.bb b/meta/recipes-support/libdaemon/libdaemon_0.14.bb new file mode 100644 index 0000000000..e928781a4d --- /dev/null +++ b/meta/recipes-support/libdaemon/libdaemon_0.14.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "Lightweight C library which eases the writing of UNIX daemons" | ||
2 | SECTION = "libs" | ||
3 | AUTHOR = "Lennart Poettering <lennart@poettering.net>" | ||
4 | HOMEPAGE = "http://0pointer.de/lennart/projects/libdaemon/" | ||
5 | LICENSE = "LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
7 | file://libdaemon/daemon.h;beginline=9;endline=21;md5=bd9fbe57cd96d1a5848a8ba12d9a6bf4" | ||
8 | |||
9 | SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz" | ||
10 | |||
11 | SRC_URI[md5sum] = "509dc27107c21bcd9fbf2f95f5669563" | ||
12 | SRC_URI[sha256sum] = "fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | EXTRA_OECONF = "--disable-lynx" | ||
diff --git a/meta/recipes-support/libevent/libevent-2.0.21/disable_tests.patch b/meta/recipes-support/libevent/libevent-2.0.21/disable_tests.patch new file mode 100644 index 0000000000..5d2c69036b --- /dev/null +++ b/meta/recipes-support/libevent/libevent-2.0.21/disable_tests.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Inappropriate [disable feature] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd libevent-2.0.21-stable/test/Makefile.am libevent-2.0.21-stable/test/Makefile.am | ||
5 | --- libevent-2.0.21-stable/test/Makefile.am 2012-05-31 07:08:19.000000000 +0300 | ||
6 | +++ libevent-2.0.21-stable/test/Makefile.am 2013-02-08 02:06:20.227475872 +0200 | ||
7 | @@ -19,8 +19,6 @@ | ||
8 | EXTRA_PROGRAMS = regress | ||
9 | noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h | ||
10 | |||
11 | -TESTS = $(top_srcdir)/test/test.sh | ||
12 | - | ||
13 | BUILT_SOURCES = | ||
14 | if BUILD_REGRESS | ||
15 | BUILT_SOURCES += regress.gen.c regress.gen.h | ||
diff --git a/meta/recipes-support/libevent/libevent-2.0.21/obsolete_automake_macros.patch b/meta/recipes-support/libevent/libevent-2.0.21/obsolete_automake_macros.patch new file mode 100644 index 0000000000..b55923220c --- /dev/null +++ b/meta/recipes-support/libevent/libevent-2.0.21/obsolete_automake_macros.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Submitted [https://sourceforge.net/tracker/?func=detail&aid=3603774&group_id=50884&atid=461322] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd libevent-2.0.21-stable/configure.in libevent-2.0.21-stable/configure.in | ||
5 | --- libevent-2.0.21-stable/configure.in 2012-11-18 08:34:13.000000000 +0200 | ||
6 | +++ libevent-2.0.21-stable/configure.in 2013-02-08 02:03:58.403476183 +0200 | ||
7 | @@ -12,7 +12,7 @@ | ||
8 | AC_CONFIG_MACRO_DIR([m4]) | ||
9 | |||
10 | AM_INIT_AUTOMAKE(libevent,2.0.21-stable) | ||
11 | -AM_CONFIG_HEADER(config.h) | ||
12 | +AC_CONFIG_HEADERS(config.h) | ||
13 | AC_DEFINE(NUMERIC_VERSION, 0x02001500, [Numeric representation of the version]) | ||
14 | |||
15 | dnl Initialize prefix. | ||
diff --git a/meta/recipes-support/libevent/libevent_2.0.21.bb b/meta/recipes-support/libevent/libevent_2.0.21.bb new file mode 100644 index 0000000000..5a1ff3b1b0 --- /dev/null +++ b/meta/recipes-support/libevent/libevent_2.0.21.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "An asynchronous event notification library" | ||
2 | HOMEPAGE = "http://libevent.org/" | ||
3 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=50884&atid=461322" | ||
4 | SECTION = "libs" | ||
5 | |||
6 | LICENSE = "BSD" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=45c5316ff684bcfe2f9f86d8b1279559" | ||
8 | |||
9 | PR = "r1" | ||
10 | |||
11 | SRC_URI = "http://github.com/downloads/libevent/libevent/${BPN}-${PV}-stable.tar.gz \ | ||
12 | file://obsolete_automake_macros.patch \ | ||
13 | file://disable_tests.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "b2405cc9ebf264aa47ff615d9de527a2" | ||
17 | SRC_URI[sha256sum] = "22a530a8a5ba1cb9c080cba033206b17dacd21437762155c6d30ee6469f574f5" | ||
18 | |||
19 | S = "${WORKDIR}/${BPN}-${PV}-stable" | ||
20 | |||
21 | EXTRA_OECONF = "--disable-openssl" | ||
22 | |||
23 | inherit autotools | ||
24 | |||
25 | # Needed for Debian packaging | ||
26 | LEAD_SONAME = "libevent-2.0.so" | ||
diff --git a/meta/recipes-support/libexif/libexif_0.6.21.bb b/meta/recipes-support/libexif/libexif_0.6.21.bb new file mode 100644 index 0000000000..cff4caede9 --- /dev/null +++ b/meta/recipes-support/libexif/libexif_0.6.21.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "Library for reading extended image information (EXIF) from JPEG files" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/libexif" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPLv2.1" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad" | ||
6 | |||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/libexif/libexif-${PV}.tar.bz2" | ||
8 | |||
9 | SRC_URI[md5sum] = "27339b89850f28c8f1c237f233e05b27" | ||
10 | SRC_URI[sha256sum] = "16cdaeb62eb3e6dfab2435f7d7bccd2f37438d21c5218ec4e58efa9157d4d41a" | ||
11 | |||
12 | inherit autotools gettext | ||
13 | |||
14 | do_configure_append() { | ||
15 | sed -i s:doc\ binary:binary:g Makefile | ||
16 | } | ||
17 | |||
diff --git a/meta/recipes-support/libfm/libfm-1.1.2.2/fix-make-parallelism-issue.patch b/meta/recipes-support/libfm/libfm-1.1.2.2/fix-make-parallelism-issue.patch new file mode 100644 index 0000000000..5d39d1954d --- /dev/null +++ b/meta/recipes-support/libfm/libfm-1.1.2.2/fix-make-parallelism-issue.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Fix make parallelism issue | ||
2 | |||
3 | - remove pkginclude_HEADERS ( LIBFM_INCLUDES and LIBFM_GTK_INCLUDES | ||
4 | variables are empty) | ||
5 | - if we don't remove it then we will have a race condition between the code | ||
6 | that tries to symlink ${includedir}/libfm-1.0 to ${includedir}/libfm and the | ||
7 | am autogenerated code from the pkginclude_HEADERS definition which | ||
8 | tries to create pkgincludedir (${includedir}/libfm); | ||
9 | - if pkgincludedir is created before the symlink the symlink will be created | ||
10 | in the ${includedir}/libfm dir and it will have libfm-1.0 as name which is | ||
11 | wrong (we need the ${includedir}/libfm symlink for pcmanfm) | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
15 | |||
16 | Index: libfm-1.1.0/src/Makefile.am | ||
17 | =================================================================== | ||
18 | --- libfm-1.1.0.orig/src/Makefile.am | ||
19 | +++ libfm-1.1.0/src/Makefile.am | ||
20 | @@ -211,11 +211,6 @@ libfmgtkinclude_HEADERS = \ | ||
21 | gtk/fm-gtk-marshal.h \ | ||
22 | $(NULL) | ||
23 | |||
24 | -pkginclude_HEADERS = \ | ||
25 | - $(LIBFM_INCLUDES) \ | ||
26 | - $(LIBFM_GTK_INCLUDES) \ | ||
27 | - $(NULL) | ||
28 | - | ||
29 | EXTRA_LTLIBRARIES = libfm-gtk.la libfm-gtk3.la | ||
30 | |||
31 | lib_LTLIBRARIES = libfm.la @LIBFM_GTK_LTLIBRARIES@ | ||
diff --git a/meta/recipes-support/libfm/libfm-1.1.2.2/ignore_automake_warnings.patch b/meta/recipes-support/libfm/libfm-1.1.2.2/ignore_automake_warnings.patch new file mode 100644 index 0000000000..58a2f09d66 --- /dev/null +++ b/meta/recipes-support/libfm/libfm-1.1.2.2/ignore_automake_warnings.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd libfm-1.1.2.2/configure.ac libfm-1.1.2.2/configure.ac | ||
5 | --- libfm-1.1.2.2/configure.ac 2013-08-22 23:16:09.000000000 +0300 | ||
6 | +++ libfm-1.1.2.2/configure.ac 2013-10-25 01:35:18.110323079 +0300 | ||
7 | @@ -3,7 +3,7 @@ | ||
8 | |||
9 | AC_PREREQ([2.63]) | ||
10 | AC_INIT([libfm], [1.1.2.2], [http://pcmanfm.sourceforge.net/]) | ||
11 | -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) | ||
12 | +AM_INIT_AUTOMAKE([-Wall foreign]) | ||
13 | AC_CONFIG_MACRO_DIR(m4) | ||
14 | AC_CONFIG_HEADERS([config.h]) | ||
diff --git a/meta/recipes-support/libfm/libfm_1.1.2.2.bb b/meta/recipes-support/libfm/libfm_1.1.2.2.bb new file mode 100644 index 0000000000..ea6323a831 --- /dev/null +++ b/meta/recipes-support/libfm/libfm_1.1.2.2.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "Library for file management" | ||
2 | HOMEPAGE = "http://pcmanfm.sourceforge.net/" | ||
3 | |||
4 | LICENSE = "GPLv2 & GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
6 | file://src/fm.h;endline=22;md5=e64555171770a551e3b51cc06fc62f1a \ | ||
7 | file://src/base/fm-config.h;endline=23;md5=ad0fc418c3cf041eea35ddb3daf37f17" | ||
8 | |||
9 | SECTION = "x11/libs" | ||
10 | DEPENDS = "glib-2.0 pango gtk+ menu-cache intltool-native libexif" | ||
11 | |||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.gz \ | ||
13 | file://fix-make-parallelism-issue.patch \ | ||
14 | file://ignore_automake_warnings.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "ea3d09b23ef4c37cb84ae57ea16b8f08" | ||
18 | SRC_URI[sha256sum] = "158e2b6974350d2dab15932b496bb4d448553e60bbf7cdfe4d6e9bd99d19d682" | ||
19 | |||
20 | inherit autotools-brokensep pkgconfig | ||
21 | |||
22 | PACKAGES += "${PN}-mime" | ||
23 | FILES_${PN}-mime = "${datadir}/mime/" | ||
diff --git a/meta/recipes-support/libgcrypt/files/add-pkgconfig-support.patch b/meta/recipes-support/libgcrypt/files/add-pkgconfig-support.patch new file mode 100644 index 0000000000..3e33679731 --- /dev/null +++ b/meta/recipes-support/libgcrypt/files/add-pkgconfig-support.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | Upstream-Status: Inappropriate [distribution] | ||
2 | |||
3 | Index: libgcrypt-1.2.4/configure.ac | ||
4 | =================================================================== | ||
5 | --- libgcrypt-1.2.4.orig/configure.ac 2008-03-19 22:14:50.000000000 +0000 | ||
6 | +++ libgcrypt-1.2.4/configure.ac 2008-03-19 22:14:58.000000000 +0000 | ||
7 | @@ -807,6 +807,7 @@ | ||
8 | doc/Makefile | ||
9 | src/Makefile | ||
10 | src/gcrypt.h | ||
11 | +src/libgcrypt.pc | ||
12 | src/libgcrypt-config | ||
13 | tests/Makefile | ||
14 | w32-dll/Makefile | ||
15 | Index: libgcrypt-1.2.4/src/libgcrypt.pc.in | ||
16 | =================================================================== | ||
17 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
18 | +++ libgcrypt-1.2.4/src/libgcrypt.pc.in 2008-03-19 22:14:58.000000000 +0000 | ||
19 | @@ -0,0 +1,32 @@ | ||
20 | +# Process this file with autoconf to produce a pkg-config metadata file. | ||
21 | +# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation | ||
22 | +# Author: Simon Josefsson | ||
23 | +# | ||
24 | +# This file is free software; as a special exception the author gives | ||
25 | +# unlimited permission to copy and/or distribute it, with or without | ||
26 | +# modifications, as long as this notice is preserved. | ||
27 | +# | ||
28 | +# This file is distributed in the hope that it will be useful, but | ||
29 | +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | ||
30 | +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
31 | + | ||
32 | +prefix=@prefix@ | ||
33 | +exec_prefix=@exec_prefix@ | ||
34 | +libdir=@libdir@ | ||
35 | +includedir=@includedir@ | ||
36 | + | ||
37 | +# API info | ||
38 | +api_version=@LIBGCRYPT_CONFIG_API_VERSION@ | ||
39 | + | ||
40 | +# Misc information. | ||
41 | +symmetric_ciphers=@LIBGCRYPT_CIPHERS@ | ||
42 | +asymmetric_ciphers=@LIBGCRYPT_PUBKEY_CIPHERS@ | ||
43 | +digests=@LIBGCRYPT_DIGESTS@ | ||
44 | + | ||
45 | +Name: libgcrypt | ||
46 | +Description: GNU crypto library | ||
47 | +URL: http://www.gnupg.org | ||
48 | +Version: @VERSION@ | ||
49 | +Libs: -L${libdir} -lgcrypt | ||
50 | +Libs.private: -L${libdir} -lgpg-error | ||
51 | +Cflags: -I${includedir} | ||
diff --git a/meta/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch b/meta/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch new file mode 100644 index 0000000000..a3e540369c --- /dev/null +++ b/meta/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | libgcrypt: fix building error with '-O2' in sysroot path | ||
4 | |||
5 | Characters like '-O2' or '-Ofast' will be replaced by '-O1' when compiling cipher. | ||
6 | If we are cross compiling libgcrypt and sysroot contains such characters, we would | ||
7 | get compile errors because the sysroot path has been modified. | ||
8 | |||
9 | Fix this by adding blank spaces before and after the original matching pattern in the | ||
10 | sed command. | ||
11 | |||
12 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
13 | --- | ||
14 | cipher/Makefile.am | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/cipher/Makefile.am b/cipher/Makefile.am | ||
18 | index 76cdc96..9a89792 100644 | ||
19 | --- a/cipher/Makefile.am | ||
20 | +++ b/cipher/Makefile.am | ||
21 | @@ -69,7 +69,7 @@ rfc2268.c \ | ||
22 | camellia.c camellia.h camellia-glue.c | ||
23 | |||
24 | if ENABLE_O_FLAG_MUNGING | ||
25 | -o_flag_munging = sed -e 's/-O\([2-9s][2-9s]*\)/-O1/' -e 's/-Ofast/-O1/g' | ||
26 | +o_flag_munging = sed -e 's/ -O\([2-9s][2-9s]*\) / -O1 /' -e 's/ -Ofast / -O1 /g' | ||
27 | else | ||
28 | o_flag_munging = cat | ||
29 | endif | ||
30 | -- | ||
31 | 1.7.9.5 | ||
32 | |||
diff --git a/meta/recipes-support/libgcrypt/libgcrypt.inc b/meta/recipes-support/libgcrypt/libgcrypt.inc new file mode 100644 index 0000000000..e7fcc62908 --- /dev/null +++ b/meta/recipes-support/libgcrypt/libgcrypt.inc | |||
@@ -0,0 +1,31 @@ | |||
1 | SUMMARY = "General purpose cryptographic library based on the code from GnuPG" | ||
2 | HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" | ||
3 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
4 | SECTION = "libs" | ||
5 | |||
6 | # helper program gcryptrnd and getrandom are under GPL, rest LGPL | ||
7 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
9 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" | ||
10 | |||
11 | DEPENDS = "libgpg-error libcap" | ||
12 | |||
13 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \ | ||
14 | file://add-pkgconfig-support.patch \ | ||
15 | file://libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch" | ||
16 | |||
17 | inherit autotools-brokensep binconfig pkgconfig | ||
18 | |||
19 | EXTRA_OECONF = "--disable-asm --with-capabilities" | ||
20 | |||
21 | # libgcrypt.pc is added locally and thus installed here | ||
22 | do_install_append() { | ||
23 | install -d ${D}/${libdir}/pkgconfig | ||
24 | install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/ | ||
25 | } | ||
26 | |||
27 | FILES_${PN}-dev += "${bindir}/dumpsexp ${bindir}/hmac256" | ||
28 | |||
29 | ARM_INSTRUCTION_SET = "arm" | ||
30 | |||
31 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.5.3.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.5.3.bb new file mode 100644 index 0000000000..b8b3590492 --- /dev/null +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.5.3.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | require libgcrypt.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "3ccf8f1bf758a08e924cf5a36754f564" | ||
4 | SRC_URI[sha256sum] = "9dd2f359c16d7b8128d53f019c685cdedbcdcd1888904228a272d4769d9bf4e6" | ||
diff --git a/meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch b/meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch new file mode 100644 index 0000000000..27640129e2 --- /dev/null +++ b/meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Index: libgpg-error-1.8/configure.ac | ||
9 | =================================================================== | ||
10 | --- libgpg-error-1.8.orig/configure.ac 2010-05-06 06:01:08.000000000 -0700 | ||
11 | +++ libgpg-error-1.8/configure.ac 2010-07-21 02:20:20.923261305 -0700 | ||
12 | @@ -140,6 +140,7 @@ | ||
13 | AC_SUBST(GPG_ERROR_CONFIG_CFLAGS) | ||
14 | AC_SUBST(GPG_ERROR_CONFIG_ISUBDIRAFTER) | ||
15 | AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config]) | ||
16 | +AC_CONFIG_FILES([src/gpg-error.pc]) | ||
17 | |||
18 | |||
19 | # Special defines for certain platforms | ||
20 | Index: libgpg-error-1.8/src/Makefile.am | ||
21 | =================================================================== | ||
22 | --- libgpg-error-1.8.orig/src/Makefile.am 2010-04-14 02:16:44.000000000 -0700 | ||
23 | +++ libgpg-error-1.8/src/Makefile.am 2010-07-21 02:22:36.655012496 -0700 | ||
24 | @@ -37,13 +37,15 @@ | ||
25 | bin_SCRIPTS = gpg-error-config | ||
26 | m4datadir = $(datadir)/aclocal | ||
27 | m4data_DATA = gpg-error.m4 | ||
28 | +pkgconfigdir = $(libdir)/pkgconfig | ||
29 | +pkgconfig_DATA = gpg-error.pc | ||
30 | |||
31 | EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \ | ||
32 | mkerrnos.awk errnos.in README \ | ||
33 | mkerrcodes.awk mkerrcodes1.awk mkerrcodes2.awk mkerrcodes.c \ | ||
34 | mkheader.awk gpg-error.h.in mkw32errmap.c w32-add.h w32ce-add.h \ | ||
35 | err-sources.h err-codes.h gpg-error-config.in gpg-error.m4 \ | ||
36 | - gpg-error.def.in versioninfo.rc.in | ||
37 | + gpg-error.def.in versioninfo.rc.in gpg-error.pc.in | ||
38 | |||
39 | BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \ | ||
40 | err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h \ | ||
41 | Index: libgpg-error-1.8/src/gpg-error.pc.in | ||
42 | =================================================================== | ||
43 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
44 | +++ libgpg-error-1.8/src/gpg-error.pc.in 2010-07-21 02:20:20.923261305 -0700 | ||
45 | @@ -0,0 +1,10 @@ | ||
46 | +prefix=@prefix@ | ||
47 | +exec_prefix=@exec_prefix@ | ||
48 | +libdir=@libdir@ | ||
49 | +includedir=@includedir@ | ||
50 | + | ||
51 | +Name: gpg-error | ||
52 | +Description: a library that defines common error values for all GnuPG components | ||
53 | +Version: @VERSION@ | ||
54 | +Libs: -L{libdir} -lgpg-error | ||
55 | +Cflags: -I${includedir} | ||
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.12.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.12.bb new file mode 100644 index 0000000000..a47e31d167 --- /dev/null +++ b/meta/recipes-support/libgpg-error/libgpg-error_1.12.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Small library that defines common error values for all GnuPG components" | ||
2 | HOMEPAGE = "http://www.gnupg.org/related_software/libgpg-error/" | ||
3 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
4 | |||
5 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
8 | file://src/gpg-error.h.in;endline=23;md5=6ac0378874589a44d53512b3786b4bc0 \ | ||
9 | file://src/init.c;endline=20;md5=b69742f2a8827d494c6f6a4b1768416c" | ||
10 | |||
11 | |||
12 | SECTION = "libs" | ||
13 | |||
14 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-${PV}.tar.bz2 \ | ||
15 | file://pkgconfig.patch" | ||
16 | |||
17 | SRC_URI[md5sum] = "8f0eb41a344d19ac2aa9bd101dfb9ce6" | ||
18 | SRC_URI[sha256sum] = "cafc9ed6a87c53a35175d5a1220a96ca386696eef2fa059cc0306211f246e55f" | ||
19 | |||
20 | inherit autotools binconfig pkgconfig gettext | ||
21 | |||
22 | FILES_${PN}-dev += "${bindir}/gpg-error" | ||
23 | |||
24 | do_install_append() { | ||
25 | # we don't have common lisp in OE | ||
26 | rm -rf "${D}${datadir}/common-lisp/" | ||
27 | } | ||
28 | |||
29 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/libical/files/pthread-fix.patch b/meta/recipes-support/libical/files/pthread-fix.patch new file mode 100644 index 0000000000..877b808fc0 --- /dev/null +++ b/meta/recipes-support/libical/files/pthread-fix.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | New added pthread feature leads to some deadlock with some unlock code missing. | ||
2 | This patch fix it. | ||
3 | |||
4 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Index: libical-0.47/src/libical/icaltimezone.c | ||
9 | =================================================================== | ||
10 | --- libical-0.47.orig/src/libical/icaltimezone.c 2011-12-16 13:42:25.000000000 +0800 | ||
11 | +++ libical-0.47/src/libical/icaltimezone.c 2011-12-16 14:16:25.000000000 +0800 | ||
12 | @@ -1773,7 +1773,7 @@ | ||
13 | filename = (char*) malloc (filename_len); | ||
14 | if (!filename) { | ||
15 | icalerror_set_errno(ICAL_NEWFAILED_ERROR); | ||
16 | - return; | ||
17 | + goto out; | ||
18 | } | ||
19 | |||
20 | snprintf (filename, filename_len, "%s/%s.ics", get_zone_directory(), | ||
21 | @@ -1783,7 +1783,7 @@ | ||
22 | free (filename); | ||
23 | if (!fp) { | ||
24 | icalerror_set_errno(ICAL_FILE_ERROR); | ||
25 | - return; | ||
26 | + goto out; | ||
27 | } | ||
28 | |||
29 | |||
30 | @@ -1807,7 +1807,7 @@ | ||
31 | |||
32 | if (!subcomp) { | ||
33 | icalerror_set_errno(ICAL_PARSE_ERROR); | ||
34 | - return; | ||
35 | + goto out; | ||
36 | } | ||
37 | |||
38 | icaltimezone_get_vtimezone_properties (zone, subcomp); | ||
39 | @@ -1817,10 +1817,12 @@ | ||
40 | icalcomponent_free(comp); | ||
41 | } | ||
42 | #endif | ||
43 | -#ifdef HAVE_PTHREAD | ||
44 | + | ||
45 | out: | ||
46 | +#ifdef HAVE_PTHREAD | ||
47 | pthread_mutex_unlock(&builtin_mutex); | ||
48 | #endif | ||
49 | + return; | ||
50 | } | ||
51 | |||
52 | |||
diff --git a/meta/recipes-support/libical/libical_0.48.bb b/meta/recipes-support/libical/libical_0.48.bb new file mode 100644 index 0000000000..f464026f8c --- /dev/null +++ b/meta/recipes-support/libical/libical_0.48.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "iCal and scheduling (RFC 2445, 2446, 2447) library" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/freeassociation/" | ||
3 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=16077&atid=116077" | ||
4 | LICENSE = "LGPLv2.1 | MPL-1" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d4fc58309d8ed46587ac63bb449d82f8 \ | ||
6 | file://LICENSE;md5=d1a0891cd3e582b3e2ec8fe63badbbb6" | ||
7 | SECTION = "libs" | ||
8 | |||
9 | |||
10 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/freeassociation/${BPN}/${P}/${BPN}-${PV}.tar.gz\ | ||
11 | file://pthread-fix.patch" | ||
12 | |||
13 | SRC_URI[md5sum] = "e549f434d5fbf9cd156c60ed4943618f" | ||
14 | SRC_URI[sha256sum] = "2ae78b0757f0dd13431acf42a9a8d038339fd4767fd5134e650bf60ee0b4dff0" | ||
15 | |||
16 | inherit autotools | ||
diff --git a/meta/recipes-support/libiconv/libiconv-1.11.1/autoconf.patch b/meta/recipes-support/libiconv/libiconv-1.11.1/autoconf.patch new file mode 100644 index 0000000000..3cbf549d48 --- /dev/null +++ b/meta/recipes-support/libiconv/libiconv-1.11.1/autoconf.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | It adds the variables that are needed | ||
2 | for autoconf 2.65 to reconfigure libiconv and defines the m4 macros | ||
3 | directory. Its imported from OE. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | |||
9 | Index: libiconv-1.11.1/configure.ac | ||
10 | =================================================================== | ||
11 | --- libiconv-1.11.1.orig/configure.ac | ||
12 | +++ libiconv-1.11.1/configure.ac | ||
13 | @@ -23,7 +23,7 @@ AC_CONFIG_AUX_DIR(build-aux) | ||
14 | AM_INIT_AUTOMAKE(libiconv, 1.11) | ||
15 | AC_CONFIG_HEADERS(config.h lib/config.h) | ||
16 | AC_PROG_MAKE_SET | ||
17 | - | ||
18 | +AC_CONFIG_MACRO_DIR([m4]) | ||
19 | dnl checks for basic programs | ||
20 | |||
21 | AC_PROG_CC | ||
22 | Index: libiconv-1.11.1/libcharset/configure.ac | ||
23 | =================================================================== | ||
24 | --- libiconv-1.11.1.orig/libcharset/configure.ac | ||
25 | +++ libiconv-1.11.1/libcharset/configure.ac | ||
26 | @@ -16,17 +16,17 @@ dnl along with the GNU CHARSET Library; | ||
27 | dnl write to the Free Software Foundation, Inc., 51 Franklin Street, | ||
28 | dnl Fifth Floor, Boston, MA 02110-1301, USA. | ||
29 | |||
30 | -AC_PREREQ(2.13) | ||
31 | +AC_PREREQ(2.61) | ||
32 | +AC_INIT([libcharset],[1.4] ) | ||
33 | +AC_CONFIG_SRCDIR([lib/localcharset.c]) | ||
34 | |||
35 | -PACKAGE=libcharset | ||
36 | -VERSION=1.4 | ||
37 | - | ||
38 | -AC_INIT(lib/localcharset.c) | ||
39 | AC_CONFIG_AUX_DIR(build-aux) | ||
40 | AC_CONFIG_HEADER(config.h) | ||
41 | AC_PROG_MAKE_SET | ||
42 | -AC_SUBST(PACKAGE) | ||
43 | -AC_SUBST(VERSION) | ||
44 | +dnl AC_SUBST(PACKAGE) | ||
45 | +dnl AC_SUBST(VERSION) | ||
46 | + | ||
47 | +AC_CONFIG_MACRO_DIR([m4]) | ||
48 | |||
49 | dnl checks for basic programs | ||
50 | |||
diff --git a/meta/recipes-support/libiconv/libiconv-1.11.1/shared_preloadable_libiconv_linux.patch b/meta/recipes-support/libiconv/libiconv-1.11.1/shared_preloadable_libiconv_linux.patch new file mode 100644 index 0000000000..fb07f7366b --- /dev/null +++ b/meta/recipes-support/libiconv/libiconv-1.11.1/shared_preloadable_libiconv_linux.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | With libtool generating shared and static version of libraries needs -fPIC flags | ||
2 | without this it will not generate the commands to create shared linked library | ||
3 | Its more enforced by libtool 2.4. I have not checked it with older libtool | ||
4 | libiconv 1.11.x is relatively old release and libtool 2.4 did not exist when it | ||
5 | was released these kind of problem are more likely | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Index: libiconv-1.11.1/lib/Makefile.in | ||
12 | =================================================================== | ||
13 | --- libiconv-1.11.1.orig/lib/Makefile.in | ||
14 | +++ libiconv-1.11.1/lib/Makefile.in | ||
15 | @@ -70,9 +70,9 @@ preloadable_libiconv.so : preloadable_li | ||
16 | |||
17 | preloadable_libiconv_linux.so : $(SOURCES) | ||
18 | if test -n "@GCC@"; then \ | ||
19 | - $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -shared -o preloadable_libiconv_linux.so; \ | ||
20 | + $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -rpath $(libdir) -o libpreload_iconv.la && cp .libs/libpreload_iconv.so preloadable_libiconv_linux.so; \ | ||
21 | else \ | ||
22 | - $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -KPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -shared -o preloadable_libiconv_linux.so; \ | ||
23 | + $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -KPIC -DPIC -DLIBICONV_PLUG $(SOURCES) -rpath $(libdir) -o libpreload_iconv.la && cp .libs/libpreload_iconv.so preloadable_libiconv_linux.so; \ | ||
24 | fi | ||
25 | |||
26 | preloadable_libiconv_solaris.so : $(SOURCES) | ||
diff --git a/meta/recipes-support/libiconv/libiconv-1.14/add-relocatable-module.patch b/meta/recipes-support/libiconv/libiconv-1.14/add-relocatable-module.patch new file mode 100644 index 0000000000..6af377b4cc --- /dev/null +++ b/meta/recipes-support/libiconv/libiconv-1.14/add-relocatable-module.patch | |||
@@ -0,0 +1,5008 @@ | |||
1 | This patch is needed to solve issues like | ||
2 | | iconv.o: In function `main': | ||
3 | | /home/james/stuff/beagle/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/libiconv-1.14-r0/libiconv-1.14/src/./iconv.c:861: undefined reference to `relocate' | ||
4 | | ../srclib/libicrt.a(progreloc.o): In function `prepare_relocate': | ||
5 | | /home/james/stuff/beagle/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/libiconv-1.14-r0/libiconv-1.14/srclib/progreloc.c:297: undefined reference to `compute_curr_prefix' | ||
6 | | /home/james/stuff/beagle/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/libiconv-1.14-r0/libiconv-1.14/srclib/progreloc.c:302: undefined reference to `set_relocation_prefix' | ||
7 | | collect2: ld returned 1 exit status | ||
8 | | make[1]: *** [install] Error 1 | ||
9 | |||
10 | Upstream-Status: Inappropriate [OE config specific] | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | |||
14 | diff -Naurp libiconv-1.14.org//build-aux/arg-nonnull.h libiconv-1.14/build-aux/arg-nonnull.h | ||
15 | --- libiconv-1.14.org//build-aux/arg-nonnull.h 1969-12-31 16:00:00.000000000 -0800 | ||
16 | +++ libiconv-1.14/build-aux/arg-nonnull.h 2012-01-08 02:07:39.930484438 -0800 | ||
17 | @@ -0,0 +1,26 @@ | ||
18 | +/* A C macro for declaring that specific arguments must not be NULL. | ||
19 | + Copyright (C) 2009-2011 Free Software Foundation, Inc. | ||
20 | + | ||
21 | + This program is free software: you can redistribute it and/or modify it | ||
22 | + under the terms of the GNU General Public License as published | ||
23 | + by the Free Software Foundation; either version 3 of the License, or | ||
24 | + (at your option) any later version. | ||
25 | + | ||
26 | + This program is distributed in the hope that it will be useful, | ||
27 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
28 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
29 | + General Public License for more details. | ||
30 | + | ||
31 | + You should have received a copy of the GNU General Public License | ||
32 | + along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
33 | + | ||
34 | +/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools | ||
35 | + that the values passed as arguments n, ..., m must be non-NULL pointers. | ||
36 | + n = 1 stands for the first argument, n = 2 for the second argument etc. */ | ||
37 | +#ifndef _GL_ARG_NONNULL | ||
38 | +# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 | ||
39 | +# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) | ||
40 | +# else | ||
41 | +# define _GL_ARG_NONNULL(params) | ||
42 | +# endif | ||
43 | +#endif | ||
44 | diff -Naurp libiconv-1.14.org//build-aux/c++defs.h libiconv-1.14/build-aux/c++defs.h | ||
45 | --- libiconv-1.14.org//build-aux/c++defs.h 1969-12-31 16:00:00.000000000 -0800 | ||
46 | +++ libiconv-1.14/build-aux/c++defs.h 2012-01-08 02:07:39.942484438 -0800 | ||
47 | @@ -0,0 +1,271 @@ | ||
48 | +/* C++ compatible function declaration macros. | ||
49 | + Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
50 | + | ||
51 | + This program is free software: you can redistribute it and/or modify it | ||
52 | + under the terms of the GNU General Public License as published | ||
53 | + by the Free Software Foundation; either version 3 of the License, or | ||
54 | + (at your option) any later version. | ||
55 | + | ||
56 | + This program is distributed in the hope that it will be useful, | ||
57 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
58 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
59 | + General Public License for more details. | ||
60 | + | ||
61 | + You should have received a copy of the GNU General Public License | ||
62 | + along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
63 | + | ||
64 | +#ifndef _GL_CXXDEFS_H | ||
65 | +#define _GL_CXXDEFS_H | ||
66 | + | ||
67 | +/* The three most frequent use cases of these macros are: | ||
68 | + | ||
69 | + * For providing a substitute for a function that is missing on some | ||
70 | + platforms, but is declared and works fine on the platforms on which | ||
71 | + it exists: | ||
72 | + | ||
73 | + #if @GNULIB_FOO@ | ||
74 | + # if !@HAVE_FOO@ | ||
75 | + _GL_FUNCDECL_SYS (foo, ...); | ||
76 | + # endif | ||
77 | + _GL_CXXALIAS_SYS (foo, ...); | ||
78 | + _GL_CXXALIASWARN (foo); | ||
79 | + #elif defined GNULIB_POSIXCHECK | ||
80 | + ... | ||
81 | + #endif | ||
82 | + | ||
83 | + * For providing a replacement for a function that exists on all platforms, | ||
84 | + but is broken/insufficient and needs to be replaced on some platforms: | ||
85 | + | ||
86 | + #if @GNULIB_FOO@ | ||
87 | + # if @REPLACE_FOO@ | ||
88 | + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
89 | + # undef foo | ||
90 | + # define foo rpl_foo | ||
91 | + # endif | ||
92 | + _GL_FUNCDECL_RPL (foo, ...); | ||
93 | + _GL_CXXALIAS_RPL (foo, ...); | ||
94 | + # else | ||
95 | + _GL_CXXALIAS_SYS (foo, ...); | ||
96 | + # endif | ||
97 | + _GL_CXXALIASWARN (foo); | ||
98 | + #elif defined GNULIB_POSIXCHECK | ||
99 | + ... | ||
100 | + #endif | ||
101 | + | ||
102 | + * For providing a replacement for a function that exists on some platforms | ||
103 | + but is broken/insufficient and needs to be replaced on some of them and | ||
104 | + is additionally either missing or undeclared on some other platforms: | ||
105 | + | ||
106 | + #if @GNULIB_FOO@ | ||
107 | + # if @REPLACE_FOO@ | ||
108 | + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
109 | + # undef foo | ||
110 | + # define foo rpl_foo | ||
111 | + # endif | ||
112 | + _GL_FUNCDECL_RPL (foo, ...); | ||
113 | + _GL_CXXALIAS_RPL (foo, ...); | ||
114 | + # else | ||
115 | + # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@ | ||
116 | + _GL_FUNCDECL_SYS (foo, ...); | ||
117 | + # endif | ||
118 | + _GL_CXXALIAS_SYS (foo, ...); | ||
119 | + # endif | ||
120 | + _GL_CXXALIASWARN (foo); | ||
121 | + #elif defined GNULIB_POSIXCHECK | ||
122 | + ... | ||
123 | + #endif | ||
124 | +*/ | ||
125 | + | ||
126 | +/* _GL_EXTERN_C declaration; | ||
127 | + performs the declaration with C linkage. */ | ||
128 | +#if defined __cplusplus | ||
129 | +# define _GL_EXTERN_C extern "C" | ||
130 | +#else | ||
131 | +# define _GL_EXTERN_C extern | ||
132 | +#endif | ||
133 | + | ||
134 | +/* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes); | ||
135 | + declares a replacement function, named rpl_func, with the given prototype, | ||
136 | + consisting of return type, parameters, and attributes. | ||
137 | + Example: | ||
138 | + _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) | ||
139 | + _GL_ARG_NONNULL ((1))); | ||
140 | + */ | ||
141 | +#define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ | ||
142 | + _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) | ||
143 | +#define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ | ||
144 | + _GL_EXTERN_C rettype rpl_func parameters_and_attributes | ||
145 | + | ||
146 | +/* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes); | ||
147 | + declares the system function, named func, with the given prototype, | ||
148 | + consisting of return type, parameters, and attributes. | ||
149 | + Example: | ||
150 | + _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...) | ||
151 | + _GL_ARG_NONNULL ((1))); | ||
152 | + */ | ||
153 | +#define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ | ||
154 | + _GL_EXTERN_C rettype func parameters_and_attributes | ||
155 | + | ||
156 | +/* _GL_CXXALIAS_RPL (func, rettype, parameters); | ||
157 | + declares a C++ alias called GNULIB_NAMESPACE::func | ||
158 | + that redirects to rpl_func, if GNULIB_NAMESPACE is defined. | ||
159 | + Example: | ||
160 | + _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); | ||
161 | + */ | ||
162 | +#define _GL_CXXALIAS_RPL(func,rettype,parameters) \ | ||
163 | + _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) | ||
164 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
165 | +# define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ | ||
166 | + namespace GNULIB_NAMESPACE \ | ||
167 | + { \ | ||
168 | + rettype (*const func) parameters = ::rpl_func; \ | ||
169 | + } \ | ||
170 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
171 | +#else | ||
172 | +# define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ | ||
173 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
174 | +#endif | ||
175 | + | ||
176 | +/* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); | ||
177 | + is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); | ||
178 | + except that the C function rpl_func may have a slightly different | ||
179 | + declaration. A cast is used to silence the "invalid conversion" error | ||
180 | + that would otherwise occur. */ | ||
181 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
182 | +# define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ | ||
183 | + namespace GNULIB_NAMESPACE \ | ||
184 | + { \ | ||
185 | + rettype (*const func) parameters = \ | ||
186 | + reinterpret_cast<rettype(*)parameters>(::rpl_func); \ | ||
187 | + } \ | ||
188 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
189 | +#else | ||
190 | +# define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ | ||
191 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
192 | +#endif | ||
193 | + | ||
194 | +/* _GL_CXXALIAS_SYS (func, rettype, parameters); | ||
195 | + declares a C++ alias called GNULIB_NAMESPACE::func | ||
196 | + that redirects to the system provided function func, if GNULIB_NAMESPACE | ||
197 | + is defined. | ||
198 | + Example: | ||
199 | + _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); | ||
200 | + */ | ||
201 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
202 | + /* If we were to write | ||
203 | + rettype (*const func) parameters = ::func; | ||
204 | + like above in _GL_CXXALIAS_RPL_1, the compiler could optimize calls | ||
205 | + better (remove an indirection through a 'static' pointer variable), | ||
206 | + but then the _GL_CXXALIASWARN macro below would cause a warning not only | ||
207 | + for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */ | ||
208 | +# define _GL_CXXALIAS_SYS(func,rettype,parameters) \ | ||
209 | + namespace GNULIB_NAMESPACE \ | ||
210 | + { \ | ||
211 | + static rettype (*func) parameters = ::func; \ | ||
212 | + } \ | ||
213 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
214 | +#else | ||
215 | +# define _GL_CXXALIAS_SYS(func,rettype,parameters) \ | ||
216 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
217 | +#endif | ||
218 | + | ||
219 | +/* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters); | ||
220 | + is like _GL_CXXALIAS_SYS (func, rettype, parameters); | ||
221 | + except that the C function func may have a slightly different declaration. | ||
222 | + A cast is used to silence the "invalid conversion" error that would | ||
223 | + otherwise occur. */ | ||
224 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
225 | +# define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ | ||
226 | + namespace GNULIB_NAMESPACE \ | ||
227 | + { \ | ||
228 | + static rettype (*func) parameters = \ | ||
229 | + reinterpret_cast<rettype(*)parameters>(::func); \ | ||
230 | + } \ | ||
231 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
232 | +#else | ||
233 | +# define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ | ||
234 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
235 | +#endif | ||
236 | + | ||
237 | +/* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2); | ||
238 | + is like _GL_CXXALIAS_SYS (func, rettype, parameters); | ||
239 | + except that the C function is picked among a set of overloaded functions, | ||
240 | + namely the one with rettype2 and parameters2. Two consecutive casts | ||
241 | + are used to silence the "cannot find a match" and "invalid conversion" | ||
242 | + errors that would otherwise occur. */ | ||
243 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
244 | + /* The outer cast must be a reinterpret_cast. | ||
245 | + The inner cast: When the function is defined as a set of overloaded | ||
246 | + functions, it works as a static_cast<>, choosing the designated variant. | ||
247 | + When the function is defined as a single variant, it works as a | ||
248 | + reinterpret_cast<>. The parenthesized cast syntax works both ways. */ | ||
249 | +# define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ | ||
250 | + namespace GNULIB_NAMESPACE \ | ||
251 | + { \ | ||
252 | + static rettype (*func) parameters = \ | ||
253 | + reinterpret_cast<rettype(*)parameters>( \ | ||
254 | + (rettype2(*)parameters2)(::func)); \ | ||
255 | + } \ | ||
256 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
257 | +#else | ||
258 | +# define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ | ||
259 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
260 | +#endif | ||
261 | + | ||
262 | +/* _GL_CXXALIASWARN (func); | ||
263 | + causes a warning to be emitted when ::func is used but not when | ||
264 | + GNULIB_NAMESPACE::func is used. func must be defined without overloaded | ||
265 | + variants. */ | ||
266 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
267 | +# define _GL_CXXALIASWARN(func) \ | ||
268 | + _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) | ||
269 | +# define _GL_CXXALIASWARN_1(func,namespace) \ | ||
270 | + _GL_CXXALIASWARN_2 (func, namespace) | ||
271 | +/* To work around GCC bug <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, | ||
272 | + we enable the warning only when not optimizing. */ | ||
273 | +# if !__OPTIMIZE__ | ||
274 | +# define _GL_CXXALIASWARN_2(func,namespace) \ | ||
275 | + _GL_WARN_ON_USE (func, \ | ||
276 | + "The symbol ::" #func " refers to the system function. " \ | ||
277 | + "Use " #namespace "::" #func " instead.") | ||
278 | +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
279 | +# define _GL_CXXALIASWARN_2(func,namespace) \ | ||
280 | + extern __typeof__ (func) func | ||
281 | +# else | ||
282 | +# define _GL_CXXALIASWARN_2(func,namespace) \ | ||
283 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
284 | +# endif | ||
285 | +#else | ||
286 | +# define _GL_CXXALIASWARN(func) \ | ||
287 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
288 | +#endif | ||
289 | + | ||
290 | +/* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes); | ||
291 | + causes a warning to be emitted when the given overloaded variant of ::func | ||
292 | + is used but not when GNULIB_NAMESPACE::func is used. */ | ||
293 | +#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
294 | +# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ | ||
295 | + _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ | ||
296 | + GNULIB_NAMESPACE) | ||
297 | +# define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ | ||
298 | + _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) | ||
299 | +/* To work around GCC bug <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, | ||
300 | + we enable the warning only when not optimizing. */ | ||
301 | +# if !__OPTIMIZE__ | ||
302 | +# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | ||
303 | + _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ | ||
304 | + "The symbol ::" #func " refers to the system function. " \ | ||
305 | + "Use " #namespace "::" #func " instead.") | ||
306 | +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
307 | +# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | ||
308 | + extern __typeof__ (func) func | ||
309 | +# else | ||
310 | +# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | ||
311 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
312 | +# endif | ||
313 | +#else | ||
314 | +# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ | ||
315 | + _GL_EXTERN_C int _gl_cxxalias_dummy | ||
316 | +#endif | ||
317 | + | ||
318 | +#endif /* _GL_CXXDEFS_H */ | ||
319 | diff -Naurp libiconv-1.14.org//build-aux/snippet/arg-nonnull.h libiconv-1.14/build-aux/snippet/arg-nonnull.h | ||
320 | --- libiconv-1.14.org//build-aux/snippet/arg-nonnull.h 2011-08-07 06:22:07.000000000 -0700 | ||
321 | +++ libiconv-1.14/build-aux/snippet/arg-nonnull.h 1969-12-31 16:00:00.000000000 -0800 | ||
322 | @@ -1,26 +0,0 @@ | ||
323 | -/* A C macro for declaring that specific arguments must not be NULL. | ||
324 | - Copyright (C) 2009-2011 Free Software Foundation, Inc. | ||
325 | - | ||
326 | - This program is free software: you can redistribute it and/or modify it | ||
327 | - under the terms of the GNU General Public License as published | ||
328 | - by the Free Software Foundation; either version 3 of the License, or | ||
329 | - (at your option) any later version. | ||
330 | - | ||
331 | - This program is distributed in the hope that it will be useful, | ||
332 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
333 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
334 | - General Public License for more details. | ||
335 | - | ||
336 | - You should have received a copy of the GNU General Public License | ||
337 | - along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
338 | - | ||
339 | -/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools | ||
340 | - that the values passed as arguments n, ..., m must be non-NULL pointers. | ||
341 | - n = 1 stands for the first argument, n = 2 for the second argument etc. */ | ||
342 | -#ifndef _GL_ARG_NONNULL | ||
343 | -# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 | ||
344 | -# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) | ||
345 | -# else | ||
346 | -# define _GL_ARG_NONNULL(params) | ||
347 | -# endif | ||
348 | -#endif | ||
349 | diff -Naurp libiconv-1.14.org//build-aux/snippet/c++defs.h libiconv-1.14/build-aux/snippet/c++defs.h | ||
350 | --- libiconv-1.14.org//build-aux/snippet/c++defs.h 2011-08-07 06:22:07.000000000 -0700 | ||
351 | +++ libiconv-1.14/build-aux/snippet/c++defs.h 1969-12-31 16:00:00.000000000 -0800 | ||
352 | @@ -1,271 +0,0 @@ | ||
353 | -/* C++ compatible function declaration macros. | ||
354 | - Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
355 | - | ||
356 | - This program is free software: you can redistribute it and/or modify it | ||
357 | - under the terms of the GNU General Public License as published | ||
358 | - by the Free Software Foundation; either version 3 of the License, or | ||
359 | - (at your option) any later version. | ||
360 | - | ||
361 | - This program is distributed in the hope that it will be useful, | ||
362 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
363 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
364 | - General Public License for more details. | ||
365 | - | ||
366 | - You should have received a copy of the GNU General Public License | ||
367 | - along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
368 | - | ||
369 | -#ifndef _GL_CXXDEFS_H | ||
370 | -#define _GL_CXXDEFS_H | ||
371 | - | ||
372 | -/* The three most frequent use cases of these macros are: | ||
373 | - | ||
374 | - * For providing a substitute for a function that is missing on some | ||
375 | - platforms, but is declared and works fine on the platforms on which | ||
376 | - it exists: | ||
377 | - | ||
378 | - #if @GNULIB_FOO@ | ||
379 | - # if !@HAVE_FOO@ | ||
380 | - _GL_FUNCDECL_SYS (foo, ...); | ||
381 | - # endif | ||
382 | - _GL_CXXALIAS_SYS (foo, ...); | ||
383 | - _GL_CXXALIASWARN (foo); | ||
384 | - #elif defined GNULIB_POSIXCHECK | ||
385 | - ... | ||
386 | - #endif | ||
387 | - | ||
388 | - * For providing a replacement for a function that exists on all platforms, | ||
389 | - but is broken/insufficient and needs to be replaced on some platforms: | ||
390 | - | ||
391 | - #if @GNULIB_FOO@ | ||
392 | - # if @REPLACE_FOO@ | ||
393 | - # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
394 | - # undef foo | ||
395 | - # define foo rpl_foo | ||
396 | - # endif | ||
397 | - _GL_FUNCDECL_RPL (foo, ...); | ||
398 | - _GL_CXXALIAS_RPL (foo, ...); | ||
399 | - # else | ||
400 | - _GL_CXXALIAS_SYS (foo, ...); | ||
401 | - # endif | ||
402 | - _GL_CXXALIASWARN (foo); | ||
403 | - #elif defined GNULIB_POSIXCHECK | ||
404 | - ... | ||
405 | - #endif | ||
406 | - | ||
407 | - * For providing a replacement for a function that exists on some platforms | ||
408 | - but is broken/insufficient and needs to be replaced on some of them and | ||
409 | - is additionally either missing or undeclared on some other platforms: | ||
410 | - | ||
411 | - #if @GNULIB_FOO@ | ||
412 | - # if @REPLACE_FOO@ | ||
413 | - # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
414 | - # undef foo | ||
415 | - # define foo rpl_foo | ||
416 | - # endif | ||
417 | - _GL_FUNCDECL_RPL (foo, ...); | ||
418 | - _GL_CXXALIAS_RPL (foo, ...); | ||
419 | - # else | ||
420 | - # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@ | ||
421 | - _GL_FUNCDECL_SYS (foo, ...); | ||
422 | - # endif | ||
423 | - _GL_CXXALIAS_SYS (foo, ...); | ||
424 | - # endif | ||
425 | - _GL_CXXALIASWARN (foo); | ||
426 | - #elif defined GNULIB_POSIXCHECK | ||
427 | - ... | ||
428 | - #endif | ||
429 | -*/ | ||
430 | - | ||
431 | -/* _GL_EXTERN_C declaration; | ||
432 | - performs the declaration with C linkage. */ | ||
433 | -#if defined __cplusplus | ||
434 | -# define _GL_EXTERN_C extern "C" | ||
435 | -#else | ||
436 | -# define _GL_EXTERN_C extern | ||
437 | -#endif | ||
438 | - | ||
439 | -/* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes); | ||
440 | - declares a replacement function, named rpl_func, with the given prototype, | ||
441 | - consisting of return type, parameters, and attributes. | ||
442 | - Example: | ||
443 | - _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) | ||
444 | - _GL_ARG_NONNULL ((1))); | ||
445 | - */ | ||
446 | -#define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ | ||
447 | - _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) | ||
448 | -#define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ | ||
449 | - _GL_EXTERN_C rettype rpl_func parameters_and_attributes | ||
450 | - | ||
451 | -/* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes); | ||
452 | - declares the system function, named func, with the given prototype, | ||
453 | - consisting of return type, parameters, and attributes. | ||
454 | - Example: | ||
455 | - _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...) | ||
456 | - _GL_ARG_NONNULL ((1))); | ||
457 | - */ | ||
458 | -#define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ | ||
459 | - _GL_EXTERN_C rettype func parameters_and_attributes | ||
460 | - | ||
461 | -/* _GL_CXXALIAS_RPL (func, rettype, parameters); | ||
462 | - declares a C++ alias called GNULIB_NAMESPACE::func | ||
463 | - that redirects to rpl_func, if GNULIB_NAMESPACE is defined. | ||
464 | - Example: | ||
465 | - _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); | ||
466 | - */ | ||
467 | -#define _GL_CXXALIAS_RPL(func,rettype,parameters) \ | ||
468 | - _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) | ||
469 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
470 | -# define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ | ||
471 | - namespace GNULIB_NAMESPACE \ | ||
472 | - { \ | ||
473 | - rettype (*const func) parameters = ::rpl_func; \ | ||
474 | - } \ | ||
475 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
476 | -#else | ||
477 | -# define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ | ||
478 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
479 | -#endif | ||
480 | - | ||
481 | -/* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); | ||
482 | - is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); | ||
483 | - except that the C function rpl_func may have a slightly different | ||
484 | - declaration. A cast is used to silence the "invalid conversion" error | ||
485 | - that would otherwise occur. */ | ||
486 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
487 | -# define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ | ||
488 | - namespace GNULIB_NAMESPACE \ | ||
489 | - { \ | ||
490 | - rettype (*const func) parameters = \ | ||
491 | - reinterpret_cast<rettype(*)parameters>(::rpl_func); \ | ||
492 | - } \ | ||
493 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
494 | -#else | ||
495 | -# define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ | ||
496 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
497 | -#endif | ||
498 | - | ||
499 | -/* _GL_CXXALIAS_SYS (func, rettype, parameters); | ||
500 | - declares a C++ alias called GNULIB_NAMESPACE::func | ||
501 | - that redirects to the system provided function func, if GNULIB_NAMESPACE | ||
502 | - is defined. | ||
503 | - Example: | ||
504 | - _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); | ||
505 | - */ | ||
506 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
507 | - /* If we were to write | ||
508 | - rettype (*const func) parameters = ::func; | ||
509 | - like above in _GL_CXXALIAS_RPL_1, the compiler could optimize calls | ||
510 | - better (remove an indirection through a 'static' pointer variable), | ||
511 | - but then the _GL_CXXALIASWARN macro below would cause a warning not only | ||
512 | - for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */ | ||
513 | -# define _GL_CXXALIAS_SYS(func,rettype,parameters) \ | ||
514 | - namespace GNULIB_NAMESPACE \ | ||
515 | - { \ | ||
516 | - static rettype (*func) parameters = ::func; \ | ||
517 | - } \ | ||
518 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
519 | -#else | ||
520 | -# define _GL_CXXALIAS_SYS(func,rettype,parameters) \ | ||
521 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
522 | -#endif | ||
523 | - | ||
524 | -/* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters); | ||
525 | - is like _GL_CXXALIAS_SYS (func, rettype, parameters); | ||
526 | - except that the C function func may have a slightly different declaration. | ||
527 | - A cast is used to silence the "invalid conversion" error that would | ||
528 | - otherwise occur. */ | ||
529 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
530 | -# define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ | ||
531 | - namespace GNULIB_NAMESPACE \ | ||
532 | - { \ | ||
533 | - static rettype (*func) parameters = \ | ||
534 | - reinterpret_cast<rettype(*)parameters>(::func); \ | ||
535 | - } \ | ||
536 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
537 | -#else | ||
538 | -# define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ | ||
539 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
540 | -#endif | ||
541 | - | ||
542 | -/* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2); | ||
543 | - is like _GL_CXXALIAS_SYS (func, rettype, parameters); | ||
544 | - except that the C function is picked among a set of overloaded functions, | ||
545 | - namely the one with rettype2 and parameters2. Two consecutive casts | ||
546 | - are used to silence the "cannot find a match" and "invalid conversion" | ||
547 | - errors that would otherwise occur. */ | ||
548 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
549 | - /* The outer cast must be a reinterpret_cast. | ||
550 | - The inner cast: When the function is defined as a set of overloaded | ||
551 | - functions, it works as a static_cast<>, choosing the designated variant. | ||
552 | - When the function is defined as a single variant, it works as a | ||
553 | - reinterpret_cast<>. The parenthesized cast syntax works both ways. */ | ||
554 | -# define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ | ||
555 | - namespace GNULIB_NAMESPACE \ | ||
556 | - { \ | ||
557 | - static rettype (*func) parameters = \ | ||
558 | - reinterpret_cast<rettype(*)parameters>( \ | ||
559 | - (rettype2(*)parameters2)(::func)); \ | ||
560 | - } \ | ||
561 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
562 | -#else | ||
563 | -# define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ | ||
564 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
565 | -#endif | ||
566 | - | ||
567 | -/* _GL_CXXALIASWARN (func); | ||
568 | - causes a warning to be emitted when ::func is used but not when | ||
569 | - GNULIB_NAMESPACE::func is used. func must be defined without overloaded | ||
570 | - variants. */ | ||
571 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
572 | -# define _GL_CXXALIASWARN(func) \ | ||
573 | - _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) | ||
574 | -# define _GL_CXXALIASWARN_1(func,namespace) \ | ||
575 | - _GL_CXXALIASWARN_2 (func, namespace) | ||
576 | -/* To work around GCC bug <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, | ||
577 | - we enable the warning only when not optimizing. */ | ||
578 | -# if !__OPTIMIZE__ | ||
579 | -# define _GL_CXXALIASWARN_2(func,namespace) \ | ||
580 | - _GL_WARN_ON_USE (func, \ | ||
581 | - "The symbol ::" #func " refers to the system function. " \ | ||
582 | - "Use " #namespace "::" #func " instead.") | ||
583 | -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
584 | -# define _GL_CXXALIASWARN_2(func,namespace) \ | ||
585 | - extern __typeof__ (func) func | ||
586 | -# else | ||
587 | -# define _GL_CXXALIASWARN_2(func,namespace) \ | ||
588 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
589 | -# endif | ||
590 | -#else | ||
591 | -# define _GL_CXXALIASWARN(func) \ | ||
592 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
593 | -#endif | ||
594 | - | ||
595 | -/* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes); | ||
596 | - causes a warning to be emitted when the given overloaded variant of ::func | ||
597 | - is used but not when GNULIB_NAMESPACE::func is used. */ | ||
598 | -#if defined __cplusplus && defined GNULIB_NAMESPACE | ||
599 | -# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ | ||
600 | - _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ | ||
601 | - GNULIB_NAMESPACE) | ||
602 | -# define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ | ||
603 | - _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) | ||
604 | -/* To work around GCC bug <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, | ||
605 | - we enable the warning only when not optimizing. */ | ||
606 | -# if !__OPTIMIZE__ | ||
607 | -# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | ||
608 | - _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ | ||
609 | - "The symbol ::" #func " refers to the system function. " \ | ||
610 | - "Use " #namespace "::" #func " instead.") | ||
611 | -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
612 | -# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | ||
613 | - extern __typeof__ (func) func | ||
614 | -# else | ||
615 | -# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | ||
616 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
617 | -# endif | ||
618 | -#else | ||
619 | -# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ | ||
620 | - _GL_EXTERN_C int _gl_cxxalias_dummy | ||
621 | -#endif | ||
622 | - | ||
623 | -#endif /* _GL_CXXDEFS_H */ | ||
624 | diff -Naurp libiconv-1.14.org//build-aux/snippet/_Noreturn.h libiconv-1.14/build-aux/snippet/_Noreturn.h | ||
625 | --- libiconv-1.14.org//build-aux/snippet/_Noreturn.h 2011-08-07 06:22:07.000000000 -0700 | ||
626 | +++ libiconv-1.14/build-aux/snippet/_Noreturn.h 1969-12-31 16:00:00.000000000 -0800 | ||
627 | @@ -1,10 +0,0 @@ | ||
628 | -#ifndef _Noreturn | ||
629 | -# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ | ||
630 | - || 0x5110 <= __SUNPRO_C) | ||
631 | -# define _Noreturn __attribute__ ((__noreturn__)) | ||
632 | -# elif 1200 <= _MSC_VER | ||
633 | -# define _Noreturn __declspec (noreturn) | ||
634 | -# else | ||
635 | -# define _Noreturn | ||
636 | -# endif | ||
637 | -#endif | ||
638 | diff -Naurp libiconv-1.14.org//build-aux/snippet/warn-on-use.h libiconv-1.14/build-aux/snippet/warn-on-use.h | ||
639 | --- libiconv-1.14.org//build-aux/snippet/warn-on-use.h 2011-08-07 06:22:07.000000000 -0700 | ||
640 | +++ libiconv-1.14/build-aux/snippet/warn-on-use.h 1969-12-31 16:00:00.000000000 -0800 | ||
641 | @@ -1,109 +0,0 @@ | ||
642 | -/* A C macro for emitting warnings if a function is used. | ||
643 | - Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
644 | - | ||
645 | - This program is free software: you can redistribute it and/or modify it | ||
646 | - under the terms of the GNU General Public License as published | ||
647 | - by the Free Software Foundation; either version 3 of the License, or | ||
648 | - (at your option) any later version. | ||
649 | - | ||
650 | - This program is distributed in the hope that it will be useful, | ||
651 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
652 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
653 | - General Public License for more details. | ||
654 | - | ||
655 | - You should have received a copy of the GNU General Public License | ||
656 | - along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
657 | - | ||
658 | -/* _GL_WARN_ON_USE (function, "literal string") issues a declaration | ||
659 | - for FUNCTION which will then trigger a compiler warning containing | ||
660 | - the text of "literal string" anywhere that function is called, if | ||
661 | - supported by the compiler. If the compiler does not support this | ||
662 | - feature, the macro expands to an unused extern declaration. | ||
663 | - | ||
664 | - This macro is useful for marking a function as a potential | ||
665 | - portability trap, with the intent that "literal string" include | ||
666 | - instructions on the replacement function that should be used | ||
667 | - instead. However, one of the reasons that a function is a | ||
668 | - portability trap is if it has the wrong signature. Declaring | ||
669 | - FUNCTION with a different signature in C is a compilation error, so | ||
670 | - this macro must use the same type as any existing declaration so | ||
671 | - that programs that avoid the problematic FUNCTION do not fail to | ||
672 | - compile merely because they included a header that poisoned the | ||
673 | - function. But this implies that _GL_WARN_ON_USE is only safe to | ||
674 | - use if FUNCTION is known to already have a declaration. Use of | ||
675 | - this macro implies that there must not be any other macro hiding | ||
676 | - the declaration of FUNCTION; but undefining FUNCTION first is part | ||
677 | - of the poisoning process anyway (although for symbols that are | ||
678 | - provided only via a macro, the result is a compilation error rather | ||
679 | - than a warning containing "literal string"). Also note that in | ||
680 | - C++, it is only safe to use if FUNCTION has no overloads. | ||
681 | - | ||
682 | - For an example, it is possible to poison 'getline' by: | ||
683 | - - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]], | ||
684 | - [getline]) in configure.ac, which potentially defines | ||
685 | - HAVE_RAW_DECL_GETLINE | ||
686 | - - adding this code to a header that wraps the system <stdio.h>: | ||
687 | - #undef getline | ||
688 | - #if HAVE_RAW_DECL_GETLINE | ||
689 | - _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" | ||
690 | - "not universally present; use the gnulib module getline"); | ||
691 | - #endif | ||
692 | - | ||
693 | - It is not possible to directly poison global variables. But it is | ||
694 | - possible to write a wrapper accessor function, and poison that | ||
695 | - (less common usage, like &environ, will cause a compilation error | ||
696 | - rather than issue the nice warning, but the end result of informing | ||
697 | - the developer about their portability problem is still achieved): | ||
698 | - #if HAVE_RAW_DECL_ENVIRON | ||
699 | - static inline char ***rpl_environ (void) { return &environ; } | ||
700 | - _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); | ||
701 | - # undef environ | ||
702 | - # define environ (*rpl_environ ()) | ||
703 | - #endif | ||
704 | - */ | ||
705 | -#ifndef _GL_WARN_ON_USE | ||
706 | - | ||
707 | -# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) | ||
708 | -/* A compiler attribute is available in gcc versions 4.3.0 and later. */ | ||
709 | -# define _GL_WARN_ON_USE(function, message) \ | ||
710 | -extern __typeof__ (function) function __attribute__ ((__warning__ (message))) | ||
711 | -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
712 | -/* Verify the existence of the function. */ | ||
713 | -# define _GL_WARN_ON_USE(function, message) \ | ||
714 | -extern __typeof__ (function) function | ||
715 | -# else /* Unsupported. */ | ||
716 | -# define _GL_WARN_ON_USE(function, message) \ | ||
717 | -_GL_WARN_EXTERN_C int _gl_warn_on_use | ||
718 | -# endif | ||
719 | -#endif | ||
720 | - | ||
721 | -/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string") | ||
722 | - is like _GL_WARN_ON_USE (function, "string"), except that the function is | ||
723 | - declared with the given prototype, consisting of return type, parameters, | ||
724 | - and attributes. | ||
725 | - This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does | ||
726 | - not work in this case. */ | ||
727 | -#ifndef _GL_WARN_ON_USE_CXX | ||
728 | -# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) | ||
729 | -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
730 | -extern rettype function parameters_and_attributes \ | ||
731 | - __attribute__ ((__warning__ (msg))) | ||
732 | -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
733 | -/* Verify the existence of the function. */ | ||
734 | -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
735 | -extern rettype function parameters_and_attributes | ||
736 | -# else /* Unsupported. */ | ||
737 | -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
738 | -_GL_WARN_EXTERN_C int _gl_warn_on_use | ||
739 | -# endif | ||
740 | -#endif | ||
741 | - | ||
742 | -/* _GL_WARN_EXTERN_C declaration; | ||
743 | - performs the declaration with C linkage. */ | ||
744 | -#ifndef _GL_WARN_EXTERN_C | ||
745 | -# if defined __cplusplus | ||
746 | -# define _GL_WARN_EXTERN_C extern "C" | ||
747 | -# else | ||
748 | -# define _GL_WARN_EXTERN_C extern | ||
749 | -# endif | ||
750 | -#endif | ||
751 | diff -Naurp libiconv-1.14.org//build-aux/warn-on-use.h libiconv-1.14/build-aux/warn-on-use.h | ||
752 | --- libiconv-1.14.org//build-aux/warn-on-use.h 1969-12-31 16:00:00.000000000 -0800 | ||
753 | +++ libiconv-1.14/build-aux/warn-on-use.h 2012-01-08 02:07:39.950484439 -0800 | ||
754 | @@ -0,0 +1,109 @@ | ||
755 | +/* A C macro for emitting warnings if a function is used. | ||
756 | + Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
757 | + | ||
758 | + This program is free software: you can redistribute it and/or modify it | ||
759 | + under the terms of the GNU General Public License as published | ||
760 | + by the Free Software Foundation; either version 3 of the License, or | ||
761 | + (at your option) any later version. | ||
762 | + | ||
763 | + This program is distributed in the hope that it will be useful, | ||
764 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
765 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
766 | + General Public License for more details. | ||
767 | + | ||
768 | + You should have received a copy of the GNU General Public License | ||
769 | + along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
770 | + | ||
771 | +/* _GL_WARN_ON_USE (function, "literal string") issues a declaration | ||
772 | + for FUNCTION which will then trigger a compiler warning containing | ||
773 | + the text of "literal string" anywhere that function is called, if | ||
774 | + supported by the compiler. If the compiler does not support this | ||
775 | + feature, the macro expands to an unused extern declaration. | ||
776 | + | ||
777 | + This macro is useful for marking a function as a potential | ||
778 | + portability trap, with the intent that "literal string" include | ||
779 | + instructions on the replacement function that should be used | ||
780 | + instead. However, one of the reasons that a function is a | ||
781 | + portability trap is if it has the wrong signature. Declaring | ||
782 | + FUNCTION with a different signature in C is a compilation error, so | ||
783 | + this macro must use the same type as any existing declaration so | ||
784 | + that programs that avoid the problematic FUNCTION do not fail to | ||
785 | + compile merely because they included a header that poisoned the | ||
786 | + function. But this implies that _GL_WARN_ON_USE is only safe to | ||
787 | + use if FUNCTION is known to already have a declaration. Use of | ||
788 | + this macro implies that there must not be any other macro hiding | ||
789 | + the declaration of FUNCTION; but undefining FUNCTION first is part | ||
790 | + of the poisoning process anyway (although for symbols that are | ||
791 | + provided only via a macro, the result is a compilation error rather | ||
792 | + than a warning containing "literal string"). Also note that in | ||
793 | + C++, it is only safe to use if FUNCTION has no overloads. | ||
794 | + | ||
795 | + For an example, it is possible to poison 'getline' by: | ||
796 | + - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]], | ||
797 | + [getline]) in configure.ac, which potentially defines | ||
798 | + HAVE_RAW_DECL_GETLINE | ||
799 | + - adding this code to a header that wraps the system <stdio.h>: | ||
800 | + #undef getline | ||
801 | + #if HAVE_RAW_DECL_GETLINE | ||
802 | + _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" | ||
803 | + "not universally present; use the gnulib module getline"); | ||
804 | + #endif | ||
805 | + | ||
806 | + It is not possible to directly poison global variables. But it is | ||
807 | + possible to write a wrapper accessor function, and poison that | ||
808 | + (less common usage, like &environ, will cause a compilation error | ||
809 | + rather than issue the nice warning, but the end result of informing | ||
810 | + the developer about their portability problem is still achieved): | ||
811 | + #if HAVE_RAW_DECL_ENVIRON | ||
812 | + static inline char ***rpl_environ (void) { return &environ; } | ||
813 | + _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); | ||
814 | + # undef environ | ||
815 | + # define environ (*rpl_environ ()) | ||
816 | + #endif | ||
817 | + */ | ||
818 | +#ifndef _GL_WARN_ON_USE | ||
819 | + | ||
820 | +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) | ||
821 | +/* A compiler attribute is available in gcc versions 4.3.0 and later. */ | ||
822 | +# define _GL_WARN_ON_USE(function, message) \ | ||
823 | +extern __typeof__ (function) function __attribute__ ((__warning__ (message))) | ||
824 | +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
825 | +/* Verify the existence of the function. */ | ||
826 | +# define _GL_WARN_ON_USE(function, message) \ | ||
827 | +extern __typeof__ (function) function | ||
828 | +# else /* Unsupported. */ | ||
829 | +# define _GL_WARN_ON_USE(function, message) \ | ||
830 | +_GL_WARN_EXTERN_C int _gl_warn_on_use | ||
831 | +# endif | ||
832 | +#endif | ||
833 | + | ||
834 | +/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string") | ||
835 | + is like _GL_WARN_ON_USE (function, "string"), except that the function is | ||
836 | + declared with the given prototype, consisting of return type, parameters, | ||
837 | + and attributes. | ||
838 | + This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does | ||
839 | + not work in this case. */ | ||
840 | +#ifndef _GL_WARN_ON_USE_CXX | ||
841 | +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) | ||
842 | +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
843 | +extern rettype function parameters_and_attributes \ | ||
844 | + __attribute__ ((__warning__ (msg))) | ||
845 | +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING | ||
846 | +/* Verify the existence of the function. */ | ||
847 | +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
848 | +extern rettype function parameters_and_attributes | ||
849 | +# else /* Unsupported. */ | ||
850 | +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ | ||
851 | +_GL_WARN_EXTERN_C int _gl_warn_on_use | ||
852 | +# endif | ||
853 | +#endif | ||
854 | + | ||
855 | +/* _GL_WARN_EXTERN_C declaration; | ||
856 | + performs the declaration with C linkage. */ | ||
857 | +#ifndef _GL_WARN_EXTERN_C | ||
858 | +# if defined __cplusplus | ||
859 | +# define _GL_WARN_EXTERN_C extern "C" | ||
860 | +# else | ||
861 | +# define _GL_WARN_EXTERN_C extern | ||
862 | +# endif | ||
863 | +#endif | ||
864 | diff -Naurp libiconv-1.14.org//srclib/allocator.h libiconv-1.14/srclib/allocator.h | ||
865 | --- libiconv-1.14.org//srclib/allocator.h 2011-08-07 06:42:06.000000000 -0700 | ||
866 | +++ libiconv-1.14/srclib/allocator.h 2012-01-08 02:07:40.050484444 -0800 | ||
867 | @@ -45,11 +45,10 @@ struct allocator | ||
868 | /* Call FREE to free memory, like 'free'. */ | ||
869 | void (*free) (void *); | ||
870 | |||
871 | - /* If nonnull, call DIE (SIZE) if MALLOC (SIZE) or REALLOC (..., | ||
872 | - SIZE) fails. DIE should not return. SIZE should equal SIZE_MAX | ||
873 | - if size_t overflow was detected while calculating sizes to be | ||
874 | - passed to MALLOC or REALLOC. */ | ||
875 | - void (*die) (size_t); | ||
876 | + /* If nonnull, call DIE if MALLOC or REALLOC fails. DIE should not | ||
877 | + return. DIE can be used by code that detects memory overflow | ||
878 | + while calculating sizes to be passed to MALLOC or REALLOC. */ | ||
879 | + void (*die) (void); | ||
880 | }; | ||
881 | |||
882 | /* An allocator using the stdlib functions and a null DIE function. */ | ||
883 | diff -Naurp libiconv-1.14.org//srclib/canonicalize-lgpl.c libiconv-1.14/srclib/canonicalize-lgpl.c | ||
884 | --- libiconv-1.14.org//srclib/canonicalize-lgpl.c 2011-08-07 06:42:06.000000000 -0700 | ||
885 | +++ libiconv-1.14/srclib/canonicalize-lgpl.c 2012-01-08 02:07:40.094484446 -0800 | ||
886 | @@ -125,7 +125,7 @@ __realpath (const char *name, char *reso | ||
887 | #else | ||
888 | path_max = pathconf (name, _PC_PATH_MAX); | ||
889 | if (path_max <= 0) | ||
890 | - path_max = 8192; | ||
891 | + path_max = 1024; | ||
892 | #endif | ||
893 | |||
894 | if (resolved == NULL) | ||
895 | diff -Naurp libiconv-1.14.org//srclib/careadlinkat.c libiconv-1.14/srclib/careadlinkat.c | ||
896 | --- libiconv-1.14.org//srclib/careadlinkat.c 2011-08-07 06:42:06.000000000 -0700 | ||
897 | +++ libiconv-1.14/srclib/careadlinkat.c 2012-01-08 02:07:40.102484445 -0800 | ||
898 | @@ -133,7 +133,6 @@ careadlinkat (int fd, char const *filena | ||
899 | if (buf == stack_buf) | ||
900 | { | ||
901 | char *b = (char *) alloc->allocate (link_size); | ||
902 | - buf_size = link_size; | ||
903 | if (! b) | ||
904 | break; | ||
905 | memcpy (b, buf, link_size); | ||
906 | @@ -157,11 +156,6 @@ careadlinkat (int fd, char const *filena | ||
907 | buf_size *= 2; | ||
908 | else if (buf_size < buf_size_max) | ||
909 | buf_size = buf_size_max; | ||
910 | - else if (buf_size_max < SIZE_MAX) | ||
911 | - { | ||
912 | - errno = ENAMETOOLONG; | ||
913 | - return NULL; | ||
914 | - } | ||
915 | else | ||
916 | break; | ||
917 | buf = (char *) alloc->allocate (buf_size); | ||
918 | @@ -169,7 +163,7 @@ careadlinkat (int fd, char const *filena | ||
919 | while (buf); | ||
920 | |||
921 | if (alloc->die) | ||
922 | - alloc->die (buf_size); | ||
923 | + alloc->die (); | ||
924 | errno = ENOMEM; | ||
925 | return NULL; | ||
926 | } | ||
927 | diff -Naurp libiconv-1.14.org//srclib/errno.in.h libiconv-1.14/srclib/errno.in.h | ||
928 | --- libiconv-1.14.org//srclib/errno.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
929 | +++ libiconv-1.14/srclib/errno.in.h 2012-01-08 02:07:40.122484446 -0800 | ||
930 | @@ -16,7 +16,7 @@ | ||
931 | along with this program; if not, write to the Free Software Foundation, | ||
932 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | ||
933 | |||
934 | -#ifndef _@GUARD_PREFIX@_ERRNO_H | ||
935 | +#ifndef _GL_ERRNO_H | ||
936 | |||
937 | #if __GNUC__ >= 3 | ||
938 | @PRAGMA_SYSTEM_HEADER@ | ||
939 | @@ -26,8 +26,8 @@ | ||
940 | /* The include_next requires a split double-inclusion guard. */ | ||
941 | #@INCLUDE_NEXT@ @NEXT_ERRNO_H@ | ||
942 | |||
943 | -#ifndef _@GUARD_PREFIX@_ERRNO_H | ||
944 | -#define _@GUARD_PREFIX@_ERRNO_H | ||
945 | +#ifndef _GL_ERRNO_H | ||
946 | +#define _GL_ERRNO_H | ||
947 | |||
948 | |||
949 | /* On native Windows platforms, many macros are not defined. */ | ||
950 | @@ -147,16 +147,6 @@ | ||
951 | # define GNULIB_defined_ENOTSUP 1 | ||
952 | # endif | ||
953 | |||
954 | -# ifndef ENETRESET | ||
955 | -# define ENETRESET 2011 | ||
956 | -# define GNULIB_defined_ENETRESET 1 | ||
957 | -# endif | ||
958 | - | ||
959 | -# ifndef ECONNABORTED | ||
960 | -# define ECONNABORTED 2012 | ||
961 | -# define GNULIB_defined_ECONNABORTED 1 | ||
962 | -# endif | ||
963 | - | ||
964 | # ifndef ESTALE | ||
965 | # define ESTALE 2009 | ||
966 | # define GNULIB_defined_ESTALE 1 | ||
967 | @@ -173,5 +163,5 @@ | ||
968 | # endif | ||
969 | |||
970 | |||
971 | -#endif /* _@GUARD_PREFIX@_ERRNO_H */ | ||
972 | -#endif /* _@GUARD_PREFIX@_ERRNO_H */ | ||
973 | +#endif /* _GL_ERRNO_H */ | ||
974 | +#endif /* _GL_ERRNO_H */ | ||
975 | diff -Naurp libiconv-1.14.org//srclib/error.c libiconv-1.14/srclib/error.c | ||
976 | --- libiconv-1.14.org//srclib/error.c 2011-08-07 06:42:06.000000000 -0700 | ||
977 | +++ libiconv-1.14/srclib/error.c 2012-01-08 02:07:40.134484448 -0800 | ||
978 | @@ -97,15 +97,11 @@ extern void __error_at_line (int status, | ||
979 | /* The gnulib override of fcntl is not needed in this file. */ | ||
980 | # undef fcntl | ||
981 | |||
982 | -# if !HAVE_DECL_STRERROR_R | ||
983 | +# if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P | ||
984 | # ifndef HAVE_DECL_STRERROR_R | ||
985 | "this configure-time declaration test was not run" | ||
986 | # endif | ||
987 | -# if STRERROR_R_CHAR_P | ||
988 | char *strerror_r (); | ||
989 | -# else | ||
990 | -int strerror_r (); | ||
991 | -# endif | ||
992 | # endif | ||
993 | |||
994 | /* The calling program should define program_name and set it to the | ||
995 | diff -Naurp libiconv-1.14.org//srclib/fcntl.in.h libiconv-1.14/srclib/fcntl.in.h | ||
996 | --- libiconv-1.14.org//srclib/fcntl.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
997 | +++ libiconv-1.14/srclib/fcntl.in.h 2012-01-08 02:07:40.154484449 -0800 | ||
998 | @@ -40,7 +40,7 @@ | ||
999 | #else | ||
1000 | /* Normal invocation convention. */ | ||
1001 | |||
1002 | -#ifndef _@GUARD_PREFIX@_FCNTL_H | ||
1003 | +#ifndef _GL_FCNTL_H | ||
1004 | |||
1005 | #include <sys/types.h> | ||
1006 | /* On some systems other than glibc, <sys/stat.h> is a prerequisite of | ||
1007 | @@ -55,8 +55,8 @@ | ||
1008 | /* The include_next requires a split double-inclusion guard. */ | ||
1009 | #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ | ||
1010 | |||
1011 | -#ifndef _@GUARD_PREFIX@_FCNTL_H | ||
1012 | -#define _@GUARD_PREFIX@_FCNTL_H | ||
1013 | +#ifndef _GL_FCNTL_H | ||
1014 | +#define _GL_FCNTL_H | ||
1015 | |||
1016 | #ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ | ||
1017 | # include <unistd.h> | ||
1018 | @@ -320,6 +320,6 @@ _GL_WARN_ON_USE (openat, "openat is not | ||
1019 | #endif | ||
1020 | |||
1021 | |||
1022 | -#endif /* _@GUARD_PREFIX@_FCNTL_H */ | ||
1023 | -#endif /* _@GUARD_PREFIX@_FCNTL_H */ | ||
1024 | +#endif /* _GL_FCNTL_H */ | ||
1025 | +#endif /* _GL_FCNTL_H */ | ||
1026 | #endif | ||
1027 | diff -Naurp libiconv-1.14.org//srclib/intprops.h libiconv-1.14/srclib/intprops.h | ||
1028 | --- libiconv-1.14.org//srclib/intprops.h 2011-08-07 06:42:06.000000000 -0700 | ||
1029 | +++ libiconv-1.14/srclib/intprops.h 2012-01-08 02:07:40.174484450 -0800 | ||
1030 | @@ -22,13 +22,14 @@ | ||
1031 | |||
1032 | #include <limits.h> | ||
1033 | |||
1034 | -/* Return an integer value, converted to the same type as the integer | ||
1035 | - expression E after integer type promotion. V is the unconverted value. */ | ||
1036 | -#define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) | ||
1037 | +/* Return a integer value, converted to the same type as the integer | ||
1038 | + expression E after integer type promotion. V is the unconverted value. | ||
1039 | + E should not have side effects. */ | ||
1040 | +#define _GL_INT_CONVERT(e, v) ((e) - (e) + (v)) | ||
1041 | |||
1042 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see | ||
1043 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>. */ | ||
1044 | -#define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) | ||
1045 | +#define _GL_INT_NEGATE_CONVERT(e, v) ((e) - (e) - (v)) | ||
1046 | |||
1047 | /* The extra casts in the following macros work around compiler bugs, | ||
1048 | e.g., in Cray C 5.0.3.0. */ | ||
1049 | @@ -52,7 +53,7 @@ | ||
1050 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) | ||
1051 | |||
1052 | /* Return 1 if the integer expression E, after integer promotion, has | ||
1053 | - a signed type. */ | ||
1054 | + a signed type. E should not have side effects. */ | ||
1055 | #define _GL_INT_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) | ||
1056 | |||
1057 | |||
1058 | @@ -310,10 +311,13 @@ | ||
1059 | /* Return 1 if the expression A <op> B would overflow, | ||
1060 | where OP_RESULT_OVERFLOW (A, B, MIN, MAX) does the actual test, | ||
1061 | assuming MIN and MAX are the minimum and maximum for the result type. | ||
1062 | - Arguments should be free of side effects. */ | ||
1063 | + | ||
1064 | + This macro assumes that A | B is a valid integer if both A and B are, | ||
1065 | + which is true of all known practical hosts. If this is a problem | ||
1066 | + for you, please let us know how to fix it for your host. */ | ||
1067 | #define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \ | ||
1068 | op_result_overflow (a, b, \ | ||
1069 | - _GL_INT_MINIMUM (0 * (b) + (a)), \ | ||
1070 | - _GL_INT_MAXIMUM (0 * (b) + (a))) | ||
1071 | + _GL_INT_MINIMUM ((a) | (b)), \ | ||
1072 | + _GL_INT_MAXIMUM ((a) | (b))) | ||
1073 | |||
1074 | #endif /* _GL_INTPROPS_H */ | ||
1075 | diff -Naurp libiconv-1.14.org//srclib/Makefile.gnulib libiconv-1.14/srclib/Makefile.gnulib | ||
1076 | --- libiconv-1.14.org//srclib/Makefile.gnulib 2012-01-08 02:05:18.754477606 -0800 | ||
1077 | +++ libiconv-1.14/srclib/Makefile.gnulib 2012-01-08 02:07:43.138484592 -0800 | ||
1078 | @@ -9,7 +9,7 @@ | ||
1079 | # the same distribution terms as the rest of that program. | ||
1080 | # | ||
1081 | # Generated by gnulib-tool. | ||
1082 | -# Reproduce by: gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libicrt --source-base=srclib --m4-base=srcm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --makefile-name=Makefile.gnulib --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files binary-io error gettext gettext-h libiconv-misc mbstate memmove progname relocatable-prog safe-read sigpipe stdio stdlib strerror unistd uniwidth/width unlocked-io xalloc | ||
1083 | +# Reproduce by: gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libicrt --source-base=srclib --m4-base=srcm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --makefile-name=Makefile.gnulib --no-libtool --macro-prefix=gl --no-vc-files binary-io error gettext gettext-h libiconv-misc mbstate memmove progname relocatable relocatable-prog safe-read sigpipe stdio stdlib strerror unistd uniwidth/width unlocked-io xalloc | ||
1084 | |||
1085 | |||
1086 | MOSTLYCLEANFILES += core *.stackdump | ||
1087 | @@ -60,12 +60,60 @@ EXTRA_DIST += areadlink.h | ||
1088 | |||
1089 | ## end gnulib module areadlink | ||
1090 | |||
1091 | +## begin gnulib module arg-nonnull | ||
1092 | + | ||
1093 | +# The BUILT_SOURCES created by this Makefile snippet are not used via #include | ||
1094 | +# statements but through direct file reference. Therefore this snippet must be | ||
1095 | +# present in all Makefile.am that need it. This is ensured by the applicability | ||
1096 | +# 'all' defined above. | ||
1097 | + | ||
1098 | +BUILT_SOURCES += arg-nonnull.h | ||
1099 | +# The arg-nonnull.h that gets inserted into generated .h files is the same as | ||
1100 | +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. | ||
1101 | +arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h | ||
1102 | + $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1103 | + sed -n -e '/GL_ARG_NONNULL/,$$p' \ | ||
1104 | + < $(top_srcdir)/build-aux/arg-nonnull.h \ | ||
1105 | + > $@-t && \ | ||
1106 | + mv $@-t $@ | ||
1107 | +MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t | ||
1108 | + | ||
1109 | +ARG_NONNULL_H=arg-nonnull.h | ||
1110 | + | ||
1111 | +EXTRA_DIST += $(top_srcdir)/build-aux/arg-nonnull.h | ||
1112 | + | ||
1113 | +## end gnulib module arg-nonnull | ||
1114 | + | ||
1115 | ## begin gnulib module binary-io | ||
1116 | |||
1117 | libicrt_a_SOURCES += binary-io.h | ||
1118 | |||
1119 | ## end gnulib module binary-io | ||
1120 | |||
1121 | +## begin gnulib module c++defs | ||
1122 | + | ||
1123 | +# The BUILT_SOURCES created by this Makefile snippet are not used via #include | ||
1124 | +# statements but through direct file reference. Therefore this snippet must be | ||
1125 | +# present in all Makefile.am that need it. This is ensured by the applicability | ||
1126 | +# 'all' defined above. | ||
1127 | + | ||
1128 | +BUILT_SOURCES += c++defs.h | ||
1129 | +# The c++defs.h that gets inserted into generated .h files is the same as | ||
1130 | +# build-aux/c++defs.h, except that it has the copyright header cut off. | ||
1131 | +c++defs.h: $(top_srcdir)/build-aux/c++defs.h | ||
1132 | + $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1133 | + sed -n -e '/_GL_CXXDEFS/,$$p' \ | ||
1134 | + < $(top_srcdir)/build-aux/c++defs.h \ | ||
1135 | + > $@-t && \ | ||
1136 | + mv $@-t $@ | ||
1137 | +MOSTLYCLEANFILES += c++defs.h c++defs.h-t | ||
1138 | + | ||
1139 | +CXXDEFS_H=c++defs.h | ||
1140 | + | ||
1141 | +EXTRA_DIST += $(top_srcdir)/build-aux/c++defs.h | ||
1142 | + | ||
1143 | +## end gnulib module c++defs | ||
1144 | + | ||
1145 | ## begin gnulib module canonicalize-lgpl | ||
1146 | |||
1147 | |||
1148 | @@ -100,8 +148,7 @@ if GL_GENERATE_ERRNO_H | ||
1149 | errno.h: errno.in.h $(top_builddir)/config.status | ||
1150 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1151 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1152 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1153 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1154 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1155 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1156 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1157 | -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ | ||
1158 | @@ -142,15 +189,14 @@ BUILT_SOURCES += fcntl.h | ||
1159 | fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1160 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1161 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
1162 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1163 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1164 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1165 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1166 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1167 | -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ | ||
1168 | - -e 's/@''GNULIB_FCNTL''@/$(GNULIB_FCNTL)/g' \ | ||
1169 | - -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \ | ||
1170 | - -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \ | ||
1171 | - -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \ | ||
1172 | + -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \ | ||
1173 | + -e 's|@''GNULIB_NONBLOCKING''@|$(GNULIB_NONBLOCKING)|g' \ | ||
1174 | + -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \ | ||
1175 | + -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \ | ||
1176 | -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ | ||
1177 | -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ | ||
1178 | -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ | ||
1179 | @@ -297,7 +343,7 @@ EXTRA_DIST += $(top_srcdir)/build-aux/co | ||
1180 | ## begin gnulib module relocatable-prog-wrapper | ||
1181 | |||
1182 | |||
1183 | -EXTRA_DIST += allocator.c allocator.h areadlink.c areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c careadlinkat.c careadlinkat.h malloca.c malloca.h progname.c progname.h progreloc.c readlink.c relocatable.c relocatable.h relocwrapper.c setenv.c | ||
1184 | +EXTRA_DIST += allocator.c allocator.h areadlink.c areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c careadlinkat.c careadlinkat.h malloca.c malloca.h progname.c progname.h progreloc.c readlink.c relocatable.c relocatable.h relocwrapper.c setenv.c strerror.c | ||
1185 | |||
1186 | EXTRA_DIST += $(top_srcdir)/build-aux/install-reloc | ||
1187 | |||
1188 | @@ -305,9 +351,10 @@ EXTRA_DIST += $(top_srcdir)/build-aux/in | ||
1189 | |||
1190 | ## begin gnulib module safe-read | ||
1191 | |||
1192 | -libicrt_a_SOURCES += safe-read.c | ||
1193 | |||
1194 | -EXTRA_DIST += safe-read.h | ||
1195 | +EXTRA_DIST += safe-read.c safe-read.h | ||
1196 | + | ||
1197 | +EXTRA_libicrt_a_SOURCES += safe-read.c | ||
1198 | |||
1199 | ## end gnulib module safe-read | ||
1200 | |||
1201 | @@ -320,24 +367,20 @@ BUILT_SOURCES += signal.h | ||
1202 | signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1203 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1204 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1205 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1206 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1207 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1208 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1209 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1210 | -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ | ||
1211 | - -e 's|@''GNULIB_PTHREAD_SIGMASK''@|$(GNULIB_PTHREAD_SIGMASK)|g' \ | ||
1212 | - -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \ | ||
1213 | - -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \ | ||
1214 | - -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \ | ||
1215 | + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ | ||
1216 | + -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ | ||
1217 | + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ | ||
1218 | -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ | ||
1219 | - -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \ | ||
1220 | -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ | ||
1221 | -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ | ||
1222 | -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ | ||
1223 | -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ | ||
1224 | -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ | ||
1225 | -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \ | ||
1226 | - -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \ | ||
1227 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
1228 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
1229 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ | ||
1230 | @@ -368,87 +411,6 @@ EXTRA_libicrt_a_SOURCES += sigprocmask.c | ||
1231 | |||
1232 | ## end gnulib module sigprocmask | ||
1233 | |||
1234 | -## begin gnulib module snippet/_Noreturn | ||
1235 | - | ||
1236 | -# Because this Makefile snippet defines a variable used by other | ||
1237 | -# gnulib Makefile snippets, it must be present in all Makefile.am that | ||
1238 | -# need it. This is ensured by the applicability 'all' defined above. | ||
1239 | - | ||
1240 | -_NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h | ||
1241 | - | ||
1242 | -EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h | ||
1243 | - | ||
1244 | -## end gnulib module snippet/_Noreturn | ||
1245 | - | ||
1246 | -## begin gnulib module snippet/arg-nonnull | ||
1247 | - | ||
1248 | -# The BUILT_SOURCES created by this Makefile snippet are not used via #include | ||
1249 | -# statements but through direct file reference. Therefore this snippet must be | ||
1250 | -# present in all Makefile.am that need it. This is ensured by the applicability | ||
1251 | -# 'all' defined above. | ||
1252 | - | ||
1253 | -BUILT_SOURCES += arg-nonnull.h | ||
1254 | -# The arg-nonnull.h that gets inserted into generated .h files is the same as | ||
1255 | -# build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut | ||
1256 | -# off. | ||
1257 | -arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h | ||
1258 | - $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1259 | - sed -n -e '/GL_ARG_NONNULL/,$$p' \ | ||
1260 | - < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \ | ||
1261 | - > $@-t && \ | ||
1262 | - mv $@-t $@ | ||
1263 | -MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t | ||
1264 | - | ||
1265 | -ARG_NONNULL_H=arg-nonnull.h | ||
1266 | - | ||
1267 | -EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h | ||
1268 | - | ||
1269 | -## end gnulib module snippet/arg-nonnull | ||
1270 | - | ||
1271 | -## begin gnulib module snippet/c++defs | ||
1272 | - | ||
1273 | -# The BUILT_SOURCES created by this Makefile snippet are not used via #include | ||
1274 | -# statements but through direct file reference. Therefore this snippet must be | ||
1275 | -# present in all Makefile.am that need it. This is ensured by the applicability | ||
1276 | -# 'all' defined above. | ||
1277 | - | ||
1278 | -BUILT_SOURCES += c++defs.h | ||
1279 | -# The c++defs.h that gets inserted into generated .h files is the same as | ||
1280 | -# build-aux/snippet/c++defs.h, except that it has the copyright header cut off. | ||
1281 | -c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h | ||
1282 | - $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1283 | - sed -n -e '/_GL_CXXDEFS/,$$p' \ | ||
1284 | - < $(top_srcdir)/build-aux/snippet/c++defs.h \ | ||
1285 | - > $@-t && \ | ||
1286 | - mv $@-t $@ | ||
1287 | -MOSTLYCLEANFILES += c++defs.h c++defs.h-t | ||
1288 | - | ||
1289 | -CXXDEFS_H=c++defs.h | ||
1290 | - | ||
1291 | -EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h | ||
1292 | - | ||
1293 | -## end gnulib module snippet/c++defs | ||
1294 | - | ||
1295 | -## begin gnulib module snippet/warn-on-use | ||
1296 | - | ||
1297 | -BUILT_SOURCES += warn-on-use.h | ||
1298 | -# The warn-on-use.h that gets inserted into generated .h files is the same as | ||
1299 | -# build-aux/snippet/warn-on-use.h, except that it has the copyright header cut | ||
1300 | -# off. | ||
1301 | -warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h | ||
1302 | - $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1303 | - sed -n -e '/^.ifndef/,$$p' \ | ||
1304 | - < $(top_srcdir)/build-aux/snippet/warn-on-use.h \ | ||
1305 | - > $@-t && \ | ||
1306 | - mv $@-t $@ | ||
1307 | -MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t | ||
1308 | - | ||
1309 | -WARN_ON_USE_H=warn-on-use.h | ||
1310 | - | ||
1311 | -EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h | ||
1312 | - | ||
1313 | -## end gnulib module snippet/warn-on-use | ||
1314 | - | ||
1315 | ## begin gnulib module stat | ||
1316 | |||
1317 | |||
1318 | @@ -491,8 +453,7 @@ if GL_GENERATE_STDDEF_H | ||
1319 | stddef.h: stddef.in.h $(top_builddir)/config.status | ||
1320 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1321 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1322 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1323 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1324 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1325 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1326 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1327 | -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ | ||
1328 | @@ -521,8 +482,7 @@ if GL_GENERATE_STDINT_H | ||
1329 | stdint.h: stdint.in.h $(top_builddir)/config.status | ||
1330 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1331 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
1332 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1333 | - -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ | ||
1334 | + sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ | ||
1335 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1336 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1337 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1338 | @@ -570,63 +530,62 @@ BUILT_SOURCES += stdio.h | ||
1339 | stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1340 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1341 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1342 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1343 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1344 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1345 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1346 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1347 | -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ | ||
1348 | - -e 's/@''GNULIB_DPRINTF''@/$(GNULIB_DPRINTF)/g' \ | ||
1349 | - -e 's/@''GNULIB_FCLOSE''@/$(GNULIB_FCLOSE)/g' \ | ||
1350 | - -e 's/@''GNULIB_FFLUSH''@/$(GNULIB_FFLUSH)/g' \ | ||
1351 | - -e 's/@''GNULIB_FGETC''@/$(GNULIB_FGETC)/g' \ | ||
1352 | - -e 's/@''GNULIB_FGETS''@/$(GNULIB_FGETS)/g' \ | ||
1353 | - -e 's/@''GNULIB_FOPEN''@/$(GNULIB_FOPEN)/g' \ | ||
1354 | - -e 's/@''GNULIB_FPRINTF''@/$(GNULIB_FPRINTF)/g' \ | ||
1355 | - -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GNULIB_FPRINTF_POSIX)/g' \ | ||
1356 | - -e 's/@''GNULIB_FPURGE''@/$(GNULIB_FPURGE)/g' \ | ||
1357 | - -e 's/@''GNULIB_FPUTC''@/$(GNULIB_FPUTC)/g' \ | ||
1358 | - -e 's/@''GNULIB_FPUTS''@/$(GNULIB_FPUTS)/g' \ | ||
1359 | - -e 's/@''GNULIB_FREAD''@/$(GNULIB_FREAD)/g' \ | ||
1360 | - -e 's/@''GNULIB_FREOPEN''@/$(GNULIB_FREOPEN)/g' \ | ||
1361 | - -e 's/@''GNULIB_FSCANF''@/$(GNULIB_FSCANF)/g' \ | ||
1362 | - -e 's/@''GNULIB_FSEEK''@/$(GNULIB_FSEEK)/g' \ | ||
1363 | - -e 's/@''GNULIB_FSEEKO''@/$(GNULIB_FSEEKO)/g' \ | ||
1364 | - -e 's/@''GNULIB_FTELL''@/$(GNULIB_FTELL)/g' \ | ||
1365 | - -e 's/@''GNULIB_FTELLO''@/$(GNULIB_FTELLO)/g' \ | ||
1366 | - -e 's/@''GNULIB_FWRITE''@/$(GNULIB_FWRITE)/g' \ | ||
1367 | - -e 's/@''GNULIB_GETC''@/$(GNULIB_GETC)/g' \ | ||
1368 | - -e 's/@''GNULIB_GETCHAR''@/$(GNULIB_GETCHAR)/g' \ | ||
1369 | - -e 's/@''GNULIB_GETDELIM''@/$(GNULIB_GETDELIM)/g' \ | ||
1370 | - -e 's/@''GNULIB_GETLINE''@/$(GNULIB_GETLINE)/g' \ | ||
1371 | - -e 's/@''GNULIB_GETS''@/$(GNULIB_GETS)/g' \ | ||
1372 | - -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GNULIB_OBSTACK_PRINTF)/g' \ | ||
1373 | - -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GNULIB_OBSTACK_PRINTF_POSIX)/g' \ | ||
1374 | - -e 's/@''GNULIB_PERROR''@/$(GNULIB_PERROR)/g' \ | ||
1375 | - -e 's/@''GNULIB_POPEN''@/$(GNULIB_POPEN)/g' \ | ||
1376 | - -e 's/@''GNULIB_PRINTF''@/$(GNULIB_PRINTF)/g' \ | ||
1377 | - -e 's/@''GNULIB_PRINTF_POSIX''@/$(GNULIB_PRINTF_POSIX)/g' \ | ||
1378 | - -e 's/@''GNULIB_PUTC''@/$(GNULIB_PUTC)/g' \ | ||
1379 | - -e 's/@''GNULIB_PUTCHAR''@/$(GNULIB_PUTCHAR)/g' \ | ||
1380 | - -e 's/@''GNULIB_PUTS''@/$(GNULIB_PUTS)/g' \ | ||
1381 | - -e 's/@''GNULIB_REMOVE''@/$(GNULIB_REMOVE)/g' \ | ||
1382 | - -e 's/@''GNULIB_RENAME''@/$(GNULIB_RENAME)/g' \ | ||
1383 | - -e 's/@''GNULIB_RENAMEAT''@/$(GNULIB_RENAMEAT)/g' \ | ||
1384 | - -e 's/@''GNULIB_SCANF''@/$(GNULIB_SCANF)/g' \ | ||
1385 | - -e 's/@''GNULIB_SNPRINTF''@/$(GNULIB_SNPRINTF)/g' \ | ||
1386 | - -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GNULIB_SPRINTF_POSIX)/g' \ | ||
1387 | - -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GNULIB_STDIO_H_NONBLOCKING)/g' \ | ||
1388 | - -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GNULIB_STDIO_H_SIGPIPE)/g' \ | ||
1389 | - -e 's/@''GNULIB_TMPFILE''@/$(GNULIB_TMPFILE)/g' \ | ||
1390 | - -e 's/@''GNULIB_VASPRINTF''@/$(GNULIB_VASPRINTF)/g' \ | ||
1391 | - -e 's/@''GNULIB_VDPRINTF''@/$(GNULIB_VDPRINTF)/g' \ | ||
1392 | - -e 's/@''GNULIB_VFPRINTF''@/$(GNULIB_VFPRINTF)/g' \ | ||
1393 | - -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GNULIB_VFPRINTF_POSIX)/g' \ | ||
1394 | - -e 's/@''GNULIB_VFSCANF''@/$(GNULIB_VFSCANF)/g' \ | ||
1395 | - -e 's/@''GNULIB_VSCANF''@/$(GNULIB_VSCANF)/g' \ | ||
1396 | - -e 's/@''GNULIB_VPRINTF''@/$(GNULIB_VPRINTF)/g' \ | ||
1397 | - -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GNULIB_VPRINTF_POSIX)/g' \ | ||
1398 | - -e 's/@''GNULIB_VSNPRINTF''@/$(GNULIB_VSNPRINTF)/g' \ | ||
1399 | - -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GNULIB_VSPRINTF_POSIX)/g' \ | ||
1400 | + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ | ||
1401 | + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ | ||
1402 | + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ | ||
1403 | + -e 's|@''GNULIB_FGETC''@|$(GNULIB_FGETC)|g' \ | ||
1404 | + -e 's|@''GNULIB_FGETS''@|$(GNULIB_FGETS)|g' \ | ||
1405 | + -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ | ||
1406 | + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ | ||
1407 | + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ | ||
1408 | + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ | ||
1409 | + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ | ||
1410 | + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ | ||
1411 | + -e 's|@''GNULIB_FREAD''@|$(GNULIB_FREAD)|g' \ | ||
1412 | + -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ | ||
1413 | + -e 's|@''GNULIB_FSCANF''@|$(GNULIB_FSCANF)|g' \ | ||
1414 | + -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ | ||
1415 | + -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ | ||
1416 | + -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ | ||
1417 | + -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ | ||
1418 | + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ | ||
1419 | + -e 's|@''GNULIB_GETC''@|$(GNULIB_GETC)|g' \ | ||
1420 | + -e 's|@''GNULIB_GETCHAR''@|$(GNULIB_GETCHAR)|g' \ | ||
1421 | + -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ | ||
1422 | + -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ | ||
1423 | + -e 's|@''GNULIB_GETS''@|$(GNULIB_GETS)|g' \ | ||
1424 | + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ | ||
1425 | + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ | ||
1426 | + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ | ||
1427 | + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ | ||
1428 | + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ | ||
1429 | + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ | ||
1430 | + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ | ||
1431 | + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ | ||
1432 | + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ | ||
1433 | + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ | ||
1434 | + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ | ||
1435 | + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ | ||
1436 | + -e 's|@''GNULIB_SCANF''@|$(GNULIB_SCANF)|g' \ | ||
1437 | + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ | ||
1438 | + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ | ||
1439 | + -e 's|@''GNULIB_STDIO_H_NONBLOCKING''@|$(GNULIB_STDIO_H_NONBLOCKING)|g' \ | ||
1440 | + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ | ||
1441 | + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ | ||
1442 | + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ | ||
1443 | + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ | ||
1444 | + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ | ||
1445 | + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ | ||
1446 | + -e 's|@''GNULIB_VFSCANF''@|$(GNULIB_VFSCANF)|g' \ | ||
1447 | + -e 's|@''GNULIB_VSCANF''@|$(GNULIB_VSCANF)|g' \ | ||
1448 | + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ | ||
1449 | + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ | ||
1450 | + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ | ||
1451 | + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ | ||
1452 | < $(srcdir)/stdio.in.h | \ | ||
1453 | sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ | ||
1454 | -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ | ||
1455 | @@ -691,43 +650,41 @@ BUILT_SOURCES += stdlib.h | ||
1456 | |||
1457 | # We need the following in order to create <stdlib.h> when the system | ||
1458 | # doesn't have one that works with the given compiler. | ||
1459 | -stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ | ||
1460 | - $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1461 | +stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1462 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1463 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1464 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1465 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1466 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1467 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1468 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1469 | -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ | ||
1470 | - -e 's/@''GNULIB__EXIT''@/$(GNULIB__EXIT)/g' \ | ||
1471 | - -e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \ | ||
1472 | - -e 's/@''GNULIB_CALLOC_POSIX''@/$(GNULIB_CALLOC_POSIX)/g' \ | ||
1473 | - -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GNULIB_CANONICALIZE_FILE_NAME)/g' \ | ||
1474 | - -e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \ | ||
1475 | - -e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \ | ||
1476 | - -e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \ | ||
1477 | - -e 's/@''GNULIB_MALLOC_POSIX''@/$(GNULIB_MALLOC_POSIX)/g' \ | ||
1478 | - -e 's/@''GNULIB_MBTOWC''@/$(GNULIB_MBTOWC)/g' \ | ||
1479 | - -e 's/@''GNULIB_MKDTEMP''@/$(GNULIB_MKDTEMP)/g' \ | ||
1480 | - -e 's/@''GNULIB_MKOSTEMP''@/$(GNULIB_MKOSTEMP)/g' \ | ||
1481 | - -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \ | ||
1482 | - -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \ | ||
1483 | - -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \ | ||
1484 | - -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \ | ||
1485 | - -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \ | ||
1486 | - -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \ | ||
1487 | - -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \ | ||
1488 | - -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \ | ||
1489 | - -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \ | ||
1490 | - -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \ | ||
1491 | - -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \ | ||
1492 | - -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \ | ||
1493 | - -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \ | ||
1494 | - -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \ | ||
1495 | - -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \ | ||
1496 | - -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \ | ||
1497 | - -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \ | ||
1498 | + -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \ | ||
1499 | + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ | ||
1500 | + -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ | ||
1501 | + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ | ||
1502 | + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ | ||
1503 | + -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ | ||
1504 | + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ | ||
1505 | + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ | ||
1506 | + -e 's|@''GNULIB_MBTOWC''@|$(GNULIB_MBTOWC)|g' \ | ||
1507 | + -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ | ||
1508 | + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ | ||
1509 | + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ | ||
1510 | + -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ | ||
1511 | + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ | ||
1512 | + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ | ||
1513 | + -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ | ||
1514 | + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ | ||
1515 | + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ | ||
1516 | + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ | ||
1517 | + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ | ||
1518 | + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ | ||
1519 | + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ | ||
1520 | + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ | ||
1521 | + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ | ||
1522 | + -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \ | ||
1523 | + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ | ||
1524 | + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ | ||
1525 | + -e 's|@''GNULIB_WCTOMB''@|$(GNULIB_WCTOMB)|g' \ | ||
1526 | < $(srcdir)/stdlib.in.h | \ | ||
1527 | sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ | ||
1528 | -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ | ||
1529 | @@ -766,7 +723,6 @@ stdlib.h: stdlib.in.h $(top_builddir)/co | ||
1530 | -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ | ||
1531 | -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ | ||
1532 | -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ | ||
1533 | - -e '/definition of _Noreturn/r $(_NORETURN_H)' \ | ||
1534 | -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ | ||
1535 | -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ | ||
1536 | } > $@-t && \ | ||
1537 | @@ -793,15 +749,6 @@ EXTRA_libicrt_a_SOURCES += strerror.c | ||
1538 | |||
1539 | ## end gnulib module strerror | ||
1540 | |||
1541 | -## begin gnulib module strerror-override | ||
1542 | - | ||
1543 | - | ||
1544 | -EXTRA_DIST += strerror-override.c strerror-override.h | ||
1545 | - | ||
1546 | -EXTRA_libicrt_a_SOURCES += strerror-override.c | ||
1547 | - | ||
1548 | -## end gnulib module strerror-override | ||
1549 | - | ||
1550 | ## begin gnulib module string | ||
1551 | |||
1552 | BUILT_SOURCES += string.h | ||
1553 | @@ -811,52 +758,47 @@ BUILT_SOURCES += string.h | ||
1554 | string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1555 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1556 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1557 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1558 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1559 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1560 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1561 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1562 | -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ | ||
1563 | - -e 's/@''GNULIB_FFSL''@/$(GNULIB_FFSL)/g' \ | ||
1564 | - -e 's/@''GNULIB_FFSLL''@/$(GNULIB_FFSLL)/g' \ | ||
1565 | - -e 's/@''GNULIB_MBSLEN''@/$(GNULIB_MBSLEN)/g' \ | ||
1566 | - -e 's/@''GNULIB_MBSNLEN''@/$(GNULIB_MBSNLEN)/g' \ | ||
1567 | - -e 's/@''GNULIB_MBSCHR''@/$(GNULIB_MBSCHR)/g' \ | ||
1568 | - -e 's/@''GNULIB_MBSRCHR''@/$(GNULIB_MBSRCHR)/g' \ | ||
1569 | - -e 's/@''GNULIB_MBSSTR''@/$(GNULIB_MBSSTR)/g' \ | ||
1570 | - -e 's/@''GNULIB_MBSCASECMP''@/$(GNULIB_MBSCASECMP)/g' \ | ||
1571 | - -e 's/@''GNULIB_MBSNCASECMP''@/$(GNULIB_MBSNCASECMP)/g' \ | ||
1572 | - -e 's/@''GNULIB_MBSPCASECMP''@/$(GNULIB_MBSPCASECMP)/g' \ | ||
1573 | - -e 's/@''GNULIB_MBSCASESTR''@/$(GNULIB_MBSCASESTR)/g' \ | ||
1574 | - -e 's/@''GNULIB_MBSCSPN''@/$(GNULIB_MBSCSPN)/g' \ | ||
1575 | - -e 's/@''GNULIB_MBSPBRK''@/$(GNULIB_MBSPBRK)/g' \ | ||
1576 | - -e 's/@''GNULIB_MBSSPN''@/$(GNULIB_MBSSPN)/g' \ | ||
1577 | - -e 's/@''GNULIB_MBSSEP''@/$(GNULIB_MBSSEP)/g' \ | ||
1578 | - -e 's/@''GNULIB_MBSTOK_R''@/$(GNULIB_MBSTOK_R)/g' \ | ||
1579 | - -e 's/@''GNULIB_MEMCHR''@/$(GNULIB_MEMCHR)/g' \ | ||
1580 | - -e 's/@''GNULIB_MEMMEM''@/$(GNULIB_MEMMEM)/g' \ | ||
1581 | - -e 's/@''GNULIB_MEMPCPY''@/$(GNULIB_MEMPCPY)/g' \ | ||
1582 | - -e 's/@''GNULIB_MEMRCHR''@/$(GNULIB_MEMRCHR)/g' \ | ||
1583 | - -e 's/@''GNULIB_RAWMEMCHR''@/$(GNULIB_RAWMEMCHR)/g' \ | ||
1584 | - -e 's/@''GNULIB_STPCPY''@/$(GNULIB_STPCPY)/g' \ | ||
1585 | - -e 's/@''GNULIB_STPNCPY''@/$(GNULIB_STPNCPY)/g' \ | ||
1586 | - -e 's/@''GNULIB_STRCHRNUL''@/$(GNULIB_STRCHRNUL)/g' \ | ||
1587 | - -e 's/@''GNULIB_STRDUP''@/$(GNULIB_STRDUP)/g' \ | ||
1588 | - -e 's/@''GNULIB_STRNCAT''@/$(GNULIB_STRNCAT)/g' \ | ||
1589 | - -e 's/@''GNULIB_STRNDUP''@/$(GNULIB_STRNDUP)/g' \ | ||
1590 | - -e 's/@''GNULIB_STRNLEN''@/$(GNULIB_STRNLEN)/g' \ | ||
1591 | - -e 's/@''GNULIB_STRPBRK''@/$(GNULIB_STRPBRK)/g' \ | ||
1592 | - -e 's/@''GNULIB_STRSEP''@/$(GNULIB_STRSEP)/g' \ | ||
1593 | - -e 's/@''GNULIB_STRSTR''@/$(GNULIB_STRSTR)/g' \ | ||
1594 | - -e 's/@''GNULIB_STRCASESTR''@/$(GNULIB_STRCASESTR)/g' \ | ||
1595 | - -e 's/@''GNULIB_STRTOK_R''@/$(GNULIB_STRTOK_R)/g' \ | ||
1596 | - -e 's/@''GNULIB_STRERROR''@/$(GNULIB_STRERROR)/g' \ | ||
1597 | - -e 's/@''GNULIB_STRERROR_R''@/$(GNULIB_STRERROR_R)/g' \ | ||
1598 | - -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \ | ||
1599 | - -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \ | ||
1600 | + -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ | ||
1601 | + -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ | ||
1602 | + -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \ | ||
1603 | + -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \ | ||
1604 | + -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \ | ||
1605 | + -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \ | ||
1606 | + -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \ | ||
1607 | + -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \ | ||
1608 | + -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \ | ||
1609 | + -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \ | ||
1610 | + -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \ | ||
1611 | + -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ | ||
1612 | + -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ | ||
1613 | + -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ | ||
1614 | + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ | ||
1615 | + -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ | ||
1616 | + -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ | ||
1617 | + -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ | ||
1618 | + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ | ||
1619 | + -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ | ||
1620 | + -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ | ||
1621 | + -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ | ||
1622 | + -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ | ||
1623 | + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ | ||
1624 | + -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ | ||
1625 | + -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ | ||
1626 | + -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ | ||
1627 | + -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ | ||
1628 | + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ | ||
1629 | + -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ | ||
1630 | + -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ | ||
1631 | + -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ | ||
1632 | + -e 's|@''GNULIB_STRERROR_R''@|$(GNULIB_STRERROR_R)|g' \ | ||
1633 | + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ | ||
1634 | + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ | ||
1635 | < $(srcdir)/string.in.h | \ | ||
1636 | - sed -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \ | ||
1637 | - -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \ | ||
1638 | - -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ | ||
1639 | + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ | ||
1640 | -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ | ||
1641 | -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ | ||
1642 | -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ | ||
1643 | @@ -912,23 +854,22 @@ sys/stat.h: sys_stat.in.h $(top_builddir | ||
1644 | $(AM_V_at)$(MKDIR_P) sys | ||
1645 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1646 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
1647 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1648 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1649 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1650 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1651 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1652 | -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ | ||
1653 | - -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \ | ||
1654 | - -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \ | ||
1655 | - -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \ | ||
1656 | - -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \ | ||
1657 | - -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \ | ||
1658 | - -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \ | ||
1659 | - -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \ | ||
1660 | - -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \ | ||
1661 | - -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \ | ||
1662 | - -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \ | ||
1663 | - -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \ | ||
1664 | - -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \ | ||
1665 | + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ | ||
1666 | + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ | ||
1667 | + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ | ||
1668 | + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ | ||
1669 | + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ | ||
1670 | + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ | ||
1671 | + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ | ||
1672 | + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ | ||
1673 | + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ | ||
1674 | + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ | ||
1675 | + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ | ||
1676 | + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ | ||
1677 | -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ | ||
1678 | -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ | ||
1679 | -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ | ||
1680 | @@ -971,16 +912,15 @@ BUILT_SOURCES += time.h | ||
1681 | time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1682 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1683 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | ||
1684 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1685 | - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1686 | + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1687 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1688 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1689 | -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ | ||
1690 | - -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \ | ||
1691 | - -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \ | ||
1692 | - -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \ | ||
1693 | - -e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \ | ||
1694 | - -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \ | ||
1695 | + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ | ||
1696 | + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ | ||
1697 | + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ | ||
1698 | + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ | ||
1699 | + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ | ||
1700 | -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ | ||
1701 | -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ | ||
1702 | -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ | ||
1703 | @@ -1013,56 +953,55 @@ BUILT_SOURCES += unistd.h | ||
1704 | unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) | ||
1705 | $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1706 | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
1707 | - sed -e 's|@''GUARD_PREFIX''@|GL|g' \ | ||
1708 | - -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ | ||
1709 | + sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ | ||
1710 | -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | ||
1711 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | ||
1712 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | ||
1713 | -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ | ||
1714 | - -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \ | ||
1715 | - -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \ | ||
1716 | - -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \ | ||
1717 | - -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \ | ||
1718 | - -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \ | ||
1719 | - -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \ | ||
1720 | - -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \ | ||
1721 | - -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \ | ||
1722 | - -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \ | ||
1723 | - -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \ | ||
1724 | - -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \ | ||
1725 | - -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \ | ||
1726 | - -e 's/@''GNULIB_GETDOMAINNAME''@/$(GNULIB_GETDOMAINNAME)/g' \ | ||
1727 | - -e 's/@''GNULIB_GETDTABLESIZE''@/$(GNULIB_GETDTABLESIZE)/g' \ | ||
1728 | - -e 's/@''GNULIB_GETGROUPS''@/$(GNULIB_GETGROUPS)/g' \ | ||
1729 | - -e 's/@''GNULIB_GETHOSTNAME''@/$(GNULIB_GETHOSTNAME)/g' \ | ||
1730 | - -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \ | ||
1731 | - -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \ | ||
1732 | - -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \ | ||
1733 | - -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \ | ||
1734 | - -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \ | ||
1735 | - -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \ | ||
1736 | - -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \ | ||
1737 | - -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \ | ||
1738 | - -e 's/@''GNULIB_LSEEK''@/$(GNULIB_LSEEK)/g' \ | ||
1739 | - -e 's/@''GNULIB_PIPE''@/$(GNULIB_PIPE)/g' \ | ||
1740 | - -e 's/@''GNULIB_PIPE2''@/$(GNULIB_PIPE2)/g' \ | ||
1741 | - -e 's/@''GNULIB_PREAD''@/$(GNULIB_PREAD)/g' \ | ||
1742 | - -e 's/@''GNULIB_PWRITE''@/$(GNULIB_PWRITE)/g' \ | ||
1743 | - -e 's/@''GNULIB_READ''@/$(GNULIB_READ)/g' \ | ||
1744 | - -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \ | ||
1745 | - -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \ | ||
1746 | - -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \ | ||
1747 | - -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \ | ||
1748 | - -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \ | ||
1749 | - -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \ | ||
1750 | - -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \ | ||
1751 | - -e 's/@''GNULIB_UNISTD_H_GETOPT''@/$(GNULIB_UNISTD_H_GETOPT)/g' \ | ||
1752 | - -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \ | ||
1753 | - -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \ | ||
1754 | - -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \ | ||
1755 | - -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \ | ||
1756 | - -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \ | ||
1757 | - -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \ | ||
1758 | + -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ | ||
1759 | + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ | ||
1760 | + -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ | ||
1761 | + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ | ||
1762 | + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ | ||
1763 | + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ | ||
1764 | + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ | ||
1765 | + -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ | ||
1766 | + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ | ||
1767 | + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ | ||
1768 | + -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ | ||
1769 | + -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ | ||
1770 | + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ | ||
1771 | + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ | ||
1772 | + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ | ||
1773 | + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ | ||
1774 | + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ | ||
1775 | + -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ | ||
1776 | + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ | ||
1777 | + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ | ||
1778 | + -e 's|@''GNULIB_GROUP_MEMBER''@|$(GNULIB_GROUP_MEMBER)|g' \ | ||
1779 | + -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ | ||
1780 | + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ | ||
1781 | + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ | ||
1782 | + -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ | ||
1783 | + -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \ | ||
1784 | + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ | ||
1785 | + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ | ||
1786 | + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ | ||
1787 | + -e 's|@''GNULIB_READ''@|$(GNULIB_READ)|g' \ | ||
1788 | + -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ | ||
1789 | + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ | ||
1790 | + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ | ||
1791 | + -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ | ||
1792 | + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ | ||
1793 | + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ | ||
1794 | + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ | ||
1795 | + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ | ||
1796 | + -e 's|@''GNULIB_UNISTD_H_NONBLOCKING''@|$(GNULIB_UNISTD_H_NONBLOCKING)|g' \ | ||
1797 | + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ | ||
1798 | + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ | ||
1799 | + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ | ||
1800 | + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ | ||
1801 | + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ | ||
1802 | < $(srcdir)/unistd.in.h | \ | ||
1803 | sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ | ||
1804 | -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ | ||
1805 | @@ -1198,6 +1137,25 @@ EXTRA_DIST += verify.h | ||
1806 | |||
1807 | ## end gnulib module verify | ||
1808 | |||
1809 | +## begin gnulib module warn-on-use | ||
1810 | + | ||
1811 | +BUILT_SOURCES += warn-on-use.h | ||
1812 | +# The warn-on-use.h that gets inserted into generated .h files is the same as | ||
1813 | +# build-aux/warn-on-use.h, except that it has the copyright header cut off. | ||
1814 | +warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h | ||
1815 | + $(AM_V_GEN)rm -f $@-t $@ && \ | ||
1816 | + sed -n -e '/^.ifndef/,$$p' \ | ||
1817 | + < $(top_srcdir)/build-aux/warn-on-use.h \ | ||
1818 | + > $@-t && \ | ||
1819 | + mv $@-t $@ | ||
1820 | +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t | ||
1821 | + | ||
1822 | +WARN_ON_USE_H=warn-on-use.h | ||
1823 | + | ||
1824 | +EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h | ||
1825 | + | ||
1826 | +## end gnulib module warn-on-use | ||
1827 | + | ||
1828 | ## begin gnulib module xalloc | ||
1829 | |||
1830 | libicrt_a_SOURCES += xalloc.h xmalloc.c xstrdup.c | ||
1831 | diff -Naurp libiconv-1.14.org//srclib/pathmax.h libiconv-1.14/srclib/pathmax.h | ||
1832 | --- libiconv-1.14.org//srclib/pathmax.h 2011-08-07 06:42:06.000000000 -0700 | ||
1833 | +++ libiconv-1.14/srclib/pathmax.h 2012-01-08 02:07:40.218484451 -0800 | ||
1834 | @@ -19,27 +19,6 @@ | ||
1835 | #ifndef _PATHMAX_H | ||
1836 | # define _PATHMAX_H | ||
1837 | |||
1838 | -/* POSIX:2008 defines PATH_MAX to be the maximum number of bytes in a filename, | ||
1839 | - including the terminating NUL byte. | ||
1840 | - <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html> | ||
1841 | - PATH_MAX is not defined on systems which have no limit on filename length, | ||
1842 | - such as GNU/Hurd. | ||
1843 | - | ||
1844 | - This file does *not* define PATH_MAX always. Programs that use this file | ||
1845 | - can handle the GNU/Hurd case in several ways: | ||
1846 | - - Either with a package-wide handling, or with a per-file handling, | ||
1847 | - - Either through a | ||
1848 | - #ifdef PATH_MAX | ||
1849 | - or through a fallback like | ||
1850 | - #ifndef PATH_MAX | ||
1851 | - # define PATH_MAX 8192 | ||
1852 | - #endif | ||
1853 | - or through a fallback like | ||
1854 | - #ifndef PATH_MAX | ||
1855 | - # define PATH_MAX pathconf ("/", _PC_PATH_MAX) | ||
1856 | - #endif | ||
1857 | - */ | ||
1858 | - | ||
1859 | # include <unistd.h> | ||
1860 | |||
1861 | # include <limits.h> | ||
1862 | @@ -48,6 +27,11 @@ | ||
1863 | # define _POSIX_PATH_MAX 256 | ||
1864 | # endif | ||
1865 | |||
1866 | +# if !defined PATH_MAX && defined _PC_PATH_MAX && defined HAVE_PATHCONF | ||
1867 | +# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ | ||
1868 | + : pathconf ("/", _PC_PATH_MAX)) | ||
1869 | +# endif | ||
1870 | + | ||
1871 | /* Don't include sys/param.h if it already has been. */ | ||
1872 | # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN | ||
1873 | # include <sys/param.h> | ||
1874 | @@ -57,13 +41,8 @@ | ||
1875 | # define PATH_MAX MAXPATHLEN | ||
1876 | # endif | ||
1877 | |||
1878 | -# ifdef __hpux | ||
1879 | -/* On HP-UX, PATH_MAX designates the maximum number of bytes in a filename, | ||
1880 | - *not* including the terminating NUL byte, and is set to 1023. | ||
1881 | - Additionally, when _XOPEN_SOURCE is defined to 500 or more, PATH_MAX is | ||
1882 | - not defined at all any more. */ | ||
1883 | -# undef PATH_MAX | ||
1884 | -# define PATH_MAX 1024 | ||
1885 | +# ifndef PATH_MAX | ||
1886 | +# define PATH_MAX _POSIX_PATH_MAX | ||
1887 | # endif | ||
1888 | |||
1889 | #endif /* _PATHMAX_H */ | ||
1890 | diff -Naurp libiconv-1.14.org//srclib/relocwrapper.c libiconv-1.14/srclib/relocwrapper.c | ||
1891 | --- libiconv-1.14.org//srclib/relocwrapper.c 2011-08-07 06:42:06.000000000 -0700 | ||
1892 | +++ libiconv-1.14/srclib/relocwrapper.c 2012-01-08 02:07:40.282484455 -0800 | ||
1893 | @@ -29,6 +29,7 @@ | ||
1894 | -> relocatable | ||
1895 | -> setenv | ||
1896 | -> malloca | ||
1897 | + -> strerror | ||
1898 | -> c-ctype | ||
1899 | |||
1900 | Macros that need to be set while compiling this file: | ||
1901 | diff -Naurp libiconv-1.14.org//srclib/safe-read.h libiconv-1.14/srclib/safe-read.h | ||
1902 | --- libiconv-1.14.org//srclib/safe-read.h 2011-08-07 06:42:06.000000000 -0700 | ||
1903 | +++ libiconv-1.14/srclib/safe-read.h 2012-01-08 02:07:40.298484455 -0800 | ||
1904 | @@ -14,19 +14,6 @@ | ||
1905 | You should have received a copy of the GNU General Public License | ||
1906 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
1907 | |||
1908 | -/* Some system calls may be interrupted and fail with errno = EINTR in the | ||
1909 | - following situations: | ||
1910 | - - The process is stopped and restarted (signal SIGSTOP and SIGCONT, user | ||
1911 | - types Ctrl-Z) on some platforms: MacOS X. | ||
1912 | - - The process receives a signal for which a signal handler was installed | ||
1913 | - with sigaction() with an sa_flags field that does not contain | ||
1914 | - SA_RESTART. | ||
1915 | - - The process receives a signal for which a signal handler was installed | ||
1916 | - with signal() and for which no call to siginterrupt(sig,0) was done, | ||
1917 | - on some platforms: AIX, HP-UX, IRIX, OSF/1, Solaris. | ||
1918 | - | ||
1919 | - This module provides a wrapper around read() that handles EINTR. */ | ||
1920 | - | ||
1921 | #include <stddef.h> | ||
1922 | |||
1923 | #ifdef __cplusplus | ||
1924 | diff -Naurp libiconv-1.14.org//srclib/signal.in.h libiconv-1.14/srclib/signal.in.h | ||
1925 | --- libiconv-1.14.org//srclib/signal.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
1926 | +++ libiconv-1.14/srclib/signal.in.h 2012-01-08 02:07:40.314484456 -0800 | ||
1927 | @@ -20,49 +20,21 @@ | ||
1928 | #endif | ||
1929 | @PRAGMA_COLUMNS@ | ||
1930 | |||
1931 | -#if defined __need_sig_atomic_t || defined __need_sigset_t || defined _GL_ALREADY_INCLUDING_SIGNAL_H || (defined _SIGNAL_H && !defined __SIZEOF_PTHREAD_MUTEX_T) | ||
1932 | -/* Special invocation convention: | ||
1933 | - - Inside glibc header files. | ||
1934 | - - On glibc systems we have a sequence of nested includes | ||
1935 | - <signal.h> -> <ucontext.h> -> <signal.h>. | ||
1936 | - In this situation, the functions are not yet declared, therefore we cannot | ||
1937 | - provide the C++ aliases. | ||
1938 | - - On glibc systems with GCC 4.3 we have a sequence of nested includes | ||
1939 | - <csignal> -> </usr/include/signal.h> -> <sys/ucontext.h> -> <signal.h>. | ||
1940 | - In this situation, some of the functions are not yet declared, therefore | ||
1941 | - we cannot provide the C++ aliases. */ | ||
1942 | +#if defined __need_sig_atomic_t || defined __need_sigset_t | ||
1943 | +/* Special invocation convention inside glibc header files. */ | ||
1944 | |||
1945 | # @INCLUDE_NEXT@ @NEXT_SIGNAL_H@ | ||
1946 | |||
1947 | #else | ||
1948 | /* Normal invocation convention. */ | ||
1949 | |||
1950 | -#ifndef _@GUARD_PREFIX@_SIGNAL_H | ||
1951 | - | ||
1952 | -#define _GL_ALREADY_INCLUDING_SIGNAL_H | ||
1953 | - | ||
1954 | -/* Define pid_t, uid_t. | ||
1955 | - Also, mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. | ||
1956 | - On Solaris 10, <signal.h> includes <sys/types.h>, which eventually includes | ||
1957 | - us; so include <sys/types.h> now, before the second inclusion guard. */ | ||
1958 | -#include <sys/types.h> | ||
1959 | +#ifndef _GL_SIGNAL_H | ||
1960 | |||
1961 | /* The include_next requires a split double-inclusion guard. */ | ||
1962 | #@INCLUDE_NEXT@ @NEXT_SIGNAL_H@ | ||
1963 | |||
1964 | -#undef _GL_ALREADY_INCLUDING_SIGNAL_H | ||
1965 | - | ||
1966 | -#ifndef _@GUARD_PREFIX@_SIGNAL_H | ||
1967 | -#define _@GUARD_PREFIX@_SIGNAL_H | ||
1968 | - | ||
1969 | -/* MacOS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6 declare | ||
1970 | - pthread_sigmask in <pthread.h>, not in <signal.h>. | ||
1971 | - But avoid namespace pollution on glibc systems.*/ | ||
1972 | -#if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \ | ||
1973 | - && ((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ || defined __sun) \ | ||
1974 | - && ! defined __GLIBC__ | ||
1975 | -# include <pthread.h> | ||
1976 | -#endif | ||
1977 | +#ifndef _GL_SIGNAL_H | ||
1978 | +#define _GL_SIGNAL_H | ||
1979 | |||
1980 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | ||
1981 | |||
1982 | @@ -70,6 +42,10 @@ | ||
1983 | |||
1984 | /* The definition of _GL_WARN_ON_USE is copied here. */ | ||
1985 | |||
1986 | +/* Define pid_t, uid_t. | ||
1987 | + Also, mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ | ||
1988 | +#include <sys/types.h> | ||
1989 | + | ||
1990 | /* On AIX, sig_atomic_t already includes volatile. C99 requires that | ||
1991 | 'volatile sig_atomic_t' ignore the extra modifier, but C89 did not. | ||
1992 | Hence, redefine this to a non-volatile type as needed. */ | ||
1993 | @@ -124,34 +100,6 @@ typedef void (*sighandler_t) (int); | ||
1994 | #endif | ||
1995 | |||
1996 | |||
1997 | -#if @GNULIB_PTHREAD_SIGMASK@ | ||
1998 | -# if @REPLACE_PTHREAD_SIGMASK@ | ||
1999 | -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
2000 | -# undef pthread_sigmask | ||
2001 | -# define pthread_sigmask rpl_pthread_sigmask | ||
2002 | -# endif | ||
2003 | -_GL_FUNCDECL_RPL (pthread_sigmask, int, | ||
2004 | - (int how, const sigset_t *new_mask, sigset_t *old_mask)); | ||
2005 | -_GL_CXXALIAS_RPL (pthread_sigmask, int, | ||
2006 | - (int how, const sigset_t *new_mask, sigset_t *old_mask)); | ||
2007 | -# else | ||
2008 | -# if !@HAVE_PTHREAD_SIGMASK@ | ||
2009 | -_GL_FUNCDECL_SYS (pthread_sigmask, int, | ||
2010 | - (int how, const sigset_t *new_mask, sigset_t *old_mask)); | ||
2011 | -# endif | ||
2012 | -_GL_CXXALIAS_SYS (pthread_sigmask, int, | ||
2013 | - (int how, const sigset_t *new_mask, sigset_t *old_mask)); | ||
2014 | -# endif | ||
2015 | -_GL_CXXALIASWARN (pthread_sigmask); | ||
2016 | -#elif defined GNULIB_POSIXCHECK | ||
2017 | -# undef pthread_sigmask | ||
2018 | -# if HAVE_RAW_DECL_PTHREAD_SIGMASK | ||
2019 | -_GL_WARN_ON_USE (pthread_sigmask, "pthread_sigmask is not portable - " | ||
2020 | - "use gnulib module pthread_sigmask for portability"); | ||
2021 | -# endif | ||
2022 | -#endif | ||
2023 | - | ||
2024 | - | ||
2025 | #if @GNULIB_SIGPROCMASK@ | ||
2026 | # if !@HAVE_POSIX_SIGNALBLOCKING@ | ||
2027 | |||
2028 | @@ -423,6 +371,6 @@ _GL_WARN_ON_USE (sigaction, "sigaction i | ||
2029 | #endif | ||
2030 | |||
2031 | |||
2032 | -#endif /* _@GUARD_PREFIX@_SIGNAL_H */ | ||
2033 | -#endif /* _@GUARD_PREFIX@_SIGNAL_H */ | ||
2034 | +#endif /* _GL_SIGNAL_H */ | ||
2035 | +#endif /* _GL_SIGNAL_H */ | ||
2036 | #endif | ||
2037 | diff -Naurp libiconv-1.14.org//srclib/stat.c libiconv-1.14/srclib/stat.c | ||
2038 | --- libiconv-1.14.org//srclib/stat.c 2011-08-07 06:42:06.000000000 -0700 | ||
2039 | +++ libiconv-1.14/srclib/stat.c 2012-01-08 02:07:40.330484457 -0800 | ||
2040 | @@ -38,7 +38,6 @@ orig_stat (const char *filename, struct | ||
2041 | #include <stdbool.h> | ||
2042 | #include <string.h> | ||
2043 | #include "dosname.h" | ||
2044 | -#include "verify.h" | ||
2045 | |||
2046 | /* Store information about NAME into ST. Work around bugs with | ||
2047 | trailing slashes. Mingw has other bugs (such as st_ino always | ||
2048 | @@ -64,12 +63,6 @@ rpl_stat (char const *name, struct stat | ||
2049 | } | ||
2050 | #endif /* REPLACE_FUNC_STAT_FILE */ | ||
2051 | #if REPLACE_FUNC_STAT_DIR | ||
2052 | - /* The only known systems where REPLACE_FUNC_STAT_DIR is needed also | ||
2053 | - have a constant PATH_MAX. */ | ||
2054 | -# ifndef PATH_MAX | ||
2055 | -# error "Please port this replacement to your platform" | ||
2056 | -# endif | ||
2057 | - | ||
2058 | if (result == -1 && errno == ENOENT) | ||
2059 | { | ||
2060 | /* Due to mingw's oddities, there are some directories (like | ||
2061 | @@ -84,7 +77,6 @@ rpl_stat (char const *name, struct stat | ||
2062 | char fixed_name[PATH_MAX + 1] = {0}; | ||
2063 | size_t len = strlen (name); | ||
2064 | bool check_dir = false; | ||
2065 | - verify (PATH_MAX <= 4096); | ||
2066 | if (PATH_MAX <= len) | ||
2067 | errno = ENAMETOOLONG; | ||
2068 | else if (len) | ||
2069 | diff -Naurp libiconv-1.14.org//srclib/stddef.in.h libiconv-1.14/srclib/stddef.in.h | ||
2070 | --- libiconv-1.14.org//srclib/stddef.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
2071 | +++ libiconv-1.14/srclib/stddef.in.h 2012-01-08 02:07:40.346484458 -0800 | ||
2072 | @@ -38,9 +38,9 @@ | ||
2073 | remember if special invocation has ever been used to obtain wint_t, | ||
2074 | in which case we need to clean up NULL yet again. */ | ||
2075 | |||
2076 | -# if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _GL_STDDEF_WINT_T) | ||
2077 | +# if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T) | ||
2078 | # ifdef __need_wint_t | ||
2079 | -# undef _@GUARD_PREFIX@_STDDEF_H | ||
2080 | +# undef _GL_STDDEF_H | ||
2081 | # define _GL_STDDEF_WINT_T | ||
2082 | # endif | ||
2083 | # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ | ||
2084 | @@ -49,14 +49,14 @@ | ||
2085 | #else | ||
2086 | /* Normal invocation convention. */ | ||
2087 | |||
2088 | -# ifndef _@GUARD_PREFIX@_STDDEF_H | ||
2089 | +# ifndef _GL_STDDEF_H | ||
2090 | |||
2091 | /* The include_next requires a split double-inclusion guard. */ | ||
2092 | |||
2093 | # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ | ||
2094 | |||
2095 | -# ifndef _@GUARD_PREFIX@_STDDEF_H | ||
2096 | -# define _@GUARD_PREFIX@_STDDEF_H | ||
2097 | +# ifndef _GL_STDDEF_H | ||
2098 | +# define _GL_STDDEF_H | ||
2099 | |||
2100 | /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ | ||
2101 | #if @REPLACE_NULL@ | ||
2102 | @@ -82,6 +82,6 @@ | ||
2103 | # define wchar_t int | ||
2104 | #endif | ||
2105 | |||
2106 | -# endif /* _@GUARD_PREFIX@_STDDEF_H */ | ||
2107 | -# endif /* _@GUARD_PREFIX@_STDDEF_H */ | ||
2108 | +# endif /* _GL_STDDEF_H */ | ||
2109 | +# endif /* _GL_STDDEF_H */ | ||
2110 | #endif /* __need_XXX */ | ||
2111 | diff -Naurp libiconv-1.14.org//srclib/stdint.in.h libiconv-1.14/srclib/stdint.in.h | ||
2112 | --- libiconv-1.14.org//srclib/stdint.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
2113 | +++ libiconv-1.14/srclib/stdint.in.h 2012-01-08 02:07:40.358484458 -0800 | ||
2114 | @@ -21,7 +21,7 @@ | ||
2115 | * <http://www.opengroup.org/susv3xbd/stdint.h.html> | ||
2116 | */ | ||
2117 | |||
2118 | -#ifndef _@GUARD_PREFIX@_STDINT_H | ||
2119 | +#ifndef _GL_STDINT_H | ||
2120 | |||
2121 | #if __GNUC__ >= 3 | ||
2122 | @PRAGMA_SYSTEM_HEADER@ | ||
2123 | @@ -52,13 +52,13 @@ | ||
2124 | /* Other systems may have an incomplete or buggy <stdint.h>. | ||
2125 | Include it before <inttypes.h>, since any "#include <stdint.h>" | ||
2126 | in <inttypes.h> would reinclude us, skipping our contents because | ||
2127 | - _@GUARD_PREFIX@_STDINT_H is defined. | ||
2128 | + _GL_STDINT_H is defined. | ||
2129 | The include_next requires a split double-inclusion guard. */ | ||
2130 | # @INCLUDE_NEXT@ @NEXT_STDINT_H@ | ||
2131 | #endif | ||
2132 | |||
2133 | -#if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H | ||
2134 | -#define _@GUARD_PREFIX@_STDINT_H | ||
2135 | +#if ! defined _GL_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H | ||
2136 | +#define _GL_STDINT_H | ||
2137 | |||
2138 | /* <sys/types.h> defines some of the stdint.h types as well, on glibc, | ||
2139 | IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>). | ||
2140 | @@ -270,36 +270,26 @@ typedef unsigned long int gl_uintptr_t; | ||
2141 | /* Note: These types are compiler dependent. It may be unwise to use them in | ||
2142 | public header files. */ | ||
2143 | |||
2144 | -/* If the system defines INTMAX_MAX, assume that intmax_t works, and | ||
2145 | - similarly for UINTMAX_MAX and uintmax_t. This avoids problems with | ||
2146 | - assuming one type where another is used by the system. */ | ||
2147 | - | ||
2148 | -#ifndef INTMAX_MAX | ||
2149 | -# undef INTMAX_C | ||
2150 | -# undef intmax_t | ||
2151 | -# if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 | ||
2152 | +#undef intmax_t | ||
2153 | +#if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 | ||
2154 | typedef long long int gl_intmax_t; | ||
2155 | -# define intmax_t gl_intmax_t | ||
2156 | -# elif defined GL_INT64_T | ||
2157 | -# define intmax_t int64_t | ||
2158 | -# else | ||
2159 | +# define intmax_t gl_intmax_t | ||
2160 | +#elif defined GL_INT64_T | ||
2161 | +# define intmax_t int64_t | ||
2162 | +#else | ||
2163 | typedef long int gl_intmax_t; | ||
2164 | -# define intmax_t gl_intmax_t | ||
2165 | -# endif | ||
2166 | +# define intmax_t gl_intmax_t | ||
2167 | #endif | ||
2168 | |||
2169 | -#ifndef UINTMAX_MAX | ||
2170 | -# undef UINTMAX_C | ||
2171 | -# undef uintmax_t | ||
2172 | -# if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 | ||
2173 | +#undef uintmax_t | ||
2174 | +#if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 | ||
2175 | typedef unsigned long long int gl_uintmax_t; | ||
2176 | -# define uintmax_t gl_uintmax_t | ||
2177 | -# elif defined GL_UINT64_T | ||
2178 | -# define uintmax_t uint64_t | ||
2179 | -# else | ||
2180 | +# define uintmax_t gl_uintmax_t | ||
2181 | +#elif defined GL_UINT64_T | ||
2182 | +# define uintmax_t uint64_t | ||
2183 | +#else | ||
2184 | typedef unsigned long int gl_uintmax_t; | ||
2185 | -# define uintmax_t gl_uintmax_t | ||
2186 | -# endif | ||
2187 | +# define uintmax_t gl_uintmax_t | ||
2188 | #endif | ||
2189 | |||
2190 | /* Verify that intmax_t and uintmax_t have the same size. Too much code | ||
2191 | @@ -441,23 +431,21 @@ typedef int _verify_intmax_size[sizeof ( | ||
2192 | |||
2193 | /* 7.18.2.5. Limits of greatest-width integer types */ | ||
2194 | |||
2195 | -#ifndef INTMAX_MAX | ||
2196 | -# undef INTMAX_MIN | ||
2197 | -# ifdef INT64_MAX | ||
2198 | -# define INTMAX_MIN INT64_MIN | ||
2199 | -# define INTMAX_MAX INT64_MAX | ||
2200 | -# else | ||
2201 | -# define INTMAX_MIN INT32_MIN | ||
2202 | -# define INTMAX_MAX INT32_MAX | ||
2203 | -# endif | ||
2204 | +#undef INTMAX_MIN | ||
2205 | +#undef INTMAX_MAX | ||
2206 | +#ifdef INT64_MAX | ||
2207 | +# define INTMAX_MIN INT64_MIN | ||
2208 | +# define INTMAX_MAX INT64_MAX | ||
2209 | +#else | ||
2210 | +# define INTMAX_MIN INT32_MIN | ||
2211 | +# define INTMAX_MAX INT32_MAX | ||
2212 | #endif | ||
2213 | |||
2214 | -#ifndef UINTMAX_MAX | ||
2215 | -# ifdef UINT64_MAX | ||
2216 | -# define UINTMAX_MAX UINT64_MAX | ||
2217 | -# else | ||
2218 | -# define UINTMAX_MAX UINT32_MAX | ||
2219 | -# endif | ||
2220 | +#undef UINTMAX_MAX | ||
2221 | +#ifdef UINT64_MAX | ||
2222 | +# define UINTMAX_MAX UINT64_MAX | ||
2223 | +#else | ||
2224 | +# define UINTMAX_MAX UINT32_MAX | ||
2225 | #endif | ||
2226 | |||
2227 | /* 7.18.3. Limits of other integer types */ | ||
2228 | @@ -580,27 +568,25 @@ typedef int _verify_intmax_size[sizeof ( | ||
2229 | |||
2230 | /* 7.18.4.2. Macros for greatest-width integer constants */ | ||
2231 | |||
2232 | -#ifndef INTMAX_C | ||
2233 | -# if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 | ||
2234 | -# define INTMAX_C(x) x##LL | ||
2235 | -# elif defined GL_INT64_T | ||
2236 | -# define INTMAX_C(x) INT64_C(x) | ||
2237 | -# else | ||
2238 | -# define INTMAX_C(x) x##L | ||
2239 | -# endif | ||
2240 | +#undef INTMAX_C | ||
2241 | +#if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 | ||
2242 | +# define INTMAX_C(x) x##LL | ||
2243 | +#elif defined GL_INT64_T | ||
2244 | +# define INTMAX_C(x) INT64_C(x) | ||
2245 | +#else | ||
2246 | +# define INTMAX_C(x) x##L | ||
2247 | #endif | ||
2248 | |||
2249 | -#ifndef UINTMAX_C | ||
2250 | -# if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 | ||
2251 | -# define UINTMAX_C(x) x##ULL | ||
2252 | -# elif defined GL_UINT64_T | ||
2253 | -# define UINTMAX_C(x) UINT64_C(x) | ||
2254 | -# else | ||
2255 | -# define UINTMAX_C(x) x##UL | ||
2256 | -# endif | ||
2257 | +#undef UINTMAX_C | ||
2258 | +#if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 | ||
2259 | +# define UINTMAX_C(x) x##ULL | ||
2260 | +#elif defined GL_UINT64_T | ||
2261 | +# define UINTMAX_C(x) UINT64_C(x) | ||
2262 | +#else | ||
2263 | +# define UINTMAX_C(x) x##UL | ||
2264 | #endif | ||
2265 | |||
2266 | #endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */ | ||
2267 | |||
2268 | -#endif /* _@GUARD_PREFIX@_STDINT_H */ | ||
2269 | -#endif /* !defined _@GUARD_PREFIX@_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ | ||
2270 | +#endif /* _GL_STDINT_H */ | ||
2271 | +#endif /* !defined _GL_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ | ||
2272 | diff -Naurp libiconv-1.14.org//srclib/stdio.in.h libiconv-1.14/srclib/stdio.in.h | ||
2273 | --- libiconv-1.14.org//srclib/stdio.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
2274 | +++ libiconv-1.14/srclib/stdio.in.h 2012-01-08 02:07:40.378484459 -0800 | ||
2275 | @@ -35,7 +35,7 @@ | ||
2276 | #else | ||
2277 | /* Normal invocation convention. */ | ||
2278 | |||
2279 | -#ifndef _@GUARD_PREFIX@_STDIO_H | ||
2280 | +#ifndef _GL_STDIO_H | ||
2281 | |||
2282 | #define _GL_ALREADY_INCLUDING_STDIO_H | ||
2283 | |||
2284 | @@ -44,8 +44,8 @@ | ||
2285 | |||
2286 | #undef _GL_ALREADY_INCLUDING_STDIO_H | ||
2287 | |||
2288 | -#ifndef _@GUARD_PREFIX@_STDIO_H | ||
2289 | -#define _@GUARD_PREFIX@_STDIO_H | ||
2290 | +#ifndef _GL_STDIO_H | ||
2291 | +#define _GL_STDIO_H | ||
2292 | |||
2293 | /* Get va_list. Needed on many systems, including glibc 2.8. */ | ||
2294 | #include <stdarg.h> | ||
2295 | @@ -461,6 +461,25 @@ _GL_FUNCDECL_SYS (fseeko, int, (FILE *fp | ||
2296 | _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); | ||
2297 | # endif | ||
2298 | _GL_CXXALIASWARN (fseeko); | ||
2299 | +# if (@REPLACE_FSEEKO@ || !@HAVE_FSEEKO@) && !@GNULIB_FSEEK@ | ||
2300 | + /* Provide an fseek function that is consistent with fseeko. */ | ||
2301 | + /* In order to avoid that fseek gets defined as a macro here, the | ||
2302 | + developer can request the 'fseek' module. */ | ||
2303 | +# if !GNULIB_defined_fseek_function | ||
2304 | +# undef fseek | ||
2305 | +# define fseek rpl_fseek | ||
2306 | +static inline int _GL_ARG_NONNULL ((1)) | ||
2307 | +rpl_fseek (FILE *fp, long offset, int whence) | ||
2308 | +{ | ||
2309 | +# if @REPLACE_FSEEKO@ | ||
2310 | + return rpl_fseeko (fp, offset, whence); | ||
2311 | +# else | ||
2312 | + return fseeko (fp, offset, whence); | ||
2313 | +# endif | ||
2314 | +} | ||
2315 | +# define GNULIB_defined_fseek_function 1 | ||
2316 | +# endif | ||
2317 | +# endif | ||
2318 | #elif defined GNULIB_POSIXCHECK | ||
2319 | # define _GL_FSEEK_WARN /* Category 1, above. */ | ||
2320 | # undef fseek | ||
2321 | @@ -520,6 +539,25 @@ _GL_FUNCDECL_SYS (ftello, off_t, (FILE * | ||
2322 | _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); | ||
2323 | # endif | ||
2324 | _GL_CXXALIASWARN (ftello); | ||
2325 | +# if (@REPLACE_FTELLO@ || !@HAVE_FTELLO@) && !@GNULIB_FTELL@ | ||
2326 | + /* Provide an ftell function that is consistent with ftello. */ | ||
2327 | + /* In order to avoid that ftell gets defined as a macro here, the | ||
2328 | + developer can request the 'ftell' module. */ | ||
2329 | +# if !GNULIB_defined_ftell_function | ||
2330 | +# undef ftell | ||
2331 | +# define ftell rpl_ftell | ||
2332 | +static inline long _GL_ARG_NONNULL ((1)) | ||
2333 | +rpl_ftell (FILE *f) | ||
2334 | +{ | ||
2335 | +# if @REPLACE_FTELLO@ | ||
2336 | + return rpl_ftello (f); | ||
2337 | +# else | ||
2338 | + return ftello (f); | ||
2339 | +# endif | ||
2340 | +} | ||
2341 | +# define GNULIB_defined_ftell_function 1 | ||
2342 | +# endif | ||
2343 | +# endif | ||
2344 | #elif defined GNULIB_POSIXCHECK | ||
2345 | # define _GL_FTELL_WARN /* Category 1, above. */ | ||
2346 | # undef ftell | ||
2347 | @@ -1307,6 +1345,6 @@ _GL_WARN_ON_USE (vsprintf, "vsprintf is | ||
2348 | #endif | ||
2349 | |||
2350 | |||
2351 | -#endif /* _@GUARD_PREFIX@_STDIO_H */ | ||
2352 | -#endif /* _@GUARD_PREFIX@_STDIO_H */ | ||
2353 | +#endif /* _GL_STDIO_H */ | ||
2354 | +#endif /* _GL_STDIO_H */ | ||
2355 | #endif | ||
2356 | diff -Naurp libiconv-1.14.org//srclib/stdlib.in.h libiconv-1.14/srclib/stdlib.in.h | ||
2357 | --- libiconv-1.14.org//srclib/stdlib.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
2358 | +++ libiconv-1.14/srclib/stdlib.in.h 2012-01-08 02:07:40.390484459 -0800 | ||
2359 | @@ -28,13 +28,13 @@ | ||
2360 | #else | ||
2361 | /* Normal invocation convention. */ | ||
2362 | |||
2363 | -#ifndef _@GUARD_PREFIX@_STDLIB_H | ||
2364 | +#ifndef _GL_STDLIB_H | ||
2365 | |||
2366 | /* The include_next requires a split double-inclusion guard. */ | ||
2367 | #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ | ||
2368 | |||
2369 | -#ifndef _@GUARD_PREFIX@_STDLIB_H | ||
2370 | -#define _@GUARD_PREFIX@_STDLIB_H | ||
2371 | +#ifndef _GL_STDLIB_H | ||
2372 | +#define _GL_STDLIB_H | ||
2373 | |||
2374 | /* NetBSD 5.0 mis-defines NULL. */ | ||
2375 | #include <stddef.h> | ||
2376 | @@ -89,7 +89,11 @@ struct random_data | ||
2377 | # include <unistd.h> | ||
2378 | #endif | ||
2379 | |||
2380 | -/* The definition of _Noreturn is copied here. */ | ||
2381 | +#if 3 <= __GNUC__ || __GNUC__ == 2 && 8 <= __GNUC_MINOR__ | ||
2382 | +# define _GL_ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) | ||
2383 | +#else | ||
2384 | +# define _GL_ATTRIBUTE_NORETURN | ||
2385 | +#endif | ||
2386 | |||
2387 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | ||
2388 | |||
2389 | @@ -116,7 +120,7 @@ struct random_data | ||
2390 | /* Terminate the current process with the given return code, without running | ||
2391 | the 'atexit' handlers. */ | ||
2392 | # if !@HAVE__EXIT@ | ||
2393 | -_GL_FUNCDECL_SYS (_Exit, _Noreturn void, (int status)); | ||
2394 | +_GL_FUNCDECL_SYS (_Exit, void, (int status) _GL_ATTRIBUTE_NORETURN); | ||
2395 | # endif | ||
2396 | _GL_CXXALIAS_SYS (_Exit, void, (int status)); | ||
2397 | _GL_CXXALIASWARN (_Exit); | ||
2398 | @@ -757,6 +761,6 @@ _GL_CXXALIASWARN (wctomb); | ||
2399 | #endif | ||
2400 | |||
2401 | |||
2402 | -#endif /* _@GUARD_PREFIX@_STDLIB_H */ | ||
2403 | -#endif /* _@GUARD_PREFIX@_STDLIB_H */ | ||
2404 | +#endif /* _GL_STDLIB_H */ | ||
2405 | +#endif /* _GL_STDLIB_H */ | ||
2406 | #endif | ||
2407 | diff -Naurp libiconv-1.14.org//srclib/strerror.c libiconv-1.14/srclib/strerror.c | ||
2408 | --- libiconv-1.14.org//srclib/strerror.c 2011-08-07 06:42:06.000000000 -0700 | ||
2409 | +++ libiconv-1.14/srclib/strerror.c 2012-01-08 02:07:40.406484461 -0800 | ||
2410 | @@ -17,54 +17,340 @@ | ||
2411 | |||
2412 | #include <config.h> | ||
2413 | |||
2414 | -/* Specification. */ | ||
2415 | #include <string.h> | ||
2416 | |||
2417 | -#include <errno.h> | ||
2418 | -#include <stdio.h> | ||
2419 | -#include <stdlib.h> | ||
2420 | -#include <string.h> | ||
2421 | +#if REPLACE_STRERROR | ||
2422 | + | ||
2423 | +# include <errno.h> | ||
2424 | +# include <stdio.h> | ||
2425 | + | ||
2426 | +# if GNULIB_defined_ESOCK /* native Windows platforms */ | ||
2427 | +# if HAVE_WINSOCK2_H | ||
2428 | +# include <winsock2.h> | ||
2429 | +# endif | ||
2430 | +# endif | ||
2431 | |||
2432 | -#include "intprops.h" | ||
2433 | -#include "strerror-override.h" | ||
2434 | -#include "verify.h" | ||
2435 | +# include "intprops.h" | ||
2436 | |||
2437 | /* Use the system functions, not the gnulib overrides in this file. */ | ||
2438 | -#undef sprintf | ||
2439 | +# undef sprintf | ||
2440 | + | ||
2441 | +# undef strerror | ||
2442 | +# if ! HAVE_DECL_STRERROR | ||
2443 | +# define strerror(n) NULL | ||
2444 | +# endif | ||
2445 | |||
2446 | char * | ||
2447 | -strerror (int n) | ||
2448 | -#undef strerror | ||
2449 | +rpl_strerror (int n) | ||
2450 | { | ||
2451 | - static char buf[STACKBUF_LEN]; | ||
2452 | - size_t len; | ||
2453 | + char const *msg = NULL; | ||
2454 | + /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ | ||
2455 | + switch (n) | ||
2456 | + { | ||
2457 | +# if GNULIB_defined_ETXTBSY | ||
2458 | + case ETXTBSY: | ||
2459 | + msg = "Text file busy"; | ||
2460 | + break; | ||
2461 | +# endif | ||
2462 | + | ||
2463 | +# if GNULIB_defined_ESOCK /* native Windows platforms */ | ||
2464 | + /* EWOULDBLOCK is the same as EAGAIN. */ | ||
2465 | + case EINPROGRESS: | ||
2466 | + msg = "Operation now in progress"; | ||
2467 | + break; | ||
2468 | + case EALREADY: | ||
2469 | + msg = "Operation already in progress"; | ||
2470 | + break; | ||
2471 | + case ENOTSOCK: | ||
2472 | + msg = "Socket operation on non-socket"; | ||
2473 | + break; | ||
2474 | + case EDESTADDRREQ: | ||
2475 | + msg = "Destination address required"; | ||
2476 | + break; | ||
2477 | + case EMSGSIZE: | ||
2478 | + msg = "Message too long"; | ||
2479 | + break; | ||
2480 | + case EPROTOTYPE: | ||
2481 | + msg = "Protocol wrong type for socket"; | ||
2482 | + break; | ||
2483 | + case ENOPROTOOPT: | ||
2484 | + msg = "Protocol not available"; | ||
2485 | + break; | ||
2486 | + case EPROTONOSUPPORT: | ||
2487 | + msg = "Protocol not supported"; | ||
2488 | + break; | ||
2489 | + case ESOCKTNOSUPPORT: | ||
2490 | + msg = "Socket type not supported"; | ||
2491 | + break; | ||
2492 | + case EOPNOTSUPP: | ||
2493 | + msg = "Operation not supported"; | ||
2494 | + break; | ||
2495 | + case EPFNOSUPPORT: | ||
2496 | + msg = "Protocol family not supported"; | ||
2497 | + break; | ||
2498 | + case EAFNOSUPPORT: | ||
2499 | + msg = "Address family not supported by protocol"; | ||
2500 | + break; | ||
2501 | + case EADDRINUSE: | ||
2502 | + msg = "Address already in use"; | ||
2503 | + break; | ||
2504 | + case EADDRNOTAVAIL: | ||
2505 | + msg = "Cannot assign requested address"; | ||
2506 | + break; | ||
2507 | + case ENETDOWN: | ||
2508 | + msg = "Network is down"; | ||
2509 | + break; | ||
2510 | + case ENETUNREACH: | ||
2511 | + msg = "Network is unreachable"; | ||
2512 | + break; | ||
2513 | + case ENETRESET: | ||
2514 | + msg = "Network dropped connection on reset"; | ||
2515 | + break; | ||
2516 | + case ECONNABORTED: | ||
2517 | + msg = "Software caused connection abort"; | ||
2518 | + break; | ||
2519 | + case ECONNRESET: | ||
2520 | + msg = "Connection reset by peer"; | ||
2521 | + break; | ||
2522 | + case ENOBUFS: | ||
2523 | + msg = "No buffer space available"; | ||
2524 | + break; | ||
2525 | + case EISCONN: | ||
2526 | + msg = "Transport endpoint is already connected"; | ||
2527 | + break; | ||
2528 | + case ENOTCONN: | ||
2529 | + msg = "Transport endpoint is not connected"; | ||
2530 | + break; | ||
2531 | + case ESHUTDOWN: | ||
2532 | + msg = "Cannot send after transport endpoint shutdown"; | ||
2533 | + break; | ||
2534 | + case ETOOMANYREFS: | ||
2535 | + msg = "Too many references: cannot splice"; | ||
2536 | + break; | ||
2537 | + case ETIMEDOUT: | ||
2538 | + msg = "Connection timed out"; | ||
2539 | + break; | ||
2540 | + case ECONNREFUSED: | ||
2541 | + msg = "Connection refused"; | ||
2542 | + break; | ||
2543 | + case ELOOP: | ||
2544 | + msg = "Too many levels of symbolic links"; | ||
2545 | + break; | ||
2546 | + case EHOSTDOWN: | ||
2547 | + msg = "Host is down"; | ||
2548 | + break; | ||
2549 | + case EHOSTUNREACH: | ||
2550 | + msg = "No route to host"; | ||
2551 | + break; | ||
2552 | + case EPROCLIM: | ||
2553 | + msg = "Too many processes"; | ||
2554 | + break; | ||
2555 | + case EUSERS: | ||
2556 | + msg = "Too many users"; | ||
2557 | + break; | ||
2558 | + case EDQUOT: | ||
2559 | + msg = "Disk quota exceeded"; | ||
2560 | + break; | ||
2561 | + case ESTALE: | ||
2562 | + msg = "Stale NFS file handle"; | ||
2563 | + break; | ||
2564 | + case EREMOTE: | ||
2565 | + msg = "Object is remote"; | ||
2566 | + break; | ||
2567 | +# if HAVE_WINSOCK2_H | ||
2568 | + /* WSA_INVALID_HANDLE maps to EBADF */ | ||
2569 | + /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ | ||
2570 | + /* WSA_INVALID_PARAMETER maps to EINVAL */ | ||
2571 | + case WSA_OPERATION_ABORTED: | ||
2572 | + msg = "Overlapped operation aborted"; | ||
2573 | + break; | ||
2574 | + case WSA_IO_INCOMPLETE: | ||
2575 | + msg = "Overlapped I/O event object not in signaled state"; | ||
2576 | + break; | ||
2577 | + case WSA_IO_PENDING: | ||
2578 | + msg = "Overlapped operations will complete later"; | ||
2579 | + break; | ||
2580 | + /* WSAEINTR maps to EINTR */ | ||
2581 | + /* WSAEBADF maps to EBADF */ | ||
2582 | + /* WSAEACCES maps to EACCES */ | ||
2583 | + /* WSAEFAULT maps to EFAULT */ | ||
2584 | + /* WSAEINVAL maps to EINVAL */ | ||
2585 | + /* WSAEMFILE maps to EMFILE */ | ||
2586 | + /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ | ||
2587 | + /* WSAEINPROGRESS is EINPROGRESS */ | ||
2588 | + /* WSAEALREADY is EALREADY */ | ||
2589 | + /* WSAENOTSOCK is ENOTSOCK */ | ||
2590 | + /* WSAEDESTADDRREQ is EDESTADDRREQ */ | ||
2591 | + /* WSAEMSGSIZE is EMSGSIZE */ | ||
2592 | + /* WSAEPROTOTYPE is EPROTOTYPE */ | ||
2593 | + /* WSAENOPROTOOPT is ENOPROTOOPT */ | ||
2594 | + /* WSAEPROTONOSUPPORT is EPROTONOSUPPORT */ | ||
2595 | + /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ | ||
2596 | + /* WSAEOPNOTSUPP is EOPNOTSUPP */ | ||
2597 | + /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ | ||
2598 | + /* WSAEAFNOSUPPORT is EAFNOSUPPORT */ | ||
2599 | + /* WSAEADDRINUSE is EADDRINUSE */ | ||
2600 | + /* WSAEADDRNOTAVAIL is EADDRNOTAVAIL */ | ||
2601 | + /* WSAENETDOWN is ENETDOWN */ | ||
2602 | + /* WSAENETUNREACH is ENETUNREACH */ | ||
2603 | + /* WSAENETRESET is ENETRESET */ | ||
2604 | + /* WSAECONNABORTED is ECONNABORTED */ | ||
2605 | + /* WSAECONNRESET is ECONNRESET */ | ||
2606 | + /* WSAENOBUFS is ENOBUFS */ | ||
2607 | + /* WSAEISCONN is EISCONN */ | ||
2608 | + /* WSAENOTCONN is ENOTCONN */ | ||
2609 | + /* WSAESHUTDOWN is ESHUTDOWN */ | ||
2610 | + /* WSAETOOMANYREFS is ETOOMANYREFS */ | ||
2611 | + /* WSAETIMEDOUT is ETIMEDOUT */ | ||
2612 | + /* WSAECONNREFUSED is ECONNREFUSED */ | ||
2613 | + /* WSAELOOP is ELOOP */ | ||
2614 | + /* WSAENAMETOOLONG maps to ENAMETOOLONG */ | ||
2615 | + /* WSAEHOSTDOWN is EHOSTDOWN */ | ||
2616 | + /* WSAEHOSTUNREACH is EHOSTUNREACH */ | ||
2617 | + /* WSAENOTEMPTY maps to ENOTEMPTY */ | ||
2618 | + /* WSAEPROCLIM is EPROCLIM */ | ||
2619 | + /* WSAEUSERS is EUSERS */ | ||
2620 | + /* WSAEDQUOT is EDQUOT */ | ||
2621 | + /* WSAESTALE is ESTALE */ | ||
2622 | + /* WSAEREMOTE is EREMOTE */ | ||
2623 | + case WSASYSNOTREADY: | ||
2624 | + msg = "Network subsystem is unavailable"; | ||
2625 | + break; | ||
2626 | + case WSAVERNOTSUPPORTED: | ||
2627 | + msg = "Winsock.dll version out of range"; | ||
2628 | + break; | ||
2629 | + case WSANOTINITIALISED: | ||
2630 | + msg = "Successful WSAStartup not yet performed"; | ||
2631 | + break; | ||
2632 | + case WSAEDISCON: | ||
2633 | + msg = "Graceful shutdown in progress"; | ||
2634 | + break; | ||
2635 | + case WSAENOMORE: case WSA_E_NO_MORE: | ||
2636 | + msg = "No more results"; | ||
2637 | + break; | ||
2638 | + case WSAECANCELLED: case WSA_E_CANCELLED: | ||
2639 | + msg = "Call was canceled"; | ||
2640 | + break; | ||
2641 | + case WSAEINVALIDPROCTABLE: | ||
2642 | + msg = "Procedure call table is invalid"; | ||
2643 | + break; | ||
2644 | + case WSAEINVALIDPROVIDER: | ||
2645 | + msg = "Service provider is invalid"; | ||
2646 | + break; | ||
2647 | + case WSAEPROVIDERFAILEDINIT: | ||
2648 | + msg = "Service provider failed to initialize"; | ||
2649 | + break; | ||
2650 | + case WSASYSCALLFAILURE: | ||
2651 | + msg = "System call failure"; | ||
2652 | + break; | ||
2653 | + case WSASERVICE_NOT_FOUND: | ||
2654 | + msg = "Service not found"; | ||
2655 | + break; | ||
2656 | + case WSATYPE_NOT_FOUND: | ||
2657 | + msg = "Class type not found"; | ||
2658 | + break; | ||
2659 | + case WSAEREFUSED: | ||
2660 | + msg = "Database query was refused"; | ||
2661 | + break; | ||
2662 | + case WSAHOST_NOT_FOUND: | ||
2663 | + msg = "Host not found"; | ||
2664 | + break; | ||
2665 | + case WSATRY_AGAIN: | ||
2666 | + msg = "Nonauthoritative host not found"; | ||
2667 | + break; | ||
2668 | + case WSANO_RECOVERY: | ||
2669 | + msg = "Nonrecoverable error"; | ||
2670 | + break; | ||
2671 | + case WSANO_DATA: | ||
2672 | + msg = "Valid name, no data record of requested type"; | ||
2673 | + break; | ||
2674 | + /* WSA_QOS_* omitted */ | ||
2675 | +# endif | ||
2676 | +# endif | ||
2677 | + | ||
2678 | +# if GNULIB_defined_ENOMSG | ||
2679 | + case ENOMSG: | ||
2680 | + msg = "No message of desired type"; | ||
2681 | + break; | ||
2682 | +# endif | ||
2683 | + | ||
2684 | +# if GNULIB_defined_EIDRM | ||
2685 | + case EIDRM: | ||
2686 | + msg = "Identifier removed"; | ||
2687 | + break; | ||
2688 | +# endif | ||
2689 | + | ||
2690 | +# if GNULIB_defined_ENOLINK | ||
2691 | + case ENOLINK: | ||
2692 | + msg = "Link has been severed"; | ||
2693 | + break; | ||
2694 | +# endif | ||
2695 | + | ||
2696 | +# if GNULIB_defined_EPROTO | ||
2697 | + case EPROTO: | ||
2698 | + msg = "Protocol error"; | ||
2699 | + break; | ||
2700 | +# endif | ||
2701 | + | ||
2702 | +# if GNULIB_defined_EMULTIHOP | ||
2703 | + case EMULTIHOP: | ||
2704 | + msg = "Multihop attempted"; | ||
2705 | + break; | ||
2706 | +# endif | ||
2707 | + | ||
2708 | +# if GNULIB_defined_EBADMSG | ||
2709 | + case EBADMSG: | ||
2710 | + msg = "Bad message"; | ||
2711 | + break; | ||
2712 | +# endif | ||
2713 | + | ||
2714 | +# if GNULIB_defined_EOVERFLOW | ||
2715 | + case EOVERFLOW: | ||
2716 | + msg = "Value too large for defined data type"; | ||
2717 | + break; | ||
2718 | +# endif | ||
2719 | + | ||
2720 | +# if GNULIB_defined_ENOTSUP | ||
2721 | + case ENOTSUP: | ||
2722 | + msg = "Not supported"; | ||
2723 | + break; | ||
2724 | +# endif | ||
2725 | + | ||
2726 | +# if GNULIB_defined_ESTALE | ||
2727 | + case ESTALE: | ||
2728 | + msg = "Stale NFS file handle"; | ||
2729 | + break; | ||
2730 | +# endif | ||
2731 | + | ||
2732 | +# if GNULIB_defined_EDQUOT | ||
2733 | + case EDQUOT: | ||
2734 | + msg = "Disk quota exceeded"; | ||
2735 | + break; | ||
2736 | +# endif | ||
2737 | + | ||
2738 | +# if GNULIB_defined_ECANCELED | ||
2739 | + case ECANCELED: | ||
2740 | + msg = "Operation canceled"; | ||
2741 | + break; | ||
2742 | +# endif | ||
2743 | + } | ||
2744 | |||
2745 | - /* Cast away const, due to the historical signature of strerror; | ||
2746 | - callers should not be modifying the string. */ | ||
2747 | - const char *msg = strerror_override (n); | ||
2748 | if (msg) | ||
2749 | return (char *) msg; | ||
2750 | |||
2751 | - msg = strerror (n); | ||
2752 | + { | ||
2753 | + char *result = strerror (n); | ||
2754 | |||
2755 | - /* Our strerror_r implementation might use the system's strerror | ||
2756 | - buffer, so all other clients of strerror have to see the error | ||
2757 | - copied into a buffer that we manage. This is not thread-safe, | ||
2758 | - even if the system strerror is, but portable programs shouldn't | ||
2759 | - be using strerror if they care about thread-safety. */ | ||
2760 | - if (!msg || !*msg) | ||
2761 | - { | ||
2762 | - static char const fmt[] = "Unknown error %d"; | ||
2763 | - verify (sizeof buf >= sizeof (fmt) + INT_STRLEN_BOUND (n)); | ||
2764 | - sprintf (buf, fmt, n); | ||
2765 | - errno = EINVAL; | ||
2766 | - return buf; | ||
2767 | - } | ||
2768 | + if (result == NULL || result[0] == '\0') | ||
2769 | + { | ||
2770 | + static char const fmt[] = "Unknown error (%d)"; | ||
2771 | + static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; | ||
2772 | + sprintf (msg_buf, fmt, n); | ||
2773 | + return msg_buf; | ||
2774 | + } | ||
2775 | |||
2776 | - /* Fix STACKBUF_LEN if this ever aborts. */ | ||
2777 | - len = strlen (msg); | ||
2778 | - if (sizeof buf <= len) | ||
2779 | - abort (); | ||
2780 | - | ||
2781 | - return memcpy (buf, msg, len + 1); | ||
2782 | + return result; | ||
2783 | + } | ||
2784 | } | ||
2785 | + | ||
2786 | +#endif | ||
2787 | diff -Naurp libiconv-1.14.org//srclib/strerror-override.c libiconv-1.14/srclib/strerror-override.c | ||
2788 | --- libiconv-1.14.org//srclib/strerror-override.c 2011-08-07 06:42:06.000000000 -0700 | ||
2789 | +++ libiconv-1.14/srclib/strerror-override.c 1969-12-31 16:00:00.000000000 -0800 | ||
2790 | @@ -1,279 +0,0 @@ | ||
2791 | -/* strerror-override.c --- POSIX compatible system error routine | ||
2792 | - | ||
2793 | - Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
2794 | - | ||
2795 | - This program is free software: you can redistribute it and/or modify | ||
2796 | - it under the terms of the GNU General Public License as published by | ||
2797 | - the Free Software Foundation; either version 3 of the License, or | ||
2798 | - (at your option) any later version. | ||
2799 | - | ||
2800 | - This program is distributed in the hope that it will be useful, | ||
2801 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2802 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
2803 | - GNU General Public License for more details. | ||
2804 | - | ||
2805 | - You should have received a copy of the GNU General Public License | ||
2806 | - along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
2807 | - | ||
2808 | -/* Written by Bruno Haible <bruno@clisp.org>, 2010. */ | ||
2809 | - | ||
2810 | -#include <config.h> | ||
2811 | - | ||
2812 | -#include "strerror-override.h" | ||
2813 | - | ||
2814 | -#include <errno.h> | ||
2815 | - | ||
2816 | -#if GNULIB_defined_ESOCK /* native Windows platforms */ | ||
2817 | -# if HAVE_WINSOCK2_H | ||
2818 | -# include <winsock2.h> | ||
2819 | -# endif | ||
2820 | -#endif | ||
2821 | - | ||
2822 | -/* If ERRNUM maps to an errno value defined by gnulib, return a string | ||
2823 | - describing the error. Otherwise return NULL. */ | ||
2824 | -const char * | ||
2825 | -strerror_override (int errnum) | ||
2826 | -{ | ||
2827 | - /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ | ||
2828 | - switch (errnum) | ||
2829 | - { | ||
2830 | -#if REPLACE_STRERROR_0 | ||
2831 | - case 0: | ||
2832 | - return "Success"; | ||
2833 | -#endif | ||
2834 | - | ||
2835 | -#if GNULIB_defined_ETXTBSY | ||
2836 | - case ETXTBSY: | ||
2837 | - return "Text file busy"; | ||
2838 | -#endif | ||
2839 | - | ||
2840 | -#if GNULIB_defined_ESOCK /* native Windows platforms */ | ||
2841 | - /* EWOULDBLOCK is the same as EAGAIN. */ | ||
2842 | - case EINPROGRESS: | ||
2843 | - return "Operation now in progress"; | ||
2844 | - case EALREADY: | ||
2845 | - return "Operation already in progress"; | ||
2846 | - case ENOTSOCK: | ||
2847 | - return "Socket operation on non-socket"; | ||
2848 | - case EDESTADDRREQ: | ||
2849 | - return "Destination address required"; | ||
2850 | - case EMSGSIZE: | ||
2851 | - return "Message too long"; | ||
2852 | - case EPROTOTYPE: | ||
2853 | - return "Protocol wrong type for socket"; | ||
2854 | - case ENOPROTOOPT: | ||
2855 | - return "Protocol not available"; | ||
2856 | - case EPROTONOSUPPORT: | ||
2857 | - return "Protocol not supported"; | ||
2858 | - case ESOCKTNOSUPPORT: | ||
2859 | - return "Socket type not supported"; | ||
2860 | - case EOPNOTSUPP: | ||
2861 | - return "Operation not supported"; | ||
2862 | - case EPFNOSUPPORT: | ||
2863 | - return "Protocol family not supported"; | ||
2864 | - case EAFNOSUPPORT: | ||
2865 | - return "Address family not supported by protocol"; | ||
2866 | - case EADDRINUSE: | ||
2867 | - return "Address already in use"; | ||
2868 | - case EADDRNOTAVAIL: | ||
2869 | - return "Cannot assign requested address"; | ||
2870 | - case ENETDOWN: | ||
2871 | - return "Network is down"; | ||
2872 | - case ENETUNREACH: | ||
2873 | - return "Network is unreachable"; | ||
2874 | - case ENETRESET: | ||
2875 | - return "Network dropped connection on reset"; | ||
2876 | - case ECONNABORTED: | ||
2877 | - return "Software caused connection abort"; | ||
2878 | - case ECONNRESET: | ||
2879 | - return "Connection reset by peer"; | ||
2880 | - case ENOBUFS: | ||
2881 | - return "No buffer space available"; | ||
2882 | - case EISCONN: | ||
2883 | - return "Transport endpoint is already connected"; | ||
2884 | - case ENOTCONN: | ||
2885 | - return "Transport endpoint is not connected"; | ||
2886 | - case ESHUTDOWN: | ||
2887 | - return "Cannot send after transport endpoint shutdown"; | ||
2888 | - case ETOOMANYREFS: | ||
2889 | - return "Too many references: cannot splice"; | ||
2890 | - case ETIMEDOUT: | ||
2891 | - return "Connection timed out"; | ||
2892 | - case ECONNREFUSED: | ||
2893 | - return "Connection refused"; | ||
2894 | - case ELOOP: | ||
2895 | - return "Too many levels of symbolic links"; | ||
2896 | - case EHOSTDOWN: | ||
2897 | - return "Host is down"; | ||
2898 | - case EHOSTUNREACH: | ||
2899 | - return "No route to host"; | ||
2900 | - case EPROCLIM: | ||
2901 | - return "Too many processes"; | ||
2902 | - case EUSERS: | ||
2903 | - return "Too many users"; | ||
2904 | - case EDQUOT: | ||
2905 | - return "Disk quota exceeded"; | ||
2906 | - case ESTALE: | ||
2907 | - return "Stale NFS file handle"; | ||
2908 | - case EREMOTE: | ||
2909 | - return "Object is remote"; | ||
2910 | -# if HAVE_WINSOCK2_H | ||
2911 | - /* WSA_INVALID_HANDLE maps to EBADF */ | ||
2912 | - /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ | ||
2913 | - /* WSA_INVALID_PARAMETER maps to EINVAL */ | ||
2914 | - case WSA_OPERATION_ABORTED: | ||
2915 | - return "Overlapped operation aborted"; | ||
2916 | - case WSA_IO_INCOMPLETE: | ||
2917 | - return "Overlapped I/O event object not in signaled state"; | ||
2918 | - case WSA_IO_PENDING: | ||
2919 | - return "Overlapped operations will complete later"; | ||
2920 | - /* WSAEINTR maps to EINTR */ | ||
2921 | - /* WSAEBADF maps to EBADF */ | ||
2922 | - /* WSAEACCES maps to EACCES */ | ||
2923 | - /* WSAEFAULT maps to EFAULT */ | ||
2924 | - /* WSAEINVAL maps to EINVAL */ | ||
2925 | - /* WSAEMFILE maps to EMFILE */ | ||
2926 | - /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ | ||
2927 | - /* WSAEINPROGRESS is EINPROGRESS */ | ||
2928 | - /* WSAEALREADY is EALREADY */ | ||
2929 | - /* WSAENOTSOCK is ENOTSOCK */ | ||
2930 | - /* WSAEDESTADDRREQ is EDESTADDRREQ */ | ||
2931 | - /* WSAEMSGSIZE is EMSGSIZE */ | ||
2932 | - /* WSAEPROTOTYPE is EPROTOTYPE */ | ||
2933 | - /* WSAENOPROTOOPT is ENOPROTOOPT */ | ||
2934 | - /* WSAEPROTONOSUPPORT is EPROTONOSUPPORT */ | ||
2935 | - /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ | ||
2936 | - /* WSAEOPNOTSUPP is EOPNOTSUPP */ | ||
2937 | - /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ | ||
2938 | - /* WSAEAFNOSUPPORT is EAFNOSUPPORT */ | ||
2939 | - /* WSAEADDRINUSE is EADDRINUSE */ | ||
2940 | - /* WSAEADDRNOTAVAIL is EADDRNOTAVAIL */ | ||
2941 | - /* WSAENETDOWN is ENETDOWN */ | ||
2942 | - /* WSAENETUNREACH is ENETUNREACH */ | ||
2943 | - /* WSAENETRESET is ENETRESET */ | ||
2944 | - /* WSAECONNABORTED is ECONNABORTED */ | ||
2945 | - /* WSAECONNRESET is ECONNRESET */ | ||
2946 | - /* WSAENOBUFS is ENOBUFS */ | ||
2947 | - /* WSAEISCONN is EISCONN */ | ||
2948 | - /* WSAENOTCONN is ENOTCONN */ | ||
2949 | - /* WSAESHUTDOWN is ESHUTDOWN */ | ||
2950 | - /* WSAETOOMANYREFS is ETOOMANYREFS */ | ||
2951 | - /* WSAETIMEDOUT is ETIMEDOUT */ | ||
2952 | - /* WSAECONNREFUSED is ECONNREFUSED */ | ||
2953 | - /* WSAELOOP is ELOOP */ | ||
2954 | - /* WSAENAMETOOLONG maps to ENAMETOOLONG */ | ||
2955 | - /* WSAEHOSTDOWN is EHOSTDOWN */ | ||
2956 | - /* WSAEHOSTUNREACH is EHOSTUNREACH */ | ||
2957 | - /* WSAENOTEMPTY maps to ENOTEMPTY */ | ||
2958 | - /* WSAEPROCLIM is EPROCLIM */ | ||
2959 | - /* WSAEUSERS is EUSERS */ | ||
2960 | - /* WSAEDQUOT is EDQUOT */ | ||
2961 | - /* WSAESTALE is ESTALE */ | ||
2962 | - /* WSAEREMOTE is EREMOTE */ | ||
2963 | - case WSASYSNOTREADY: | ||
2964 | - return "Network subsystem is unavailable"; | ||
2965 | - case WSAVERNOTSUPPORTED: | ||
2966 | - return "Winsock.dll version out of range"; | ||
2967 | - case WSANOTINITIALISED: | ||
2968 | - return "Successful WSAStartup not yet performed"; | ||
2969 | - case WSAEDISCON: | ||
2970 | - return "Graceful shutdown in progress"; | ||
2971 | - case WSAENOMORE: case WSA_E_NO_MORE: | ||
2972 | - return "No more results"; | ||
2973 | - case WSAECANCELLED: case WSA_E_CANCELLED: | ||
2974 | - return "Call was canceled"; | ||
2975 | - case WSAEINVALIDPROCTABLE: | ||
2976 | - return "Procedure call table is invalid"; | ||
2977 | - case WSAEINVALIDPROVIDER: | ||
2978 | - return "Service provider is invalid"; | ||
2979 | - case WSAEPROVIDERFAILEDINIT: | ||
2980 | - return "Service provider failed to initialize"; | ||
2981 | - case WSASYSCALLFAILURE: | ||
2982 | - return "System call failure"; | ||
2983 | - case WSASERVICE_NOT_FOUND: | ||
2984 | - return "Service not found"; | ||
2985 | - case WSATYPE_NOT_FOUND: | ||
2986 | - return "Class type not found"; | ||
2987 | - case WSAEREFUSED: | ||
2988 | - return "Database query was refused"; | ||
2989 | - case WSAHOST_NOT_FOUND: | ||
2990 | - return "Host not found"; | ||
2991 | - case WSATRY_AGAIN: | ||
2992 | - return "Nonauthoritative host not found"; | ||
2993 | - case WSANO_RECOVERY: | ||
2994 | - return "Nonrecoverable error"; | ||
2995 | - case WSANO_DATA: | ||
2996 | - return "Valid name, no data record of requested type"; | ||
2997 | - /* WSA_QOS_* omitted */ | ||
2998 | -# endif | ||
2999 | -#endif | ||
3000 | - | ||
3001 | -#if GNULIB_defined_ENOMSG | ||
3002 | - case ENOMSG: | ||
3003 | - return "No message of desired type"; | ||
3004 | -#endif | ||
3005 | - | ||
3006 | -#if GNULIB_defined_EIDRM | ||
3007 | - case EIDRM: | ||
3008 | - return "Identifier removed"; | ||
3009 | -#endif | ||
3010 | - | ||
3011 | -#if GNULIB_defined_ENOLINK | ||
3012 | - case ENOLINK: | ||
3013 | - return "Link has been severed"; | ||
3014 | -#endif | ||
3015 | - | ||
3016 | -#if GNULIB_defined_EPROTO | ||
3017 | - case EPROTO: | ||
3018 | - return "Protocol error"; | ||
3019 | -#endif | ||
3020 | - | ||
3021 | -#if GNULIB_defined_EMULTIHOP | ||
3022 | - case EMULTIHOP: | ||
3023 | - return "Multihop attempted"; | ||
3024 | -#endif | ||
3025 | - | ||
3026 | -#if GNULIB_defined_EBADMSG | ||
3027 | - case EBADMSG: | ||
3028 | - return "Bad message"; | ||
3029 | -#endif | ||
3030 | - | ||
3031 | -#if GNULIB_defined_EOVERFLOW | ||
3032 | - case EOVERFLOW: | ||
3033 | - return "Value too large for defined data type"; | ||
3034 | -#endif | ||
3035 | - | ||
3036 | -#if GNULIB_defined_ENOTSUP | ||
3037 | - case ENOTSUP: | ||
3038 | - return "Not supported"; | ||
3039 | -#endif | ||
3040 | - | ||
3041 | -#if GNULIB_defined_ENETRESET | ||
3042 | - case ENETRESET: | ||
3043 | - return "Network dropped connection on reset"; | ||
3044 | -#endif | ||
3045 | - | ||
3046 | -#if GNULIB_defined_ECONNABORTED | ||
3047 | - case ECONNABORTED: | ||
3048 | - return "Software caused connection abort"; | ||
3049 | -#endif | ||
3050 | - | ||
3051 | -#if GNULIB_defined_ESTALE | ||
3052 | - case ESTALE: | ||
3053 | - return "Stale NFS file handle"; | ||
3054 | -#endif | ||
3055 | - | ||
3056 | -#if GNULIB_defined_EDQUOT | ||
3057 | - case EDQUOT: | ||
3058 | - return "Disk quota exceeded"; | ||
3059 | -#endif | ||
3060 | - | ||
3061 | -#if GNULIB_defined_ECANCELED | ||
3062 | - case ECANCELED: | ||
3063 | - return "Operation canceled"; | ||
3064 | -#endif | ||
3065 | - | ||
3066 | - default: | ||
3067 | - return NULL; | ||
3068 | - } | ||
3069 | -} | ||
3070 | diff -Naurp libiconv-1.14.org//srclib/strerror-override.h libiconv-1.14/srclib/strerror-override.h | ||
3071 | --- libiconv-1.14.org//srclib/strerror-override.h 2011-08-07 06:42:06.000000000 -0700 | ||
3072 | +++ libiconv-1.14/srclib/strerror-override.h 1969-12-31 16:00:00.000000000 -0800 | ||
3073 | @@ -1,52 +0,0 @@ | ||
3074 | -/* strerror-override.h --- POSIX compatible system error routine | ||
3075 | - | ||
3076 | - Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
3077 | - | ||
3078 | - This program is free software: you can redistribute it and/or modify | ||
3079 | - it under the terms of the GNU General Public License as published by | ||
3080 | - the Free Software Foundation; either version 3 of the License, or | ||
3081 | - (at your option) any later version. | ||
3082 | - | ||
3083 | - This program is distributed in the hope that it will be useful, | ||
3084 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
3085 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
3086 | - GNU General Public License for more details. | ||
3087 | - | ||
3088 | - You should have received a copy of the GNU General Public License | ||
3089 | - along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
3090 | - | ||
3091 | -#ifndef _GL_STRERROR_OVERRIDE_H | ||
3092 | -# define _GL_STRERROR_OVERRIDE_H | ||
3093 | - | ||
3094 | -# include <errno.h> | ||
3095 | -# include <stddef.h> | ||
3096 | - | ||
3097 | -/* Reasonable buffer size that should never trigger ERANGE; if this | ||
3098 | - proves too small, we intentionally abort(), to remind us to fix | ||
3099 | - this value. */ | ||
3100 | -# define STACKBUF_LEN 256 | ||
3101 | - | ||
3102 | -/* If ERRNUM maps to an errno value defined by gnulib, return a string | ||
3103 | - describing the error. Otherwise return NULL. */ | ||
3104 | -# if REPLACE_STRERROR_0 \ | ||
3105 | - || GNULIB_defined_ETXTBSY \ | ||
3106 | - || GNULIB_defined_ESOCK \ | ||
3107 | - || GNULIB_defined_ENOMSG \ | ||
3108 | - || GNULIB_defined_EIDRM \ | ||
3109 | - || GNULIB_defined_ENOLINK \ | ||
3110 | - || GNULIB_defined_EPROTO \ | ||
3111 | - || GNULIB_defined_EMULTIHOP \ | ||
3112 | - || GNULIB_defined_EBADMSG \ | ||
3113 | - || GNULIB_defined_EOVERFLOW \ | ||
3114 | - || GNULIB_defined_ENOTSUP \ | ||
3115 | - || GNULIB_defined_ENETRESET \ | ||
3116 | - || GNULIB_defined_ECONNABORTED \ | ||
3117 | - || GNULIB_defined_ESTALE \ | ||
3118 | - || GNULIB_defined_EDQUOT \ | ||
3119 | - || GNULIB_defined_ECANCELED | ||
3120 | -extern const char *strerror_override (int errnum); | ||
3121 | -# else | ||
3122 | -# define strerror_override(ignored) NULL | ||
3123 | -# endif | ||
3124 | - | ||
3125 | -#endif /* _GL_STRERROR_OVERRIDE_H */ | ||
3126 | diff -Naurp libiconv-1.14.org//srclib/string.in.h libiconv-1.14/srclib/string.in.h | ||
3127 | --- libiconv-1.14.org//srclib/string.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
3128 | +++ libiconv-1.14/srclib/string.in.h 2012-01-08 02:07:40.418484461 -0800 | ||
3129 | @@ -16,7 +16,7 @@ | ||
3130 | along with this program; if not, write to the Free Software Foundation, | ||
3131 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | ||
3132 | |||
3133 | -#ifndef _@GUARD_PREFIX@_STRING_H | ||
3134 | +#ifndef _GL_STRING_H | ||
3135 | |||
3136 | #if __GNUC__ >= 3 | ||
3137 | @PRAGMA_SYSTEM_HEADER@ | ||
3138 | @@ -26,8 +26,8 @@ | ||
3139 | /* The include_next requires a split double-inclusion guard. */ | ||
3140 | #@INCLUDE_NEXT@ @NEXT_STRING_H@ | ||
3141 | |||
3142 | -#ifndef _@GUARD_PREFIX@_STRING_H | ||
3143 | -#define _@GUARD_PREFIX@_STRING_H | ||
3144 | +#ifndef _GL_STRING_H | ||
3145 | +#define _GL_STRING_H | ||
3146 | |||
3147 | /* NetBSD 5.0 mis-defines NULL. */ | ||
3148 | #include <stddef.h> | ||
3149 | @@ -59,36 +59,6 @@ | ||
3150 | /* The definition of _GL_WARN_ON_USE is copied here. */ | ||
3151 | |||
3152 | |||
3153 | -/* Find the index of the least-significant set bit. */ | ||
3154 | -#if @GNULIB_FFSL@ | ||
3155 | -# if !@HAVE_FFSL@ | ||
3156 | -_GL_FUNCDECL_SYS (ffsl, int, (long int i)); | ||
3157 | -# endif | ||
3158 | -_GL_CXXALIAS_SYS (ffsl, int, (long int i)); | ||
3159 | -_GL_CXXALIASWARN (ffsl); | ||
3160 | -#elif defined GNULIB_POSIXCHECK | ||
3161 | -# undef ffsl | ||
3162 | -# if HAVE_RAW_DECL_FFSL | ||
3163 | -_GL_WARN_ON_USE (ffsl, "ffsl is not portable - use the ffsl module"); | ||
3164 | -# endif | ||
3165 | -#endif | ||
3166 | - | ||
3167 | - | ||
3168 | -/* Find the index of the least-significant set bit. */ | ||
3169 | -#if @GNULIB_FFSLL@ | ||
3170 | -# if !@HAVE_FFSLL@ | ||
3171 | -_GL_FUNCDECL_SYS (ffsll, int, (long long int i)); | ||
3172 | -# endif | ||
3173 | -_GL_CXXALIAS_SYS (ffsll, int, (long long int i)); | ||
3174 | -_GL_CXXALIASWARN (ffsll); | ||
3175 | -#elif defined GNULIB_POSIXCHECK | ||
3176 | -# undef ffsll | ||
3177 | -# if HAVE_RAW_DECL_FFSLL | ||
3178 | -_GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module"); | ||
3179 | -# endif | ||
3180 | -#endif | ||
3181 | - | ||
3182 | - | ||
3183 | /* Return the first instance of C within N bytes of S, or NULL. */ | ||
3184 | #if @GNULIB_MEMCHR@ | ||
3185 | # if @REPLACE_MEMCHR@ | ||
3186 | @@ -1007,5 +977,5 @@ _GL_WARN_ON_USE (strverscmp, "strverscmp | ||
3187 | #endif | ||
3188 | |||
3189 | |||
3190 | -#endif /* _@GUARD_PREFIX@_STRING_H */ | ||
3191 | -#endif /* _@GUARD_PREFIX@_STRING_H */ | ||
3192 | +#endif /* _GL_STRING_H */ | ||
3193 | +#endif /* _GL_STRING_H */ | ||
3194 | diff -Naurp libiconv-1.14.org//srclib/sys_stat.in.h libiconv-1.14/srclib/sys_stat.in.h | ||
3195 | --- libiconv-1.14.org//srclib/sys_stat.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
3196 | +++ libiconv-1.14/srclib/sys_stat.in.h 2012-01-08 02:07:40.430484461 -0800 | ||
3197 | @@ -34,7 +34,7 @@ | ||
3198 | #else | ||
3199 | /* Normal invocation convention. */ | ||
3200 | |||
3201 | -#ifndef _@GUARD_PREFIX@_SYS_STAT_H | ||
3202 | +#ifndef _GL_SYS_STAT_H | ||
3203 | |||
3204 | /* Get nlink_t. */ | ||
3205 | #include <sys/types.h> | ||
3206 | @@ -45,8 +45,8 @@ | ||
3207 | /* The include_next requires a split double-inclusion guard. */ | ||
3208 | #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ | ||
3209 | |||
3210 | -#ifndef _@GUARD_PREFIX@_SYS_STAT_H | ||
3211 | -#define _@GUARD_PREFIX@_SYS_STAT_H | ||
3212 | +#ifndef _GL_SYS_STAT_H | ||
3213 | +#define _GL_SYS_STAT_H | ||
3214 | |||
3215 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | ||
3216 | |||
3217 | @@ -653,6 +653,6 @@ _GL_WARN_ON_USE (utimensat, "utimensat i | ||
3218 | #endif | ||
3219 | |||
3220 | |||
3221 | -#endif /* _@GUARD_PREFIX@_SYS_STAT_H */ | ||
3222 | -#endif /* _@GUARD_PREFIX@_SYS_STAT_H */ | ||
3223 | +#endif /* _GL_SYS_STAT_H */ | ||
3224 | +#endif /* _GL_SYS_STAT_H */ | ||
3225 | #endif | ||
3226 | diff -Naurp libiconv-1.14.org//srclib/time.in.h libiconv-1.14/srclib/time.in.h | ||
3227 | --- libiconv-1.14.org//srclib/time.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
3228 | +++ libiconv-1.14/srclib/time.in.h 2012-01-08 02:07:40.438484462 -0800 | ||
3229 | @@ -28,13 +28,13 @@ | ||
3230 | without adding our own declarations. */ | ||
3231 | #if (defined __need_time_t || defined __need_clock_t \ | ||
3232 | || defined __need_timespec \ | ||
3233 | - || defined _@GUARD_PREFIX@_TIME_H) | ||
3234 | + || defined _GL_TIME_H) | ||
3235 | |||
3236 | # @INCLUDE_NEXT@ @NEXT_TIME_H@ | ||
3237 | |||
3238 | #else | ||
3239 | |||
3240 | -# define _@GUARD_PREFIX@_TIME_H | ||
3241 | +# define _GL_TIME_H | ||
3242 | |||
3243 | # @INCLUDE_NEXT@ @NEXT_TIME_H@ | ||
3244 | |||
3245 | diff -Naurp libiconv-1.14.org//srclib/unistd.in.h libiconv-1.14/srclib/unistd.in.h | ||
3246 | --- libiconv-1.14.org//srclib/unistd.in.h 2011-08-07 06:42:06.000000000 -0700 | ||
3247 | +++ libiconv-1.14/srclib/unistd.in.h 2012-01-08 02:07:40.450484462 -0800 | ||
3248 | @@ -36,7 +36,7 @@ | ||
3249 | # define _GL_WINSOCK2_H_WITNESS | ||
3250 | |||
3251 | /* Normal invocation. */ | ||
3252 | -#elif !defined _@GUARD_PREFIX@_UNISTD_H | ||
3253 | +#elif !defined _GL_UNISTD_H | ||
3254 | |||
3255 | /* The include_next requires a split double-inclusion guard. */ | ||
3256 | #if @HAVE_UNISTD_H@ | ||
3257 | @@ -51,8 +51,8 @@ | ||
3258 | # undef _GL_INCLUDING_WINSOCK2_H | ||
3259 | #endif | ||
3260 | |||
3261 | -#if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H | ||
3262 | -#define _@GUARD_PREFIX@_UNISTD_H | ||
3263 | +#if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H | ||
3264 | +#define _GL_UNISTD_H | ||
3265 | |||
3266 | /* NetBSD 5.0 mis-defines NULL. Also get size_t. */ | ||
3267 | #include <stddef.h> | ||
3268 | @@ -117,77 +117,78 @@ | ||
3269 | /* The definition of _GL_WARN_ON_USE is copied here. */ | ||
3270 | |||
3271 | |||
3272 | -/* Hide some function declarations from <winsock2.h>. */ | ||
3273 | - | ||
3274 | -#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ | ||
3275 | -# if !defined _@GUARD_PREFIX@_SYS_SOCKET_H | ||
3276 | -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
3277 | -# undef socket | ||
3278 | -# define socket socket_used_without_including_sys_socket_h | ||
3279 | -# undef connect | ||
3280 | -# define connect connect_used_without_including_sys_socket_h | ||
3281 | -# undef accept | ||
3282 | -# define accept accept_used_without_including_sys_socket_h | ||
3283 | -# undef bind | ||
3284 | -# define bind bind_used_without_including_sys_socket_h | ||
3285 | -# undef getpeername | ||
3286 | -# define getpeername getpeername_used_without_including_sys_socket_h | ||
3287 | -# undef getsockname | ||
3288 | -# define getsockname getsockname_used_without_including_sys_socket_h | ||
3289 | -# undef getsockopt | ||
3290 | -# define getsockopt getsockopt_used_without_including_sys_socket_h | ||
3291 | -# undef listen | ||
3292 | -# define listen listen_used_without_including_sys_socket_h | ||
3293 | -# undef recv | ||
3294 | -# define recv recv_used_without_including_sys_socket_h | ||
3295 | -# undef send | ||
3296 | -# define send send_used_without_including_sys_socket_h | ||
3297 | -# undef recvfrom | ||
3298 | -# define recvfrom recvfrom_used_without_including_sys_socket_h | ||
3299 | -# undef sendto | ||
3300 | -# define sendto sendto_used_without_including_sys_socket_h | ||
3301 | -# undef setsockopt | ||
3302 | -# define setsockopt setsockopt_used_without_including_sys_socket_h | ||
3303 | -# undef shutdown | ||
3304 | -# define shutdown shutdown_used_without_including_sys_socket_h | ||
3305 | -# else | ||
3306 | - _GL_WARN_ON_USE (socket, | ||
3307 | - "socket() used without including <sys/socket.h>"); | ||
3308 | - _GL_WARN_ON_USE (connect, | ||
3309 | - "connect() used without including <sys/socket.h>"); | ||
3310 | - _GL_WARN_ON_USE (accept, | ||
3311 | - "accept() used without including <sys/socket.h>"); | ||
3312 | - _GL_WARN_ON_USE (bind, | ||
3313 | - "bind() used without including <sys/socket.h>"); | ||
3314 | - _GL_WARN_ON_USE (getpeername, | ||
3315 | - "getpeername() used without including <sys/socket.h>"); | ||
3316 | - _GL_WARN_ON_USE (getsockname, | ||
3317 | - "getsockname() used without including <sys/socket.h>"); | ||
3318 | - _GL_WARN_ON_USE (getsockopt, | ||
3319 | - "getsockopt() used without including <sys/socket.h>"); | ||
3320 | - _GL_WARN_ON_USE (listen, | ||
3321 | - "listen() used without including <sys/socket.h>"); | ||
3322 | - _GL_WARN_ON_USE (recv, | ||
3323 | - "recv() used without including <sys/socket.h>"); | ||
3324 | - _GL_WARN_ON_USE (send, | ||
3325 | - "send() used without including <sys/socket.h>"); | ||
3326 | - _GL_WARN_ON_USE (recvfrom, | ||
3327 | - "recvfrom() used without including <sys/socket.h>"); | ||
3328 | - _GL_WARN_ON_USE (sendto, | ||
3329 | - "sendto() used without including <sys/socket.h>"); | ||
3330 | - _GL_WARN_ON_USE (setsockopt, | ||
3331 | - "setsockopt() used without including <sys/socket.h>"); | ||
3332 | - _GL_WARN_ON_USE (shutdown, | ||
3333 | - "shutdown() used without including <sys/socket.h>"); | ||
3334 | +#if @GNULIB_GETHOSTNAME@ | ||
3335 | +/* Get all possible declarations of gethostname(). */ | ||
3336 | +# if @UNISTD_H_HAVE_WINSOCK2_H@ | ||
3337 | +# if !defined _GL_SYS_SOCKET_H | ||
3338 | +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
3339 | +# undef socket | ||
3340 | +# define socket socket_used_without_including_sys_socket_h | ||
3341 | +# undef connect | ||
3342 | +# define connect connect_used_without_including_sys_socket_h | ||
3343 | +# undef accept | ||
3344 | +# define accept accept_used_without_including_sys_socket_h | ||
3345 | +# undef bind | ||
3346 | +# define bind bind_used_without_including_sys_socket_h | ||
3347 | +# undef getpeername | ||
3348 | +# define getpeername getpeername_used_without_including_sys_socket_h | ||
3349 | +# undef getsockname | ||
3350 | +# define getsockname getsockname_used_without_including_sys_socket_h | ||
3351 | +# undef getsockopt | ||
3352 | +# define getsockopt getsockopt_used_without_including_sys_socket_h | ||
3353 | +# undef listen | ||
3354 | +# define listen listen_used_without_including_sys_socket_h | ||
3355 | +# undef recv | ||
3356 | +# define recv recv_used_without_including_sys_socket_h | ||
3357 | +# undef send | ||
3358 | +# define send send_used_without_including_sys_socket_h | ||
3359 | +# undef recvfrom | ||
3360 | +# define recvfrom recvfrom_used_without_including_sys_socket_h | ||
3361 | +# undef sendto | ||
3362 | +# define sendto sendto_used_without_including_sys_socket_h | ||
3363 | +# undef setsockopt | ||
3364 | +# define setsockopt setsockopt_used_without_including_sys_socket_h | ||
3365 | +# undef shutdown | ||
3366 | +# define shutdown shutdown_used_without_including_sys_socket_h | ||
3367 | +# else | ||
3368 | + _GL_WARN_ON_USE (socket, | ||
3369 | + "socket() used without including <sys/socket.h>"); | ||
3370 | + _GL_WARN_ON_USE (connect, | ||
3371 | + "connect() used without including <sys/socket.h>"); | ||
3372 | + _GL_WARN_ON_USE (accept, | ||
3373 | + "accept() used without including <sys/socket.h>"); | ||
3374 | + _GL_WARN_ON_USE (bind, | ||
3375 | + "bind() used without including <sys/socket.h>"); | ||
3376 | + _GL_WARN_ON_USE (getpeername, | ||
3377 | + "getpeername() used without including <sys/socket.h>"); | ||
3378 | + _GL_WARN_ON_USE (getsockname, | ||
3379 | + "getsockname() used without including <sys/socket.h>"); | ||
3380 | + _GL_WARN_ON_USE (getsockopt, | ||
3381 | + "getsockopt() used without including <sys/socket.h>"); | ||
3382 | + _GL_WARN_ON_USE (listen, | ||
3383 | + "listen() used without including <sys/socket.h>"); | ||
3384 | + _GL_WARN_ON_USE (recv, | ||
3385 | + "recv() used without including <sys/socket.h>"); | ||
3386 | + _GL_WARN_ON_USE (send, | ||
3387 | + "send() used without including <sys/socket.h>"); | ||
3388 | + _GL_WARN_ON_USE (recvfrom, | ||
3389 | + "recvfrom() used without including <sys/socket.h>"); | ||
3390 | + _GL_WARN_ON_USE (sendto, | ||
3391 | + "sendto() used without including <sys/socket.h>"); | ||
3392 | + _GL_WARN_ON_USE (setsockopt, | ||
3393 | + "setsockopt() used without including <sys/socket.h>"); | ||
3394 | + _GL_WARN_ON_USE (shutdown, | ||
3395 | + "shutdown() used without including <sys/socket.h>"); | ||
3396 | +# endif | ||
3397 | # endif | ||
3398 | -# endif | ||
3399 | -# if !defined _@GUARD_PREFIX@_SYS_SELECT_H | ||
3400 | -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
3401 | -# undef select | ||
3402 | -# define select select_used_without_including_sys_select_h | ||
3403 | -# else | ||
3404 | - _GL_WARN_ON_USE (select, | ||
3405 | - "select() used without including <sys/select.h>"); | ||
3406 | +# if !defined _GL_SYS_SELECT_H | ||
3407 | +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
3408 | +# undef select | ||
3409 | +# define select select_used_without_including_sys_select_h | ||
3410 | +# else | ||
3411 | + _GL_WARN_ON_USE (select, | ||
3412 | + "select() used without including <sys/select.h>"); | ||
3413 | +# endif | ||
3414 | # endif | ||
3415 | # endif | ||
3416 | #endif | ||
3417 | @@ -1061,7 +1062,6 @@ _GL_WARN_ON_USE (pipe2, "pipe2 is unport | ||
3418 | specification <http://www.opengroup.org/susv3xsh/pread.html>. */ | ||
3419 | # if @REPLACE_PREAD@ | ||
3420 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
3421 | -# undef pread | ||
3422 | # define pread rpl_pread | ||
3423 | # endif | ||
3424 | _GL_FUNCDECL_RPL (pread, ssize_t, | ||
3425 | @@ -1096,7 +1096,6 @@ _GL_WARN_ON_USE (pread, "pread is unport | ||
3426 | <http://www.opengroup.org/susv3xsh/pwrite.html>. */ | ||
3427 | # if @REPLACE_PWRITE@ | ||
3428 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
3429 | -# undef pwrite | ||
3430 | # define pwrite rpl_pwrite | ||
3431 | # endif | ||
3432 | _GL_FUNCDECL_RPL (pwrite, ssize_t, | ||
3433 | @@ -1417,5 +1416,5 @@ _GL_CXXALIASWARN (write); | ||
3434 | #endif | ||
3435 | |||
3436 | |||
3437 | -#endif /* _@GUARD_PREFIX@_UNISTD_H */ | ||
3438 | -#endif /* _@GUARD_PREFIX@_UNISTD_H */ | ||
3439 | +#endif /* _GL_UNISTD_H */ | ||
3440 | +#endif /* _GL_UNISTD_H */ | ||
3441 | diff -Naurp libiconv-1.14.org//srclib/verify.h libiconv-1.14/srclib/verify.h | ||
3442 | --- libiconv-1.14.org//srclib/verify.h 2011-08-07 06:42:07.000000000 -0700 | ||
3443 | +++ libiconv-1.14/srclib/verify.h 2012-01-08 02:07:40.494484464 -0800 | ||
3444 | @@ -164,13 +164,10 @@ | ||
3445 | (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) | ||
3446 | |||
3447 | # ifdef __cplusplus | ||
3448 | -# if !GNULIB_defined_struct__gl_verify_type | ||
3449 | template <int w> | ||
3450 | struct _gl_verify_type { | ||
3451 | unsigned int _gl_verify_error_if_negative: w; | ||
3452 | }; | ||
3453 | -# define GNULIB_defined_struct__gl_verify_type 1 | ||
3454 | -# endif | ||
3455 | # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ | ||
3456 | _gl_verify_type<(R) ? 1 : -1> | ||
3457 | # elif defined _GL_HAVE__STATIC_ASSERT | ||
3458 | @@ -209,7 +206,7 @@ template <int w> | ||
3459 | # endif | ||
3460 | # endif | ||
3461 | |||
3462 | -/* @assert.h omit start@ */ | ||
3463 | +# ifdef _GL_VERIFY_H | ||
3464 | |||
3465 | /* Each of these macros verifies that its argument R is nonzero. To | ||
3466 | be portable, R should be an integer constant expression. Unlike | ||
3467 | @@ -221,23 +218,15 @@ template <int w> | ||
3468 | contexts, e.g., the top level. */ | ||
3469 | |||
3470 | /* Verify requirement R at compile-time, as an integer constant expression. | ||
3471 | - Return 1. This is equivalent to verify_expr (R, 1). | ||
3472 | - | ||
3473 | - verify_true is obsolescent; please use verify_expr instead. */ | ||
3474 | - | ||
3475 | -# define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") | ||
3476 | + Return 1. */ | ||
3477 | |||
3478 | -/* Verify requirement R at compile-time. Return the value of the | ||
3479 | - expression E. */ | ||
3480 | - | ||
3481 | -# define verify_expr(R, E) \ | ||
3482 | - (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E)) | ||
3483 | +# define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") | ||
3484 | |||
3485 | /* Verify requirement R at compile-time, as a declaration without a | ||
3486 | trailing ';'. */ | ||
3487 | |||
3488 | -# define verify(R) _GL_VERIFY (R, "verify (" #R ")") | ||
3489 | +# define verify(R) _GL_VERIFY (R, "verify (" #R ")") | ||
3490 | |||
3491 | -/* @assert.h omit end@ */ | ||
3492 | +# endif | ||
3493 | |||
3494 | #endif | ||
3495 | diff -Naurp libiconv-1.14.org//srcm4/canonicalize.m4 libiconv-1.14/srcm4/canonicalize.m4 | ||
3496 | --- libiconv-1.14.org//srcm4/canonicalize.m4 2011-08-07 06:42:07.000000000 -0700 | ||
3497 | +++ libiconv-1.14/srcm4/canonicalize.m4 2012-01-08 02:07:40.566484469 -0800 | ||
3498 | @@ -1,4 +1,4 @@ | ||
3499 | -# canonicalize.m4 serial 23 | ||
3500 | +# canonicalize.m4 serial 21 | ||
3501 | |||
3502 | dnl Copyright (C) 2003-2007, 2009-2011 Free Software Foundation, Inc. | ||
3503 | |||
3504 | @@ -10,6 +10,8 @@ dnl with or without modifications, as lo | ||
3505 | # not provide or fix realpath. | ||
3506 | AC_DEFUN([gl_FUNC_CANONICALIZE_FILENAME_MODE], | ||
3507 | [ | ||
3508 | + AC_LIBOBJ([canonicalize]) | ||
3509 | + | ||
3510 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
3511 | AC_CHECK_FUNCS_ONCE([canonicalize_file_name]) | ||
3512 | AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) | ||
3513 | @@ -28,14 +30,16 @@ AC_DEFUN([gl_CANONICALIZE_LGPL], | ||
3514 | AC_REQUIRE([gl_CANONICALIZE_LGPL_SEPARATE]) | ||
3515 | if test $ac_cv_func_canonicalize_file_name = no; then | ||
3516 | HAVE_CANONICALIZE_FILE_NAME=0 | ||
3517 | + AC_LIBOBJ([canonicalize-lgpl]) | ||
3518 | if test $ac_cv_func_realpath = no; then | ||
3519 | HAVE_REALPATH=0 | ||
3520 | elif test "$gl_cv_func_realpath_works" != yes; then | ||
3521 | REPLACE_REALPATH=1 | ||
3522 | fi | ||
3523 | elif test "$gl_cv_func_realpath_works" != yes; then | ||
3524 | - REPLACE_CANONICALIZE_FILE_NAME=1 | ||
3525 | + AC_LIBOBJ([canonicalize-lgpl]) | ||
3526 | REPLACE_REALPATH=1 | ||
3527 | + REPLACE_CANONICALIZE_FILE_NAME=1 | ||
3528 | fi | ||
3529 | ]) | ||
3530 | |||
3531 | diff -Naurp libiconv-1.14.org//srcm4/errno_h.m4 libiconv-1.14/srcm4/errno_h.m4 | ||
3532 | --- libiconv-1.14.org//srcm4/errno_h.m4 2011-08-07 06:42:07.000000000 -0700 | ||
3533 | +++ libiconv-1.14/srcm4/errno_h.m4 2012-01-08 02:07:40.590484469 -0800 | ||
3534 | @@ -1,4 +1,4 @@ | ||
3535 | -# errno_h.m4 serial 10 | ||
3536 | +# errno_h.m4 serial 9 | ||
3537 | dnl Copyright (C) 2004, 2006, 2008-2011 Free Software Foundation, Inc. | ||
3538 | dnl This file is free software; the Free Software Foundation | ||
3539 | dnl gives unlimited permission to copy and/or distribute it, | ||
3540 | @@ -34,12 +34,6 @@ booboo | ||
3541 | #if !defined ENOTSUP | ||
3542 | booboo | ||
3543 | #endif | ||
3544 | -#if !defined ENETRESET | ||
3545 | -booboo | ||
3546 | -#endif | ||
3547 | -#if !defined ECONNABORTED | ||
3548 | -booboo | ||
3549 | -#endif | ||
3550 | #if !defined ESTALE | ||
3551 | booboo | ||
3552 | #endif | ||
3553 | diff -Naurp libiconv-1.14.org//srcm4/error.m4 libiconv-1.14/srcm4/error.m4 | ||
3554 | --- libiconv-1.14.org//srcm4/error.m4 2011-08-07 06:42:07.000000000 -0700 | ||
3555 | +++ libiconv-1.14/srcm4/error.m4 2012-01-08 02:07:40.598484470 -0800 | ||
3556 | @@ -1,4 +1,4 @@ | ||
3557 | -#serial 14 | ||
3558 | +#serial 13 | ||
3559 | |||
3560 | # Copyright (C) 1996-1998, 2001-2004, 2009-2011 Free Software Foundation, Inc. | ||
3561 | # | ||
3562 | @@ -8,8 +8,16 @@ | ||
3563 | |||
3564 | AC_DEFUN([gl_ERROR], | ||
3565 | [ | ||
3566 | - dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer | ||
3567 | - dnl maintained in Autoconf and because it invokes AC_LIBOBJ. | ||
3568 | + AC_FUNC_ERROR_AT_LINE | ||
3569 | + dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]). | ||
3570 | + gl_PREREQ_ERROR | ||
3571 | +]) | ||
3572 | + | ||
3573 | +# Redefine AC_FUNC_ERROR_AT_LINE, because it is no longer maintained in | ||
3574 | +# Autoconf. | ||
3575 | +AC_DEFUN([AC_FUNC_ERROR_AT_LINE], | ||
3576 | +[ | ||
3577 | + AC_LIBSOURCES([error.h, error.c])dnl | ||
3578 | AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], | ||
3579 | [AC_LINK_IFELSE( | ||
3580 | [AC_LANG_PROGRAM( | ||
3581 | @@ -17,6 +25,9 @@ AC_DEFUN([gl_ERROR], | ||
3582 | [[error_at_line (0, 0, "", 0, "an error occurred");]])], | ||
3583 | [ac_cv_lib_error_at_line=yes], | ||
3584 | [ac_cv_lib_error_at_line=no])]) | ||
3585 | + if test $ac_cv_lib_error_at_line = no; then | ||
3586 | + AC_LIBOBJ([error]) | ||
3587 | + fi | ||
3588 | ]) | ||
3589 | |||
3590 | # Prerequisites of lib/error.c. | ||
3591 | diff -Naurp libiconv-1.14.org//srcm4/extensions.m4 libiconv-1.14/srcm4/extensions.m4 | ||
3592 | --- libiconv-1.14.org//srcm4/extensions.m4 2011-08-07 06:42:07.000000000 -0700 | ||
3593 | +++ libiconv-1.14/srcm4/extensions.m4 2012-01-08 02:07:40.606484471 -0800 | ||
3594 | @@ -1,4 +1,4 @@ | ||
3595 | -# serial 10 -*- Autoconf -*- | ||
3596 | +# serial 9 -*- Autoconf -*- | ||
3597 | # Enable extensions on systems that normally disable them. | ||
3598 | |||
3599 | # Copyright (C) 2003, 2006-2011 Free Software Foundation, Inc. | ||
3600 | @@ -67,10 +67,6 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl | ||
3601 | #ifndef _ALL_SOURCE | ||
3602 | # undef _ALL_SOURCE | ||
3603 | #endif | ||
3604 | -/* Enable general extensions on MacOS X. */ | ||
3605 | -#ifndef _DARWIN_C_SOURCE | ||
3606 | -# undef _DARWIN_C_SOURCE | ||
3607 | -#endif | ||
3608 | /* Enable GNU extensions on systems that have them. */ | ||
3609 | #ifndef _GNU_SOURCE | ||
3610 | # undef _GNU_SOURCE | ||
3611 | @@ -99,7 +95,6 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl | ||
3612 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
3613 | AC_DEFINE([__EXTENSIONS__]) | ||
3614 | AC_DEFINE([_ALL_SOURCE]) | ||
3615 | - AC_DEFINE([_DARWIN_C_SOURCE]) | ||
3616 | AC_DEFINE([_GNU_SOURCE]) | ||
3617 | AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
3618 | AC_DEFINE([_TANDEM_SOURCE]) | ||
3619 | diff -Naurp libiconv-1.14.org//srcm4/gnulib-cache.m4 libiconv-1.14/srcm4/gnulib-cache.m4 | ||
3620 | --- libiconv-1.14.org//srcm4/gnulib-cache.m4 2011-08-07 06:42:11.000000000 -0700 | ||
3621 | +++ libiconv-1.14/srcm4/gnulib-cache.m4 2012-01-08 02:07:43.154484593 -0800 | ||
3622 | @@ -15,7 +15,7 @@ | ||
3623 | |||
3624 | |||
3625 | # Specification in the form of a command-line invocation: | ||
3626 | -# gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libicrt --source-base=srclib --m4-base=srcm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --makefile-name=Makefile.gnulib --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files binary-io error gettext gettext-h libiconv-misc mbstate memmove progname relocatable-prog safe-read sigpipe stdio stdlib strerror unistd uniwidth/width unlocked-io xalloc | ||
3627 | +# gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libicrt --source-base=srclib --m4-base=srcm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --makefile-name=Makefile.gnulib --no-libtool --macro-prefix=gl --no-vc-files binary-io error gettext gettext-h libiconv-misc mbstate memmove progname relocatable relocatable-prog safe-read sigpipe stdio stdlib strerror unistd uniwidth/width unlocked-io xalloc | ||
3628 | |||
3629 | # Specification in the form of a few gnulib-tool.m4 macro invocations: | ||
3630 | gl_LOCAL_DIR([gnulib-local]) | ||
3631 | @@ -28,6 +28,7 @@ gl_MODULES([ | ||
3632 | mbstate | ||
3633 | memmove | ||
3634 | progname | ||
3635 | + relocatable | ||
3636 | relocatable-prog | ||
3637 | safe-read | ||
3638 | sigpipe | ||
3639 | @@ -49,5 +50,4 @@ gl_LIB([libicrt]) | ||
3640 | gl_MAKEFILE_NAME([Makefile.gnulib]) | ||
3641 | gl_MACRO_PREFIX([gl]) | ||
3642 | gl_PO_DOMAIN([]) | ||
3643 | -gl_WITNESS_C_DOMAIN([]) | ||
3644 | gl_VC_FILES([false]) | ||
3645 | diff -Naurp libiconv-1.14.org//srcm4/gnulib-common.m4 libiconv-1.14/srcm4/gnulib-common.m4 | ||
3646 | --- libiconv-1.14.org//srcm4/gnulib-common.m4 2011-08-07 06:42:07.000000000 -0700 | ||
3647 | +++ libiconv-1.14/srcm4/gnulib-common.m4 2012-01-08 02:07:40.634484471 -0800 | ||
3648 | @@ -1,4 +1,4 @@ | ||
3649 | -# gnulib-common.m4 serial 29 | ||
3650 | +# gnulib-common.m4 serial 24 | ||
3651 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. | ||
3652 | dnl This file is free software; the Free Software Foundation | ||
3653 | dnl gives unlimited permission to copy and/or distribute it, | ||
3654 | @@ -12,19 +12,6 @@ AC_DEFUN([gl_COMMON], [ | ||
3655 | AC_REQUIRE([gl_COMMON_BODY]) | ||
3656 | ]) | ||
3657 | AC_DEFUN([gl_COMMON_BODY], [ | ||
3658 | - AH_VERBATIM([_Noreturn], | ||
3659 | -[/* The _Noreturn keyword of draft C1X. */ | ||
3660 | -#ifndef _Noreturn | ||
3661 | -# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ | ||
3662 | - || 0x5110 <= __SUNPRO_C) | ||
3663 | -# define _Noreturn __attribute__ ((__noreturn__)) | ||
3664 | -# elif 1200 <= _MSC_VER | ||
3665 | -# define _Noreturn __declspec (noreturn) | ||
3666 | -# else | ||
3667 | -# define _Noreturn | ||
3668 | -# endif | ||
3669 | -#endif | ||
3670 | -]) | ||
3671 | AH_VERBATIM([isoc99_inline], | ||
3672 | [/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports | ||
3673 | the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of | ||
3674 | @@ -47,20 +34,6 @@ AC_DEFUN([gl_COMMON_BODY], [ | ||
3675 | /* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name | ||
3676 | is a misnomer outside of parameter lists. */ | ||
3677 | #define _UNUSED_PARAMETER_ _GL_UNUSED | ||
3678 | - | ||
3679 | -/* The __pure__ attribute was added in gcc 2.96. */ | ||
3680 | -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) | ||
3681 | -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) | ||
3682 | -#else | ||
3683 | -# define _GL_ATTRIBUTE_PURE /* empty */ | ||
3684 | -#endif | ||
3685 | - | ||
3686 | -/* The __const__ attribute was added in gcc 2.95. */ | ||
3687 | -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) | ||
3688 | -# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) | ||
3689 | -#else | ||
3690 | -# define _GL_ATTRIBUTE_CONST /* empty */ | ||
3691 | -#endif | ||
3692 | ]) | ||
3693 | dnl Preparation for running test programs: | ||
3694 | dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not | ||
3695 | @@ -74,49 +47,16 @@ AC_DEFUN([gl_COMMON_BODY], [ | ||
3696 | # expands to a C preprocessor expression that evaluates to 1 or 0, depending | ||
3697 | # whether a gnulib module that has been requested shall be considered present | ||
3698 | # or not. | ||
3699 | -m4_define([gl_MODULE_INDICATOR_CONDITION], [1]) | ||
3700 | +AC_DEFUN([gl_MODULE_INDICATOR_CONDITION], [1]) | ||
3701 | |||
3702 | # gl_MODULE_INDICATOR_SET_VARIABLE([modulename]) | ||
3703 | # sets the shell variable that indicates the presence of the given module to | ||
3704 | # a C preprocessor expression that will evaluate to 1. | ||
3705 | AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE], | ||
3706 | [ | ||
3707 | - gl_MODULE_INDICATOR_SET_VARIABLE_AUX( | ||
3708 | - [GNULIB_[]m4_translit([[$1]], | ||
3709 | - [abcdefghijklmnopqrstuvwxyz./-], | ||
3710 | - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])], | ||
3711 | - [gl_MODULE_INDICATOR_CONDITION]) | ||
3712 | -]) | ||
3713 | - | ||
3714 | -# gl_MODULE_INDICATOR_SET_VARIABLE_AUX([variable]) | ||
3715 | -# modifies the shell variable to include the gl_MODULE_INDICATOR_CONDITION. | ||
3716 | -# The shell variable's value is a C preprocessor expression that evaluates | ||
3717 | -# to 0 or 1. | ||
3718 | -AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE_AUX], | ||
3719 | -[ | ||
3720 | - m4_if(m4_defn([gl_MODULE_INDICATOR_CONDITION]), [1], | ||
3721 | - [ | ||
3722 | - dnl Simplify the expression VALUE || 1 to 1. | ||
3723 | - $1=1 | ||
3724 | - ], | ||
3725 | - [gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR([$1], | ||
3726 | - [gl_MODULE_INDICATOR_CONDITION])]) | ||
3727 | -]) | ||
3728 | - | ||
3729 | -# gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR([variable], [condition]) | ||
3730 | -# modifies the shell variable to include the given condition. The shell | ||
3731 | -# variable's value is a C preprocessor expression that evaluates to 0 or 1. | ||
3732 | -AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR], | ||
3733 | -[ | ||
3734 | - dnl Simplify the expression 1 || CONDITION to 1. | ||
3735 | - if test "$[]$1" != 1; then | ||
3736 | - dnl Simplify the expression 0 || CONDITION to CONDITION. | ||
3737 | - if test "$[]$1" = 0; then | ||
3738 | - $1=$2 | ||
3739 | - else | ||
3740 | - $1="($[]$1 || $2)" | ||
3741 | - fi | ||
3742 | - fi | ||
3743 | + GNULIB_[]m4_translit([[$1]], | ||
3744 | + [abcdefghijklmnopqrstuvwxyz./-], | ||
3745 | + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=gl_MODULE_INDICATOR_CONDITION | ||
3746 | ]) | ||
3747 | |||
3748 | # gl_MODULE_INDICATOR([modulename]) | ||
3749 | @@ -211,35 +151,6 @@ m4_ifndef([AS_VAR_IF], | ||
3750 | [m4_define([AS_VAR_IF], | ||
3751 | [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) | ||
3752 | |||
3753 | -# gl_PROG_AR_RANLIB | ||
3754 | -# Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler. | ||
3755 | -AC_DEFUN([gl_PROG_AR_RANLIB], | ||
3756 | -[ | ||
3757 | - dnl Minix 3 comes with two toolchains: The Amsterdam Compiler Kit compiler | ||
3758 | - dnl as "cc", and GCC as "gcc". They have different object file formats and | ||
3759 | - dnl library formats. In particular, the GNU binutils programs ar, ranlib | ||
3760 | - dnl produce libraries that work only with gcc, not with cc. | ||
3761 | - AC_REQUIRE([AC_PROG_CC]) | ||
3762 | - AC_EGREP_CPP([Amsterdam], | ||
3763 | - [ | ||
3764 | -#ifdef __ACK__ | ||
3765 | -Amsterdam | ||
3766 | -#endif | ||
3767 | - ], | ||
3768 | - [AR='cc -c.a' | ||
3769 | - ARFLAGS='-o' | ||
3770 | - RANLIB=':' | ||
3771 | - ], | ||
3772 | - [dnl Use the Automake-documented default values for AR and ARFLAGS. | ||
3773 | - AR='ar' | ||
3774 | - ARFLAGS='cru' | ||
3775 | - dnl Use the ranlib program if it is available. | ||
3776 | - AC_PROG_RANLIB | ||
3777 | - ]) | ||
3778 | - AC_SUBST([AR]) | ||
3779 | - AC_SUBST([ARFLAGS]) | ||
3780 | -]) | ||
3781 | - | ||
3782 | # AC_PROG_MKDIR_P | ||
3783 | # is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix | ||
3784 | # for interoperability with automake-1.9.6 from autoconf-2.62. | ||
3785 | diff -Naurp libiconv-1.14.org//srcm4/gnulib-comp.m4 libiconv-1.14/srcm4/gnulib-comp.m4 | ||
3786 | --- libiconv-1.14.org//srcm4/gnulib-comp.m4 2011-08-07 06:42:12.000000000 -0700 | ||
3787 | +++ libiconv-1.14/srcm4/gnulib-comp.m4 2012-01-08 02:07:43.922484630 -0800 | ||
3788 | @@ -25,12 +25,14 @@ AC_DEFUN([gl_EARLY], | ||
3789 | m4_pattern_allow([^gl_ES$])dnl a valid locale name | ||
3790 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
3791 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
3792 | - AC_REQUIRE([gl_PROG_AR_RANLIB]) | ||
3793 | + AC_REQUIRE([AC_PROG_RANLIB]) | ||
3794 | AC_REQUIRE([AM_PROG_CC_C_O]) | ||
3795 | # Code from module alloca-opt: | ||
3796 | # Code from module allocator: | ||
3797 | # Code from module areadlink: | ||
3798 | + # Code from module arg-nonnull: | ||
3799 | # Code from module binary-io: | ||
3800 | + # Code from module c++defs: | ||
3801 | # Code from module canonicalize-lgpl: | ||
3802 | # Code from module careadlinkat: | ||
3803 | # Code from module dosname: | ||
3804 | @@ -46,7 +48,6 @@ AC_DEFUN([gl_EARLY], | ||
3805 | # Code from module havelib: | ||
3806 | # Code from module include_next: | ||
3807 | # Code from module intprops: | ||
3808 | - # Code from module largefile: | ||
3809 | # Code from module libiconv-misc: | ||
3810 | # Code from module lstat: | ||
3811 | # Code from module malloca: | ||
3812 | @@ -64,10 +65,6 @@ AC_DEFUN([gl_EARLY], | ||
3813 | # Code from module signal: | ||
3814 | # Code from module sigpipe: | ||
3815 | # Code from module sigprocmask: | ||
3816 | - # Code from module snippet/_Noreturn: | ||
3817 | - # Code from module snippet/arg-nonnull: | ||
3818 | - # Code from module snippet/c++defs: | ||
3819 | - # Code from module snippet/warn-on-use: | ||
3820 | # Code from module ssize_t: | ||
3821 | # Code from module stat: | ||
3822 | # Code from module stdbool: | ||
3823 | @@ -77,7 +74,6 @@ AC_DEFUN([gl_EARLY], | ||
3824 | # Code from module stdlib: | ||
3825 | # Code from module streq: | ||
3826 | # Code from module strerror: | ||
3827 | - # Code from module strerror-override: | ||
3828 | # Code from module string: | ||
3829 | # Code from module sys_stat: | ||
3830 | # Code from module time: | ||
3831 | @@ -87,6 +83,7 @@ AC_DEFUN([gl_EARLY], | ||
3832 | # Code from module uniwidth/width: | ||
3833 | # Code from module unlocked-io: | ||
3834 | # Code from module verify: | ||
3835 | + # Code from module warn-on-use: | ||
3836 | # Code from module xalloc: | ||
3837 | # Code from module xreadlink: | ||
3838 | ]) | ||
3839 | @@ -109,9 +106,6 @@ AC_DEFUN([gl_INIT], | ||
3840 | gl_source_base='srclib' | ||
3841 | gl_FUNC_ALLOCA | ||
3842 | gl_CANONICALIZE_LGPL | ||
3843 | -if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then | ||
3844 | - AC_LIBOBJ([canonicalize-lgpl]) | ||
3845 | -fi | ||
3846 | gl_MODULE_INDICATOR([canonicalize-lgpl]) | ||
3847 | gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) | ||
3848 | gl_STDLIB_MODULE_INDICATOR([realpath]) | ||
3849 | @@ -121,10 +115,6 @@ gl_ENVIRON | ||
3850 | gl_UNISTD_MODULE_INDICATOR([environ]) | ||
3851 | gl_HEADER_ERRNO_H | ||
3852 | gl_ERROR | ||
3853 | -if test $ac_cv_lib_error_at_line = no; then | ||
3854 | - AC_LIBOBJ([error]) | ||
3855 | - gl_PREREQ_ERROR | ||
3856 | -fi | ||
3857 | m4_ifdef([AM_XGETTEXT_OPTION], | ||
3858 | [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) | ||
3859 | AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) | ||
3860 | @@ -134,43 +124,26 @@ AM_GNU_GETTEXT_VERSION([0.18.1]) | ||
3861 | AC_SUBST([LIBINTL]) | ||
3862 | AC_SUBST([LTLIBINTL]) | ||
3863 | gl_FUNC_LSTAT | ||
3864 | -if test $REPLACE_LSTAT = 1; then | ||
3865 | - AC_LIBOBJ([lstat]) | ||
3866 | - gl_PREREQ_LSTAT | ||
3867 | -fi | ||
3868 | gl_SYS_STAT_MODULE_INDICATOR([lstat]) | ||
3869 | gl_MALLOCA | ||
3870 | AC_TYPE_MBSTATE_T | ||
3871 | gl_FUNC_MEMMOVE | ||
3872 | -if test $ac_cv_func_memmove = no; then | ||
3873 | - AC_LIBOBJ([memmove]) | ||
3874 | - gl_PREREQ_MEMMOVE | ||
3875 | -fi | ||
3876 | gl_MULTIARCH | ||
3877 | gl_PATHMAX | ||
3878 | AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>]) | ||
3879 | AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>]) | ||
3880 | gl_FUNC_READ | ||
3881 | -if test $REPLACE_READ = 1; then | ||
3882 | - AC_LIBOBJ([read]) | ||
3883 | -fi | ||
3884 | gl_UNISTD_MODULE_INDICATOR([read]) | ||
3885 | gl_FUNC_READLINK | ||
3886 | -if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then | ||
3887 | - AC_LIBOBJ([readlink]) | ||
3888 | - gl_PREREQ_READLINK | ||
3889 | -fi | ||
3890 | gl_UNISTD_MODULE_INDICATOR([readlink]) | ||
3891 | gl_RELOCATABLE([$gl_source_base]) | ||
3892 | -if test $RELOCATABLE = yes; then | ||
3893 | - AC_LIBOBJ([progreloc]) | ||
3894 | -fi | ||
3895 | gl_FUNC_READLINK_SEPARATE | ||
3896 | gl_CANONICALIZE_LGPL_SEPARATE | ||
3897 | gl_MALLOCA | ||
3898 | -gl_RELOCATABLE_LIBRARY | ||
3899 | +gl_RELOCATABLE_LIBRARY_SEPARATE | ||
3900 | gl_FUNC_SETENV_SEPARATE | ||
3901 | -gl_PREREQ_SAFE_READ | ||
3902 | +gl_FUNC_STRERROR_SEPARATE | ||
3903 | +gl_SAFE_READ | ||
3904 | gl_SIGNAL_H | ||
3905 | gl_SIGNAL_SIGPIPE | ||
3906 | dnl Define the C macro GNULIB_SIGPIPE to 1. | ||
3907 | @@ -186,17 +159,9 @@ dnl Define the substituted variable GNUL | ||
3908 | AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) | ||
3909 | GNULIB_UNISTD_H_SIGPIPE=1 | ||
3910 | gl_SIGNALBLOCKING | ||
3911 | -if test $HAVE_POSIX_SIGNALBLOCKING = 0; then | ||
3912 | - AC_LIBOBJ([sigprocmask]) | ||
3913 | - gl_PREREQ_SIGPROCMASK | ||
3914 | -fi | ||
3915 | gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) | ||
3916 | gt_TYPE_SSIZE_T | ||
3917 | gl_FUNC_STAT | ||
3918 | -if test $REPLACE_STAT = 1; then | ||
3919 | - AC_LIBOBJ([stat]) | ||
3920 | - gl_PREREQ_STAT | ||
3921 | -fi | ||
3922 | gl_SYS_STAT_MODULE_INDICATOR([stat]) | ||
3923 | AM_STDBOOL_H | ||
3924 | gl_STDDEF_H | ||
3925 | @@ -204,17 +169,7 @@ gl_STDINT_H | ||
3926 | gl_STDIO_H | ||
3927 | gl_STDLIB_H | ||
3928 | gl_FUNC_STRERROR | ||
3929 | -if test $REPLACE_STRERROR = 1; then | ||
3930 | - AC_LIBOBJ([strerror]) | ||
3931 | -fi | ||
3932 | -gl_MODULE_INDICATOR([strerror]) | ||
3933 | gl_STRING_MODULE_INDICATOR([strerror]) | ||
3934 | -AC_REQUIRE([gl_HEADER_ERRNO_H]) | ||
3935 | -AC_REQUIRE([gl_FUNC_STRERROR_0]) | ||
3936 | -if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then | ||
3937 | - AC_LIBOBJ([strerror-override]) | ||
3938 | - gl_PREREQ_SYS_H_WINSOCK2 | ||
3939 | -fi | ||
3940 | gl_HEADER_STRING_H | ||
3941 | gl_HEADER_SYS_STAT_H | ||
3942 | AC_PROG_MKDIR_P | ||
3943 | @@ -364,14 +319,13 @@ AC_DEFUN([gltests_LIBSOURCES], [ | ||
3944 | # This macro records the list of files which have been installed by | ||
3945 | # gnulib-tool and may be removed by future gnulib-tool invocations. | ||
3946 | AC_DEFUN([gl_FILE_LIST], [ | ||
3947 | + build-aux/arg-nonnull.h | ||
3948 | + build-aux/c++defs.h | ||
3949 | build-aux/config.libpath | ||
3950 | build-aux/config.rpath | ||
3951 | build-aux/install-reloc | ||
3952 | build-aux/reloc-ldflags | ||
3953 | - build-aux/snippet/_Noreturn.h | ||
3954 | - build-aux/snippet/arg-nonnull.h | ||
3955 | - build-aux/snippet/c++defs.h | ||
3956 | - build-aux/snippet/warn-on-use.h | ||
3957 | + build-aux/warn-on-use.h | ||
3958 | doc/relocatable.texi | ||
3959 | lib/alloca.in.h | ||
3960 | lib/allocator.c | ||
3961 | @@ -419,8 +373,6 @@ AC_DEFUN([gl_FILE_LIST], [ | ||
3962 | lib/stdio.in.h | ||
3963 | lib/stdlib.in.h | ||
3964 | lib/streq.h | ||
3965 | - lib/strerror-override.c | ||
3966 | - lib/strerror-override.h | ||
3967 | lib/strerror.c | ||
3968 | lib/string.in.h | ||
3969 | lib/sys_stat.in.h | ||
3970 | @@ -463,7 +415,6 @@ AC_DEFUN([gl_FILE_LIST], [ | ||
3971 | m4/intmax.m4 | ||
3972 | m4/inttypes-pri.m4 | ||
3973 | m4/inttypes_h.m4 | ||
3974 | - m4/largefile.m4 | ||
3975 | m4/lcmessage.m4 | ||
3976 | m4/lib-ld.m4 | ||
3977 | m4/lib-link.m4 | ||
3978 | @@ -502,7 +453,6 @@ AC_DEFUN([gl_FILE_LIST], [ | ||
3979 | m4/stdlib_h.m4 | ||
3980 | m4/strerror.m4 | ||
3981 | m4/string_h.m4 | ||
3982 | - m4/sys_socket_h.m4 | ||
3983 | m4/sys_stat_h.m4 | ||
3984 | m4/threadlib.m4 | ||
3985 | m4/time_h.m4 | ||
3986 | diff -Naurp libiconv-1.14.org//srcm4/include_next.m4 libiconv-1.14/srcm4/include_next.m4 | ||
3987 | --- libiconv-1.14.org//srcm4/include_next.m4 2011-08-07 06:42:07.000000000 -0700 | ||
3988 | +++ libiconv-1.14/srcm4/include_next.m4 2012-01-08 02:07:40.650484472 -0800 | ||
3989 | @@ -1,4 +1,4 @@ | ||
3990 | -# include_next.m4 serial 20 | ||
3991 | +# include_next.m4 serial 18 | ||
3992 | dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. | ||
3993 | dnl This file is free software; the Free Software Foundation | ||
3994 | dnl gives unlimited permission to copy and/or distribute it, | ||
3995 | @@ -175,13 +175,11 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL], | ||
3996 | [AC_CHECK_HEADERS_ONCE([$1]) | ||
3997 | ]) | ||
3998 | |||
3999 | -dnl FIXME: gl_next_header and gl_header_exists must be used unquoted | ||
4000 | -dnl until we can assume autoconf 2.64 or newer. | ||
4001 | m4_foreach_w([gl_HEADER_NAME], [$1], | ||
4002 | [AS_VAR_PUSHDEF([gl_next_header], | ||
4003 | [gl_cv_next_]m4_defn([gl_HEADER_NAME])) | ||
4004 | if test $gl_cv_have_include_next = yes; then | ||
4005 | - AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) | ||
4006 | + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) | ||
4007 | else | ||
4008 | AC_CACHE_CHECK( | ||
4009 | [absolute name of <]m4_defn([gl_HEADER_NAME])[>], | ||
4010 | @@ -210,7 +208,7 @@ dnl until we can assume autoconf 2.64 or | ||
4011 | dnl eval is necessary to expand gl_absname_cpp. | ||
4012 | dnl Ultrix and Pyramid sh refuse to redirect output of eval, | ||
4013 | dnl so use subshell. | ||
4014 | - AS_VAR_SET(gl_next_header, | ||
4015 | + AS_VAR_SET([gl_next_header], | ||
4016 | ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | | ||
4017 | sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ | ||
4018 | s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# | ||
4019 | @@ -220,20 +218,20 @@ dnl until we can assume autoconf 2.64 or | ||
4020 | }'`'"']) | ||
4021 | m4_if([$2], [check], | ||
4022 | [else | ||
4023 | - AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) | ||
4024 | + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) | ||
4025 | fi | ||
4026 | ]) | ||
4027 | ]) | ||
4028 | fi | ||
4029 | AC_SUBST( | ||
4030 | AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), | ||
4031 | - [AS_VAR_GET(gl_next_header)]) | ||
4032 | + [AS_VAR_GET([gl_next_header])]) | ||
4033 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | ||
4034 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | ||
4035 | gl_next_as_first_directive='<'gl_HEADER_NAME'>' | ||
4036 | else | ||
4037 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | ||
4038 | - gl_next_as_first_directive=AS_VAR_GET(gl_next_header) | ||
4039 | + gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) | ||
4040 | fi | ||
4041 | AC_SUBST( | ||
4042 | AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), | ||
4043 | diff -Naurp libiconv-1.14.org//srcm4/largefile.m4 libiconv-1.14/srcm4/largefile.m4 | ||
4044 | --- libiconv-1.14.org//srcm4/largefile.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4045 | +++ libiconv-1.14/srcm4/largefile.m4 1969-12-31 16:00:00.000000000 -0800 | ||
4046 | @@ -1,104 +0,0 @@ | ||
4047 | -# Enable large files on systems where this is not the default. | ||
4048 | - | ||
4049 | -# Copyright 1992-1996, 1998-2011 Free Software Foundation, Inc. | ||
4050 | -# This file is free software; the Free Software Foundation | ||
4051 | -# gives unlimited permission to copy and/or distribute it, | ||
4052 | -# with or without modifications, as long as this notice is preserved. | ||
4053 | - | ||
4054 | -# The following implementation works around a problem in autoconf <= 2.68; | ||
4055 | -# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5. | ||
4056 | -m4_version_prereq([2.69], [] ,[ | ||
4057 | - | ||
4058 | -# _AC_SYS_LARGEFILE_TEST_INCLUDES | ||
4059 | -# ------------------------------- | ||
4060 | -m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES], | ||
4061 | -[@%:@include <sys/types.h> | ||
4062 | - /* Check that off_t can represent 2**63 - 1 correctly. | ||
4063 | - We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4064 | - since some C++ compilers masquerading as C compilers | ||
4065 | - incorrectly reject 9223372036854775807. */ | ||
4066 | -@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4067 | - int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 | ||
4068 | - && LARGE_OFF_T % 2147483647 == 1) | ||
4069 | - ? 1 : -1]];[]dnl | ||
4070 | -]) | ||
4071 | - | ||
4072 | - | ||
4073 | -# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, | ||
4074 | -# CACHE-VAR, | ||
4075 | -# DESCRIPTION, | ||
4076 | -# PROLOGUE, [FUNCTION-BODY]) | ||
4077 | -# -------------------------------------------------------- | ||
4078 | -m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE], | ||
4079 | -[AC_CACHE_CHECK([for $1 value needed for large files], [$3], | ||
4080 | -[while :; do | ||
4081 | - m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])( | ||
4082 | - [AC_LANG_PROGRAM([$5], [$6])], | ||
4083 | - [$3=no; break]) | ||
4084 | - m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])( | ||
4085 | - [AC_LANG_PROGRAM([@%:@define $1 $2 | ||
4086 | -$5], [$6])], | ||
4087 | - [$3=$2; break]) | ||
4088 | - $3=unknown | ||
4089 | - break | ||
4090 | -done]) | ||
4091 | -case $$3 in #( | ||
4092 | - no | unknown) ;; | ||
4093 | - *) AC_DEFINE_UNQUOTED([$1], [$$3], [$4]);; | ||
4094 | -esac | ||
4095 | -rm -rf conftest*[]dnl | ||
4096 | -])# _AC_SYS_LARGEFILE_MACRO_VALUE | ||
4097 | - | ||
4098 | - | ||
4099 | -# AC_SYS_LARGEFILE | ||
4100 | -# ---------------- | ||
4101 | -# By default, many hosts won't let programs access large files; | ||
4102 | -# one must use special compiler options to get large-file access to work. | ||
4103 | -# For more details about this brain damage please see: | ||
4104 | -# http://www.unix-systems.org/version2/whatsnew/lfs20mar.html | ||
4105 | -AC_DEFUN([AC_SYS_LARGEFILE], | ||
4106 | -[AC_ARG_ENABLE(largefile, | ||
4107 | - [ --disable-largefile omit support for large files]) | ||
4108 | -if test "$enable_largefile" != no; then | ||
4109 | - | ||
4110 | - AC_CACHE_CHECK([for special C compiler options needed for large files], | ||
4111 | - ac_cv_sys_largefile_CC, | ||
4112 | - [ac_cv_sys_largefile_CC=no | ||
4113 | - if test "$GCC" != yes; then | ||
4114 | - ac_save_CC=$CC | ||
4115 | - while :; do | ||
4116 | - # IRIX 6.2 and later do not support large files by default, | ||
4117 | - # so use the C compiler's -n32 option if that helps. | ||
4118 | - AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) | ||
4119 | - AC_COMPILE_IFELSE([], [break]) | ||
4120 | - CC="$CC -n32" | ||
4121 | - AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) | ||
4122 | - break | ||
4123 | - done | ||
4124 | - CC=$ac_save_CC | ||
4125 | - rm -f conftest.$ac_ext | ||
4126 | - fi]) | ||
4127 | - if test "$ac_cv_sys_largefile_CC" != no; then | ||
4128 | - CC=$CC$ac_cv_sys_largefile_CC | ||
4129 | - fi | ||
4130 | - | ||
4131 | - _AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64, | ||
4132 | - ac_cv_sys_file_offset_bits, | ||
4133 | - [Number of bits in a file offset, on hosts where this is settable.], | ||
4134 | - [_AC_SYS_LARGEFILE_TEST_INCLUDES]) | ||
4135 | - if test $ac_cv_sys_file_offset_bits = unknown; then | ||
4136 | - _AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1, | ||
4137 | - ac_cv_sys_large_files, | ||
4138 | - [Define for large files, on AIX-style hosts.], | ||
4139 | - [_AC_SYS_LARGEFILE_TEST_INCLUDES]) | ||
4140 | - fi | ||
4141 | - | ||
4142 | - AH_VERBATIM([_DARWIN_USE_64_BIT_INODE], | ||
4143 | -[/* Enable large inode numbers on Mac OS X. */ | ||
4144 | -#ifndef _DARWIN_USE_64_BIT_INODE | ||
4145 | -# define _DARWIN_USE_64_BIT_INODE 1 | ||
4146 | -#endif]) | ||
4147 | -fi | ||
4148 | -])# AC_SYS_LARGEFILE | ||
4149 | - | ||
4150 | -])# m4_version_prereq 2.69 | ||
4151 | diff -Naurp libiconv-1.14.org//srcm4/lstat.m4 libiconv-1.14/srcm4/lstat.m4 | ||
4152 | --- libiconv-1.14.org//srcm4/lstat.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4153 | +++ libiconv-1.14/srcm4/lstat.m4 2012-01-08 02:07:40.722484476 -0800 | ||
4154 | @@ -1,4 +1,4 @@ | ||
4155 | -# serial 23 | ||
4156 | +# serial 21 | ||
4157 | |||
4158 | # Copyright (C) 1997-2001, 2003-2011 Free Software Foundation, Inc. | ||
4159 | # | ||
4160 | @@ -15,28 +15,24 @@ AC_DEFUN([gl_FUNC_LSTAT], | ||
4161 | dnl "#define lstat stat", and lstat.c is a no-op. | ||
4162 | AC_CHECK_FUNCS_ONCE([lstat]) | ||
4163 | if test $ac_cv_func_lstat = yes; then | ||
4164 | - AC_REQUIRE([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) | ||
4165 | - if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then | ||
4166 | + AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) | ||
4167 | + if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | ||
4168 | + dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ([lstat]). | ||
4169 | REPLACE_LSTAT=1 | ||
4170 | fi | ||
4171 | + # Prerequisites of lib/lstat.c. | ||
4172 | + AC_REQUIRE([AC_C_INLINE]) | ||
4173 | else | ||
4174 | HAVE_LSTAT=0 | ||
4175 | fi | ||
4176 | ]) | ||
4177 | |||
4178 | -# Prerequisites of lib/lstat.c. | ||
4179 | -AC_DEFUN([gl_PREREQ_LSTAT], | ||
4180 | +# Redefine AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, because it is no longer | ||
4181 | +# maintained in Autoconf. | ||
4182 | +AC_DEFUN([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK], | ||
4183 | [ | ||
4184 | - AC_REQUIRE([AC_C_INLINE]) | ||
4185 | - : | ||
4186 | -]) | ||
4187 | - | ||
4188 | -AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK], | ||
4189 | -[ | ||
4190 | - dnl We don't use AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK any more, because it | ||
4191 | - dnl is no longer maintained in Autoconf and because it invokes AC_LIBOBJ. | ||
4192 | AC_CACHE_CHECK([whether lstat correctly handles trailing slash], | ||
4193 | - [gl_cv_func_lstat_dereferences_slashed_symlink], | ||
4194 | + [ac_cv_func_lstat_dereferences_slashed_symlink], | ||
4195 | [rm -f conftest.sym conftest.file | ||
4196 | echo >conftest.file | ||
4197 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | ||
4198 | @@ -49,22 +45,25 @@ AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_ | ||
4199 | have to compile and use the lstat wrapper. */ | ||
4200 | return lstat ("conftest.sym/", &sbuf) == 0; | ||
4201 | ]])], | ||
4202 | - [gl_cv_func_lstat_dereferences_slashed_symlink=yes], | ||
4203 | - [gl_cv_func_lstat_dereferences_slashed_symlink=no], | ||
4204 | + [ac_cv_func_lstat_dereferences_slashed_symlink=yes], | ||
4205 | + [ac_cv_func_lstat_dereferences_slashed_symlink=no], | ||
4206 | [# When cross-compiling, be pessimistic so we will end up using the | ||
4207 | # replacement version of lstat that checks for trailing slashes and | ||
4208 | # calls lstat a second time when necessary. | ||
4209 | - gl_cv_func_lstat_dereferences_slashed_symlink=no | ||
4210 | + ac_cv_func_lstat_dereferences_slashed_symlink=no | ||
4211 | ]) | ||
4212 | else | ||
4213 | # If the 'ln -s' command failed, then we probably don't even | ||
4214 | # have an lstat function. | ||
4215 | - gl_cv_func_lstat_dereferences_slashed_symlink=no | ||
4216 | + ac_cv_func_lstat_dereferences_slashed_symlink=no | ||
4217 | fi | ||
4218 | rm -f conftest.sym conftest.file | ||
4219 | ]) | ||
4220 | - test $gl_cv_func_lstat_dereferences_slashed_symlink = yes && | ||
4221 | + test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | ||
4222 | AC_DEFINE_UNQUOTED([LSTAT_FOLLOWS_SLASHED_SYMLINK], [1], | ||
4223 | [Define to 1 if `lstat' dereferences a symlink specified | ||
4224 | with a trailing slash.]) | ||
4225 | + if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then | ||
4226 | + AC_LIBOBJ([lstat]) | ||
4227 | + fi | ||
4228 | ]) | ||
4229 | diff -Naurp libiconv-1.14.org//srcm4/memmove.m4 libiconv-1.14/srcm4/memmove.m4 | ||
4230 | --- libiconv-1.14.org//srcm4/memmove.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4231 | +++ libiconv-1.14/srcm4/memmove.m4 2012-01-08 02:07:40.738484477 -0800 | ||
4232 | @@ -1,4 +1,4 @@ | ||
4233 | -# memmove.m4 serial 4 | ||
4234 | +# memmove.m4 serial 3 | ||
4235 | dnl Copyright (C) 2002, 2009-2011 Free Software Foundation, Inc. | ||
4236 | dnl This file is free software; the Free Software Foundation | ||
4237 | dnl gives unlimited permission to copy and/or distribute it, | ||
4238 | @@ -6,7 +6,10 @@ dnl with or without modifications, as lo | ||
4239 | |||
4240 | AC_DEFUN([gl_FUNC_MEMMOVE], | ||
4241 | [ | ||
4242 | - AC_CHECK_FUNCS([memmove]) | ||
4243 | + AC_REPLACE_FUNCS([memmove]) | ||
4244 | + if test $ac_cv_func_memmove = no; then | ||
4245 | + gl_PREREQ_MEMMOVE | ||
4246 | + fi | ||
4247 | ]) | ||
4248 | |||
4249 | # Prerequisites of lib/memmove.c. | ||
4250 | diff -Naurp libiconv-1.14.org//srcm4/pathmax.m4 libiconv-1.14/srcm4/pathmax.m4 | ||
4251 | --- libiconv-1.14.org//srcm4/pathmax.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4252 | +++ libiconv-1.14/srcm4/pathmax.m4 2012-01-08 02:07:40.758484478 -0800 | ||
4253 | @@ -1,4 +1,4 @@ | ||
4254 | -# pathmax.m4 serial 9 | ||
4255 | +# pathmax.m4 serial 8 | ||
4256 | dnl Copyright (C) 2002-2003, 2005-2006, 2009-2011 Free Software Foundation, | ||
4257 | dnl Inc. | ||
4258 | dnl This file is free software; the Free Software Foundation | ||
4259 | @@ -8,5 +8,6 @@ dnl with or without modifications, as lo | ||
4260 | AC_DEFUN([gl_PATHMAX], | ||
4261 | [ | ||
4262 | dnl Prerequisites of lib/pathmax.h. | ||
4263 | + AC_CHECK_FUNCS_ONCE([pathconf]) | ||
4264 | AC_CHECK_HEADERS_ONCE([sys/param.h]) | ||
4265 | ]) | ||
4266 | diff -Naurp libiconv-1.14.org//srcm4/po.m4 libiconv-1.14/srcm4/po.m4 | ||
4267 | --- libiconv-1.14.org//srcm4/po.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4268 | +++ libiconv-1.14/srcm4/po.m4 2012-01-08 02:07:40.766484477 -0800 | ||
4269 | @@ -1,4 +1,4 @@ | ||
4270 | -# po.m4 serial 17a | ||
4271 | +# po.m4 serial 17 (gettext-0.18) | ||
4272 | dnl Copyright (C) 1995-2011 Free Software Foundation, Inc. | ||
4273 | dnl This file is free software; the Free Software Foundation | ||
4274 | dnl gives unlimited permission to copy and/or distribute it, | ||
4275 | @@ -118,8 +118,7 @@ changequote([,])dnl | ||
4276 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | ||
4277 | rm -f "$ac_dir/POTFILES" | ||
4278 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | ||
4279 | - gt_tab=`printf '\t'` | ||
4280 | - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | ||
4281 | + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | ||
4282 | POMAKEFILEDEPS="POTFILES.in" | ||
4283 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | ||
4284 | # on $ac_dir but don't depend on user-specified configuration | ||
4285 | @@ -255,7 +254,6 @@ EOT | ||
4286 | fi | ||
4287 | |||
4288 | # A sed script that extracts the value of VARIABLE from a Makefile. | ||
4289 | - tab=`printf '\t'` | ||
4290 | sed_x_variable=' | ||
4291 | # Test if the hold space is empty. | ||
4292 | x | ||
4293 | @@ -263,9 +261,9 @@ s/P/P/ | ||
4294 | x | ||
4295 | ta | ||
4296 | # Yes it was empty. Look if we have the expected variable definition. | ||
4297 | -/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{ | ||
4298 | +/^[ ]*VARIABLE[ ]*=/{ | ||
4299 | # Seen the first line of the variable definition. | ||
4300 | - s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=// | ||
4301 | + s/^[ ]*VARIABLE[ ]*=// | ||
4302 | ba | ||
4303 | } | ||
4304 | bd | ||
4305 | @@ -407,15 +405,14 @@ changequote([,])dnl | ||
4306 | fi | ||
4307 | |||
4308 | sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" | ||
4309 | - tab=`printf '\t'` | ||
4310 | if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then | ||
4311 | # Add dependencies that cannot be formulated as a simple suffix rule. | ||
4312 | for lang in $ALL_LINGUAS; do | ||
4313 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | ||
4314 | cat >> "$ac_file.tmp" <<EOF | ||
4315 | $frobbedlang.msg: $lang.po | ||
4316 | -${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | ||
4317 | -${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
4318 | + @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ | ||
4319 | + \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
4320 | EOF | ||
4321 | done | ||
4322 | fi | ||
4323 | @@ -425,8 +422,8 @@ EOF | ||
4324 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
4325 | cat >> "$ac_file.tmp" <<EOF | ||
4326 | $frobbedlang/\$(DOMAIN).resources.dll: $lang.po | ||
4327 | -${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | ||
4328 | -${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
4329 | + @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | ||
4330 | + \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
4331 | EOF | ||
4332 | done | ||
4333 | fi | ||
4334 | diff -Naurp libiconv-1.14.org//srcm4/readlink.m4 libiconv-1.14/srcm4/readlink.m4 | ||
4335 | --- libiconv-1.14.org//srcm4/readlink.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4336 | +++ libiconv-1.14/srcm4/readlink.m4 2012-01-08 02:07:40.790484479 -0800 | ||
4337 | @@ -1,4 +1,4 @@ | ||
4338 | -# readlink.m4 serial 11 | ||
4339 | +# readlink.m4 serial 10 | ||
4340 | dnl Copyright (C) 2003, 2007, 2009-2011 Free Software Foundation, Inc. | ||
4341 | dnl This file is free software; the Free Software Foundation | ||
4342 | dnl gives unlimited permission to copy and/or distribute it, | ||
4343 | @@ -10,6 +10,8 @@ AC_DEFUN([gl_FUNC_READLINK], | ||
4344 | AC_CHECK_FUNCS_ONCE([readlink]) | ||
4345 | if test $ac_cv_func_readlink = no; then | ||
4346 | HAVE_READLINK=0 | ||
4347 | + AC_LIBOBJ([readlink]) | ||
4348 | + gl_PREREQ_READLINK | ||
4349 | else | ||
4350 | AC_CACHE_CHECK([whether readlink signature is correct], | ||
4351 | [gl_cv_decl_readlink_works], | ||
4352 | @@ -38,8 +40,10 @@ AC_DEFUN([gl_FUNC_READLINK], | ||
4353 | AC_DEFINE([READLINK_TRAILING_SLASH_BUG], [1], [Define to 1 if readlink | ||
4354 | fails to recognize a trailing slash.]) | ||
4355 | REPLACE_READLINK=1 | ||
4356 | + AC_LIBOBJ([readlink]) | ||
4357 | elif test "$gl_cv_decl_readlink_works" != yes; then | ||
4358 | REPLACE_READLINK=1 | ||
4359 | + AC_LIBOBJ([readlink]) | ||
4360 | fi | ||
4361 | fi | ||
4362 | ]) | ||
4363 | diff -Naurp libiconv-1.14.org//srcm4/read.m4 libiconv-1.14/srcm4/read.m4 | ||
4364 | --- libiconv-1.14.org//srcm4/read.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4365 | +++ libiconv-1.14/srcm4/read.m4 2012-01-08 02:07:40.782484478 -0800 | ||
4366 | @@ -1,4 +1,4 @@ | ||
4367 | -# read.m4 serial 2 | ||
4368 | +# read.m4 serial 1 | ||
4369 | dnl Copyright (C) 2011 Free Software Foundation, Inc. | ||
4370 | dnl This file is free software; the Free Software Foundation | ||
4371 | dnl gives unlimited permission to copy and/or distribute it, | ||
4372 | @@ -14,6 +14,7 @@ AC_DEFUN([gl_FUNC_READ], | ||
4373 | gl_NONBLOCKING_IO | ||
4374 | if test $gl_cv_have_nonblocking != yes; then | ||
4375 | REPLACE_READ=1 | ||
4376 | + AC_LIBOBJ([read]) | ||
4377 | fi | ||
4378 | ]) | ||
4379 | ]) | ||
4380 | diff -Naurp libiconv-1.14.org//srcm4/relocatable-lib.m4 libiconv-1.14/srcm4/relocatable-lib.m4 | ||
4381 | --- libiconv-1.14.org//srcm4/relocatable-lib.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4382 | +++ libiconv-1.14/srcm4/relocatable-lib.m4 2012-01-08 02:07:40.798484480 -0800 | ||
4383 | @@ -1,4 +1,4 @@ | ||
4384 | -# relocatable-lib.m4 serial 6 | ||
4385 | +# relocatable-lib.m4 serial 5 | ||
4386 | dnl Copyright (C) 2003, 2005-2007, 2009-2011 Free Software Foundation, Inc. | ||
4387 | dnl This file is free software; the Free Software Foundation | ||
4388 | dnl gives unlimited permission to copy and/or distribute it, | ||
4389 | @@ -10,6 +10,9 @@ dnl Support for relocatable libraries. | ||
4390 | AC_DEFUN([gl_RELOCATABLE_LIBRARY], | ||
4391 | [ | ||
4392 | AC_REQUIRE([gl_RELOCATABLE_LIBRARY_BODY]) | ||
4393 | + if test $RELOCATABLE = yes; then | ||
4394 | + AC_LIBOBJ([relocatable]) | ||
4395 | + fi | ||
4396 | ]) | ||
4397 | AC_DEFUN([gl_RELOCATABLE_LIBRARY_BODY], | ||
4398 | [ | ||
4399 | @@ -29,6 +32,13 @@ AC_DEFUN([gl_RELOCATABLE_LIBRARY_BODY], | ||
4400 | fi | ||
4401 | ]) | ||
4402 | |||
4403 | +dnl Like gl_RELOCATABLE_LIBRARY, except prepare for separate compilation | ||
4404 | +dnl (no AC_LIBOBJ). | ||
4405 | +AC_DEFUN([gl_RELOCATABLE_LIBRARY_SEPARATE], | ||
4406 | +[ | ||
4407 | + AC_REQUIRE([gl_RELOCATABLE_LIBRARY_BODY]) | ||
4408 | +]) | ||
4409 | + | ||
4410 | dnl Support for relocatable packages for which it is a nop. | ||
4411 | AC_DEFUN([gl_RELOCATABLE_NOP], | ||
4412 | [ | ||
4413 | diff -Naurp libiconv-1.14.org//srcm4/relocatable.m4 libiconv-1.14/srcm4/relocatable.m4 | ||
4414 | --- libiconv-1.14.org//srcm4/relocatable.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4415 | +++ libiconv-1.14/srcm4/relocatable.m4 2012-01-08 02:07:40.802484479 -0800 | ||
4416 | @@ -1,4 +1,4 @@ | ||
4417 | -# relocatable.m4 serial 17 | ||
4418 | +# relocatable.m4 serial 16 | ||
4419 | dnl Copyright (C) 2003, 2005-2007, 2009-2011 Free Software Foundation, Inc. | ||
4420 | dnl This file is free software; the Free Software Foundation | ||
4421 | dnl gives unlimited permission to copy and/or distribute it, | ||
4422 | @@ -14,6 +14,9 @@ AC_DEFUN([gl_RELOCATABLE], | ||
4423 | [ | ||
4424 | AC_REQUIRE([gl_RELOCATABLE_BODY]) | ||
4425 | gl_RELOCATABLE_LIBRARY | ||
4426 | + if test $RELOCATABLE = yes; then | ||
4427 | + AC_LIBOBJ([progreloc]) | ||
4428 | + fi | ||
4429 | : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} | ||
4430 | RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" | ||
4431 | RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" | ||
4432 | diff -Naurp libiconv-1.14.org//srcm4/safe-read.m4 libiconv-1.14/srcm4/safe-read.m4 | ||
4433 | --- libiconv-1.14.org//srcm4/safe-read.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4434 | +++ libiconv-1.14/srcm4/safe-read.m4 2012-01-08 02:07:40.810484480 -0800 | ||
4435 | @@ -1,10 +1,17 @@ | ||
4436 | -# safe-read.m4 serial 6 | ||
4437 | +# safe-read.m4 serial 5 | ||
4438 | dnl Copyright (C) 2002-2003, 2005-2006, 2009-2011 Free Software Foundation, | ||
4439 | dnl Inc. | ||
4440 | dnl This file is free software; the Free Software Foundation | ||
4441 | dnl gives unlimited permission to copy and/or distribute it, | ||
4442 | dnl with or without modifications, as long as this notice is preserved. | ||
4443 | |||
4444 | +AC_DEFUN([gl_SAFE_READ], | ||
4445 | +[ | ||
4446 | + AC_LIBOBJ([safe-read]) | ||
4447 | + | ||
4448 | + gl_PREREQ_SAFE_READ | ||
4449 | +]) | ||
4450 | + | ||
4451 | # Prerequisites of lib/safe-read.c. | ||
4452 | AC_DEFUN([gl_PREREQ_SAFE_READ], | ||
4453 | [ | ||
4454 | diff -Naurp libiconv-1.14.org//srcm4/setenv.m4 libiconv-1.14/srcm4/setenv.m4 | ||
4455 | --- libiconv-1.14.org//srcm4/setenv.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4456 | +++ libiconv-1.14/srcm4/setenv.m4 2012-01-08 02:07:40.818484481 -0800 | ||
4457 | @@ -1,4 +1,4 @@ | ||
4458 | -# setenv.m4 serial 24 | ||
4459 | +# setenv.m4 serial 22 | ||
4460 | dnl Copyright (C) 2001-2004, 2006-2011 Free Software Foundation, Inc. | ||
4461 | dnl This file is free software; the Free Software Foundation | ||
4462 | dnl gives unlimited permission to copy and/or distribute it, | ||
4463 | @@ -38,6 +38,9 @@ AC_DEFUN([gl_FUNC_SETENV], | ||
4464 | REPLACE_SETENV=1 | ||
4465 | fi | ||
4466 | fi | ||
4467 | + if test $HAVE_SETENV$REPLACE_SETENV != 10; then | ||
4468 | + AC_LIBOBJ([setenv]) | ||
4469 | + fi | ||
4470 | ]) | ||
4471 | |||
4472 | # Like gl_FUNC_SETENV, except prepare for separate compilation | ||
4473 | @@ -62,9 +65,9 @@ AC_DEFUN([gl_FUNC_UNSETENV], | ||
4474 | fi | ||
4475 | AC_CHECK_FUNCS([unsetenv]) | ||
4476 | if test $ac_cv_func_unsetenv = no; then | ||
4477 | - HAVE_UNSETENV=0 | ||
4478 | + AC_LIBOBJ([unsetenv]) | ||
4479 | + gl_PREREQ_UNSETENV | ||
4480 | else | ||
4481 | - HAVE_UNSETENV=1 | ||
4482 | dnl Some BSDs return void, failing to do error checking. | ||
4483 | AC_CACHE_CHECK([for unsetenv() return type], [gt_cv_func_unsetenv_ret], | ||
4484 | [AC_COMPILE_IFELSE( | ||
4485 | @@ -90,6 +93,7 @@ int unsetenv(); | ||
4486 | AC_DEFINE([VOID_UNSETENV], [1], [Define to 1 if unsetenv returns void | ||
4487 | instead of int.]) | ||
4488 | REPLACE_UNSETENV=1 | ||
4489 | + AC_LIBOBJ([unsetenv]) | ||
4490 | fi | ||
4491 | |||
4492 | dnl Solaris 10 unsetenv does not remove all copies of a name. | ||
4493 | @@ -122,6 +126,7 @@ int unsetenv(); | ||
4494 | [gl_cv_func_unsetenv_works="guessing no"])]) | ||
4495 | if test "$gl_cv_func_unsetenv_works" != yes; then | ||
4496 | REPLACE_UNSETENV=1 | ||
4497 | + AC_LIBOBJ([unsetenv]) | ||
4498 | fi | ||
4499 | fi | ||
4500 | ]) | ||
4501 | diff -Naurp libiconv-1.14.org//srcm4/signalblocking.m4 libiconv-1.14/srcm4/signalblocking.m4 | ||
4502 | --- libiconv-1.14.org//srcm4/signalblocking.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4503 | +++ libiconv-1.14/srcm4/signalblocking.m4 2012-01-08 02:07:40.834484482 -0800 | ||
4504 | @@ -1,4 +1,4 @@ | ||
4505 | -# signalblocking.m4 serial 12 | ||
4506 | +# signalblocking.m4 serial 10 | ||
4507 | dnl Copyright (C) 2001-2002, 2006-2011 Free Software Foundation, Inc. | ||
4508 | dnl This file is free software; the Free Software Foundation | ||
4509 | dnl gives unlimited permission to copy and/or distribute it, | ||
4510 | @@ -12,14 +12,31 @@ dnl with or without modifications, as lo | ||
4511 | AC_DEFUN([gl_SIGNALBLOCKING], | ||
4512 | [ | ||
4513 | AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) | ||
4514 | - AC_REQUIRE([gl_CHECK_TYPE_SIGSET_T]) | ||
4515 | - if test $gl_cv_type_sigset_t = yes; then | ||
4516 | + signals_not_posix= | ||
4517 | + AC_EGREP_HEADER([sigset_t], [signal.h], , [signals_not_posix=1]) | ||
4518 | + if test -z "$signals_not_posix"; then | ||
4519 | AC_CHECK_FUNC([sigprocmask], [gl_cv_func_sigprocmask=1]) | ||
4520 | fi | ||
4521 | if test -z "$gl_cv_func_sigprocmask"; then | ||
4522 | HAVE_POSIX_SIGNALBLOCKING=0 | ||
4523 | + AC_LIBOBJ([sigprocmask]) | ||
4524 | + gl_PREREQ_SIGPROCMASK | ||
4525 | fi | ||
4526 | ]) | ||
4527 | |||
4528 | -# Prerequisites of lib/sigprocmask.c. | ||
4529 | -AC_DEFUN([gl_PREREQ_SIGPROCMASK], [:]) | ||
4530 | +# Prerequisites of the part of lib/signal.in.h and of lib/sigprocmask.c. | ||
4531 | +AC_DEFUN([gl_PREREQ_SIGPROCMASK], | ||
4532 | +[ | ||
4533 | + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) | ||
4534 | + AC_CHECK_TYPES([sigset_t], | ||
4535 | + [gl_cv_type_sigset_t=yes], [gl_cv_type_sigset_t=no], | ||
4536 | + [#include <signal.h> | ||
4537 | +/* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ | ||
4538 | +#include <sys/types.h>]) | ||
4539 | + if test $gl_cv_type_sigset_t != yes; then | ||
4540 | + HAVE_SIGSET_T=0 | ||
4541 | + fi | ||
4542 | + dnl HAVE_SIGSET_T is 1 if the system lacks the sigprocmask function but has | ||
4543 | + dnl the sigset_t type. | ||
4544 | + AC_SUBST([HAVE_SIGSET_T]) | ||
4545 | +]) | ||
4546 | diff -Naurp libiconv-1.14.org//srcm4/signal_h.m4 libiconv-1.14/srcm4/signal_h.m4 | ||
4547 | --- libiconv-1.14.org//srcm4/signal_h.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4548 | +++ libiconv-1.14/srcm4/signal_h.m4 2012-01-08 02:07:40.826484480 -0800 | ||
4549 | @@ -1,4 +1,4 @@ | ||
4550 | -# signal_h.m4 serial 16 | ||
4551 | +# signal_h.m4 serial 12 | ||
4552 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. | ||
4553 | dnl This file is free software; the Free Software Foundation | ||
4554 | dnl gives unlimited permission to copy and/or distribute it, | ||
4555 | @@ -7,7 +7,6 @@ dnl with or without modifications, as lo | ||
4556 | AC_DEFUN([gl_SIGNAL_H], | ||
4557 | [ | ||
4558 | AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) | ||
4559 | - AC_REQUIRE([gl_CHECK_TYPE_SIGSET_T]) | ||
4560 | gl_NEXT_HEADERS([signal.h]) | ||
4561 | |||
4562 | # AIX declares sig_atomic_t to already include volatile, and C89 compilers | ||
4563 | @@ -28,25 +27,10 @@ AC_DEFUN([gl_SIGNAL_H], | ||
4564 | dnl Check for declarations of anything we want to poison if the | ||
4565 | dnl corresponding gnulib module is not in use. | ||
4566 | gl_WARN_ON_USE_PREPARE([[#include <signal.h> | ||
4567 | - ]], [pthread_sigmask sigaction | ||
4568 | - sigaddset sigdelset sigemptyset sigfillset sigismember | ||
4569 | + ]], [sigaction sigaddset sigdelset sigemptyset sigfillset sigismember | ||
4570 | sigpending sigprocmask]) | ||
4571 | ]) | ||
4572 | |||
4573 | -AC_DEFUN([gl_CHECK_TYPE_SIGSET_T], | ||
4574 | -[ | ||
4575 | - AC_CHECK_TYPES([sigset_t], | ||
4576 | - [gl_cv_type_sigset_t=yes], [gl_cv_type_sigset_t=no], | ||
4577 | - [[ | ||
4578 | - #include <signal.h> | ||
4579 | - /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ | ||
4580 | - #include <sys/types.h> | ||
4581 | - ]]) | ||
4582 | - if test $gl_cv_type_sigset_t != yes; then | ||
4583 | - HAVE_SIGSET_T=0 | ||
4584 | - fi | ||
4585 | -]) | ||
4586 | - | ||
4587 | AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR], | ||
4588 | [ | ||
4589 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | ||
4590 | @@ -58,13 +42,11 @@ AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR], | ||
4591 | |||
4592 | AC_DEFUN([gl_SIGNAL_H_DEFAULTS], | ||
4593 | [ | ||
4594 | - GNULIB_PTHREAD_SIGMASK=0; AC_SUBST([GNULIB_PTHREAD_SIGMASK]) | ||
4595 | GNULIB_SIGNAL_H_SIGPIPE=0; AC_SUBST([GNULIB_SIGNAL_H_SIGPIPE]) | ||
4596 | GNULIB_SIGPROCMASK=0; AC_SUBST([GNULIB_SIGPROCMASK]) | ||
4597 | GNULIB_SIGACTION=0; AC_SUBST([GNULIB_SIGACTION]) | ||
4598 | dnl Assume proper GNU behavior unless another module says otherwise. | ||
4599 | HAVE_POSIX_SIGNALBLOCKING=1; AC_SUBST([HAVE_POSIX_SIGNALBLOCKING]) | ||
4600 | - HAVE_PTHREAD_SIGMASK=1; AC_SUBST([HAVE_PTHREAD_SIGMASK]) | ||
4601 | HAVE_SIGSET_T=1; AC_SUBST([HAVE_SIGSET_T]) | ||
4602 | HAVE_SIGINFO_T=1; AC_SUBST([HAVE_SIGINFO_T]) | ||
4603 | HAVE_SIGACTION=1; AC_SUBST([HAVE_SIGACTION]) | ||
4604 | @@ -73,5 +55,4 @@ AC_DEFUN([gl_SIGNAL_H_DEFAULTS], | ||
4605 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; | ||
4606 | AC_SUBST([HAVE_TYPE_VOLATILE_SIG_ATOMIC_T]) | ||
4607 | HAVE_SIGHANDLER_T=1; AC_SUBST([HAVE_SIGHANDLER_T]) | ||
4608 | - REPLACE_PTHREAD_SIGMASK=0; AC_SUBST([REPLACE_PTHREAD_SIGMASK]) | ||
4609 | ]) | ||
4610 | diff -Naurp libiconv-1.14.org//srcm4/stat.m4 libiconv-1.14/srcm4/stat.m4 | ||
4611 | --- libiconv-1.14.org//srcm4/stat.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4612 | +++ libiconv-1.14/srcm4/stat.m4 2012-01-08 02:07:40.854484483 -0800 | ||
4613 | @@ -1,4 +1,4 @@ | ||
4614 | -# serial 8 | ||
4615 | +# serial 7 | ||
4616 | |||
4617 | # Copyright (C) 2009-2011 Free Software Foundation, Inc. | ||
4618 | # | ||
4619 | @@ -58,11 +58,9 @@ AC_DEFUN([gl_FUNC_STAT], | ||
4620 | AC_DEFINE([REPLACE_FUNC_STAT_FILE], [1], [Define to 1 if stat needs | ||
4621 | help when passed a file name with a trailing slash]);; | ||
4622 | esac | ||
4623 | -]) | ||
4624 | - | ||
4625 | -# Prerequisites of lib/stat.c. | ||
4626 | -AC_DEFUN([gl_PREREQ_STAT], | ||
4627 | -[ | ||
4628 | - AC_REQUIRE([AC_C_INLINE]) | ||
4629 | - : | ||
4630 | + if test $REPLACE_STAT = 1; then | ||
4631 | + AC_LIBOBJ([stat]) | ||
4632 | + dnl Prerequisites of lib/stat.c. | ||
4633 | + AC_REQUIRE([AC_C_INLINE]) | ||
4634 | + fi | ||
4635 | ]) | ||
4636 | diff -Naurp libiconv-1.14.org//srcm4/strerror.m4 libiconv-1.14/srcm4/strerror.m4 | ||
4637 | --- libiconv-1.14.org//srcm4/strerror.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4638 | +++ libiconv-1.14/srcm4/strerror.m4 2012-01-08 02:07:40.890484484 -0800 | ||
4639 | @@ -1,4 +1,4 @@ | ||
4640 | -# strerror.m4 serial 16 | ||
4641 | +# strerror.m4 serial 9 | ||
4642 | dnl Copyright (C) 2002, 2007-2011 Free Software Foundation, Inc. | ||
4643 | dnl This file is free software; the Free Software Foundation | ||
4644 | dnl gives unlimited permission to copy and/or distribute it, | ||
4645 | @@ -6,73 +6,63 @@ dnl with or without modifications, as lo | ||
4646 | |||
4647 | AC_DEFUN([gl_FUNC_STRERROR], | ||
4648 | [ | ||
4649 | + AC_REQUIRE([gl_FUNC_STRERROR_SEPARATE]) | ||
4650 | + if test $REPLACE_STRERROR = 1; then | ||
4651 | + AC_LIBOBJ([strerror]) | ||
4652 | + AC_DEFINE_UNQUOTED([REPLACE_STRERROR], [$REPLACE_STRERROR], | ||
4653 | + [Define this to 1 if strerror is broken.]) | ||
4654 | + fi | ||
4655 | +]) | ||
4656 | + | ||
4657 | +# Like gl_FUNC_STRERROR, except prepare for separate compilation (no AC_LIBOBJ). | ||
4658 | +AC_DEFUN([gl_FUNC_STRERROR_SEPARATE], | ||
4659 | +[ | ||
4660 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) | ||
4661 | AC_REQUIRE([gl_HEADER_ERRNO_H]) | ||
4662 | - AC_REQUIRE([gl_FUNC_STRERROR_0]) | ||
4663 | - m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [ | ||
4664 | - AC_REQUIRE([gl_FUNC_STRERROR_R_WORKS]) | ||
4665 | - ]) | ||
4666 | - if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then | ||
4667 | + if test -z "$ERRNO_H"; then | ||
4668 | AC_CACHE_CHECK([for working strerror function], | ||
4669 | [gl_cv_func_working_strerror], | ||
4670 | [AC_RUN_IFELSE( | ||
4671 | [AC_LANG_PROGRAM( | ||
4672 | [[#include <string.h> | ||
4673 | ]], | ||
4674 | - [[if (!*strerror (-2)) return 1;]])], | ||
4675 | + [[return !*strerror (-2);]])], | ||
4676 | [gl_cv_func_working_strerror=yes], | ||
4677 | [gl_cv_func_working_strerror=no], | ||
4678 | - [dnl Be pessimistic on cross-compiles for now. | ||
4679 | - gl_cv_func_working_strerror="guessing no"]) | ||
4680 | + [dnl Assume crossbuild works if it compiles. | ||
4681 | + AC_COMPILE_IFELSE( | ||
4682 | + [AC_LANG_PROGRAM( | ||
4683 | + [[#include <string.h> | ||
4684 | + ]], | ||
4685 | + [[return !*strerror (-2);]])], | ||
4686 | + [gl_cv_func_working_strerror=yes], | ||
4687 | + [gl_cv_func_working_strerror=no]) | ||
4688 | + ]) | ||
4689 | ]) | ||
4690 | - if test "$gl_cv_func_working_strerror" != yes; then | ||
4691 | + if test $gl_cv_func_working_strerror = no; then | ||
4692 | dnl The system's strerror() fails to return a string for out-of-range | ||
4693 | dnl integers. Replace it. | ||
4694 | REPLACE_STRERROR=1 | ||
4695 | fi | ||
4696 | - m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [ | ||
4697 | - dnl If the system's strerror_r or __xpg_strerror_r clobbers strerror's | ||
4698 | - dnl buffer, we must replace strerror. | ||
4699 | - case "$gl_cv_func_strerror_r_works" in | ||
4700 | - *no) REPLACE_STRERROR=1 ;; | ||
4701 | - esac | ||
4702 | - ]) | ||
4703 | else | ||
4704 | dnl The system's strerror() cannot know about the new errno values we add | ||
4705 | - dnl to <errno.h>, or any fix for strerror(0). Replace it. | ||
4706 | + dnl to <errno.h>. Replace it. | ||
4707 | REPLACE_STRERROR=1 | ||
4708 | fi | ||
4709 | + if test $REPLACE_STRERROR = 1; then | ||
4710 | + gl_PREREQ_STRERROR | ||
4711 | + fi | ||
4712 | ]) | ||
4713 | |||
4714 | -dnl Detect if strerror(0) passes (that is, does not set errno, and does not | ||
4715 | -dnl return a string that matches strerror(-1)). | ||
4716 | -AC_DEFUN([gl_FUNC_STRERROR_0], | ||
4717 | -[ | ||
4718 | - REPLACE_STRERROR_0=0 | ||
4719 | - AC_CACHE_CHECK([whether strerror(0) succeeds], | ||
4720 | - [gl_cv_func_strerror_0_works], | ||
4721 | - [AC_RUN_IFELSE( | ||
4722 | - [AC_LANG_PROGRAM( | ||
4723 | - [[#include <string.h> | ||
4724 | - #include <errno.h> | ||
4725 | - ]], | ||
4726 | - [[int result = 0; | ||
4727 | - char *str; | ||
4728 | - errno = 0; | ||
4729 | - str = strerror (0); | ||
4730 | - if (!*str) result |= 1; | ||
4731 | - if (errno) result |= 2; | ||
4732 | - if (strstr (str, "nknown") || strstr (str, "ndefined")) | ||
4733 | - result |= 4; | ||
4734 | - return result;]])], | ||
4735 | - [gl_cv_func_strerror_0_works=yes], | ||
4736 | - [gl_cv_func_strerror_0_works=no], | ||
4737 | - [dnl Be pessimistic on cross-compiles for now. | ||
4738 | - gl_cv_func_strerror_0_works="guessing no"]) | ||
4739 | - ]) | ||
4740 | - if test "$gl_cv_func_strerror_0_works" != yes; then | ||
4741 | - REPLACE_STRERROR_0=1 | ||
4742 | - AC_DEFINE([REPLACE_STRERROR_0], [1], [Define to 1 if strerror(0) | ||
4743 | - does not return a message implying success.]) | ||
4744 | +# Prerequisites of lib/strerror.c. | ||
4745 | +AC_DEFUN([gl_PREREQ_STRERROR], [ | ||
4746 | + AC_CHECK_DECLS([strerror]) | ||
4747 | + AC_CHECK_HEADERS_ONCE([sys/socket.h]) | ||
4748 | + if test $ac_cv_header_sys_socket_h != yes; then | ||
4749 | + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make | ||
4750 | + dnl the check for those headers unconditional; yet cygwin reports | ||
4751 | + dnl that the headers are present but cannot be compiled (since on | ||
4752 | + dnl cygwin, all socket information should come from sys/socket.h). | ||
4753 | + AC_CHECK_HEADERS([winsock2.h]) | ||
4754 | fi | ||
4755 | ]) | ||
4756 | diff -Naurp libiconv-1.14.org//srcm4/string_h.m4 libiconv-1.14/srcm4/string_h.m4 | ||
4757 | --- libiconv-1.14.org//srcm4/string_h.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4758 | +++ libiconv-1.14/srcm4/string_h.m4 2012-01-08 02:07:40.894484485 -0800 | ||
4759 | @@ -5,7 +5,7 @@ | ||
4760 | # gives unlimited permission to copy and/or distribute it, | ||
4761 | # with or without modifications, as long as this notice is preserved. | ||
4762 | |||
4763 | -# serial 21 | ||
4764 | +# serial 20 | ||
4765 | |||
4766 | # Written by Paul Eggert. | ||
4767 | |||
4768 | @@ -27,9 +27,9 @@ AC_DEFUN([gl_HEADER_STRING_H_BODY], | ||
4769 | dnl guaranteed by C89. | ||
4770 | gl_WARN_ON_USE_PREPARE([[#include <string.h> | ||
4771 | ]], | ||
4772 | - [ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul | ||
4773 | - strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r | ||
4774 | - strerror_r strsignal strverscmp]) | ||
4775 | + [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup | ||
4776 | + strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r | ||
4777 | + strsignal strverscmp]) | ||
4778 | ]) | ||
4779 | |||
4780 | AC_DEFUN([gl_STRING_MODULE_INDICATOR], | ||
4781 | @@ -43,8 +43,6 @@ AC_DEFUN([gl_STRING_MODULE_INDICATOR], | ||
4782 | |||
4783 | AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], | ||
4784 | [ | ||
4785 | - GNULIB_FFSL=0; AC_SUBST([GNULIB_FFSL]) | ||
4786 | - GNULIB_FFSLL=0; AC_SUBST([GNULIB_FFSLL]) | ||
4787 | GNULIB_MEMCHR=0; AC_SUBST([GNULIB_MEMCHR]) | ||
4788 | GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM]) | ||
4789 | GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY]) | ||
4790 | @@ -82,8 +80,6 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], | ||
4791 | GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP]) | ||
4792 | HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN]) | ||
4793 | dnl Assume proper GNU behavior unless another module says otherwise. | ||
4794 | - HAVE_FFSL=1; AC_SUBST([HAVE_FFSL]) | ||
4795 | - HAVE_FFSLL=1; AC_SUBST([HAVE_FFSLL]) | ||
4796 | HAVE_MEMCHR=1; AC_SUBST([HAVE_MEMCHR]) | ||
4797 | HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) | ||
4798 | HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) | ||
4799 | diff -Naurp libiconv-1.14.org//srcm4/sys_socket_h.m4 libiconv-1.14/srcm4/sys_socket_h.m4 | ||
4800 | --- libiconv-1.14.org//srcm4/sys_socket_h.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4801 | +++ libiconv-1.14/srcm4/sys_socket_h.m4 1969-12-31 16:00:00.000000000 -0800 | ||
4802 | @@ -1,177 +0,0 @@ | ||
4803 | -# sys_socket_h.m4 serial 22 | ||
4804 | -dnl Copyright (C) 2005-2011 Free Software Foundation, Inc. | ||
4805 | -dnl This file is free software; the Free Software Foundation | ||
4806 | -dnl gives unlimited permission to copy and/or distribute it, | ||
4807 | -dnl with or without modifications, as long as this notice is preserved. | ||
4808 | - | ||
4809 | -dnl From Simon Josefsson. | ||
4810 | - | ||
4811 | -AC_DEFUN([gl_HEADER_SYS_SOCKET], | ||
4812 | -[ | ||
4813 | - AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) | ||
4814 | - AC_REQUIRE([AC_CANONICAL_HOST]) | ||
4815 | - AC_REQUIRE([AC_C_INLINE]) | ||
4816 | - | ||
4817 | - dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have | ||
4818 | - dnl old-style declarations (with return type 'int' instead of 'ssize_t') | ||
4819 | - dnl unless _POSIX_PII_SOCKET is defined. | ||
4820 | - case "$host_os" in | ||
4821 | - osf*) | ||
4822 | - AC_DEFINE([_POSIX_PII_SOCKET], [1], | ||
4823 | - [Define to 1 in order to get the POSIX compatible declarations | ||
4824 | - of socket functions.]) | ||
4825 | - ;; | ||
4826 | - esac | ||
4827 | - | ||
4828 | - AC_CACHE_CHECK([whether <sys/socket.h> is self-contained], | ||
4829 | - [gl_cv_header_sys_socket_h_selfcontained], | ||
4830 | - [ | ||
4831 | - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], [[]])], | ||
4832 | - [gl_cv_header_sys_socket_h_selfcontained=yes], | ||
4833 | - [gl_cv_header_sys_socket_h_selfcontained=no]) | ||
4834 | - ]) | ||
4835 | - if test $gl_cv_header_sys_socket_h_selfcontained = yes; then | ||
4836 | - dnl If the shutdown function exists, <sys/socket.h> should define | ||
4837 | - dnl SHUT_RD, SHUT_WR, SHUT_RDWR. | ||
4838 | - AC_CHECK_FUNCS([shutdown]) | ||
4839 | - if test $ac_cv_func_shutdown = yes; then | ||
4840 | - AC_CACHE_CHECK([whether <sys/socket.h> defines the SHUT_* macros], | ||
4841 | - [gl_cv_header_sys_socket_h_shut], | ||
4842 | - [ | ||
4843 | - AC_COMPILE_IFELSE( | ||
4844 | - [AC_LANG_PROGRAM([[#include <sys/socket.h>]], | ||
4845 | - [[int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };]])], | ||
4846 | - [gl_cv_header_sys_socket_h_shut=yes], | ||
4847 | - [gl_cv_header_sys_socket_h_shut=no]) | ||
4848 | - ]) | ||
4849 | - if test $gl_cv_header_sys_socket_h_shut = no; then | ||
4850 | - SYS_SOCKET_H='sys/socket.h' | ||
4851 | - fi | ||
4852 | - fi | ||
4853 | - fi | ||
4854 | - # We need to check for ws2tcpip.h now. | ||
4855 | - gl_PREREQ_SYS_H_SOCKET | ||
4856 | - AC_CHECK_TYPES([struct sockaddr_storage, sa_family_t],,,[ | ||
4857 | - /* sys/types.h is not needed according to POSIX, but the | ||
4858 | - sys/socket.h in i386-unknown-freebsd4.10 and | ||
4859 | - powerpc-apple-darwin5.5 required it. */ | ||
4860 | -#include <sys/types.h> | ||
4861 | -#ifdef HAVE_SYS_SOCKET_H | ||
4862 | -#include <sys/socket.h> | ||
4863 | -#endif | ||
4864 | -#ifdef HAVE_WS2TCPIP_H | ||
4865 | -#include <ws2tcpip.h> | ||
4866 | -#endif | ||
4867 | -]) | ||
4868 | - if test $ac_cv_type_struct_sockaddr_storage = no; then | ||
4869 | - HAVE_STRUCT_SOCKADDR_STORAGE=0 | ||
4870 | - fi | ||
4871 | - if test $ac_cv_type_sa_family_t = no; then | ||
4872 | - HAVE_SA_FAMILY_T=0 | ||
4873 | - fi | ||
4874 | - if test $ac_cv_type_struct_sockaddr_storage != no; then | ||
4875 | - AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family], | ||
4876 | - [], | ||
4877 | - [HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0], | ||
4878 | - [#include <sys/types.h> | ||
4879 | - #ifdef HAVE_SYS_SOCKET_H | ||
4880 | - #include <sys/socket.h> | ||
4881 | - #endif | ||
4882 | - #ifdef HAVE_WS2TCPIP_H | ||
4883 | - #include <ws2tcpip.h> | ||
4884 | - #endif | ||
4885 | - ]) | ||
4886 | - fi | ||
4887 | - if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ | ||
4888 | - || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then | ||
4889 | - SYS_SOCKET_H='sys/socket.h' | ||
4890 | - fi | ||
4891 | - gl_PREREQ_SYS_H_WINSOCK2 | ||
4892 | - | ||
4893 | - dnl Check for declarations of anything we want to poison if the | ||
4894 | - dnl corresponding gnulib module is not in use. | ||
4895 | - gl_WARN_ON_USE_PREPARE([[ | ||
4896 | -/* Some systems require prerequisite headers. */ | ||
4897 | -#include <sys/types.h> | ||
4898 | -#include <sys/socket.h> | ||
4899 | - ]], [socket connect accept bind getpeername getsockname getsockopt | ||
4900 | - listen recv send recvfrom sendto setsockopt shutdown accept4]) | ||
4901 | -]) | ||
4902 | - | ||
4903 | -AC_DEFUN([gl_PREREQ_SYS_H_SOCKET], | ||
4904 | -[ | ||
4905 | - dnl Check prerequisites of the <sys/socket.h> replacement. | ||
4906 | - AC_REQUIRE([gl_CHECK_SOCKET_HEADERS]) | ||
4907 | - gl_CHECK_NEXT_HEADERS([sys/socket.h]) | ||
4908 | - if test $ac_cv_header_sys_socket_h = yes; then | ||
4909 | - HAVE_SYS_SOCKET_H=1 | ||
4910 | - HAVE_WS2TCPIP_H=0 | ||
4911 | - else | ||
4912 | - HAVE_SYS_SOCKET_H=0 | ||
4913 | - if test $ac_cv_header_ws2tcpip_h = yes; then | ||
4914 | - HAVE_WS2TCPIP_H=1 | ||
4915 | - else | ||
4916 | - HAVE_WS2TCPIP_H=0 | ||
4917 | - fi | ||
4918 | - fi | ||
4919 | - AC_SUBST([HAVE_SYS_SOCKET_H]) | ||
4920 | - AC_SUBST([HAVE_WS2TCPIP_H]) | ||
4921 | -]) | ||
4922 | - | ||
4923 | -# Common prerequisites of the <sys/socket.h> replacement and of the | ||
4924 | -# <sys/select.h> replacement. | ||
4925 | -# Sets and substitutes HAVE_WINSOCK2_H. | ||
4926 | -AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2], | ||
4927 | -[ | ||
4928 | - m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) | ||
4929 | - m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])]) | ||
4930 | - AC_CHECK_HEADERS_ONCE([sys/socket.h]) | ||
4931 | - if test $ac_cv_header_sys_socket_h != yes; then | ||
4932 | - dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make | ||
4933 | - dnl the check for those headers unconditional; yet cygwin reports | ||
4934 | - dnl that the headers are present but cannot be compiled (since on | ||
4935 | - dnl cygwin, all socket information should come from sys/socket.h). | ||
4936 | - AC_CHECK_HEADERS([winsock2.h]) | ||
4937 | - fi | ||
4938 | - if test "$ac_cv_header_winsock2_h" = yes; then | ||
4939 | - HAVE_WINSOCK2_H=1 | ||
4940 | - UNISTD_H_HAVE_WINSOCK2_H=1 | ||
4941 | - SYS_IOCTL_H_HAVE_WINSOCK2_H=1 | ||
4942 | - else | ||
4943 | - HAVE_WINSOCK2_H=0 | ||
4944 | - fi | ||
4945 | - AC_SUBST([HAVE_WINSOCK2_H]) | ||
4946 | -]) | ||
4947 | - | ||
4948 | -AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR], | ||
4949 | -[ | ||
4950 | - dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | ||
4951 | - AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) | ||
4952 | - gl_MODULE_INDICATOR_SET_VARIABLE([$1]) | ||
4953 | - dnl Define it also as a C macro, for the benefit of the unit tests. | ||
4954 | - gl_MODULE_INDICATOR_FOR_TESTS([$1]) | ||
4955 | -]) | ||
4956 | - | ||
4957 | -AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS], | ||
4958 | -[ | ||
4959 | - GNULIB_SOCKET=0; AC_SUBST([GNULIB_SOCKET]) | ||
4960 | - GNULIB_CONNECT=0; AC_SUBST([GNULIB_CONNECT]) | ||
4961 | - GNULIB_ACCEPT=0; AC_SUBST([GNULIB_ACCEPT]) | ||
4962 | - GNULIB_BIND=0; AC_SUBST([GNULIB_BIND]) | ||
4963 | - GNULIB_GETPEERNAME=0; AC_SUBST([GNULIB_GETPEERNAME]) | ||
4964 | - GNULIB_GETSOCKNAME=0; AC_SUBST([GNULIB_GETSOCKNAME]) | ||
4965 | - GNULIB_GETSOCKOPT=0; AC_SUBST([GNULIB_GETSOCKOPT]) | ||
4966 | - GNULIB_LISTEN=0; AC_SUBST([GNULIB_LISTEN]) | ||
4967 | - GNULIB_RECV=0; AC_SUBST([GNULIB_RECV]) | ||
4968 | - GNULIB_SEND=0; AC_SUBST([GNULIB_SEND]) | ||
4969 | - GNULIB_RECVFROM=0; AC_SUBST([GNULIB_RECVFROM]) | ||
4970 | - GNULIB_SENDTO=0; AC_SUBST([GNULIB_SENDTO]) | ||
4971 | - GNULIB_SETSOCKOPT=0; AC_SUBST([GNULIB_SETSOCKOPT]) | ||
4972 | - GNULIB_SHUTDOWN=0; AC_SUBST([GNULIB_SHUTDOWN]) | ||
4973 | - GNULIB_ACCEPT4=0; AC_SUBST([GNULIB_ACCEPT4]) | ||
4974 | - HAVE_STRUCT_SOCKADDR_STORAGE=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE]) | ||
4975 | - HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; | ||
4976 | - AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY]) | ||
4977 | - HAVE_SA_FAMILY_T=1; AC_SUBST([HAVE_SA_FAMILY_T]) | ||
4978 | - HAVE_ACCEPT4=1; AC_SUBST([HAVE_ACCEPT4]) | ||
4979 | -]) | ||
4980 | diff -Naurp libiconv-1.14.org//srcm4/warn-on-use.m4 libiconv-1.14/srcm4/warn-on-use.m4 | ||
4981 | --- libiconv-1.14.org//srcm4/warn-on-use.m4 2011-08-07 06:42:07.000000000 -0700 | ||
4982 | +++ libiconv-1.14/srcm4/warn-on-use.m4 2012-01-08 02:07:40.934484487 -0800 | ||
4983 | @@ -1,4 +1,4 @@ | ||
4984 | -# warn-on-use.m4 serial 4 | ||
4985 | +# warn-on-use.m4 serial 2 | ||
4986 | dnl Copyright (C) 2010-2011 Free Software Foundation, Inc. | ||
4987 | dnl This file is free software; the Free Software Foundation | ||
4988 | dnl gives unlimited permission to copy and/or distribute it, | ||
4989 | @@ -27,8 +27,6 @@ AC_DEFUN([gl_WARN_ON_USE_PREPARE], | ||
4990 | [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])), | ||
4991 | [Define to 1 if ]m4_defn([gl_decl])[ is declared even after | ||
4992 | undefining macros.])])dnl | ||
4993 | -dnl FIXME: gl_Symbol must be used unquoted until we can assume | ||
4994 | -dnl autoconf 2.64 or newer. | ||
4995 | for gl_func in m4_flatten([$2]); do | ||
4996 | AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl | ||
4997 | AC_CACHE_CHECK([whether $gl_func is declared without a macro], | ||
4998 | @@ -37,8 +35,8 @@ dnl autoconf 2.64 or newer. | ||
4999 | [@%:@undef $gl_func | ||
5000 | (void) $gl_func;])], | ||
5001 | [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])]) | ||
5002 | - AS_VAR_IF(gl_Symbol, [yes], | ||
5003 | - [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) | ||
5004 | + AS_VAR_IF(gl_Symbol, [yes], | ||
5005 | + [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) | ||
5006 | dnl shortcut - if the raw declaration exists, then set a cache | ||
5007 | dnl variable to allow skipping any later AC_CHECK_DECL efforts | ||
5008 | eval ac_cv_have_decl_$gl_func=yes]) | ||
diff --git a/meta/recipes-support/libiconv/libiconv-1.14/autoconf.patch b/meta/recipes-support/libiconv/libiconv-1.14/autoconf.patch new file mode 100644 index 0000000000..5d34ce7c0e --- /dev/null +++ b/meta/recipes-support/libiconv/libiconv-1.14/autoconf.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | It adds the variables that are needed | ||
2 | for autoconf 2.65 to reconfigure libiconv and delete the m4 macros | ||
3 | directory. Its imported from OE. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | |||
9 | Index: libiconv-1.13.1/configure.ac | ||
10 | =================================================================== | ||
11 | --- libiconv-1.13.1.orig/configure.ac | ||
12 | +++ libiconv-1.13.1/configure.ac | ||
13 | @@ -23,7 +23,7 @@ AC_CONFIG_AUX_DIR([build-aux]) | ||
14 | AM_INIT_AUTOMAKE([libiconv], [1.13.1]) | ||
15 | AC_CONFIG_HEADERS([config.h lib/config.h]) | ||
16 | AC_PROG_MAKE_SET | ||
17 | - | ||
18 | +AC_CONFIG_MACRO_DIR([m4]) | ||
19 | dnl checks for basic programs | ||
20 | |||
21 | AC_PROG_CC | ||
22 | Index: libiconv-1.13.1/libcharset/configure.ac | ||
23 | =================================================================== | ||
24 | --- libiconv-1.13.1.orig/libcharset/configure.ac | ||
25 | +++ libiconv-1.13.1/libcharset/configure.ac | ||
26 | @@ -16,17 +16,17 @@ dnl along with the GNU CHARSET Library; | ||
27 | dnl write to the Free Software Foundation, Inc., 51 Franklin Street, | ||
28 | dnl Fifth Floor, Boston, MA 02110-1301, USA. | ||
29 | |||
30 | -AC_PREREQ([2.13]) | ||
31 | +AC_PREREQ(2.61) | ||
32 | +AC_INIT([libcharset],[1.4] ) | ||
33 | +AC_CONFIG_SRCDIR([lib/localcharset.c]) | ||
34 | |||
35 | -PACKAGE=libcharset | ||
36 | -VERSION=1.4 | ||
37 | - | ||
38 | -AC_INIT([lib/localcharset.c]) | ||
39 | AC_CONFIG_AUX_DIR([build-aux]) | ||
40 | AC_CONFIG_HEADER([config.h]) | ||
41 | AC_PROG_MAKE_SET | ||
42 | -AC_SUBST([PACKAGE]) | ||
43 | -AC_SUBST([VERSION]) | ||
44 | +dnl AC_SUBST(PACKAGE) | ||
45 | +dnl AC_SUBST(VERSION) | ||
46 | + | ||
47 | +AC_CONFIG_MACRO_DIR([m4]) | ||
48 | |||
49 | dnl checks for basic programs | ||
50 | |||
diff --git a/meta/recipes-support/libiconv/libiconv_1.11.1.bb b/meta/recipes-support/libiconv/libiconv_1.11.1.bb new file mode 100644 index 0000000000..c52564a42c --- /dev/null +++ b/meta/recipes-support/libiconv/libiconv_1.11.1.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "Character encoding support library" | ||
2 | DESCRIPTION = "GNU libiconv - libiconv is for you if your application needs to support \ | ||
3 | multiple character encodings, but that support lacks from your system." | ||
4 | HOMEPAGE = "http://www.gnu.org/software/libiconv" | ||
5 | SECTION = "libs" | ||
6 | NOTES = "Needs to be stripped down to: ascii iso8859-1 eucjp iso-2022jp gb utf8" | ||
7 | PROVIDES = "virtual/libiconv" | ||
8 | LICENSE = "LGPL" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ | ||
10 | file://libcharset/COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674" | ||
11 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | ||
12 | file://autoconf.patch \ | ||
13 | file://shared_preloadable_libiconv_linux.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "d42b97f6ef5dd0ba4469d520ed732fed" | ||
17 | SRC_URI[sha256sum] = "e78c347a1a0cb15f2648519e9799151f4b4a934b61ad9ee7424478efe2b8257f" | ||
18 | |||
19 | S = "${WORKDIR}/libiconv-${PV}" | ||
20 | |||
21 | inherit autotools pkgconfig gettext | ||
22 | |||
23 | python __anonymous() { | ||
24 | if d.getVar("TCLIBC", True) == "eglibc": | ||
25 | raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv") | ||
26 | } | ||
27 | |||
28 | EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable" | ||
29 | |||
30 | LEAD_SONAME = "libiconv.so" | ||
31 | |||
32 | do_configure_prepend () { | ||
33 | rm -f m4/libtool.m4 libcharset/m4/libtool.m4 | ||
34 | } | ||
diff --git a/meta/recipes-support/libiconv/libiconv_1.14.bb b/meta/recipes-support/libiconv/libiconv_1.14.bb new file mode 100644 index 0000000000..a670e2c62e --- /dev/null +++ b/meta/recipes-support/libiconv/libiconv_1.14.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "Character encoding support library" | ||
2 | DESCRIPTION = "GNU libiconv - libiconv is for you if your application needs to support \ | ||
3 | multiple character encodings, but that support lacks from your system." | ||
4 | HOMEPAGE = "http://www.gnu.org/software/libiconv" | ||
5 | SECTION = "libs" | ||
6 | NOTES = "Needs to be stripped down to: ascii iso8859-1 eucjp iso-2022jp gb utf8" | ||
7 | PROVIDES = "virtual/libiconv" | ||
8 | PR = "r1" | ||
9 | LICENSE = "LGPLv3" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ | ||
11 | file://libcharset/COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674" | ||
12 | |||
13 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | ||
14 | file://autoconf.patch \ | ||
15 | file://add-relocatable-module.patch \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[md5sum] = "e34509b1623cec449dfeb73d7ce9c6c6" | ||
19 | SRC_URI[sha256sum] = "72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613" | ||
20 | |||
21 | S = "${WORKDIR}/libiconv-${PV}" | ||
22 | |||
23 | inherit autotools pkgconfig gettext | ||
24 | |||
25 | python __anonymous() { | ||
26 | if d.getVar("TARGET_OS", True) != "linux": | ||
27 | return | ||
28 | if d.getVar("TCLIBC", True) == "eglibc": | ||
29 | raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv") | ||
30 | } | ||
31 | |||
32 | EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable" | ||
33 | |||
34 | LEAD_SONAME = "libiconv.so" | ||
35 | |||
36 | do_configure_prepend () { | ||
37 | rm -f m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 libcharset/m4/libtool.m4 libcharset/m4/ltoptions.m4 libcharset/m4/ltsugar.m4 libcharset/m4/ltversion.m4 libcharset/m4/lt~obsolete.m4 | ||
38 | } | ||
39 | |||
40 | do_configure_append () { | ||
41 | # forcibly remove RPATH from libtool | ||
42 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' *libtool | ||
43 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=_NO_RPATH_|g' *libtool | ||
44 | } | ||
45 | |||
46 | do_install_append () { | ||
47 | rm -rf ${D}${libdir}/preloadable_libiconv.so | ||
48 | rm -rf ${D}${libdir}/charset.alias | ||
49 | } | ||
50 | |||
51 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch b/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch new file mode 100644 index 0000000000..fe1ec0ff2f --- /dev/null +++ b/meta/recipes-support/libksba/libksba/ksba-add-pkgconfig-support.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | Upstream-Status: Rejected | ||
2 | |||
3 | Add pkgconfig support to libksba. | ||
4 | This patch is rejected by upstream for the reason below: | ||
5 | They think pkgconfig adds no portability and maintaining them is not worthwhile. | ||
6 | |||
7 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
8 | |||
9 | Index: Makefile.am | ||
10 | =============================================================== | ||
11 | --- a/Makefile.am | ||
12 | +++ b/Makefile.am | ||
13 | @@ -21,6 +21,9 @@ | ||
14 | ACLOCAL_AMFLAGS = -I m4 -I gl/m4 | ||
15 | AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip | ||
16 | |||
17 | +pkgconfigdir = ${libdir}/pkgconfig | ||
18 | +pkgconfig_DATA = ksba.pc | ||
19 | + | ||
20 | # (A suitable gitlog-to-changelog script can be found in GnuPG master.) | ||
21 | GITLOG_TO_CHANGELOG=gitlog-to-changelog | ||
22 | |||
23 | Index: configure.ac | ||
24 | =============================================================== | ||
25 | --- a/configure.ac | ||
26 | +++ b/configure.ac | ||
27 | @@ -399,6 +399,7 @@ m4/Makefile | ||
28 | gl/Makefile | ||
29 | src/Makefile | ||
30 | src/ksba-config | ||
31 | src/versioninfo.rc | ||
32 | +ksba.pc | ||
33 | tests/Makefile | ||
34 | doc/Makefile | ||
35 | |||
36 | Index: src/ksba.pc.in | ||
37 | =============================================================== | ||
38 | --- /dev/null | ||
39 | +++ b/ksba.pc.in | ||
40 | @@ -0,0 +1,16 @@ | ||
41 | +prefix=@prefix@ | ||
42 | +exec_prefix=@exec_prefix@ | ||
43 | +libdir=@libdir@ | ||
44 | +includedir=@includedir@ | ||
45 | + | ||
46 | +# API info | ||
47 | +api_version=@KSBA_CONFIG_API_VERSION@ | ||
48 | + | ||
49 | +Name: ksba | ||
50 | +Description: Libksba provides an easy API to create and parse X.509 and CMS related objects | ||
51 | +Requires: | ||
52 | +Version: @VERSION@ | ||
53 | +Libs: -L${libdir} -lksba | ||
54 | +Libs.private: -L{libdir} -lgpg-error | ||
55 | +Cflags: -I${includedir} | ||
56 | + | ||
57 | -- | ||
58 | 1.7.5.4 | ||
59 | |||
diff --git a/meta/recipes-support/libksba/libksba_1.3.0.bb b/meta/recipes-support/libksba/libksba_1.3.0.bb new file mode 100644 index 0000000000..4690ba953f --- /dev/null +++ b/meta/recipes-support/libksba/libksba_1.3.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Easy API to create and parse X.509 and CMS related objects" | ||
2 | HOMEPAGE = "http://www.gnupg.org/related_software/libksba/" | ||
3 | LICENSE = "GPLv2+ | LGPLv3+ | GPLv3+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd541d83f75d038c4e0617b672ed8bda \ | ||
5 | file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
6 | file://COPYING.GPLv3;md5=2f31b266d3440dd7ee50f92cf67d8e6c \ | ||
7 | file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ | ||
8 | " | ||
9 | PR = "r1" | ||
10 | |||
11 | DEPENDS = "libgpg-error" | ||
12 | |||
13 | inherit autotools binconfig pkgconfig | ||
14 | |||
15 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/${BPN}/${BPN}-${PV}.tar.bz2 \ | ||
16 | file://ksba-add-pkgconfig-support.patch" | ||
17 | |||
18 | SRC_URI[md5sum] = "cd86fad9c9d360b2cf80449f8a4a4075" | ||
19 | SRC_URI[sha256sum] = "5a61eed50550d4d0dcb47457ce7b6a90f8e719d42a3b25f7e79333e8cd721971" | ||
20 | |||
diff --git a/meta/recipes-support/libmpc/libmpc.inc b/meta/recipes-support/libmpc/libmpc.inc new file mode 100644 index 0000000000..61b71c6f89 --- /dev/null +++ b/meta/recipes-support/libmpc/libmpc.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | SUMMARY = "C library for complex number arithmetic with arbitrary precision and correct rounding" | ||
2 | DESCRIPTION = "Mpc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the same principles as Mpfr" | ||
3 | HOMEPAGE = "http://www.multiprecision.org/" | ||
4 | LICENSE = "LGPLv3" | ||
5 | SECTION = "libs" | ||
6 | |||
7 | inherit autotools | ||
diff --git a/meta/recipes-support/libmpc/libmpc_1.0.2.bb b/meta/recipes-support/libmpc/libmpc_1.0.2.bb new file mode 100644 index 0000000000..41177ebd9b --- /dev/null +++ b/meta/recipes-support/libmpc/libmpc_1.0.2.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | require libmpc.inc | ||
2 | |||
3 | DEPENDS = "gmp mpfr" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
6 | SRC_URI = "http://www.multiprecision.org/mpc/download/mpc-${PV}.tar.gz" | ||
7 | |||
8 | SRC_URI[md5sum] = "68fadff3358fb3e7976c7a398a0af4c3" | ||
9 | SRC_URI[sha256sum] = "b561f54d8a479cee3bc891ee52735f18ff86712ba30f036f8b8537bae380c488" | ||
10 | |||
11 | S = "${WORKDIR}/mpc-${PV}" | ||
12 | BBCLASSEXTEND = "native nativesdk" | ||
13 | |||
diff --git a/meta/recipes-support/libnl/libnl/0001-fix-double-free-caused-by-freeing-link-af_data-in-rt.patch b/meta/recipes-support/libnl/libnl/0001-fix-double-free-caused-by-freeing-link-af_data-in-rt.patch new file mode 100644 index 0000000000..6d2c8ff72d --- /dev/null +++ b/meta/recipes-support/libnl/libnl/0001-fix-double-free-caused-by-freeing-link-af_data-in-rt.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 6f37b439af7e96104aadd8ec3ae8d3882df8d102 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jiri Pirko <jiri@resnulli.us> | ||
3 | Date: Wed, 21 Aug 2013 14:40:34 +0200 | ||
4 | Subject: [PATCH] fix double free caused by freeing link af_data in | ||
5 | rtnl_link_set_family() | ||
6 | |||
7 | Introduced by commit 8026fe2e3a9089eff3f5a06ee6e3cc78d96334ed ("link: | ||
8 | Free and realloc af specific data upon rtnl_link_set_family()") | ||
9 | |||
10 | link->l_af_data[link->l_af_ops->ao_family] is freed here but not set to | ||
11 | zero. That leads to double free made by link_free_data->do_foreach_af. | ||
12 | |||
13 | Fix this by setting link->l_af_data[link->l_af_ops->ao_family] to zero | ||
14 | rigth after free. | ||
15 | |||
16 | Signed-off-by: Jiri Pirko <jiri@resnulli.us> | ||
17 | Signed-off-by: Thomas Graf <tgraf@suug.ch> | ||
18 | --- | ||
19 | lib/route/link.c | 4 +++- | ||
20 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/lib/route/link.c b/lib/route/link.c | ||
23 | index a73e1db..0bb90a0 100644 | ||
24 | --- a/lib/route/link.c | ||
25 | +++ b/lib/route/link.c | ||
26 | @@ -1762,9 +1762,11 @@ void rtnl_link_set_family(struct rtnl_link *link, int family) | ||
27 | link->l_family = family; | ||
28 | link->ce_mask |= LINK_ATTR_FAMILY; | ||
29 | |||
30 | - if (link->l_af_ops) | ||
31 | + if (link->l_af_ops) { | ||
32 | af_free(link, link->l_af_ops, | ||
33 | link->l_af_data[link->l_af_ops->ao_family], NULL); | ||
34 | + link->l_af_data[link->l_af_ops->ao_family] = NULL; | ||
35 | + } | ||
36 | |||
37 | link->l_af_ops = af_lookup_and_alloc(link, family); | ||
38 | } | ||
39 | -- | ||
40 | 1.8.4 | ||
41 | |||
diff --git a/meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch b/meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch new file mode 100644 index 0000000000..22b0d88428 --- /dev/null +++ b/meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 82fdf49c185fd5f3810781af9ef52aa6a52bf2df Mon Sep 17 00:00:00 2001 | ||
2 | From: "Song.Li" <Song.Li@windriver.com> | ||
3 | Date: Thu, 28 Jun 2012 20:03:17 +0800 | ||
4 | Subject: [PATCH] fix lib/cache_mngr.c two parentheses bugs | ||
5 | |||
6 | there are two parentheses bugs in libnl /lib/cache_mngr.c file. | ||
7 | The parentheses doesn't make any sense, | ||
8 | This will cause the variable err get a bool value, | ||
9 | the correct value of variable err should be the return value | ||
10 | of the function which can be any integer value. | ||
11 | |||
12 | --- | ||
13 | lib/cache_mngr.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | Upstream-Status: Pending | ||
17 | |||
18 | diff --git a/lib/cache_mngr.c b/lib/cache_mngr.c | ||
19 | index dae8768..57cc1f9 100644 | ||
20 | --- a/lib/cache_mngr.c | ||
21 | +++ b/lib/cache_mngr.c | ||
22 | @@ -150,10 +150,10 @@ int nl_cache_mngr_alloc(struct nl_sock *sk, int protocol, int flags, | ||
23 | /* Required to receive async event notifications */ | ||
24 | nl_socket_disable_seq_check(mngr->cm_sock); | ||
25 | |||
26 | - if ((err = nl_connect(mngr->cm_sock, protocol) < 0)) | ||
27 | + if ((err = nl_connect(mngr->cm_sock, protocol)) < 0) | ||
28 | goto errout; | ||
29 | |||
30 | - if ((err = nl_socket_set_nonblocking(mngr->cm_sock) < 0)) | ||
31 | + if ((err = nl_socket_set_nonblocking(mngr->cm_sock)) < 0) | ||
32 | goto errout; | ||
33 | |||
34 | NL_DBG(1, "Allocated cache manager %p, protocol %d, %d caches\n", | ||
35 | -- | ||
36 | 1.7.9.5 | ||
37 | |||
diff --git a/meta/recipes-support/libnl/libnl/fix-pc-file.patch b/meta/recipes-support/libnl/libnl/fix-pc-file.patch new file mode 100644 index 0000000000..fe8b833a1c --- /dev/null +++ b/meta/recipes-support/libnl/libnl/fix-pc-file.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Some packages are asking only for libnl-2.0, but expects to get also | ||
4 | libnl-genl, libnl-nf libnl-route, easiest way to fix them is here. | ||
5 | |||
6 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
7 | Index: libnl-3.2.14/libnl-3.0.pc.in | ||
8 | =================================================================== | ||
9 | --- libnl-3.2.14.orig/libnl-3.0.pc.in | ||
10 | +++ libnl-3.2.14/libnl-3.0.pc.in | ||
11 | @@ -6,5 +6,5 @@ includedir=@includedir@ | ||
12 | Name: libnl | ||
13 | Description: Convenience library for netlink sockets | ||
14 | Version: @PACKAGE_VERSION@ | ||
15 | -Libs: -L${libdir} -lnl-@MAJ_VERSION@ | ||
16 | +Libs: -L${libdir} -lnl-@MAJ_VERSION@ -lnl-genl-@MAJ_VERSION@ -lnl-nf-@MAJ_VERSION@ -lnl-route-@MAJ_VERSION@ | ||
17 | Cflags: -I${includedir}/libnl@MAJ_VERSION@ | ||
diff --git a/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch b/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch new file mode 100644 index 0000000000..b93d97b1b7 --- /dev/null +++ b/meta/recipes-support/libnl/libnl/fix-pktloc_syntax_h-race.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | libnl has progressed to 0.3.2 and there does not appear to be any | ||
4 | "make -j" issues with this build after my limited testing on that | ||
5 | newer version so we can assume this issue is fixed upstream | ||
6 | |||
7 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
8 | |||
9 | Index: libnl-3.2.14/lib/Makefile.am | ||
10 | =================================================================== | ||
11 | --- libnl-3.2.14.orig/lib/Makefile.am | ||
12 | +++ libnl-3.2.14/lib/Makefile.am | ||
13 | @@ -39,9 +39,12 @@ CLEANFILES = \ | ||
14 | |||
15 | # Hack to avoid using ylwrap. It does not function correctly in combination | ||
16 | # with --header-file= | ||
17 | +route/pktloc.lo: route/pktloc_syntax.h route/pktloc_grammar.h | ||
18 | +route/pktloc_grammar.h: route/pktloc_grammar.c | ||
19 | route/pktloc_grammar.c: route/pktloc_grammar.l | ||
20 | $(AM_V_GEN) $(FLEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^ | ||
21 | |||
22 | +route/pktloc_syntax.h: route/pktloc_syntax.c | ||
23 | route/pktloc_syntax.c: route/pktloc_syntax.y | ||
24 | $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^ | ||
25 | |||
26 | @@ -89,7 +92,9 @@ BUILT_SOURCES = \ | ||
27 | route/cls/ematch_grammar.c \ | ||
28 | route/cls/ematch_syntax.c \ | ||
29 | route/pktloc_grammar.c \ | ||
30 | - route/pktloc_syntax.c | ||
31 | + route/pktloc_syntax.c \ | ||
32 | + route/pktloc_syntax.h \ | ||
33 | + route/pktloc_grammar.h | ||
34 | |||
35 | EXTRA_DIST = \ | ||
36 | route/pktloc_grammar.l \ | ||
diff --git a/meta/recipes-support/libnl/libnl_3.2.22.bb b/meta/recipes-support/libnl/libnl_3.2.22.bb new file mode 100644 index 0000000000..a299bfbe7b --- /dev/null +++ b/meta/recipes-support/libnl/libnl_3.2.22.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | SUMMARY = "A library for applications dealing with netlink sockets" | ||
2 | HOMEPAGE = "http://www.infradead.org/~tgr/libnl/" | ||
3 | SECTION = "libs/network" | ||
4 | |||
5 | PE = "1" | ||
6 | |||
7 | LICENSE = "LGPLv2.1" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
9 | |||
10 | DEPENDS = "flex-native bison-native" | ||
11 | |||
12 | SRC_URI = "http://www.infradead.org/~tgr/${BPN}/files/${BP}.tar.gz \ | ||
13 | file://fix-pktloc_syntax_h-race.patch \ | ||
14 | file://fix-pc-file.patch \ | ||
15 | file://fix-lib-cache_mngr.c-two-parentheses-bugs.patch \ | ||
16 | file://0001-fix-double-free-caused-by-freeing-link-af_data-in-rt.patch \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "2e1c889494d274aca24ce5f6a748e66e" | ||
20 | SRC_URI[sha256sum] = "c7c5f267dfeae0c1a530bf96b71fb7c8dbbb07d54beef49b6712d8d6166f629b" | ||
21 | |||
22 | inherit autotools-brokensep pkgconfig | ||
23 | |||
24 | FILES_${PN} = "${libdir}/libnl-3.so.* \ | ||
25 | ${libdir}/libnl.so.* \ | ||
26 | ${sysconfdir}" | ||
27 | RREPLACES_${PN} = "libnl2" | ||
28 | RCONFLICTS_${PN} = "libnl2" | ||
29 | FILES_${PN}-dbg += "${libdir}/libnl/cli/*/.debug" | ||
30 | FILES_${PN}-dev += "${libdir}/libnl/cli/*/*.so \ | ||
31 | ${libdir}/libnl/cli/*/*.la" | ||
32 | FILES_${PN}-staticdev += "${libdir}/libnl/cli/*/*.a" | ||
33 | |||
34 | PACKAGES += "${PN}-cli ${PN}-route ${PN}-nf ${PN}-genl" | ||
35 | FILES_${PN}-cli = "${libdir}/libnl-cli-3.so.* \ | ||
36 | ${libdir}/libnl/cli/*/*.so.* \ | ||
37 | ${sbindir}/nl-*" | ||
38 | FILES_${PN}-route = "${libdir}/libnl-route-3.so.*" | ||
39 | FILES_${PN}-nf = "${libdir}/libnl-nf-3.so.*" | ||
40 | FILES_${PN}-genl = "${libdir}/libnl-genl-3.so.* \ | ||
41 | ${libdir}/libnl-genl.so.* \ | ||
42 | ${sbindir}/genl-ctrl-list" | ||
43 | RREPLACES_${PN}-genl = "libnl-genl2 libnl-genl-3-200" | ||
44 | RCONFLICTS_${PN}-genl = "libnl-genl2 libnl-genl-3-200" | ||
diff --git a/meta/recipes-support/liboil/liboil-0.3.17/0001-Fix-enable-vfp-flag.patch b/meta/recipes-support/liboil/liboil-0.3.17/0001-Fix-enable-vfp-flag.patch new file mode 100644 index 0000000000..aff1cb1842 --- /dev/null +++ b/meta/recipes-support/liboil/liboil-0.3.17/0001-Fix-enable-vfp-flag.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | From 1921498bcc06408e8b051a3a9e9ce4182998f748 Mon Sep 17 00:00:00 2001 | ||
4 | From: David Schleef <ds@schleef.org> | ||
5 | Date: Fri, 8 Apr 2011 10:05:49 -0700 | ||
6 | Subject: [PATCH 10/10] Fix --enable-vfp flag | ||
7 | |||
8 | Patch from Christophe Lyon, fixes #36084. | ||
9 | --- | ||
10 | configure.ac | 4 ++-- | ||
11 | liboil/arm/Makefile.am | 1 + | ||
12 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/configure.ac b/configure.ac | ||
15 | index 98c81fb..407d88c 100644 | ||
16 | --- a/configure.ac | ||
17 | +++ b/configure.ac | ||
18 | @@ -188,8 +188,8 @@ fi | ||
19 | AC_ARG_ENABLE(vfp, | ||
20 | AC_HELP_STRING([--enable-vfp],[compile with Vector Floating-point unit support]), | ||
21 | enable_vfp=$enableval,enable_vfp=yes) | ||
22 | -if test "x$enable-vfp" = xyes -a x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes; then | ||
23 | - AS_COMPILER_FLAG(["-Wa,-mfpu=vfp"], | ||
24 | +if test "x$enable_vfp" = xyes -a x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes; then | ||
25 | + AS_COMPILER_FLAG(["-mfpu=vfp"], | ||
26 | [VFP_CFLAGS="$VFP_CFLAGS -mfpu=vfp"], | ||
27 | true) | ||
28 | #AS_COMPILER_FLAG(["-Wa,-mfloat-abi=softfp"], | ||
29 | diff --git a/liboil/arm/Makefile.am b/liboil/arm/Makefile.am | ||
30 | index ead08ed..cd8d9fa 100644 | ||
31 | --- a/liboil/arm/Makefile.am | ||
32 | +++ b/liboil/arm/Makefile.am | ||
33 | @@ -6,4 +6,5 @@ libarm_la_SOURCES = \ | ||
34 | math_vfp_asm.S | ||
35 | |||
36 | libarm_la_CFLAGS = $(LIBOIL_CFLAGS) $(VFP_CFLAGS) | ||
37 | +libarm_la_CCASFLAGS = $(LIBOIL_CFLAGS) $(VFP_CFLAGS) | ||
38 | |||
39 | -- | ||
40 | 1.7.6 | ||
41 | |||
diff --git a/meta/recipes-support/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch b/meta/recipes-support/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch new file mode 100644 index 0000000000..c8e3c1f721 --- /dev/null +++ b/meta/recipes-support/liboil/liboil-0.3.17/fix-unaligned-whitelist.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Upstream: https://bugs.freedesktop.org/show_bug.cgi?id=31358 | ||
2 | |||
3 | configure: fix whitelisting of x86_64 unaligned memory access | ||
4 | |||
5 | Fix typo in whitelist so cross-compile works for x86_64. | ||
6 | |||
7 | Upstream-Status: Inappropriate [configuration] | ||
8 | |||
9 | --- liboil-0.3.17/m4/as-unaligned-access.m4.orig 2009-02-26 14:40:08.000000000 -0500 | ||
10 | +++ liboil-0.3.17/m4/as-unaligned-access.m4 2010-11-03 12:19:55.000000000 -0400 | ||
11 | @@ -9,7 +9,7 @@ | ||
12 | _AS_ECHO_N([(blacklisted) ]) | ||
13 | as_cv_unaligned_access=no | ||
14 | ;; | ||
15 | - i?86*|x86_64|amd64|powerpc*|m68k*|cris*) | ||
16 | + i?86*|x86_64*|amd64*|powerpc*|m68k*|cris*) | ||
17 | _AS_ECHO_N([(whitelisted) ]) | ||
18 | as_cv_unaligned_access=yes | ||
19 | ;; | ||
diff --git a/meta/recipes-support/liboil/liboil-0.3.17/liboil_fix_for_x32.patch b/meta/recipes-support/liboil/liboil-0.3.17/liboil_fix_for_x32.patch new file mode 100644 index 0000000000..473380e9fc --- /dev/null +++ b/meta/recipes-support/liboil/liboil-0.3.17/liboil_fix_for_x32.patch | |||
@@ -0,0 +1,222 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Make the assembly syntax compatible with x32 gcc. Othewise x32 gcc throws errors. | ||
4 | |||
5 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
6 | 2011/12/01 | ||
7 | |||
8 | |||
9 | Index: liboil-0.3.17/liboil/amd64/wavelet.c | ||
10 | =================================================================== | ||
11 | --- liboil-0.3.17.orig/liboil/amd64/wavelet.c | ||
12 | +++ liboil-0.3.17/liboil/amd64/wavelet.c | ||
13 | @@ -21,14 +21,14 @@ deinterleave2_asm (int16_t *d1, int16_t | ||
14 | asm volatile ("\n" | ||
15 | " sub $2, %%rcx\n" | ||
16 | "1:\n" | ||
17 | - " movw (%1,%%rcx,4), %%ax\n" | ||
18 | - " movw %%ax, (%0,%%rcx,2)\n" | ||
19 | - " movw 2(%1,%%rcx,4), %%ax\n" | ||
20 | - " movw %%ax, (%2,%%rcx,2)\n" | ||
21 | - " movw 4(%1,%%rcx,4), %%ax\n" | ||
22 | - " movw %%ax, 2(%0,%%rcx,2)\n" | ||
23 | - " movw 6(%1,%%rcx,4), %%ax\n" | ||
24 | - " movw %%ax, 2(%2,%%rcx,2)\n" | ||
25 | + " movw (%q1,%%rcx,4), %%ax\n" | ||
26 | + " movw %%ax, (%q0,%%rcx,2)\n" | ||
27 | + " movw 2(%q1,%%rcx,4), %%ax\n" | ||
28 | + " movw %%ax, (%q2,%%rcx,2)\n" | ||
29 | + " movw 4(%q1,%%rcx,4), %%ax\n" | ||
30 | + " movw %%ax, 2(%q0,%%rcx,2)\n" | ||
31 | + " movw 6(%q1,%%rcx,4), %%ax\n" | ||
32 | + " movw %%ax, 2(%q2,%%rcx,2)\n" | ||
33 | " sub $2, %%rcx\n" | ||
34 | " jge 1b\n" | ||
35 | : "+r" (d1), "+r" (s_2xn), "+r" (d2), "+c" (n) | ||
36 | @@ -53,20 +53,20 @@ deinterleave2_mmx (int16_t *d1, int16_t | ||
37 | asm volatile ("\n" | ||
38 | " xor %%rcx, %%rcx\n" | ||
39 | "1:\n" | ||
40 | - " movq (%1,%%rcx,4), %%mm0\n" | ||
41 | - " movq 8(%1,%%rcx,4), %%mm1\n" | ||
42 | + " movq (%q1,%%rcx,4), %%mm0\n" | ||
43 | + " movq 8(%q1,%%rcx,4), %%mm1\n" | ||
44 | " pslld $16, %%mm0\n" | ||
45 | " pslld $16, %%mm1\n" | ||
46 | " psrad $16, %%mm0\n" | ||
47 | " psrad $16, %%mm1\n" | ||
48 | " packssdw %%mm1, %%mm0\n" | ||
49 | - " movq %%mm0, (%0,%%rcx,2)\n" | ||
50 | - " movq (%1,%%rcx,4), %%mm0\n" | ||
51 | - " movq 8(%1,%%rcx,4), %%mm1\n" | ||
52 | + " movq %%mm0, (%q0,%%rcx,2)\n" | ||
53 | + " movq (%q1,%%rcx,4), %%mm0\n" | ||
54 | + " movq 8(%q1,%%rcx,4), %%mm1\n" | ||
55 | " psrad $16, %%mm0\n" | ||
56 | " psrad $16, %%mm1\n" | ||
57 | " packssdw %%mm1, %%mm0\n" | ||
58 | - " movq %%mm0, (%2,%%rcx,2)\n" | ||
59 | + " movq %%mm0, (%q2,%%rcx,2)\n" | ||
60 | " add $4, %%rcx\n" | ||
61 | " cmp %3, %%ecx\n" | ||
62 | " jl 1b\n" | ||
63 | @@ -93,10 +93,10 @@ deinterleave2_mmx_2 (int16_t *d1, int16_ | ||
64 | asm volatile ("\n" | ||
65 | " xor %%rcx, %%rcx\n" | ||
66 | "1:\n" | ||
67 | - " pshufw $0xd8, (%1,%%rcx,4), %%mm0\n" | ||
68 | - " movd %%mm0, (%0,%%rcx,2)\n" | ||
69 | - " pshufw $0x8d, (%1,%%rcx,4), %%mm0\n" | ||
70 | - " movd %%mm0, (%2,%%rcx,2)\n" | ||
71 | + " pshufw $0xd8, (%q1,%%rcx,4), %%mm0\n" | ||
72 | + " movd %%mm0, (%q0,%%rcx,2)\n" | ||
73 | + " pshufw $0x8d, (%q1,%%rcx,4), %%mm0\n" | ||
74 | + " movd %%mm0, (%q2,%%rcx,2)\n" | ||
75 | " add $2, %%rcx\n" | ||
76 | " cmp %3, %%ecx\n" | ||
77 | " jl 1b\n" | ||
78 | @@ -123,16 +123,16 @@ deinterleave2_mmx_3 (int16_t *d1, int16_ | ||
79 | asm volatile ("\n" | ||
80 | " xor %%rcx, %%rcx\n" | ||
81 | "1:\n" | ||
82 | - " movq (%1,%%rcx,4), %%mm1\n" | ||
83 | - " movq (%1,%%rcx,4), %%mm2\n" | ||
84 | - " movq 8(%1,%%rcx,4), %%mm0\n" | ||
85 | + " movq (%q1,%%rcx,4), %%mm1\n" | ||
86 | + " movq (%q1,%%rcx,4), %%mm2\n" | ||
87 | + " movq 8(%q1,%%rcx,4), %%mm0\n" | ||
88 | " punpcklwd %%mm0, %%mm1\n" | ||
89 | " punpckhwd %%mm0, %%mm2\n" | ||
90 | " movq %%mm1, %%mm0\n" | ||
91 | " punpcklwd %%mm2, %%mm0\n" | ||
92 | " punpckhwd %%mm2, %%mm1\n" | ||
93 | - " movq %%mm0, (%0,%%rcx,2)\n" | ||
94 | - " movq %%mm1, (%2,%%rcx,2)\n" | ||
95 | + " movq %%mm0, (%q0,%%rcx,2)\n" | ||
96 | + " movq %%mm1, (%q2,%%rcx,2)\n" | ||
97 | " add $4, %%rcx\n" | ||
98 | " cmp %3, %%ecx\n" | ||
99 | " jl 1b\n" | ||
100 | @@ -159,26 +159,26 @@ deinterleave2_mmx_4 (int16_t *d1, int16_ | ||
101 | asm volatile ("\n" | ||
102 | " xor %%rcx, %%rcx\n" | ||
103 | "1:\n" | ||
104 | - " movq (%1,%%rcx,4), %%mm1\n" | ||
105 | + " movq (%q1,%%rcx,4), %%mm1\n" | ||
106 | " movq %%mm1, %%mm2\n" | ||
107 | - " movq 8(%1,%%rcx,4), %%mm0\n" | ||
108 | - " movq 16(%1,%%rcx,4), %%mm5\n" | ||
109 | + " movq 8(%q1,%%rcx,4), %%mm0\n" | ||
110 | + " movq 16(%q1,%%rcx,4), %%mm5\n" | ||
111 | " punpcklwd %%mm0, %%mm1\n" | ||
112 | " movq %%mm5, %%mm6\n" | ||
113 | " punpckhwd %%mm0, %%mm2\n" | ||
114 | - " movq 24(%1,%%rcx,4), %%mm4\n" | ||
115 | + " movq 24(%q1,%%rcx,4), %%mm4\n" | ||
116 | " movq %%mm1, %%mm0\n" | ||
117 | " punpcklwd %%mm4, %%mm5\n" | ||
118 | " punpcklwd %%mm2, %%mm0\n" | ||
119 | " punpckhwd %%mm4, %%mm6\n" | ||
120 | " punpckhwd %%mm2, %%mm1\n" | ||
121 | " movq %%mm5, %%mm4\n" | ||
122 | - " movq %%mm0, (%0,%%rcx,2)\n" | ||
123 | + " movq %%mm0, (%q0,%%rcx,2)\n" | ||
124 | " punpcklwd %%mm6, %%mm4\n" | ||
125 | - " movq %%mm1, (%2,%%rcx,2)\n" | ||
126 | + " movq %%mm1, (%q2,%%rcx,2)\n" | ||
127 | " punpckhwd %%mm6, %%mm5\n" | ||
128 | - " movq %%mm4, 8(%0,%%rcx,2)\n" | ||
129 | - " movq %%mm5, 8(%2,%%rcx,2)\n" | ||
130 | + " movq %%mm4, 8(%q0,%%rcx,2)\n" | ||
131 | + " movq %%mm5, 8(%q2,%%rcx,2)\n" | ||
132 | " add $8, %%rcx\n" | ||
133 | " cmp %3, %%ecx\n" | ||
134 | " jl 1b\n" | ||
135 | @@ -252,13 +252,13 @@ interleave2_mmx (int16_t *d_2xn, int16_t | ||
136 | asm volatile ("\n" | ||
137 | " xor %%rcx, %%rcx\n" | ||
138 | "1:\n" | ||
139 | - " movq (%1,%%rcx,2), %%mm0\n" | ||
140 | - " movq (%2,%%rcx,2), %%mm1\n" | ||
141 | + " movq (%q1,%%rcx,2), %%mm0\n" | ||
142 | + " movq (%q2,%%rcx,2), %%mm1\n" | ||
143 | " movq %%mm0, %%mm2\n" | ||
144 | " punpckhwd %%mm1, %%mm0\n" | ||
145 | " punpcklwd %%mm1, %%mm2\n" | ||
146 | - " movq %%mm2, (%0,%%rcx,4)\n" | ||
147 | - " movq %%mm0, 8(%0,%%rcx,4)\n" | ||
148 | + " movq %%mm2, (%q0,%%rcx,4)\n" | ||
149 | + " movq %%mm0, 8(%q0,%%rcx,4)\n" | ||
150 | " add $4, %%rcx\n" | ||
151 | " cmp %3, %%ecx\n" | ||
152 | " jl 1b\n" | ||
153 | @@ -285,12 +285,12 @@ lift_add_shift1_mmx (int16_t *d, int16_t | ||
154 | asm volatile ("\n" | ||
155 | " xor %%rcx, %%rcx\n" | ||
156 | "1:\n" | ||
157 | - " movq (%2,%%rcx,2), %%mm1\n" | ||
158 | - " movq (%3,%%rcx,2), %%mm2\n" | ||
159 | + " movq (%q2,%%rcx,2), %%mm1\n" | ||
160 | + " movq (%q3,%%rcx,2), %%mm2\n" | ||
161 | " paddw %%mm2, %%mm1\n" | ||
162 | " psraw $1, %%mm1\n" | ||
163 | - " paddw (%1,%%rcx,2), %%mm1\n" | ||
164 | - " movq %%mm1, (%0,%%rcx,2)\n" | ||
165 | + " paddw (%q1,%%rcx,2), %%mm1\n" | ||
166 | + " movq %%mm1, (%q0,%%rcx,2)\n" | ||
167 | " add $4, %%rcx\n" | ||
168 | " cmp %4, %%ecx\n" | ||
169 | " jl 1b\n" | ||
170 | @@ -317,13 +317,13 @@ lift_sub_shift1_mmx (int16_t *d, int16_t | ||
171 | asm volatile ("\n" | ||
172 | " xor %%rcx, %%rcx\n" | ||
173 | "1:\n" | ||
174 | - " movq (%2,%%rcx,2), %%mm1\n" | ||
175 | - " movq (%3,%%rcx,2), %%mm2\n" | ||
176 | - " movq (%1,%%rcx,2), %%mm0\n" | ||
177 | + " movq (%q2,%%rcx,2), %%mm1\n" | ||
178 | + " movq (%q3,%%rcx,2), %%mm2\n" | ||
179 | + " movq (%q1,%%rcx,2), %%mm0\n" | ||
180 | " paddw %%mm2, %%mm1\n" | ||
181 | " psraw $1, %%mm1\n" | ||
182 | " psubw %%mm1, %%mm0\n" | ||
183 | - " movq %%mm0, (%0,%%rcx,2)\n" | ||
184 | + " movq %%mm0, (%q0,%%rcx,2)\n" | ||
185 | " add $4, %%rcx\n" | ||
186 | " cmp %4, %%ecx\n" | ||
187 | " jl 1b\n" | ||
188 | @@ -350,12 +350,12 @@ lift_add_shift2_mmx (int16_t *d, int16_t | ||
189 | asm volatile ("\n" | ||
190 | " xor %%rcx, %%rcx\n" | ||
191 | "1:\n" | ||
192 | - " movq (%2,%%rcx,2), %%mm1\n" | ||
193 | - " movq (%3,%%rcx,2), %%mm2\n" | ||
194 | + " movq (%q2,%%rcx,2), %%mm1\n" | ||
195 | + " movq (%q3,%%rcx,2), %%mm2\n" | ||
196 | " paddw %%mm2, %%mm1\n" | ||
197 | " psraw $2, %%mm1\n" | ||
198 | - " paddw (%1,%%rcx,2), %%mm1\n" | ||
199 | - " movq %%mm1, (%0,%%rcx,2)\n" | ||
200 | + " paddw (%q1,%%rcx,2), %%mm1\n" | ||
201 | + " movq %%mm1, (%q0,%%rcx,2)\n" | ||
202 | " add $4, %%rcx\n" | ||
203 | " cmp %4, %%ecx\n" | ||
204 | " jl 1b\n" | ||
205 | @@ -382,13 +382,13 @@ lift_sub_shift2_mmx (int16_t *d, int16_t | ||
206 | asm volatile ("\n" | ||
207 | " xor %%rcx, %%rcx\n" | ||
208 | "1:\n" | ||
209 | - " movq (%2,%%rcx,2), %%mm1\n" | ||
210 | - " movq (%3,%%rcx,2), %%mm2\n" | ||
211 | - " movq (%1,%%rcx,2), %%mm0\n" | ||
212 | + " movq (%q2,%%rcx,2), %%mm1\n" | ||
213 | + " movq (%q3,%%rcx,2), %%mm2\n" | ||
214 | + " movq (%q1,%%rcx,2), %%mm0\n" | ||
215 | " paddw %%mm2, %%mm1\n" | ||
216 | " psraw $2, %%mm1\n" | ||
217 | " psubw %%mm1, %%mm0\n" | ||
218 | - " movq %%mm0, (%0,%%rcx,2)\n" | ||
219 | + " movq %%mm0, (%q0,%%rcx,2)\n" | ||
220 | " add $4, %%rcx\n" | ||
221 | " cmp %4, %%ecx\n" | ||
222 | " jl 1b\n" | ||
diff --git a/meta/recipes-support/liboil/liboil-0.3.17/no-tests.patch b/meta/recipes-support/liboil/liboil-0.3.17/no-tests.patch new file mode 100644 index 0000000000..892d441310 --- /dev/null +++ b/meta/recipes-support/liboil/liboil-0.3.17/no-tests.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | Upstream-Status: Inappropriate [disable feature] | ||
2 | |||
3 | --- liboil-0.3.9/liboil/liboilfunction.c.old 2006-09-18 13:03:20.000000000 +0100 | ||
4 | +++ liboil-0.3.9/liboil/liboilfunction.c 2006-09-18 13:04:10.000000000 +0100 | ||
5 | @@ -345,7 +345,9 @@ | ||
6 | return; | ||
7 | } | ||
8 | |||
9 | - test = oil_test_new (klass); | ||
10 | + klass->chosen_impl = klass->reference_impl; | ||
11 | + klass->func = klass->reference_impl->func; | ||
12 | +/* test = oil_test_new (klass); | ||
13 | if (test == NULL) { | ||
14 | OIL_ERROR ("failed to test function class %s", klass->name); | ||
15 | return; | ||
16 | @@ -385,7 +387,7 @@ | ||
17 | klass->chosen_impl = min_impl; | ||
18 | klass->func = min_impl->func; | ||
19 | |||
20 | - oil_test_free (test); | ||
21 | + oil_test_free (test);*/ | ||
22 | } | ||
23 | |||
24 | static void | ||
diff --git a/meta/recipes-support/liboil/liboil_0.3.17.bb b/meta/recipes-support/liboil/liboil_0.3.17.bb new file mode 100644 index 0000000000..03b7785215 --- /dev/null +++ b/meta/recipes-support/liboil/liboil_0.3.17.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "Library of simple functions optimized for various CPUs" | ||
2 | HOMEPAGE = "http://liboil.freedesktop.org/" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/" | ||
4 | |||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=ad80780d9c5205d63481a0184e199a15 \ | ||
7 | file://liboil/liboil.h;endline=28;md5=95c794a66b88800d949fed17e437d9fb \ | ||
8 | file://liboil/liboilcpu.c;endline=28;md5=89da69a61d88eedcba066f42353fb75a \ | ||
9 | file://examples/example1.c;endline=29;md5=9d4dad9fcbbdf0441ee063f8af5170c9 \ | ||
10 | file://testsuite/trans.c;endline=29;md5=380ecd43121fe3dcc0d8d7e5984f283d" | ||
11 | |||
12 | DEPENDS = "glib-2.0" | ||
13 | PR = "r5" | ||
14 | |||
15 | SRC_URI = "http://liboil.freedesktop.org/download/${BPN}-${PV}.tar.gz \ | ||
16 | file://no-tests.patch \ | ||
17 | file://fix-unaligned-whitelist.patch \ | ||
18 | file://0001-Fix-enable-vfp-flag.patch \ | ||
19 | file://liboil_fix_for_x32.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "47dc734f82faeb2964d97771cfd2e701" | ||
23 | SRC_URI[sha256sum] = "105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69" | ||
24 | |||
25 | inherit autotools pkgconfig | ||
26 | |||
27 | ARM_INSTRUCTION_SET = "arm" | ||
diff --git a/meta/recipes-support/libpcre/libpcre/Makefile b/meta/recipes-support/libpcre/libpcre/Makefile new file mode 100644 index 0000000000..5419d71f7f --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre/Makefile | |||
@@ -0,0 +1,183 @@ | |||
1 | TESTS = pcre_stringpiece_unittest RunTest RunGrepTest | ||
2 | subdir = . | ||
3 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
4 | am__vpath_adj = case $$p in \ | ||
5 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
6 | *) f=$$p;; \ | ||
7 | esac; | ||
8 | am__tty_colors_dummy = \ | ||
9 | mgn= red= grn= lgn= blu= brg= std=; \ | ||
10 | am__color_tests=no | ||
11 | am__tty_colors = { \ | ||
12 | $(am__tty_colors_dummy); \ | ||
13 | if test "X$(AM_COLOR_TESTS)" = Xno; then \ | ||
14 | am__color_tests=no; \ | ||
15 | elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ | ||
16 | am__color_tests=yes; \ | ||
17 | elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ | ||
18 | am__color_tests=yes; \ | ||
19 | fi; \ | ||
20 | if test $$am__color_tests = yes; then \ | ||
21 | red='[0;31m'; \ | ||
22 | grn='[0;32m'; \ | ||
23 | lgn='[1;32m'; \ | ||
24 | blu='[1;34m'; \ | ||
25 | mgn='[0;35m'; \ | ||
26 | brg='[1m'; \ | ||
27 | std='[m'; \ | ||
28 | fi; \ | ||
29 | } | ||
30 | am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } | ||
31 | am__sh_e_setup = case $$- in *e*) set +e;; esac | ||
32 | am__common_driver_flags = \ | ||
33 | --color-tests "$$am__color_tests" \ | ||
34 | --enable-hard-errors "$$am__enable_hard_errors" \ | ||
35 | --expect-failure "$$am__expect_failure" | ||
36 | am__check_pre = \ | ||
37 | $(am__sh_e_setup); \ | ||
38 | $(am__vpath_adj_setup) $(am__vpath_adj) \ | ||
39 | $(am__tty_colors); \ | ||
40 | srcdir=$(srcdir); export srcdir; \ | ||
41 | case "$@" in \ | ||
42 | */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ | ||
43 | *) am__odir=.;; \ | ||
44 | esac; \ | ||
45 | test "x$$am__odir" = x"." || test -d "$$am__odir" \ | ||
46 | || $(MKDIR_P) "$$am__odir" || exit $$?; \ | ||
47 | if test -f "./$$f"; then dir=./; \ | ||
48 | elif test -f "$$f"; then dir=; \ | ||
49 | else dir="$(srcdir)/"; fi; \ | ||
50 | tst=$$dir$$f; log='$@'; \ | ||
51 | if test -n '$(DISABLE_HARD_ERRORS)'; then \ | ||
52 | am__enable_hard_errors=no; \ | ||
53 | else \ | ||
54 | am__enable_hard_errors=yes; \ | ||
55 | fi; | ||
56 | am__set_TESTS_bases = \ | ||
57 | bases='$(TEST_LOGS)'; \ | ||
58 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ | ||
59 | bases=`echo $$bases` | ||
60 | RECHECK_LOGS = $(TEST_LOGS) | ||
61 | TEST_SUITE_LOG = test-suite.log | ||
62 | TEST_EXTENSIONS = .test | ||
63 | LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | ||
64 | am__test_logs1 = $(TESTS:=.log) | ||
65 | am__test_logs2 = $(am__test_logs1:.log=.log) | ||
66 | TEST_LOGS = $(am__test_logs2:.test.log=.log) | ||
67 | MKDIR_P = /bin/mkdir -p | ||
68 | PACKAGE_STRING = PCRE 8.34 | ||
69 | SHELL = /bin/sh | ||
70 | srcdir = . | ||
71 | top_srcdir = . | ||
72 | $(TEST_SUITE_LOG): $(TEST_LOGS) | ||
73 | @$(am__set_TESTS_bases); \ | ||
74 | am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ | ||
75 | redo_bases=`for i in $$bases; do \ | ||
76 | am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ | ||
77 | done`; \ | ||
78 | st=0; \ | ||
79 | errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ | ||
80 | for i in $$redo_bases; do \ | ||
81 | test -f $$i.trs && test -r $$i.trs \ | ||
82 | || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ | ||
83 | test -f $$i.log && test -r $$i.log \ | ||
84 | || { echo "$$errmsg $$i.log" >&2; st=1; }; \ | ||
85 | done; \ | ||
86 | test $$st -eq 0 || exit 1; | ||
87 | @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ | ||
88 | ws='[ ]'; \ | ||
89 | results=`for b in $$bases; do echo $$b.trs; done`; \ | ||
90 | test -n "$$results" || results=/dev/null; \ | ||
91 | all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ | ||
92 | pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ | ||
93 | fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ | ||
94 | skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ | ||
95 | xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ | ||
96 | xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ | ||
97 | error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ | ||
98 | if test `expr $$fail + $$xpass + $$error` -eq 0; then \ | ||
99 | success=true; \ | ||
100 | else \ | ||
101 | success=false; \ | ||
102 | fi; \ | ||
103 | br='==================='; br=$$br$$br$$br$$br; \ | ||
104 | result_count () \ | ||
105 | { \ | ||
106 | if test x"$$1" = x"--maybe-color"; then \ | ||
107 | maybe_colorize=yes; \ | ||
108 | elif test x"$$1" = x"--no-color"; then \ | ||
109 | maybe_colorize=no; \ | ||
110 | else \ | ||
111 | echo "$@: invalid 'result_count' usage" >&2; exit 4; \ | ||
112 | fi; \ | ||
113 | shift; \ | ||
114 | desc=$$1 count=$$2; \ | ||
115 | if test $$maybe_colorize = yes && test $$count -gt 0; then \ | ||
116 | color_start=$$3 color_end=$$std; \ | ||
117 | else \ | ||
118 | color_start= color_end=; \ | ||
119 | fi; \ | ||
120 | echo "$${color_start}# $$desc $$count$${color_end}"; \ | ||
121 | }; \ | ||
122 | create_testsuite_report () \ | ||
123 | { \ | ||
124 | result_count $$1 "TOTAL:" $$all "$$brg"; \ | ||
125 | result_count $$1 "PASS: " $$pass "$$grn"; \ | ||
126 | result_count $$1 "SKIP: " $$skip "$$blu"; \ | ||
127 | result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ | ||
128 | result_count $$1 "FAIL: " $$fail "$$red"; \ | ||
129 | result_count $$1 "XPASS:" $$xpass "$$red"; \ | ||
130 | result_count $$1 "ERROR:" $$error "$$mgn"; \ | ||
131 | }; \ | ||
132 | { \ | ||
133 | echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ | ||
134 | $(am__rst_title); \ | ||
135 | create_testsuite_report --no-color; \ | ||
136 | echo; \ | ||
137 | echo ".. contents:: :depth: 2"; \ | ||
138 | echo; \ | ||
139 | for b in $$bases; do echo $$b; done; \ | ||
140 | } >$(TEST_SUITE_LOG).tmp || exit 1; \ | ||
141 | mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ | ||
142 | if $$success; then \ | ||
143 | col="$$grn"; \ | ||
144 | else \ | ||
145 | col="$$red"; \ | ||
146 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ | ||
147 | fi; \ | ||
148 | echo "$${col}$$br$${std}"; \ | ||
149 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | ||
150 | echo "$${col}$$br$${std}"; \ | ||
151 | create_testsuite_report --maybe-color; \ | ||
152 | echo "$$col$$br$$std"; \ | ||
153 | if $$success; then :; else \ | ||
154 | echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ | ||
155 | echo "$$col$$br$$std"; \ | ||
156 | fi; \ | ||
157 | $$success || exit 1 | ||
158 | check-TESTS: | ||
159 | @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list | ||
160 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | ||
161 | @set +e; $(am__set_TESTS_bases); \ | ||
162 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | ||
163 | log_list=`echo $$log_list`; \ | ||
164 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ | ||
165 | exit $$?; | ||
166 | pcre_stringpiece_unittest.log: pcre_stringpiece_unittest$(EXEEXT) | ||
167 | @p='pcre_stringpiece_unittest$(EXEEXT)'; \ | ||
168 | b='pcre_stringpiece_unittest'; \ | ||
169 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | ||
170 | --log-file $$b.log --trs-file $$b.trs \ | ||
171 | $(am__common_driver_flags) -- "$$tst" | ||
172 | RunTest.log: RunTest | ||
173 | @p='RunTest'; \ | ||
174 | b='RunTest'; \ | ||
175 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | ||
176 | --log-file $$b.log --trs-file $$b.trs \ | ||
177 | $(am__common_driver_flags) -- "$$tst" | ||
178 | RunGrepTest.log: RunGrepTest | ||
179 | @p='RunGrepTest'; \ | ||
180 | b='RunGrepTest'; \ | ||
181 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | ||
182 | --log-file $$b.log --trs-file $$b.trs \ | ||
183 | $(am__common_driver_flags) -- "$$tst" | ||
diff --git a/meta/recipes-support/libpcre/libpcre/fix-pcre-name-collision.patch b/meta/recipes-support/libpcre/libpcre/fix-pcre-name-collision.patch new file mode 100644 index 0000000000..89b44f6aa6 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre/fix-pcre-name-collision.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Upstream-Status: Inappropriate [debian patch] | ||
2 | |||
3 | This patch address a namespace collision with libc. | ||
4 | |||
5 | Although there is no "#include <regex.h>" in the source file, at | ||
6 | runtime, it's unintentionally linked to the libc version, the regcomp of | ||
7 | libc is called instead the pcre one using pcre's data structure... | ||
8 | that looks like a disaster. | ||
9 | |||
10 | Can patch is from Debian (and Ubuntu 11.04alpha has it also). | ||
11 | |||
12 | [sgw: added patch comment] | ||
13 | Signed-off-by: Qing He <qing.he@intel.com> | ||
14 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
15 | |||
16 | --- a/pcreposix.h 2010-05-17 00:17:23.000000000 +0800 | ||
17 | +++ b/pcreposix.h 2009-01-15 04:32:17.000000000 +0800 | ||
18 | @@ -133,14 +130,19 @@ | ||
19 | |||
20 | /* The functions */ | ||
21 | |||
22 | -PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int); | ||
23 | -PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t, | ||
24 | +PCREPOSIX_EXP_DECL int pcreposix_regcomp(regex_t *, const char *, int); | ||
25 | +PCREPOSIX_EXP_DECL int pcreposix_regexec(const regex_t *, const char *, size_t, | ||
26 | regmatch_t *, int); | ||
27 | -PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t); | ||
28 | -PCREPOSIX_EXP_DECL void regfree(regex_t *); | ||
29 | +PCREPOSIX_EXP_DECL size_t pcreposix_regerror(int, const regex_t *, char *, size_t); | ||
30 | +PCREPOSIX_EXP_DECL void pcreposix_regfree(regex_t *); | ||
31 | |||
32 | #ifdef __cplusplus | ||
33 | } /* extern "C" */ | ||
34 | #endif | ||
35 | |||
36 | +#define regcomp pcreposix_regcomp | ||
37 | +#define regexec pcreposix_regexec | ||
38 | +#define regerror pcreposix_regerror | ||
39 | +#define regfree pcreposix_regfree | ||
40 | + | ||
41 | #endif /* End of pcreposix.h */ | ||
diff --git a/meta/recipes-support/libpcre/libpcre/pcre-cross.patch b/meta/recipes-support/libpcre/libpcre/pcre-cross.patch new file mode 100644 index 0000000000..83880f7098 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre/pcre-cross.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- pcre-8.32.orig/Makefile.am | ||
4 | +++ pcre-8.32/Makefile.am | ||
5 | @@ -197,8 +197,18 @@ bin_SCRIPTS = pcre-config | ||
6 | |||
7 | +CC_FOR_BUILD = @CC_FOR_BUILD@ | ||
8 | +CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ | ||
9 | +CCLD_FOR_BUILD = @CCLD_FOR_BUILD@ | ||
10 | +LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ | ||
11 | + | ||
12 | if WITH_REBUILD_CHARTABLES | ||
13 | |||
14 | noinst_PROGRAMS += dftables | ||
15 | dftables_SOURCES = dftables.c | ||
16 | +dftables_LINK = $(CCLD_FOR_BUILD) -o $@ | ||
17 | +dftables_LDFLAGS = $(LDFLAGS_FOR_BUILD) | ||
18 | + | ||
19 | +dftables.o: $(srcdir)/dftables.c | ||
20 | + $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -o $@ $(srcdir)/dftables.c | ||
21 | |||
22 | pcre_chartables.c: dftables$(EXEEXT) | ||
23 | ./dftables$(EXEEXT) $@ | ||
24 | --- pcre-8.32.orig/configure.ac | ||
25 | +++ pcre-8.32/configure.ac | ||
26 | @@ -72,6 +72,22 @@ then | ||
27 | fi | ||
28 | fi | ||
29 | |||
30 | +if test x"$cross_compiling" = xyes; then | ||
31 | + CC_FOR_BUILD="${CC_FOR_BUILD-gcc}" | ||
32 | + CCLD_FOR_BUILD="${CCLD_FOR_BUILD-gcc}" | ||
33 | + CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD}" | ||
34 | + LDFLAGS_FOR_BUILD="${LDFLAGS_FOR_BUILD}" | ||
35 | +else | ||
36 | + CC_FOR_BUILD="${CC_FOR_BUILD-\$(CC)}" | ||
37 | + CCLD_FOR_BUILD="${CCLD_FOR_BUILD-\$(CCLD)}" | ||
38 | + CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD-\$(CFLAGS)}" | ||
39 | + LDFLAGS_FOR_BUILD="${LDFLAGS_FOR_BUILD-\$(LDFLAGS)}" | ||
40 | +fi | ||
41 | +AC_ARG_VAR(CC_FOR_BUILD, [build system C compiler]) | ||
42 | +AC_ARG_VAR(CCLD_FOR_BUILD, [build system C linker frontend]) | ||
43 | +AC_ARG_VAR(CFLAGS_FOR_BUILD, [build system C compiler arguments]) | ||
44 | +AC_ARG_VAR(LDFLAGS_FOR_BUILD, [build system C linker frontend arguments]) | ||
45 | + | ||
46 | # AC_PROG_CXX will return "g++" even if no c++ compiler is installed. | ||
47 | # Check for that case, and just disable c++ code if g++ doesn't run. | ||
48 | AC_LANG_PUSH(C++) | ||
diff --git a/meta/recipes-support/libpcre/libpcre/run-ptest b/meta/recipes-support/libpcre/libpcre/run-ptest new file mode 100644 index 0000000000..990d4a12ad --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | make check-TESTS | ||
diff --git a/meta/recipes-support/libpcre/libpcre_8.34.bb b/meta/recipes-support/libpcre/libpcre_8.34.bb new file mode 100644 index 0000000000..5c5072cb90 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre_8.34.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | DESCRIPTION = "The PCRE library is a set of functions that implement regular \ | ||
2 | expression pattern matching using the same syntax and semantics as Perl 5. PCRE \ | ||
3 | has its own native API, as well as a set of wrapper functions that correspond \ | ||
4 | to the POSIX regular expression API." | ||
5 | SUMMARY = "Perl Compatible Regular Expressions" | ||
6 | HOMEPAGE = "http://www.pcre.org" | ||
7 | SECTION = "devel" | ||
8 | LICENSE = "BSD" | ||
9 | LIC_FILES_CHKSUM = "file://LICENCE;md5=0920cc1a9f7ba95464491fa83c86afd8" | ||
10 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/pcre/pcre/${PV}/pcre-${PV}.tar.bz2 \ | ||
11 | file://pcre-cross.patch \ | ||
12 | file://fix-pcre-name-collision.patch \ | ||
13 | file://run-ptest \ | ||
14 | file://Makefile \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "5439e321351bddd5533551bbce128d07" | ||
18 | SRC_URI[sha256sum] = "b6043ae1ff2720be665ffa28dc22b7c637cdde96f389a116c0c3020caeae583f" | ||
19 | |||
20 | S = "${WORKDIR}/pcre-${PV}" | ||
21 | |||
22 | PROVIDES += "pcre" | ||
23 | DEPENDS += "bzip2 zlib" | ||
24 | |||
25 | PACKAGECONFIG[pcretest-readline] = "--enable-pcretest-libreadline,--disable-pcretest-libreadline,readline," | ||
26 | |||
27 | inherit autotools binconfig ptest | ||
28 | |||
29 | PARALLEL_MAKE = "" | ||
30 | |||
31 | EXTRA_OECONF = "\ | ||
32 | --enable-newline-is-lf \ | ||
33 | --enable-rebuild-chartables \ | ||
34 | --enable-utf8 \ | ||
35 | --with-link-size=2 \ | ||
36 | --with-match-limit=10000000 \ | ||
37 | " | ||
38 | |||
39 | # Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to | ||
40 | # set CFLAGS_FOR_BUILD, required for the libpcre build. | ||
41 | BUILD_CFLAGS =+ "-DLINK_SIZE=2 -I${B}" | ||
42 | CFLAGS += "-D_REENTRANT" | ||
43 | CXXFLAGS_append_powerpc = " -lstdc++" | ||
44 | |||
45 | PACKAGES =+ "libpcrecpp libpcreposix pcregrep pcregrep-doc pcretest pcretest-doc" | ||
46 | |||
47 | SUMMARY_libpcrecpp = "${SUMMARY} - C++ wrapper functions" | ||
48 | SUMMARY_libpcreposix = "${SUMMARY} - C wrapper functions based on the POSIX regex API" | ||
49 | SUMMARY_pcregrep = "grep utility that uses perl 5 compatible regexes" | ||
50 | SUMMARY_pcregrep-doc = "grep utility that uses perl 5 compatible regexes - docs" | ||
51 | SUMMARY_pcretest = "program for testing Perl-comatible regular expressions" | ||
52 | SUMMARY_pcretest-doc = "program for testing Perl-comatible regular expressions - docs" | ||
53 | |||
54 | FILES_libpcrecpp = "${libdir}/libpcrecpp.so.*" | ||
55 | FILES_libpcreposix = "${libdir}/libpcreposix.so.*" | ||
56 | FILES_pcregrep = "${bindir}/pcregrep" | ||
57 | FILES_pcregrep-doc = "${mandir}/man1/pcregrep.1" | ||
58 | FILES_pcretest = "${bindir}/pcretest" | ||
59 | FILES_pcretest-doc = "${mandir}/man1/pcretest.1" | ||
60 | |||
61 | BBCLASSEXTEND = "native nativesdk" | ||
62 | |||
63 | do_install_ptest() { | ||
64 | t=${D}${PTEST_PATH} | ||
65 | cp ${WORKDIR}/Makefile $t | ||
66 | cp -r ${S}/testdata $t | ||
67 | for i in pcre_stringpiece_unittest pcregrep pcretest; \ | ||
68 | do cp ${B}/.libs/$i $t; \ | ||
69 | done | ||
70 | for i in RunTest RunGrepTest test-driver; \ | ||
71 | do cp ${S}/$i $t; \ | ||
72 | done | ||
73 | } | ||
diff --git a/meta/recipes-support/libproxy/libproxy_0.4.11.bb b/meta/recipes-support/libproxy/libproxy_0.4.11.bb new file mode 100644 index 0000000000..aecb7b5a82 --- /dev/null +++ b/meta/recipes-support/libproxy/libproxy_0.4.11.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Library providing automatic proxy configuration management" | ||
2 | HOMEPAGE = "http://code.google.com/p/libproxy/" | ||
3 | BUGTRACKER = "http://code.google.com/p/libproxy/issues/list" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ | ||
7 | file://utils/proxy.c;beginline=1;endline=18;md5=55152a1006d7dafbef32baf9c30a99c0" | ||
8 | |||
9 | DEPENDS = "gconf glib-2.0" | ||
10 | |||
11 | SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.zip \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "06be230b8b612e64997f8f15af6373aa" | ||
15 | SRC_URI[sha256sum] = "3175abcb49c0b37fd82c697927783bf7d53de3884a8559bc594e59caa09bdb04" | ||
16 | |||
17 | inherit cmake pkgconfig | ||
18 | |||
19 | EXTRA_OECMAKE = "-DWITH_WEBKIT=no -DWITH_GNOME=yes -DWITH_KDE4=no \ | ||
20 | -DWITH_PYTHON=no -DWITH_PERL=no -DWITH_MOZJS=no -DWITH_NM=no -DLIB_INSTALL_DIR=${libdir} -DLIBEXEC_INSTALL_DIR=${libexecdir}" | ||
21 | |||
22 | FILES_${PN} += "${libdir}/${BPN}/${PV}/modules" | ||
23 | FILES_${PN}-dev += "${datadir}/cmake" | ||
24 | FILES_${PN}-dbg += "${libdir}/${BPN}/${PV}/plugins/.debug/ ${libdir}/${BPN}/${PV}/modules/.debug/" | ||
25 | |||
26 | do_configure_prepend() { | ||
27 | export HOST_SYS=${HOST_SYS} | ||
28 | export BUILD_SYS=${BUILD_SYS} | ||
29 | } | ||
30 | |||
31 | python() { | ||
32 | if base_contains("INCOMPATIBLE_LICENSE", "GPLv3", "x", "", d) == "x" or base_contains("DISTRO_FEATURES", "x11", "x", "", d) == "": | ||
33 | d.setVar("EXTRA_OECMAKE", d.getVar("EXTRA_OECMAKE").replace("-DWITH_GNOME=yes", "-DWITH_GNOME=no")) | ||
34 | d.setVar("DEPENDS", " ".join(i for i in d.getVar("DEPENDS").split() if i != "gconf")) | ||
35 | } | ||
diff --git a/meta/recipes-support/libsoup/files/fix-compiling-failed-while-mips-gcc-optimization-enabled.patch b/meta/recipes-support/libsoup/files/fix-compiling-failed-while-mips-gcc-optimization-enabled.patch new file mode 100644 index 0000000000..346964261d --- /dev/null +++ b/meta/recipes-support/libsoup/files/fix-compiling-failed-while-mips-gcc-optimization-enabled.patch | |||
@@ -0,0 +1,95 @@ | |||
1 | test/header-parsing.c: fix compiling failed while mips-gcc optimization enabled | ||
2 | |||
3 | There was an error about mips-gcc optimization while compiling | ||
4 | libsoup-2.4 2.45.3 with DEBUG_OPTIMIZATION enabled. | ||
5 | |||
6 | The test code of libsoup-2.4 2.45.3 triggered gcc assert which located | ||
7 | in gcc/dwarf2out.c:20810: | ||
8 | ... | ||
9 | 20806 gcc_assert (prev | ||
10 | 20807 && (CALL_P (prev) | ||
11 | 20808 || (NONJUMP_INSN_P (prev) | ||
12 | 20809 && GET_CODE (PATTERN (prev)) == SEQUENCE | ||
13 | 20810 && CALL_P (XVECEXP (PATTERN (prev), 0, 0))))); | ||
14 | ... | ||
15 | |||
16 | The issue test code is the C function 'do_qvalue_tests' located in | ||
17 | tests/header-parsing.c. | ||
18 | |||
19 | The 2.45.92 have refactored the test code and this issue has been fixed. | ||
20 | So backport the fix to 2.45.3. | ||
21 | |||
22 | Upstream-Status: backport | ||
23 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
24 | --- | ||
25 | tests/header-parsing.c | 28 ++-------------------------- | ||
26 | 1 file changed, 2 insertions(+), 26 deletions(-) | ||
27 | |||
28 | diff --git a/tests/header-parsing.c b/tests/header-parsing.c | ||
29 | index 5b2950f..00f5a4e 100644 | ||
30 | --- a/tests/header-parsing.c | ||
31 | +++ b/tests/header-parsing.c | ||
32 | @@ -896,9 +896,7 @@ do_qvalue_tests (void) | ||
33 | { | ||
34 | int i, j; | ||
35 | GSList *acceptable, *unacceptable, *iter; | ||
36 | - gboolean wrong; | ||
37 | |||
38 | - debug_printf (1, "qvalue tests\n"); | ||
39 | for (i = 0; i < num_qvaluetests; i++) { | ||
40 | debug_printf (1, "%2d. %s:\n", i + 1, qvaluetests[i].header_value); | ||
41 | |||
42 | @@ -907,48 +905,26 @@ do_qvalue_tests (void) | ||
43 | &unacceptable); | ||
44 | |||
45 | debug_printf (1, " acceptable: "); | ||
46 | - wrong = FALSE; | ||
47 | if (acceptable) { | ||
48 | for (iter = acceptable, j = 0; iter; iter = iter->next, j++) { | ||
49 | debug_printf (1, "%s ", (char *)iter->data); | ||
50 | - if (!qvaluetests[i].acceptable[j] || | ||
51 | - strcmp (iter->data, qvaluetests[i].acceptable[j]) != 0) | ||
52 | - wrong = TRUE; | ||
53 | + g_assert_cmpstr (iter->data, ==, qvaluetests[i].acceptable[j]); | ||
54 | } | ||
55 | debug_printf (1, "\n"); | ||
56 | soup_header_free_list (acceptable); | ||
57 | } else | ||
58 | debug_printf (1, "(none)\n"); | ||
59 | - if (wrong) { | ||
60 | - debug_printf (1, " WRONG! expected: "); | ||
61 | - for (j = 0; qvaluetests[i].acceptable[j]; j++) | ||
62 | - debug_printf (1, "%s ", qvaluetests[i].acceptable[j]); | ||
63 | - debug_printf (1, "\n"); | ||
64 | - errors++; | ||
65 | - } | ||
66 | |||
67 | debug_printf (1, " unacceptable: "); | ||
68 | - wrong = FALSE; | ||
69 | if (unacceptable) { | ||
70 | for (iter = unacceptable, j = 0; iter; iter = iter->next, j++) { | ||
71 | debug_printf (1, "%s ", (char *)iter->data); | ||
72 | - if (!qvaluetests[i].unacceptable[j] || | ||
73 | - strcmp (iter->data, qvaluetests[i].unacceptable[j]) != 0) | ||
74 | - wrong = TRUE; | ||
75 | + g_assert_cmpstr (iter->data, ==, qvaluetests[i].unacceptable[j]); | ||
76 | } | ||
77 | debug_printf (1, "\n"); | ||
78 | soup_header_free_list (unacceptable); | ||
79 | } else | ||
80 | debug_printf (1, "(none)\n"); | ||
81 | - if (wrong) { | ||
82 | - debug_printf (1, " WRONG! expected: "); | ||
83 | - for (j = 0; qvaluetests[i].unacceptable[j]; j++) | ||
84 | - debug_printf (1, "%s ", qvaluetests[i].unacceptable[j]); | ||
85 | - debug_printf (1, "\n"); | ||
86 | - errors++; | ||
87 | - } | ||
88 | - | ||
89 | - debug_printf (1, "\n"); | ||
90 | } | ||
91 | } | ||
92 | |||
93 | -- | ||
94 | 1.7.9.5 | ||
95 | |||
diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.45.3.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.45.3.bb new file mode 100644 index 0000000000..a3629c2292 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4_2.45.3.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "An HTTP library implementation in C" | ||
2 | HOMEPAGE = "http://www.gnome.org/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | |||
5 | LICENSE = "LGPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" | ||
7 | |||
8 | SECTION = "x11/gnome/libs" | ||
9 | |||
10 | DEPENDS = "glib-2.0 gnutls libxml2 sqlite3 intltool-native" | ||
11 | |||
12 | # libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards. Enable | ||
13 | # by default but let it be easily disabled. | ||
14 | PACKAGECONFIG ??= "gnome" | ||
15 | PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome" | ||
16 | |||
17 | SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" | ||
18 | SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | ||
19 | file://fix-compiling-failed-while-mips-gcc-optimization-enabled.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "fe7ec04784c6b97c5f8ea963c8542f59" | ||
23 | SRC_URI[sha256sum] = "6ac317b931efd2cff9cdea7122987acb3ecb0c32564a9441ba72e5cce021aa12" | ||
24 | |||
25 | S = "${WORKDIR}/libsoup-${PV}" | ||
26 | |||
27 | inherit autotools pkgconfig | ||
28 | |||
29 | # glib-networking is needed for SSL, proxies, etc. | ||
30 | RRECOMMENDS_${PN} = "glib-networking" | ||
diff --git a/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch b/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch new file mode 100644 index 0000000000..a330c73412 --- /dev/null +++ b/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 8d99a368615656a835f5502326afd31cec2cebfe Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Mon, 16 Sep 2013 18:16:12 +0800 | ||
4 | Subject: [PATCH] remove the test to convert euc-jp | ||
5 | |||
6 | Remove the test "Test against HP-UX 11.11 bug: | ||
7 | No converter from EUC-JP to UTF-8 is provided" | ||
8 | since we don't support HP-UX and if the euc-jp is not | ||
9 | installed on the host, libunistring will be built without | ||
10 | iconv support and will cause guild-native configure fail. | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE specific] | ||
13 | |||
14 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
15 | --- | ||
16 | gnulib-m4/iconv.m4 | 11 ----------- | ||
17 | 1 files changed, 0 insertions(+), 11 deletions(-) | ||
18 | |||
19 | diff --git a/gnulib-m4/iconv.m4 b/gnulib-m4/iconv.m4 | ||
20 | index f46ff14..de0a5e9 100644 | ||
21 | --- a/gnulib-m4/iconv.m4 | ||
22 | +++ b/gnulib-m4/iconv.m4 | ||
23 | @@ -126,17 +126,6 @@ int main () | ||
24 | } | ||
25 | } | ||
26 | #endif | ||
27 | - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | ||
28 | - provided. */ | ||
29 | - if (/* Try standardized names. */ | ||
30 | - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | ||
31 | - /* Try IRIX, OSF/1 names. */ | ||
32 | - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | ||
33 | - /* Try AIX names. */ | ||
34 | - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | ||
35 | - /* Try HP-UX names. */ | ||
36 | - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | ||
37 | - return 1; | ||
38 | return 0; | ||
39 | }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], | ||
40 | [case "$host_os" in | ||
41 | -- | ||
42 | 1.7.4 | ||
diff --git a/meta/recipes-support/libunistring/libunistring/libunistring_fix_for_automake_1.12.patch b/meta/recipes-support/libunistring/libunistring/libunistring_fix_for_automake_1.12.patch new file mode 100644 index 0000000000..5d831d5491 --- /dev/null +++ b/meta/recipes-support/libunistring/libunistring/libunistring_fix_for_automake_1.12.patch | |||
@@ -0,0 +1,81 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake 1.12 has deprecated use of mkdir_p, and it recommends | ||
4 | use of MKDIR_P instead. Changed the code to avoid these kind | ||
5 | of warning-errors. | ||
6 | |||
7 | | make[2]: /build/tmp/work/x86_64-linux/libunistring-native-0.9.3-r2/image/srv/home/nitin/builds2/build0/tmp/sysroots/x86_64-linux/usr/share/doc/libunistring: Command not found | ||
8 | | make[2]: *** [install-html-split] Error 127 | ||
9 | |||
10 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
11 | 2012/07/10 | ||
12 | |||
13 | Index: libunistring-0.9.3/doc/Makefile.am | ||
14 | =================================================================== | ||
15 | --- libunistring-0.9.3.orig/doc/Makefile.am | ||
16 | +++ libunistring-0.9.3/doc/Makefile.am | ||
17 | @@ -87,7 +87,7 @@ TEXI2DVI = @TEXI2DVI@ $(TEXINCLUDES) | ||
18 | # The install-dvi target is already defined by automake. | ||
19 | |||
20 | installdirs-dvi: | ||
21 | - $(mkdir_p) $(DESTDIR)$(dvidir) | ||
22 | + $(MKDIR_P) $(DESTDIR)$(dvidir) | ||
23 | |||
24 | uninstall-dvi: | ||
25 | $(RM) $(DESTDIR)$(dvidir)/libunistring.dvi | ||
26 | @@ -105,7 +105,7 @@ libunistring.ps: libunistring.dvi | ||
27 | # The install-ps target is already defined by automake. | ||
28 | |||
29 | installdirs-ps: | ||
30 | - $(mkdir_p) $(DESTDIR)$(psdir) | ||
31 | + $(MKDIR_P) $(DESTDIR)$(psdir) | ||
32 | |||
33 | uninstall-ps: | ||
34 | $(RM) $(DESTDIR)$(psdir)/libunistring.ps | ||
35 | @@ -120,7 +120,7 @@ TEXI2PDF = @TEXI2DVI@ --pdf $(TEXINCLUDE | ||
36 | # The install-pdf target is already defined by automake. | ||
37 | |||
38 | installdirs-pdf: | ||
39 | - $(mkdir_p) $(DESTDIR)$(pdfdir) | ||
40 | + $(MKDIR_P) $(DESTDIR)$(pdfdir) | ||
41 | |||
42 | uninstall-pdf: | ||
43 | $(RM) $(DESTDIR)$(pdfdir)/libunistring.pdf | ||
44 | @@ -151,17 +151,17 @@ libunistring_toc.html: libunistring.texi | ||
45 | } | ||
46 | |||
47 | install-html-monolithic: libunistring.html | ||
48 | - $(mkdir_p) $(DESTDIR)$(htmldir) | ||
49 | + $(MKDIR_P) $(DESTDIR)$(htmldir) | ||
50 | $(INSTALL_DATA) `if test -f libunistring.html; then echo .; else echo $(srcdir); fi`/libunistring.html $(DESTDIR)$(htmldir)/libunistring.html | ||
51 | |||
52 | install-html-split: libunistring_toc.html | ||
53 | - $(mkdir_p) $(DESTDIR)$(htmldir) | ||
54 | + $(MKDIR_P) $(DESTDIR)$(htmldir) | ||
55 | for file in `if test -f libunistring_toc.html; then echo .; else echo $(srcdir); fi`/libunistring_*.html; do \ | ||
56 | $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir)/`basename $$file`; \ | ||
57 | done | ||
58 | |||
59 | installdirs-html: | ||
60 | - $(mkdir_p) $(DESTDIR)$(htmldir) | ||
61 | + $(MKDIR_P) $(DESTDIR)$(htmldir) | ||
62 | |||
63 | uninstall-html-monolithic: | ||
64 | $(RM) $(DESTDIR)$(htmldir)/libunistring.html | ||
65 | @@ -170,14 +170,14 @@ uninstall-html-split: | ||
66 | $(RM) $(DESTDIR)$(htmldir)/libunistring_*.html | ||
67 | |||
68 | dist-html-monolithic: | ||
69 | - $(mkdir_p) $(distdir)/ | ||
70 | + $(MKDIR_P) $(distdir)/ | ||
71 | file=libunistring.html; \ | ||
72 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | ||
73 | cp -p $$d/$$file $(distdir)/$$file || exit 1 | ||
74 | |||
75 | # We would like to put libunistring_*.html into EXTRA_DIST, but it doesn't work. | ||
76 | dist-html-split: libunistring_toc.html | ||
77 | - $(mkdir_p) $(distdir)/ | ||
78 | + $(MKDIR_P) $(distdir)/ | ||
79 | file=libunistring_toc.html; \ | ||
80 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | ||
81 | for file in `cd $$d && echo libunistring_*.html`; do \ | ||
diff --git a/meta/recipes-support/libunistring/libunistring/parallelmake.patch b/meta/recipes-support/libunistring/libunistring/parallelmake.patch new file mode 100644 index 0000000000..21025b8e9d --- /dev/null +++ b/meta/recipes-support/libunistring/libunistring/parallelmake.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Fix a parallel make race where cdefs.h uses the unused-parameter.h header file | ||
2 | but has no dependency listed. This can result in an empty cdefs.h file which | ||
3 | results in a build failure like: | ||
4 | |||
5 | | In file included from striconveh.c:30:0: | ||
6 | | unistr.h:193:48: error: expected ';', ',' or ')' before '_GL_UNUSED_PARAMETER' | ||
7 | | In file included from striconveh.c:30:0: | ||
8 | | unistr.h:263:54: error: expected ';', ',' or ')' before '_GL_UNUSED_PARAMETER' | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | RP 2012/4/12 | ||
13 | |||
14 | Index: libunistring-0.9.3/lib/Makefile.am | ||
15 | =================================================================== | ||
16 | --- libunistring-0.9.3.orig/lib/Makefile.am 2012-04-12 07:45:41.450059820 +0000 | ||
17 | +++ libunistring-0.9.3/lib/Makefile.am 2012-04-12 07:48:45.434055559 +0000 | ||
18 | @@ -157,7 +157,7 @@ | ||
19 | |||
20 | # unistring/cdefs.h is not public, but is included by other header files. | ||
21 | nobase_nodist_include_HEADERS += unistring/cdefs.h | ||
22 | -unistring/cdefs.h : unistring/cdefs.in.h | ||
23 | +unistring/cdefs.h : unistring/cdefs.in.h $(UNUSED_PARAMETER_H) | ||
24 | @MKDIR_P@ unistring | ||
25 | rm -f $@-t $@ | ||
26 | sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \ | ||
diff --git a/meta/recipes-support/libunistring/libunistring_0.9.3.bb b/meta/recipes-support/libunistring/libunistring_0.9.3.bb new file mode 100644 index 0000000000..faabe0332c --- /dev/null +++ b/meta/recipes-support/libunistring/libunistring_0.9.3.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Library for manipulating C and Unicode strings" | ||
2 | |||
3 | DESCRIPTION = "Text files are nowadays usually encoded in Unicode, and may\ | ||
4 | consist of very different scripts from Latin letters to Chinese Hanzi\ | ||
5 | with many kinds of special characters accents, right-to-left writing\ | ||
6 | marks, hyphens, Roman numbers, and much more. But the POSIX platform\ | ||
7 | APIs for text do not contain adequate functions for dealing with\ | ||
8 | particular properties of many Unicode characters. In fact, the POSIX\ | ||
9 | APIs for text have several assumptions at their base which don't hold\ | ||
10 | for Unicode text. This library provides functions for manipulating\ | ||
11 | Unicode strings and for manipulating C strings according to the Unicode\ | ||
12 | standard. This package contains documentation." | ||
13 | |||
14 | HOMEPAGE = "http://www.gnu.org/software/libunistring/" | ||
15 | SECTION = "devel" | ||
16 | LICENSE = "GPLv3&LGPLv3" | ||
17 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
18 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" | ||
19 | |||
20 | SRC_URI = "${GNU_MIRROR}/libunistring/libunistring-${PV}.tar.gz \ | ||
21 | file://parallelmake.patch \ | ||
22 | file://libunistring_fix_for_automake_1.12.patch \ | ||
23 | file://iconv-m4-remove-the-test-to-convert-euc-jp.patch \ | ||
24 | " | ||
25 | |||
26 | SRC_URI[md5sum] = "db8eca3b64163abadf8c40e5cecc261f" | ||
27 | SRC_URI[sha256sum] = "610d3ec724fbdaa654afe3cff20b9f4d504be3fd296fded2e0f7f764041006a3" | ||
28 | |||
29 | PR = "r3" | ||
30 | |||
31 | inherit autotools | ||
32 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/liburcu/liburcu/fixsepbuild.patch b/meta/recipes-support/liburcu/liburcu/fixsepbuild.patch new file mode 100644 index 0000000000..9cd0ab9e73 --- /dev/null +++ b/meta/recipes-support/liburcu/liburcu/fixsepbuild.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Fix out of tree build for doc examples | ||
4 | |||
5 | Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> | ||
6 | |||
7 | Index: userspace-rcu-0.8.0/doc/examples/Makefile.am | ||
8 | =================================================================== | ||
9 | --- userspace-rcu-0.8.0.orig/doc/examples/Makefile.am 2013-08-30 21:25:20.000000000 +0300 | ||
10 | +++ userspace-rcu-0.8.0/doc/examples/Makefile.am 2013-10-21 17:52:34.774597179 +0300 | ||
11 | @@ -128,7 +128,7 @@ | ||
12 | cp -fR $(srcdir)/$$subdir $(builddir); \ | ||
13 | done; \ | ||
14 | fi | ||
15 | - $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="$(CPPFLAGS) -I../../../urcu/ -I../../../" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all | ||
16 | + $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="$(CPPFLAGS) -I$(top_srcdir) -I../../../urcu/ -I../../../" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all | ||
17 | |||
18 | clean-local: | ||
19 | $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean | ||
diff --git a/meta/recipes-support/liburcu/liburcu_0.8.1.bb b/meta/recipes-support/liburcu/liburcu_0.8.1.bb new file mode 100644 index 0000000000..a9e7b2c899 --- /dev/null +++ b/meta/recipes-support/liburcu/liburcu_0.8.1.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Userspace RCU (read-copy-update) library" | ||
2 | HOMEPAGE = "http://lttng.org/urcu" | ||
3 | BUGTRACKER = "http://lttng.org/project/issues" | ||
4 | |||
5 | LICENSE = "LGPLv2.1+ & MIT-style" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0f060c30a27922ce9c0d557a639b4fa3 \ | ||
7 | file://urcu.h;beginline=4;endline=32;md5=4de0d68d3a997643715036d2209ae1d9 \ | ||
8 | file://urcu/uatomic/x86.h;beginline=4;endline=21;md5=220552f72c55b102f2ee35929734ef42" | ||
9 | |||
10 | SRC_URI = "http://lttng.org/files/urcu/userspace-rcu-${PV}.tar.bz2 \ | ||
11 | file://fixsepbuild.patch" | ||
12 | |||
13 | SRC_URI[md5sum] = "c0c0613bcce3b6954a050faa6dec6f51" | ||
14 | SRC_URI[sha256sum] = "8008f697b030d7d3043ebd3a72be63cefc9242ed2d50520d30211e3908a4e01e" | ||
15 | |||
16 | S = "${WORKDIR}/userspace-rcu-${PV}" | ||
17 | CFLAGS_append_libc-uclibc = " -D_GNU_SOURCE" | ||
18 | inherit autotools | ||
diff --git a/meta/recipes-support/libusb/libusb-compat_0.1.5.bb b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb new file mode 100644 index 0000000000..c316511b7f --- /dev/null +++ b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "libusb-0.1 compatibility layer for libusb1" | ||
2 | DESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \ | ||
3 | that aims to look, feel and behave exactly like libusb-0.1" | ||
4 | HOMEPAGE = "http://www.libusb.org/" | ||
5 | BUGTRACKER = "http://www.libusb.org/report" | ||
6 | SECTION = "libs" | ||
7 | |||
8 | LICENSE = "LGPLv2.1+" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423" | ||
10 | DEPENDS = "libusb1" | ||
11 | |||
12 | # Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0), | ||
13 | # so here libusb-0.1 is removed completely instead of adding virtual/libusb0. | ||
14 | # Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power | ||
15 | # consumption. | ||
16 | PROVIDES = "libusb virtual/libusb0" | ||
17 | BBCLASSEXTEND = "native nativesdk" | ||
18 | |||
19 | PE = "1" | ||
20 | |||
21 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2" | ||
22 | |||
23 | SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" | ||
24 | SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" | ||
25 | |||
26 | inherit autotools pkgconfig binconfig lib_package | ||
27 | |||
28 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
29 | |||
30 | do_install_append() { | ||
31 | install -d ${D}${libdir} | ||
32 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
33 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
34 | fi | ||
35 | } | ||
diff --git a/meta/recipes-support/libusb/libusb1-1.0.9/obsolete_automake_macros.patch b/meta/recipes-support/libusb/libusb1-1.0.9/obsolete_automake_macros.patch new file mode 100644 index 0000000000..b1dd66c969 --- /dev/null +++ b/meta/recipes-support/libusb/libusb1-1.0.9/obsolete_automake_macros.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Submitted [https://libusb.org/ticket/159] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd libusb-1.0.9/configure.ac libusb-1.0.9/configure.ac | ||
5 | --- libusb-1.0.9/configure.ac 2012-04-20 09:44:27.000000000 +0300 | ||
6 | +++ libusb-1.0.9/configure.ac 2013-01-02 16:36:44.152121483 +0200 | ||
7 | @@ -31,7 +31,7 @@ | ||
8 | |||
9 | AC_CONFIG_SRCDIR([libusb/core.c]) | ||
10 | AC_CONFIG_MACRO_DIR([m4]) | ||
11 | -AM_CONFIG_HEADER([config.h]) | ||
12 | +AC_CONFIG_HEADERS([config.h]) | ||
13 | m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) | ||
14 | |||
15 | AC_PREREQ([2.50]) | ||
diff --git a/meta/recipes-support/libusb/libusb1_1.0.9.bb b/meta/recipes-support/libusb/libusb1_1.0.9.bb new file mode 100644 index 0000000000..d57425b3c5 --- /dev/null +++ b/meta/recipes-support/libusb/libusb1_1.0.9.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Userspace library to access USB (version 1.0)" | ||
2 | HOMEPAGE = "http://libusb.sf.net" | ||
3 | BUGTRACKER = "http://www.libusb.org/report" | ||
4 | SECTION = "libs" | ||
5 | |||
6 | LICENSE = "LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | ||
8 | |||
9 | BBCLASSEXTEND = "native nativesdk" | ||
10 | |||
11 | PR = "r1" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \ | ||
14 | file://obsolete_automake_macros.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "7f5a02375ad960d4e33a6dae7d63cfcb" | ||
18 | SRC_URI[sha256sum] = "e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b" | ||
19 | |||
20 | S = "${WORKDIR}/libusb-${PV}" | ||
21 | |||
22 | inherit autotools pkgconfig | ||
23 | |||
24 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
25 | |||
26 | do_install_append() { | ||
27 | install -d ${D}${libdir} | ||
28 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
29 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
30 | fi | ||
31 | } | ||
32 | |||
33 | FILES_${PN} += "${base_libdir}/*.so.*" | ||
34 | |||
35 | FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" | ||
diff --git a/meta/recipes-support/libxslt/libxslt/pkgconfig_fix.patch b/meta/recipes-support/libxslt/libxslt/pkgconfig_fix.patch new file mode 100644 index 0000000000..16a801010c --- /dev/null +++ b/meta/recipes-support/libxslt/libxslt/pkgconfig_fix.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: libxslt-1.1.27/libexslt.pc.in | ||
4 | =================================================================== | ||
5 | --- libxslt-1.1.27.orig/libexslt.pc.in | ||
6 | +++ libxslt-1.1.27/libexslt.pc.in | ||
7 | @@ -8,5 +8,5 @@ Name: libexslt | ||
8 | Version: @LIBEXSLT_VERSION@ | ||
9 | Description: EXSLT Extension library | ||
10 | Requires: libxml-2.0 | ||
11 | -Libs: @EXSLT_LIBDIR@ @EXSLT_LIBS@ | ||
12 | +Libs: -lexslt @EXSLT_LIBDIR@ @EXSLT_LIBS@ | ||
13 | Cflags: @EXSLT_INCLUDEDIR@ | ||
14 | Index: libxslt-1.1.27/libxslt.pc.in | ||
15 | =================================================================== | ||
16 | --- libxslt-1.1.27.orig/libxslt.pc.in | ||
17 | +++ libxslt-1.1.27/libxslt.pc.in | ||
18 | @@ -8,5 +8,5 @@ Name: libxslt | ||
19 | Version: @VERSION@ | ||
20 | Description: XSLT library version 2. | ||
21 | Requires: libxml-2.0 | ||
22 | -Libs: @XSLT_LIBDIR@ @XSLT_LIBS@ @EXTRA_LIBS@ | ||
23 | +Libs: -lxslt @XSLT_LIBDIR@ @XSLT_LIBS@ @EXTRA_LIBS@ | ||
24 | Cflags: @XSLT_INCLUDEDIR@ | ||
diff --git a/meta/recipes-support/libxslt/libxslt_1.1.28.bb b/meta/recipes-support/libxslt/libxslt_1.1.28.bb new file mode 100644 index 0000000000..24401bb4be --- /dev/null +++ b/meta/recipes-support/libxslt/libxslt_1.1.28.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "GNOME XSLT library" | ||
2 | HOMEPAGE = "http://xmlsoft.org/XSLT/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://Copyright;md5=0cd9a07afbeb24026c9b03aecfeba458" | ||
7 | |||
8 | SECTION = "libs" | ||
9 | DEPENDS = "libxml2" | ||
10 | |||
11 | SRC_URI = "ftp://xmlsoft.org/libxslt//libxslt-${PV}.tar.gz \ | ||
12 | file://pkgconfig_fix.patch" | ||
13 | |||
14 | SRC_URI[md5sum] = "9667bf6f9310b957254fdcf6596600b7" | ||
15 | SRC_URI[sha256sum] = "5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c" | ||
16 | S = "${WORKDIR}/libxslt-${PV}" | ||
17 | |||
18 | inherit autotools pkgconfig binconfig lib_package | ||
19 | |||
20 | # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header | ||
21 | do_configure_prepend () { | ||
22 | sed -i -e 's/ansidecl.h//' ${S}/configure.in | ||
23 | |||
24 | # The timestamps in the 1.1.28 tarball are messed up causing this file to | ||
25 | # appear out of date. Touch it so that we don't try to regenerate it. | ||
26 | touch ${S}/doc/xsltproc.1 | ||
27 | } | ||
28 | |||
29 | EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto" | ||
30 | # older versions of this recipe had ${PN}-utils | ||
31 | RPROVIDES_${PN}-bin += "${PN}-utils" | ||
32 | RCONFLICTS_${PN}-bin += "${PN}-utils" | ||
33 | RREPLACES_${PN}-bin += "${PN}-utils" | ||
34 | |||
35 | FILES_${PN} += "${libdir}/libxslt-plugins" | ||
36 | FILES_${PN}-dev += "${libdir}/xsltConf.sh" | ||
37 | |||
38 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/lz4/lz4_svn.bb b/meta/recipes-support/lz4/lz4_svn.bb new file mode 100644 index 0000000000..38e36d8256 --- /dev/null +++ b/meta/recipes-support/lz4/lz4_svn.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | SUMMARY = "Extremely Fast Compression algorithm" | ||
2 | DESCRIPTION = "LZ4 is a very fast lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems." | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2008d2325e11691e17fcaa3a6046f850" | ||
6 | |||
7 | # Upstream names releases after SVN revs | ||
8 | SRCREV = "112" | ||
9 | PV = "r${SRCREV}" | ||
10 | |||
11 | SRC_URI = "svn://lz4.googlecode.com/svn/;module=trunk;protocol=http" | ||
12 | |||
13 | S = "${WORKDIR}/trunk" | ||
14 | |||
15 | EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}" | ||
16 | |||
17 | do_install() { | ||
18 | oe_runmake install | ||
19 | } | ||
20 | |||
21 | BBCLASSEXTEND += "native nativesdk" | ||
diff --git a/meta/recipes-support/lzo/lzo-2.06/acinclude.m4 b/meta/recipes-support/lzo/lzo-2.06/acinclude.m4 new file mode 100644 index 0000000000..c4d2ccd5b5 --- /dev/null +++ b/meta/recipes-support/lzo/lzo-2.06/acinclude.m4 | |||
@@ -0,0 +1,358 @@ | |||
1 | |||
2 | AC_DEFUN([mfx_ACC_CHECK_ENDIAN], [ | ||
3 | AC_C_BIGENDIAN([AC_DEFINE(ACC_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(ACC_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])]) | ||
4 | ])# | ||
5 | |||
6 | AC_DEFUN([mfx_ACC_CHECK_HEADERS], [ | ||
7 | AC_HEADER_TIME | ||
8 | AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/stat.h sys/time.h sys/types.h sys/wait.h]) | ||
9 | ])# | ||
10 | |||
11 | AC_DEFUN([mfx_ACC_CHECK_FUNCS], [ | ||
12 | AC_CHECK_FUNCS(access alloca atexit atoi atol chmod chown ctime difftime fstat gettimeofday gmtime localtime longjmp lstat memcmp memcpy memmove memset mktime qsort raise setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf) | ||
13 | ])# | ||
14 | |||
15 | |||
16 | AC_DEFUN([mfx_ACC_CHECK_SIZEOF], [ | ||
17 | AC_CHECK_SIZEOF(short) | ||
18 | AC_CHECK_SIZEOF(int) | ||
19 | AC_CHECK_SIZEOF(long) | ||
20 | |||
21 | AC_CHECK_SIZEOF(long long) | ||
22 | AC_CHECK_SIZEOF(__int16) | ||
23 | AC_CHECK_SIZEOF(__int32) | ||
24 | AC_CHECK_SIZEOF(__int64) | ||
25 | |||
26 | AC_CHECK_SIZEOF(void *) | ||
27 | AC_CHECK_SIZEOF(size_t) | ||
28 | AC_CHECK_SIZEOF(ptrdiff_t) | ||
29 | ])# | ||
30 | |||
31 | |||
32 | # /*********************************************************************** | ||
33 | # // Check for ACC_conformance | ||
34 | # ************************************************************************/ | ||
35 | |||
36 | AC_DEFUN([mfx_ACC_ACCCHK], [ | ||
37 | mfx_tmp=$1 | ||
38 | mfx_save_CPPFLAGS=$CPPFLAGS | ||
39 | dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here | ||
40 | test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS" | ||
41 | |||
42 | AC_MSG_CHECKING([whether your compiler passes the ACC conformance test]) | ||
43 | |||
44 | AC_LANG_CONFTEST([AC_LANG_PROGRAM( | ||
45 | [[#define ACC_CONFIG_NO_HEADER 1 | ||
46 | #include "acc/acc.h" | ||
47 | #include "acc/acc_incd.h" | ||
48 | #undef ACCCHK_ASSERT | ||
49 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr) | ||
50 | #include "acc/acc_chk.ch" | ||
51 | #undef ACCCHK_ASSERT | ||
52 | static void test_acc_compile_time_assert(void) { | ||
53 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr) | ||
54 | #include "acc/acc_chk.ch" | ||
55 | #undef ACCCHK_ASSERT | ||
56 | } | ||
57 | #undef NDEBUG | ||
58 | #include <assert.h> | ||
59 | static int test_acc_run_time_assert(int r) { | ||
60 | #define ACCCHK_ASSERT(expr) assert(expr); | ||
61 | #include "acc/acc_chk.ch" | ||
62 | #undef ACCCHK_ASSERT | ||
63 | return r; | ||
64 | } | ||
65 | ]], [[ | ||
66 | test_acc_compile_time_assert(); | ||
67 | if (test_acc_run_time_assert(1) != 1) return 1; | ||
68 | ]] | ||
69 | )]) | ||
70 | |||
71 | mfx_tmp=FAILED | ||
72 | _AC_COMPILE_IFELSE([], [mfx_tmp=yes]) | ||
73 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
74 | |||
75 | CPPFLAGS=$mfx_save_CPPFLAGS | ||
76 | |||
77 | AC_MSG_RESULT([$mfx_tmp]) | ||
78 | case x$mfx_tmp in | ||
79 | xpassed | xyes) ;; | ||
80 | *) | ||
81 | AC_MSG_NOTICE([]) | ||
82 | AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ]) | ||
83 | AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending]) | ||
84 | AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.]) | ||
85 | AC_MSG_NOTICE([Thanks for your support.]) | ||
86 | AC_MSG_NOTICE([]) | ||
87 | AC_MSG_ERROR([ACC conformance test failed. Stop.]) | ||
88 | dnl AS_EXIT | ||
89 | ;; | ||
90 | esac | ||
91 | ])# mfx_ACC_ACCCHK | ||
92 | |||
93 | |||
94 | # /*********************************************************************** | ||
95 | # // Check for ACC_conformance | ||
96 | # ************************************************************************/ | ||
97 | |||
98 | AC_DEFUN([mfx_MINIACC_ACCCHK], [ | ||
99 | mfx_tmp=$1 | ||
100 | mfx_save_CPPFLAGS=$CPPFLAGS | ||
101 | dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here | ||
102 | test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS" | ||
103 | |||
104 | AC_MSG_CHECKING([whether your compiler passes the ACC conformance test]) | ||
105 | |||
106 | AC_LANG_CONFTEST([AC_LANG_PROGRAM( | ||
107 | [[#define ACC_CONFIG_NO_HEADER 1 | ||
108 | #define ACC_WANT_ACC_INCD_H 1 | ||
109 | #include $2 | ||
110 | |||
111 | #define ACC_WANT_ACC_CHK_CH 1 | ||
112 | #undef ACCCHK_ASSERT | ||
113 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr) | ||
114 | #include $2 | ||
115 | |||
116 | #define ACC_WANT_ACC_CHK_CH 1 | ||
117 | #undef ACCCHK_ASSERT | ||
118 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr) | ||
119 | static void test_acc_compile_time_assert(void) { | ||
120 | #include $2 | ||
121 | } | ||
122 | |||
123 | #undef NDEBUG | ||
124 | #include <assert.h> | ||
125 | #define ACC_WANT_ACC_CHK_CH 1 | ||
126 | #undef ACCCHK_ASSERT | ||
127 | #define ACCCHK_ASSERT(expr) assert(expr); | ||
128 | static int test_acc_run_time_assert(int r) { | ||
129 | #include $2 | ||
130 | return r; | ||
131 | } | ||
132 | ]], [[ | ||
133 | test_acc_compile_time_assert(); | ||
134 | if (test_acc_run_time_assert(1) != 1) return 1; | ||
135 | ]] | ||
136 | )]) | ||
137 | |||
138 | mfx_tmp=FAILED | ||
139 | _AC_COMPILE_IFELSE([], [mfx_tmp=yes]) | ||
140 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
141 | |||
142 | CPPFLAGS=$mfx_save_CPPFLAGS | ||
143 | |||
144 | AC_MSG_RESULT([$mfx_tmp]) | ||
145 | case x$mfx_tmp in | ||
146 | xpassed | xyes) ;; | ||
147 | *) | ||
148 | AC_MSG_NOTICE([]) | ||
149 | AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ]) | ||
150 | AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending]) | ||
151 | AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.]) | ||
152 | AC_MSG_NOTICE([Thanks for your support.]) | ||
153 | AC_MSG_NOTICE([]) | ||
154 | AC_MSG_ERROR([ACC conformance test failed. Stop.]) | ||
155 | dnl AS_EXIT | ||
156 | ;; | ||
157 | esac | ||
158 | ])# mfx_MINIACC_ACCCHK | ||
159 | |||
160 | |||
161 | |||
162 | # serial 1 | ||
163 | |||
164 | AC_DEFUN([mfx_PROG_CPPFLAGS], [ | ||
165 | AC_MSG_CHECKING([whether the C preprocessor needs special flags]) | ||
166 | |||
167 | AC_LANG_CONFTEST([AC_LANG_PROGRAM( | ||
168 | [[#include <limits.h> | ||
169 | #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul) | ||
170 | # include "your C preprocessor is broken 1" | ||
171 | #elif (0xffffu == 0xfffffffful) | ||
172 | # include "your C preprocessor is broken 2" | ||
173 | #elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX) | ||
174 | # include "your C preprocessor is broken 3" | ||
175 | #endif | ||
176 | ]], [[ ]] | ||
177 | )]) | ||
178 | |||
179 | mfx_save_CPPFLAGS=$CPPFLAGS | ||
180 | mfx_tmp=ERROR | ||
181 | for mfx_arg in "" -no-cpp-precomp | ||
182 | do | ||
183 | CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS" | ||
184 | _AC_COMPILE_IFELSE([], | ||
185 | [mfx_tmp=$mfx_arg | ||
186 | break]) | ||
187 | done | ||
188 | CPPFLAGS=$mfx_save_CPPFLAGS | ||
189 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
190 | case x$mfx_tmp in | ||
191 | x) | ||
192 | AC_MSG_RESULT([none needed]) ;; | ||
193 | xERROR) | ||
194 | AC_MSG_RESULT([ERROR]) | ||
195 | AC_MSG_ERROR([your C preprocessor is broken - for details see config.log]) | ||
196 | ;; | ||
197 | *) | ||
198 | AC_MSG_RESULT([$mfx_tmp]) | ||
199 | CPPFLAGS="$mfx_tmp $CPPFLAGS" | ||
200 | ;; | ||
201 | esac | ||
202 | ])# mfx_PROG_CPPFLAGS | ||
203 | |||
204 | |||
205 | |||
206 | # serial 3 | ||
207 | |||
208 | AC_DEFUN([mfx_CHECK_HEADER_SANE_LIMITS_H], [ | ||
209 | AC_CACHE_CHECK([whether limits.h is sane], | ||
210 | mfx_cv_header_sane_limits_h, | ||
211 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits.h> | ||
212 | #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul) | ||
213 | # if defined(__APPLE__) && defined(__GNUC__) | ||
214 | # error "your preprocessor is broken - use compiler option -no-cpp-precomp" | ||
215 | # else | ||
216 | # include "your preprocessor is broken" | ||
217 | # endif | ||
218 | #endif | ||
219 | #define MFX_0xffff 0xffff | ||
220 | #define MFX_0xffffffffL 4294967295ul | ||
221 | #if !defined(CHAR_BIT) || (CHAR_BIT != 8) | ||
222 | # include "error CHAR_BIT" | ||
223 | #endif | ||
224 | #if !defined(UCHAR_MAX) | ||
225 | # include "error UCHAR_MAX 1" | ||
226 | #endif | ||
227 | #if !defined(USHRT_MAX) | ||
228 | # include "error USHRT_MAX 1" | ||
229 | #endif | ||
230 | #if !defined(UINT_MAX) | ||
231 | # include "error UINT_MAX 1" | ||
232 | #endif | ||
233 | #if !defined(ULONG_MAX) | ||
234 | # include "error ULONG_MAX 1" | ||
235 | #endif | ||
236 | #if !defined(SHRT_MAX) | ||
237 | # include "error SHRT_MAX 1" | ||
238 | #endif | ||
239 | #if !defined(INT_MAX) | ||
240 | # include "error INT_MAX 1" | ||
241 | #endif | ||
242 | #if !defined(LONG_MAX) | ||
243 | # include "error LONG_MAX 1" | ||
244 | #endif | ||
245 | #if (UCHAR_MAX < 1) | ||
246 | # include "error UCHAR_MAX 2" | ||
247 | #endif | ||
248 | #if (USHRT_MAX < 1) | ||
249 | # include "error USHRT_MAX 2" | ||
250 | #endif | ||
251 | #if (UINT_MAX < 1) | ||
252 | # include "error UINT_MAX 2" | ||
253 | #endif | ||
254 | #if (ULONG_MAX < 1) | ||
255 | # include "error ULONG_MAX 2" | ||
256 | #endif | ||
257 | #if (UCHAR_MAX < 0xff) | ||
258 | # include "error UCHAR_MAX 3" | ||
259 | #endif | ||
260 | #if (USHRT_MAX < MFX_0xffff) | ||
261 | # include "error USHRT_MAX 3" | ||
262 | #endif | ||
263 | #if (UINT_MAX < MFX_0xffff) | ||
264 | # include "error UINT_MAX 3" | ||
265 | #endif | ||
266 | #if (ULONG_MAX < MFX_0xffffffffL) | ||
267 | # include "error ULONG_MAX 3" | ||
268 | #endif | ||
269 | #if (USHRT_MAX > UINT_MAX) | ||
270 | # include "error USHRT_MAX vs UINT_MAX" | ||
271 | #endif | ||
272 | #if (UINT_MAX > ULONG_MAX) | ||
273 | # include "error UINT_MAX vs ULONG_MAX" | ||
274 | #endif | ||
275 | ]], [[ | ||
276 | #if (USHRT_MAX == MFX_0xffff) | ||
277 | { typedef char a_short2a[1 - 2 * !(sizeof(short) == 2)]; } | ||
278 | #elif (USHRT_MAX >= MFX_0xffff) | ||
279 | { typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; } | ||
280 | #endif | ||
281 | #if (UINT_MAX == MFX_0xffff) | ||
282 | { typedef char a_int2a[1 - 2 * !(sizeof(int) == 2)]; } | ||
283 | #elif (UINT_MAX >= MFX_0xffff) | ||
284 | { typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; } | ||
285 | #endif | ||
286 | #if (ULONG_MAX == MFX_0xffff) | ||
287 | { typedef char a_long2a[1 - 2 * !(sizeof(long) == 2)]; } | ||
288 | #elif (ULONG_MAX >= MFX_0xffff) | ||
289 | { typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; } | ||
290 | #endif | ||
291 | #if (USHRT_MAX == MFX_0xffffffffL) | ||
292 | { typedef char a_short4a[1 - 2 * !(sizeof(short) == 4)]; } | ||
293 | #elif (USHRT_MAX >= MFX_0xffffffffL) | ||
294 | { typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; } | ||
295 | #endif | ||
296 | #if (UINT_MAX == MFX_0xffffffffL) | ||
297 | { typedef char a_int4a[1 - 2 * !(sizeof(int) == 4)]; } | ||
298 | #elif (UINT_MAX >= MFX_0xffffffffL) | ||
299 | { typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; } | ||
300 | #endif | ||
301 | #if (ULONG_MAX == MFX_0xffffffffL) | ||
302 | { typedef char a_long4a[1 - 2 * !(sizeof(long) == 4)]; } | ||
303 | #elif (ULONG_MAX >= MFX_0xffffffffL) | ||
304 | { typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; } | ||
305 | #endif | ||
306 | ]])], | ||
307 | [mfx_cv_header_sane_limits_h=yes], | ||
308 | [mfx_cv_header_sane_limits_h=no])]) | ||
309 | ]) | ||
310 | |||
311 | # /*********************************************************************** | ||
312 | # // standard | ||
313 | # ************************************************************************/ | ||
314 | |||
315 | AC_DEFUN([mfx_LZO_CHECK_ENDIAN], [ | ||
316 | AC_C_BIGENDIAN([AC_DEFINE(LZO_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(LZO_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])]) | ||
317 | ])# | ||
318 | |||
319 | |||
320 | # /*********************************************************************** | ||
321 | # // | ||
322 | # ************************************************************************/ | ||
323 | |||
324 | dnl more types which are not yet covered by ACC | ||
325 | |||
326 | AC_DEFUN([mfx_CHECK_SIZEOF], [ | ||
327 | AC_CHECK_SIZEOF(__int32) | ||
328 | AC_CHECK_SIZEOF(intmax_t) | ||
329 | AC_CHECK_SIZEOF(uintmax_t) | ||
330 | AC_CHECK_SIZEOF(intptr_t) | ||
331 | AC_CHECK_SIZEOF(uintptr_t) | ||
332 | |||
333 | AC_CHECK_SIZEOF(float) | ||
334 | AC_CHECK_SIZEOF(double) | ||
335 | AC_CHECK_SIZEOF(long double) | ||
336 | |||
337 | AC_CHECK_SIZEOF(dev_t) | ||
338 | AC_CHECK_SIZEOF(fpos_t) | ||
339 | AC_CHECK_SIZEOF(mode_t) | ||
340 | AC_CHECK_SIZEOF(off_t) | ||
341 | AC_CHECK_SIZEOF(ssize_t) | ||
342 | AC_CHECK_SIZEOF(time_t) | ||
343 | ])# | ||
344 | |||
345 | |||
346 | |||
347 | AC_DEFUN([mfx_CHECK_LIB_WINMM], [ | ||
348 | if test "X$GCC" = Xyes; then | ||
349 | case $host_os in | ||
350 | cygwin* | mingw* | pw32*) | ||
351 | test "X$LIBS" != "X" && LIBS="$LIBS " | ||
352 | LIBS="${LIBS}-lwinmm" ;; | ||
353 | *) | ||
354 | ;; | ||
355 | esac | ||
356 | fi | ||
357 | ])# | ||
358 | |||
diff --git a/meta/recipes-support/lzo/lzo_2.06.bb b/meta/recipes-support/lzo/lzo_2.06.bb new file mode 100644 index 0000000000..23f54edd80 --- /dev/null +++ b/meta/recipes-support/lzo/lzo_2.06.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Lossless data compression library" | ||
2 | HOMEPAGE = "http://www.oberhumer.com/opensource/lzo/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
6 | file://src/lzo_init.c;beginline=23;endline=40;md5=924a0f71f5394f6d404be3b458474769" | ||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \ | ||
10 | file://acinclude.m4 \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "95380bd4081f85ef08c5209f4107e9f8" | ||
14 | SRC_URI[sha256sum] = "ff79e6f836d62d3f86ef6ce893ed65d07e638ef4d3cb952963471b4234d43e73" | ||
15 | |||
16 | inherit autotools | ||
17 | |||
18 | EXTRA_OECONF = "--enable-shared" | ||
19 | |||
20 | do_configure_prepend () { | ||
21 | cp ${WORKDIR}/acinclude.m4 ${S}/ | ||
22 | } | ||
23 | |||
24 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/lzop/lzop/acinclude.m4 b/meta/recipes-support/lzop/lzop/acinclude.m4 new file mode 100644 index 0000000000..0029c19c7d --- /dev/null +++ b/meta/recipes-support/lzop/lzop/acinclude.m4 | |||
@@ -0,0 +1,390 @@ | |||
1 | |||
2 | AC_DEFUN([mfx_ACC_CHECK_ENDIAN], [ | ||
3 | AC_C_BIGENDIAN([AC_DEFINE(ACC_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(ACC_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])]) | ||
4 | ])# | ||
5 | |||
6 | AC_DEFUN([mfx_ACC_CHECK_HEADERS], [ | ||
7 | AC_HEADER_TIME | ||
8 | AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/stat.h sys/time.h sys/types.h sys/wait.h]) | ||
9 | ])# | ||
10 | |||
11 | AC_DEFUN([mfx_ACC_CHECK_FUNCS], [ | ||
12 | AC_CHECK_FUNCS(access alloca atexit atoi atol chmod chown ctime difftime fstat gettimeofday gmtime localtime longjmp lstat memcmp memcpy memmove memset mktime qsort raise setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf) | ||
13 | ])# | ||
14 | |||
15 | |||
16 | AC_DEFUN([mfx_ACC_CHECK_SIZEOF], [ | ||
17 | AC_CHECK_SIZEOF(short) | ||
18 | AC_CHECK_SIZEOF(int) | ||
19 | AC_CHECK_SIZEOF(long) | ||
20 | |||
21 | AC_CHECK_SIZEOF(long long) | ||
22 | AC_CHECK_SIZEOF(__int16) | ||
23 | AC_CHECK_SIZEOF(__int32) | ||
24 | AC_CHECK_SIZEOF(__int64) | ||
25 | |||
26 | AC_CHECK_SIZEOF(void *) | ||
27 | AC_CHECK_SIZEOF(size_t) | ||
28 | AC_CHECK_SIZEOF(ptrdiff_t) | ||
29 | ])# | ||
30 | |||
31 | |||
32 | # /*********************************************************************** | ||
33 | # // Check for ACC_conformance | ||
34 | # ************************************************************************/ | ||
35 | |||
36 | AC_DEFUN([mfx_ACC_ACCCHK], [ | ||
37 | mfx_tmp=$1 | ||
38 | mfx_save_CPPFLAGS=$CPPFLAGS | ||
39 | dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here | ||
40 | test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS" | ||
41 | |||
42 | AC_MSG_CHECKING([whether your compiler passes the ACC conformance test]) | ||
43 | |||
44 | AC_LANG_CONFTEST([AC_LANG_PROGRAM( | ||
45 | [[#define ACC_CONFIG_NO_HEADER 1 | ||
46 | #include "acc/acc.h" | ||
47 | #include "acc/acc_incd.h" | ||
48 | #undef ACCCHK_ASSERT | ||
49 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr) | ||
50 | #include "acc/acc_chk.ch" | ||
51 | #undef ACCCHK_ASSERT | ||
52 | static void test_acc_compile_time_assert(void) { | ||
53 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr) | ||
54 | #include "acc/acc_chk.ch" | ||
55 | #undef ACCCHK_ASSERT | ||
56 | } | ||
57 | #undef NDEBUG | ||
58 | #include <assert.h> | ||
59 | static int test_acc_run_time_assert(int r) { | ||
60 | #define ACCCHK_ASSERT(expr) assert(expr); | ||
61 | #include "acc/acc_chk.ch" | ||
62 | #undef ACCCHK_ASSERT | ||
63 | return r; | ||
64 | } | ||
65 | ]], [[ | ||
66 | test_acc_compile_time_assert(); | ||
67 | if (test_acc_run_time_assert(1) != 1) return 1; | ||
68 | ]] | ||
69 | )]) | ||
70 | |||
71 | mfx_tmp=FAILED | ||
72 | _AC_COMPILE_IFELSE([], [mfx_tmp=yes]) | ||
73 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
74 | |||
75 | CPPFLAGS=$mfx_save_CPPFLAGS | ||
76 | |||
77 | AC_MSG_RESULT([$mfx_tmp]) | ||
78 | case x$mfx_tmp in | ||
79 | xpassed | xyes) ;; | ||
80 | *) | ||
81 | AC_MSG_NOTICE([]) | ||
82 | AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ]) | ||
83 | AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending]) | ||
84 | AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.]) | ||
85 | AC_MSG_NOTICE([Thanks for your support.]) | ||
86 | AC_MSG_NOTICE([]) | ||
87 | AC_MSG_ERROR([ACC conformance test failed. Stop.]) | ||
88 | dnl AS_EXIT | ||
89 | ;; | ||
90 | esac | ||
91 | ])# mfx_ACC_ACCCHK | ||
92 | |||
93 | |||
94 | # /*********************************************************************** | ||
95 | # // Check for ACC_conformance | ||
96 | # ************************************************************************/ | ||
97 | |||
98 | AC_DEFUN([mfx_MINIACC_ACCCHK], [ | ||
99 | mfx_tmp=$1 | ||
100 | mfx_save_CPPFLAGS=$CPPFLAGS | ||
101 | dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here | ||
102 | test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS" | ||
103 | |||
104 | AC_MSG_CHECKING([whether your compiler passes the ACC conformance test]) | ||
105 | |||
106 | AC_LANG_CONFTEST([AC_LANG_PROGRAM( | ||
107 | [[#define ACC_CONFIG_NO_HEADER 1 | ||
108 | #define ACC_WANT_ACC_INCD_H 1 | ||
109 | #include $2 | ||
110 | |||
111 | #define ACC_WANT_ACC_CHK_CH 1 | ||
112 | #undef ACCCHK_ASSERT | ||
113 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr) | ||
114 | #include $2 | ||
115 | |||
116 | #define ACC_WANT_ACC_CHK_CH 1 | ||
117 | #undef ACCCHK_ASSERT | ||
118 | #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr) | ||
119 | static void test_acc_compile_time_assert(void) { | ||
120 | #include $2 | ||
121 | } | ||
122 | |||
123 | #undef NDEBUG | ||
124 | #include <assert.h> | ||
125 | #define ACC_WANT_ACC_CHK_CH 1 | ||
126 | #undef ACCCHK_ASSERT | ||
127 | #define ACCCHK_ASSERT(expr) assert(expr); | ||
128 | static int test_acc_run_time_assert(int r) { | ||
129 | #include $2 | ||
130 | return r; | ||
131 | } | ||
132 | ]], [[ | ||
133 | test_acc_compile_time_assert(); | ||
134 | if (test_acc_run_time_assert(1) != 1) return 1; | ||
135 | ]] | ||
136 | )]) | ||
137 | |||
138 | mfx_tmp=FAILED | ||
139 | _AC_COMPILE_IFELSE([], [mfx_tmp=yes]) | ||
140 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
141 | |||
142 | CPPFLAGS=$mfx_save_CPPFLAGS | ||
143 | |||
144 | AC_MSG_RESULT([$mfx_tmp]) | ||
145 | case x$mfx_tmp in | ||
146 | xpassed | xyes) ;; | ||
147 | *) | ||
148 | AC_MSG_NOTICE([]) | ||
149 | AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ]) | ||
150 | AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending]) | ||
151 | AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.]) | ||
152 | AC_MSG_NOTICE([Thanks for your support.]) | ||
153 | AC_MSG_NOTICE([]) | ||
154 | AC_MSG_ERROR([ACC conformance test failed. Stop.]) | ||
155 | dnl AS_EXIT | ||
156 | ;; | ||
157 | esac | ||
158 | ])# mfx_MINIACC_ACCCHK | ||
159 | |||
160 | |||
161 | |||
162 | # serial 1 | ||
163 | |||
164 | AC_DEFUN([mfx_PROG_CPPFLAGS], [ | ||
165 | AC_MSG_CHECKING([whether the C preprocessor needs special flags]) | ||
166 | |||
167 | AC_LANG_CONFTEST([AC_LANG_PROGRAM( | ||
168 | [[#include <limits.h> | ||
169 | #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul) | ||
170 | # include "your C preprocessor is broken 1" | ||
171 | #elif (0xffffu == 0xfffffffful) | ||
172 | # include "your C preprocessor is broken 2" | ||
173 | #elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX) | ||
174 | # include "your C preprocessor is broken 3" | ||
175 | #endif | ||
176 | ]], [[ ]] | ||
177 | )]) | ||
178 | |||
179 | mfx_save_CPPFLAGS=$CPPFLAGS | ||
180 | mfx_tmp=ERROR | ||
181 | for mfx_arg in "" -no-cpp-precomp | ||
182 | do | ||
183 | CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS" | ||
184 | _AC_COMPILE_IFELSE([], | ||
185 | [mfx_tmp=$mfx_arg | ||
186 | break]) | ||
187 | done | ||
188 | CPPFLAGS=$mfx_save_CPPFLAGS | ||
189 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
190 | case x$mfx_tmp in | ||
191 | x) | ||
192 | AC_MSG_RESULT([none needed]) ;; | ||
193 | xERROR) | ||
194 | AC_MSG_RESULT([ERROR]) | ||
195 | AC_MSG_ERROR([your C preprocessor is broken - for details see config.log]) | ||
196 | ;; | ||
197 | *) | ||
198 | AC_MSG_RESULT([$mfx_tmp]) | ||
199 | CPPFLAGS="$mfx_tmp $CPPFLAGS" | ||
200 | ;; | ||
201 | esac | ||
202 | ])# mfx_PROG_CPPFLAGS | ||
203 | |||
204 | |||
205 | |||
206 | # serial 3 | ||
207 | |||
208 | AC_DEFUN([mfx_CHECK_HEADER_SANE_LIMITS_H], [ | ||
209 | AC_CACHE_CHECK([whether limits.h is sane], | ||
210 | mfx_cv_header_sane_limits_h, | ||
211 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits.h> | ||
212 | #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul) | ||
213 | # if defined(__APPLE__) && defined(__GNUC__) | ||
214 | # error "your preprocessor is broken - use compiler option -no-cpp-precomp" | ||
215 | # else | ||
216 | # include "your preprocessor is broken" | ||
217 | # endif | ||
218 | #endif | ||
219 | #define MFX_0xffff 0xffff | ||
220 | #define MFX_0xffffffffL 4294967295ul | ||
221 | #if !defined(CHAR_BIT) || (CHAR_BIT != 8) | ||
222 | # include "error CHAR_BIT" | ||
223 | #endif | ||
224 | #if !defined(UCHAR_MAX) | ||
225 | # include "error UCHAR_MAX 1" | ||
226 | #endif | ||
227 | #if !defined(USHRT_MAX) | ||
228 | # include "error USHRT_MAX 1" | ||
229 | #endif | ||
230 | #if !defined(UINT_MAX) | ||
231 | # include "error UINT_MAX 1" | ||
232 | #endif | ||
233 | #if !defined(ULONG_MAX) | ||
234 | # include "error ULONG_MAX 1" | ||
235 | #endif | ||
236 | #if !defined(SHRT_MAX) | ||
237 | # include "error SHRT_MAX 1" | ||
238 | #endif | ||
239 | #if !defined(INT_MAX) | ||
240 | # include "error INT_MAX 1" | ||
241 | #endif | ||
242 | #if !defined(LONG_MAX) | ||
243 | # include "error LONG_MAX 1" | ||
244 | #endif | ||
245 | #if (UCHAR_MAX < 1) | ||
246 | # include "error UCHAR_MAX 2" | ||
247 | #endif | ||
248 | #if (USHRT_MAX < 1) | ||
249 | # include "error USHRT_MAX 2" | ||
250 | #endif | ||
251 | #if (UINT_MAX < 1) | ||
252 | # include "error UINT_MAX 2" | ||
253 | #endif | ||
254 | #if (ULONG_MAX < 1) | ||
255 | # include "error ULONG_MAX 2" | ||
256 | #endif | ||
257 | #if (UCHAR_MAX < 0xff) | ||
258 | # include "error UCHAR_MAX 3" | ||
259 | #endif | ||
260 | #if (USHRT_MAX < MFX_0xffff) | ||
261 | # include "error USHRT_MAX 3" | ||
262 | #endif | ||
263 | #if (UINT_MAX < MFX_0xffff) | ||
264 | # include "error UINT_MAX 3" | ||
265 | #endif | ||
266 | #if (ULONG_MAX < MFX_0xffffffffL) | ||
267 | # include "error ULONG_MAX 3" | ||
268 | #endif | ||
269 | #if (USHRT_MAX > UINT_MAX) | ||
270 | # include "error USHRT_MAX vs UINT_MAX" | ||
271 | #endif | ||
272 | #if (UINT_MAX > ULONG_MAX) | ||
273 | # include "error UINT_MAX vs ULONG_MAX" | ||
274 | #endif | ||
275 | ]], [[ | ||
276 | #if (USHRT_MAX == MFX_0xffff) | ||
277 | { typedef char a_short2a[1 - 2 * !(sizeof(short) == 2)]; } | ||
278 | #elif (USHRT_MAX >= MFX_0xffff) | ||
279 | { typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; } | ||
280 | #endif | ||
281 | #if (UINT_MAX == MFX_0xffff) | ||
282 | { typedef char a_int2a[1 - 2 * !(sizeof(int) == 2)]; } | ||
283 | #elif (UINT_MAX >= MFX_0xffff) | ||
284 | { typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; } | ||
285 | #endif | ||
286 | #if (ULONG_MAX == MFX_0xffff) | ||
287 | { typedef char a_long2a[1 - 2 * !(sizeof(long) == 2)]; } | ||
288 | #elif (ULONG_MAX >= MFX_0xffff) | ||
289 | { typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; } | ||
290 | #endif | ||
291 | #if (USHRT_MAX == MFX_0xffffffffL) | ||
292 | { typedef char a_short4a[1 - 2 * !(sizeof(short) == 4)]; } | ||
293 | #elif (USHRT_MAX >= MFX_0xffffffffL) | ||
294 | { typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; } | ||
295 | #endif | ||
296 | #if (UINT_MAX == MFX_0xffffffffL) | ||
297 | { typedef char a_int4a[1 - 2 * !(sizeof(int) == 4)]; } | ||
298 | #elif (UINT_MAX >= MFX_0xffffffffL) | ||
299 | { typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; } | ||
300 | #endif | ||
301 | #if (ULONG_MAX == MFX_0xffffffffL) | ||
302 | { typedef char a_long4a[1 - 2 * !(sizeof(long) == 4)]; } | ||
303 | #elif (ULONG_MAX >= MFX_0xffffffffL) | ||
304 | { typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; } | ||
305 | #endif | ||
306 | ]])], | ||
307 | [mfx_cv_header_sane_limits_h=yes], | ||
308 | [mfx_cv_header_sane_limits_h=no])]) | ||
309 | ]) | ||
310 | |||
311 | # /*********************************************************************** | ||
312 | # // standard | ||
313 | # ************************************************************************/ | ||
314 | |||
315 | AC_DEFUN([mfx_LZO_CHECK_ENDIAN], [ | ||
316 | AC_C_BIGENDIAN([AC_DEFINE(LZO_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(LZO_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])]) | ||
317 | ])# | ||
318 | |||
319 | |||
320 | # /*********************************************************************** | ||
321 | # // | ||
322 | # ************************************************************************/ | ||
323 | |||
324 | dnl more types which are not yet covered by ACC | ||
325 | |||
326 | AC_DEFUN([mfx_CHECK_SIZEOF], [ | ||
327 | AC_CHECK_SIZEOF(__int32) | ||
328 | AC_CHECK_SIZEOF(intmax_t) | ||
329 | AC_CHECK_SIZEOF(uintmax_t) | ||
330 | AC_CHECK_SIZEOF(intptr_t) | ||
331 | AC_CHECK_SIZEOF(uintptr_t) | ||
332 | |||
333 | AC_CHECK_SIZEOF(float) | ||
334 | AC_CHECK_SIZEOF(double) | ||
335 | AC_CHECK_SIZEOF(long double) | ||
336 | |||
337 | AC_CHECK_SIZEOF(dev_t) | ||
338 | AC_CHECK_SIZEOF(fpos_t) | ||
339 | AC_CHECK_SIZEOF(mode_t) | ||
340 | AC_CHECK_SIZEOF(off_t) | ||
341 | AC_CHECK_SIZEOF(ssize_t) | ||
342 | AC_CHECK_SIZEOF(time_t) | ||
343 | ])# | ||
344 | |||
345 | |||
346 | |||
347 | AC_DEFUN([mfx_CHECK_LIB_WINMM], [ | ||
348 | if test "X$GCC" = Xyes; then | ||
349 | case $host_os in | ||
350 | cygwin* | mingw* | pw32*) | ||
351 | test "X$LIBS" != "X" && LIBS="$LIBS " | ||
352 | LIBS="${LIBS}-lwinmm" ;; | ||
353 | *) | ||
354 | ;; | ||
355 | esac | ||
356 | fi | ||
357 | ])# | ||
358 | |||
359 | #serial 6 | ||
360 | |||
361 | dnl From Paul Eggert. | ||
362 | |||
363 | # Define ST_MTIM_NSEC to be the nanoseconds member of struct stat's st_mtim, | ||
364 | # if it exists. | ||
365 | |||
366 | AC_DEFUN([AC_STRUCT_ST_MTIM_NSEC], | ||
367 | [AC_CACHE_CHECK([for nanoseconds member of struct stat.st_mtim], | ||
368 | ac_cv_struct_st_mtim_nsec, | ||
369 | [ac_save_CPPFLAGS="$CPPFLAGS" | ||
370 | ac_cv_struct_st_mtim_nsec=no | ||
371 | # tv_nsec -- the usual case | ||
372 | # _tv_nsec -- Solaris 2.6, if | ||
373 | # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 | ||
374 | # && !defined __EXTENSIONS__) | ||
375 | # st__tim.tv_nsec -- UnixWare 2.1.2 | ||
376 | for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do | ||
377 | CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" | ||
378 | AC_TRY_COMPILE([#include <sys/types.h> | ||
379 | #include <sys/stat.h>], [struct stat s; s.st_mtim.ST_MTIM_NSEC;], | ||
380 | [ac_cv_struct_st_mtim_nsec=$ac_val; break]) | ||
381 | done | ||
382 | CPPFLAGS="$ac_save_CPPFLAGS"]) | ||
383 | |||
384 | if test $ac_cv_struct_st_mtim_nsec != no; then | ||
385 | AC_DEFINE_UNQUOTED(ST_MTIM_NSEC, $ac_cv_struct_st_mtim_nsec, | ||
386 | [Define to be the nanoseconds member of struct stat's st_mtim, | ||
387 | if it exists.]) | ||
388 | fi | ||
389 | ] | ||
390 | ) | ||
diff --git a/meta/recipes-support/lzop/lzop_1.03.bb b/meta/recipes-support/lzop/lzop_1.03.bb new file mode 100644 index 0000000000..abfc81cfb9 --- /dev/null +++ b/meta/recipes-support/lzop/lzop_1.03.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "Real-time file compressor" | ||
2 | DESCRIPTION = "lzop is a compression utility which is designed to be a companion to gzip. \n\ | ||
3 | It is based on the LZO data compression library and its main advantages over \n\ | ||
4 | gzip are much higher compression and decompression speed at the cost of some \n\ | ||
5 | compression ratio. The lzop compression utility was designed with the goals \n\ | ||
6 | of reliability, speed, portability and with reasonable drop-in compatibility \n\ | ||
7 | to gzip." | ||
8 | DEPENDS += "lzo" | ||
9 | |||
10 | LICENSE = "GPLv2+" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=dfeaf3dc4beef4f5a7bdbc35b197f39e \ | ||
12 | file://src/lzop.c;beginline=5;endline=21;md5=6797bd3ed0a1a49327b7ebf9366ebd86" | ||
13 | |||
14 | SRC_URI = "http://www.lzop.org/download/${BP}.tar.gz \ | ||
15 | file://acinclude.m4" | ||
16 | SRC_URI[md5sum] = "006c5e27fb78cdd14a628fdfa5aa1905" | ||
17 | SRC_URI[sha256sum] = "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9" | ||
18 | |||
19 | inherit autotools | ||
20 | |||
21 | do_configure () { | ||
22 | ln -sf ../acinclude.m4 ${S}/acinclude.m4 | ||
23 | autotools_do_configure | ||
24 | } | ||
25 | |||
26 | BBCLASSEXTEND += "native nativesdk" | ||
diff --git a/meta/recipes-support/mpfr/mpfr-3.1.2/long-long-thumb.patch b/meta/recipes-support/mpfr/mpfr-3.1.2/long-long-thumb.patch new file mode 100644 index 0000000000..ca7100eb29 --- /dev/null +++ b/meta/recipes-support/mpfr/mpfr-3.1.2/long-long-thumb.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 84021b1e236508169be65e802a9c0a25fc9a8827 Mon Sep 17 00:00:00 2001 | ||
2 | From: Phil Blundell <philb@gnu.org> | ||
3 | Date: Mon, 27 Oct 2008 22:26:35 +0000 | ||
4 | Subject: [PATCH] mpfr: crusade against inline assembler | ||
5 | |||
6 | Without this, build fails for thumb: | ||
7 | | {standard input}: Assembler messages: | ||
8 | | {standard input}:199: Error: selected processor does not support Thumb mode `umull sl,r0,r2,r1' | ||
9 | | {standard input}:214: Error: selected processor does not support Thumb mode `umull sl,r2,r1,fp' | ||
10 | | {standard input}:219: Error: instruction not supported in Thumb16 mode -- `adds fp,r0,sl' | ||
11 | | {standard input}:220: Error: unshifted register required -- `adc r2,r2,#0' | ||
12 | | {standard input}:235: Error: selected processor does not support Thumb mode `umull r0,sl,r1,r3' | ||
13 | | {standard input}:244: Error: selected processor does not support Thumb mode `umull fp,ip,r1,r3' | ||
14 | | {standard input}:253: Error: instruction not supported in Thumb16 mode -- `adds r3,sl,fp' | ||
15 | | {standard input}:254: Error: unshifted register required -- `adc ip,ip,#0' | ||
16 | | {standard input}:259: Error: instruction not supported in Thumb16 mode -- `adds sl,r1,r0' | ||
17 | | {standard input}:642: Error: selected processor does not support Thumb mode `umull r0,r2,r3,r1' | ||
18 | | ../arm-oe-linux-gnueabi-libtool --tag=CC --mode=compile arm-oe-linux-gnueabi-gcc -march=armv5te -mthumb -mthumb-interwork -mtune=xscale --sysroot=/OE/shr-core/tmp-eglibc/sysroots/spitz -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_STDINT_H=1 -DHAVE_VA_COPY=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_INTMAX_MAX=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE___GMPN_ROOTREM=1 -DHAVE___GMPN_SBPI1_DIVAPPR_Q=1 -I. -O2 -pipe -g -feliminate-unused-debug-types -ffloat-store -c -o pow.lo pow.c | ||
19 | | {standard input}:1154: Error: selected processor does not support Thumb mode `umull r0,r1,sl,ip' | ||
20 | | {standard input}:1166: Error: selected processor does not support Thumb mode `umull r3,r2,ip,r0' | ||
21 | | {standard input}:1171: Error: instruction not supported in Thumb16 mode -- `adds r0,r1,r3' | ||
22 | | {standard input}:1172: Error: unshifted register required -- `adc r2,r2,#0' | ||
23 | | make[2]: *** [mul.lo] Error 1 | ||
24 | |||
25 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
26 | |||
27 | Upstream-Status: Pending | ||
28 | |||
29 | --- mpfr.old/src/mpfr-longlong.h 2008-01-01 03:29:09.000000000 +0000 | ||
30 | +++ mpfr/src/mpfr-longlong.h 2008-10-27 21:46:44.000000000 +0000 | ||
31 | @@ -406,7 +406,7 @@ | ||
32 | "rIJ" ((USItype) (bl))) | ||
33 | #endif | ||
34 | |||
35 | -#if defined (__arm__) && W_TYPE_SIZE == 32 | ||
36 | +#if defined (__arm__) && W_TYPE_SIZE == 32 && !defined(__thumb__) | ||
37 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | ||
38 | __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \ | ||
39 | : "=r" (sh), "=&r" (sl) \ | ||
diff --git a/meta/recipes-support/mpfr/mpfr.inc b/meta/recipes-support/mpfr/mpfr.inc new file mode 100644 index 0000000000..ecee7314bf --- /dev/null +++ b/meta/recipes-support/mpfr/mpfr.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | SUMMARY = "C library for multiple-precision floating-point computations with exact rounding" | ||
2 | HOMEPAGE = "http://www.mpfr.org/" | ||
3 | LICENSE = "LGPLv3+" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | inherit autotools | ||
diff --git a/meta/recipes-support/mpfr/mpfr_3.1.2.bb b/meta/recipes-support/mpfr/mpfr_3.1.2.bb new file mode 100644 index 0000000000..c05e956d5b --- /dev/null +++ b/meta/recipes-support/mpfr/mpfr_3.1.2.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require mpfr.inc | ||
2 | |||
3 | LICENSE = "GPLv3 & LGPLv3" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
5 | file://COPYING.LESSER;md5=6a6a8e020838b23406c81b19c1d46df6" | ||
6 | DEPENDS = "gmp" | ||
7 | |||
8 | SRC_URI = "http://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.xz \ | ||
9 | file://long-long-thumb.patch \ | ||
10 | " | ||
11 | |||
12 | SRC_URI[md5sum] = "e3d203d188b8fe60bb6578dd3152e05c" | ||
13 | SRC_URI[sha256sum] = "399d0f47ef6608cc01d29ed1b99c7faff36d9994c45f36f41ba250147100453b" | ||
14 | |||
15 | S = "${WORKDIR}/mpfr-${PV}" | ||
16 | |||
17 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/neon/neon-0.30.0/pkgconfig.patch b/meta/recipes-support/neon/neon-0.30.0/pkgconfig.patch new file mode 100644 index 0000000000..1a2550c6fb --- /dev/null +++ b/meta/recipes-support/neon/neon-0.30.0/pkgconfig.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | --- | ||
4 | neon.pc.in | 2 +- | ||
5 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
6 | |||
7 | --- neon-0.28.1.orig/neon.pc.in | ||
8 | +++ neon-0.28.1/neon.pc.in | ||
9 | @@ -4,8 +4,8 @@ libdir=@libdir@ | ||
10 | includedir=@includedir@ | ||
11 | |||
12 | Name: neon | ||
13 | Description: HTTP/WebDAV client library | ||
14 | Version: @NEON_VERSION@ | ||
15 | -Libs.private: @NEON_LIBS@ | ||
16 | +Libs.private: -L${libdir} -lz -lgcrypt -lgpg-error -lexpat -lgnutls | ||
17 | Libs: -L${libdir} -lneon @NEON_PC_LIBS@ | ||
18 | Cflags: -I${includedir}/neon @NEON_CFLAGS@ | ||
diff --git a/meta/recipes-support/neon/neon_0.30.0.bb b/meta/recipes-support/neon/neon_0.30.0.bb new file mode 100644 index 0000000000..f6c5a6f43c --- /dev/null +++ b/meta/recipes-support/neon/neon_0.30.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "An HTTP and WebDAV client library with a C interface" | ||
2 | HOMEPAGE = "http://www.webdav.org/neon/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://src/COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a \ | ||
6 | file://src/ne_utils.h;beginline=1;endline=20;md5=2caca609538eddaa6f6adf120a218037" | ||
7 | DEPENDS = "zlib libxml2 expat time gnutls libproxy" | ||
8 | DEPENDS_class-native = "zlib-native libxml2-native expat-native gnutls-native" | ||
9 | |||
10 | BBCLASSEXTEND = "native" | ||
11 | |||
12 | SRC_URI = "http://www.webdav.org/${BPN}/${BPN}-${PV}.tar.gz \ | ||
13 | file://pkgconfig.patch" | ||
14 | SRC_URI[md5sum] = "fb60b3a124eeec441937a812c456fd94" | ||
15 | SRC_URI[sha256sum] = "2962cfcb5d30f3272e3d2fa0e473434419770a3801afe3d46e5d1650787990c2" | ||
16 | |||
17 | inherit autotools binconfig lib_package pkgconfig | ||
18 | |||
19 | EXTRA_OECONF = "--with-ssl=gnutls --with-libxml2 --with-expat --enable-shared" | ||
20 | EXTRA_OECONF += "--without-gssapi" | ||
diff --git a/meta/recipes-support/npth/npth_0.91.bb b/meta/recipes-support/npth/npth_0.91.bb new file mode 100644 index 0000000000..56a9d9b69e --- /dev/null +++ b/meta/recipes-support/npth/npth_0.91.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "New GNU Portable Threads library" | ||
2 | HOMEPAGE = "http://www.gnupg.org/software/pth/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPLv3+ & GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "\ | ||
6 | file://COPYING;md5=751419260aa954499f7abaabaa882bbe\ | ||
7 | file://COPYING.LESSER;md5=6a6a8e020838b23406c81b19c1d46df6\ | ||
8 | " | ||
9 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/npth/npth-${PV}.tar.bz2 \ | ||
10 | " | ||
11 | SRC_URI[md5sum] = "87712f0cee656c390b49773923e26e7f" | ||
12 | SRC_URI[sha256sum] = "caef86ced4a331e162897818a5b924860c8d6003e52da5bdf76da00e8e0dfae1" | ||
13 | |||
14 | inherit autotools binconfig | ||
15 | |||
16 | FILES_${PN} = "${libdir}/libnpth.so.*" | ||
17 | FILES_${PN}-dev += "${bindir}/npth-config" | ||
diff --git a/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch b/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch new file mode 100644 index 0000000000..a6fa1ea607 --- /dev/null +++ b/meta/recipes-support/nspr/nspr/fix-build-on-x86_64.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | Fix build failure on x86_64 | ||
2 | |||
3 | When the target_cpu is x86_64, we should assume that the pkg uses 64bit, | ||
4 | only if USE_N32 is set, we can assume that the pkg uses 32bit. It used a | ||
5 | opposite logic before. | ||
6 | |||
7 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | --- | ||
11 | configure.in | 12 ++++++------ | ||
12 | 1 files changed, 6 insertions(+), 6 deletions(-) | ||
13 | |||
14 | diff --git a/configure.in b/configure.in | ||
15 | index 39c96a3..99a03ac 100644 | ||
16 | --- a/configure.in | ||
17 | +++ b/configure.in | ||
18 | @@ -1778,24 +1778,24 @@ tools are selected during the Xcode/Developer Tools installation.]) | ||
19 | PR_MD_ASFILES=os_Linux_ia64.s | ||
20 | ;; | ||
21 | x86_64) | ||
22 | - if test -n "$USE_64"; then | ||
23 | - PR_MD_ASFILES=os_Linux_x86_64.s | ||
24 | - else | ||
25 | + if test -n "$USE_N32"; then | ||
26 | AC_DEFINE(i386) | ||
27 | PR_MD_ASFILES=os_Linux_x86.s | ||
28 | CC="$CC -m32" | ||
29 | CXX="$CXX -m32" | ||
30 | + else | ||
31 | + PR_MD_ASFILES=os_Linux_x86_64.s | ||
32 | fi | ||
33 | ;; | ||
34 | ppc|powerpc) | ||
35 | PR_MD_ASFILES=os_Linux_ppc.s | ||
36 | ;; | ||
37 | powerpc64) | ||
38 | - if test -n "$USE_64"; then | ||
39 | + if test -n "$USE_N32"; then | ||
40 | + PR_MD_ASFILES=os_Linux_ppc.s | ||
41 | + else | ||
42 | CC="$CC -m64" | ||
43 | CXX="$CXX -m64" | ||
44 | - else | ||
45 | - PR_MD_ASFILES=os_Linux_ppc.s | ||
46 | fi | ||
47 | ;; | ||
48 | m68k) | ||
49 | -- | ||
50 | 1.7.1 | ||
51 | |||
diff --git a/meta/recipes-support/nspr/nspr/nspr.pc.in b/meta/recipes-support/nspr/nspr/nspr.pc.in new file mode 100644 index 0000000000..c37d0bcbd7 --- /dev/null +++ b/meta/recipes-support/nspr/nspr/nspr.pc.in | |||
@@ -0,0 +1,11 @@ | |||
1 | os_libs=-lpthread -ldl | ||
2 | prefix=OEPREFIX | ||
3 | exec_prefix=OEEXECPREFIX | ||
4 | libdir=OELIBDIR | ||
5 | includedir=OEINCDIR | ||
6 | |||
7 | Name: NSPR | ||
8 | Description: The Netscape Portable Runtime | ||
9 | Version: 4.9.5 | ||
10 | Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl | ||
11 | Cflags: | ||
diff --git a/meta/recipes-support/nspr/nspr/remove-rpath-from-tests.patch b/meta/recipes-support/nspr/nspr/remove-rpath-from-tests.patch new file mode 100644 index 0000000000..a7e7853de1 --- /dev/null +++ b/meta/recipes-support/nspr/nspr/remove-rpath-from-tests.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Author: Andrei Gherzan <andrei@gherzan.ro> | ||
2 | Date: Thu Feb 9 00:03:38 2012 +0200 | ||
3 | |||
4 | Avoid QA warnings by removing hardcoded rpath from binaries. | ||
5 | |||
6 | [...] | ||
7 | WARNING: QA Issue: package nspr contains bad RPATH {builddir}/tmp/work/armv5te-poky-linux-gnueabi/nspr-4.8.9-r1/nspr-4.8.9/mozilla/nsprpub/pr/tests/../../dist/lib | ||
8 | in file {builddir}/tmp/work/armv5te-poky-linux-gnueabi/nspr-4.8.9-r1/packages-split/nspr/usr/lib/nspr/tests/multiwait | ||
9 | [...] | ||
10 | |||
11 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Index: nspr-4.8.9/mozilla/nsprpub/pr/tests/Makefile.in | ||
15 | =================================================================== | ||
16 | --- nsprpub.orig/pr/tests/Makefile.in 2012-02-11 00:01:10.476220505 +0200 | ||
17 | +++ nsprpub/pr/tests/Makefile.in 2012-02-10 23:57:40.000000000 +0200 | ||
18 | @@ -379,7 +379,7 @@ | ||
19 | endif | ||
20 | |||
21 | ifeq (,$(filter-out Linux GNU GNU_%,$(OS_ARCH))) | ||
22 | - LDOPTS += -Xlinker -rpath $(ABSOLUTE_LIB_DIR) | ||
23 | + LDOPTS += -Xlinker | ||
24 | ifeq ($(USE_PTHREADS),1) | ||
25 | EXTRA_LIBS = -lpthread | ||
26 | endif | ||
diff --git a/meta/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch b/meta/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch new file mode 100644 index 0000000000..8ca51e4d1f --- /dev/null +++ b/meta/recipes-support/nspr/nspr/trickly-fix-build-on-x86_64.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | trickily fix build failure on x86_64 | ||
2 | |||
3 | It seems that we can not run the 'autoreconf -f -i' for the nspr, I met | ||
4 | several strange problems while trying to do that, and the previous | ||
5 | author seemed had noticed this, so he wrote: | ||
6 | |||
7 | do_configure() { | ||
8 | oe_runconf | ||
9 | } | ||
10 | |||
11 | to avoid running the "autoreconf". But we must modify configure.in to | ||
12 | fix the build failure on x86_64, so both modify configure and | ||
13 | configure.in, once the "autoreconf" can work correctly, we can remove | ||
14 | this patch. | ||
15 | |||
16 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
17 | |||
18 | Upstream-Status: Inappropriate [configuration] | ||
19 | --- | ||
20 | configure | 12 ++++++------ | ||
21 | 1 files changed, 6 insertions(+), 6 deletions(-) | ||
22 | |||
23 | diff --git a/configure b/configure | ||
24 | --- a/configure | ||
25 | +++ b/configure | ||
26 | @@ -4366,9 +4366,7 @@ EOF | ||
27 | PR_MD_ASFILES=os_Linux_ia64.s | ||
28 | ;; | ||
29 | x86_64) | ||
30 | - if test -n "$USE_64"; then | ||
31 | - PR_MD_ASFILES=os_Linux_x86_64.s | ||
32 | - else | ||
33 | + if test -n "$USE_N32"; then | ||
34 | cat >> confdefs.h <<\EOF | ||
35 | #define i386 1 | ||
36 | EOF | ||
37 | @@ -4376,17 +4374,19 @@ EOF | ||
38 | PR_MD_ASFILES=os_Linux_x86.s | ||
39 | CC="$CC -m32" | ||
40 | CXX="$CXX -m32" | ||
41 | + else | ||
42 | + PR_MD_ASFILES=os_Linux_x86_64.s | ||
43 | fi | ||
44 | ;; | ||
45 | ppc|powerpc) | ||
46 | PR_MD_ASFILES=os_Linux_ppc.s | ||
47 | ;; | ||
48 | powerpc64) | ||
49 | - if test -n "$USE_64"; then | ||
50 | + if test -n "$USE_N32"; then | ||
51 | + PR_MD_ASFILES=os_Linux_ppc.s | ||
52 | + else | ||
53 | CC="$CC -m64" | ||
54 | CXX="$CXX -m64" | ||
55 | - else | ||
56 | - PR_MD_ASFILES=os_Linux_ppc.s | ||
57 | fi | ||
58 | ;; | ||
59 | m68k) | ||
60 | -- | ||
61 | 1.7.1 | ||
62 | |||
diff --git a/meta/recipes-support/nspr/nspr_4.10.3.bb b/meta/recipes-support/nspr/nspr_4.10.3.bb new file mode 100644 index 0000000000..0adfe3b3a3 --- /dev/null +++ b/meta/recipes-support/nspr/nspr_4.10.3.bb | |||
@@ -0,0 +1,178 @@ | |||
1 | SUMMARY = "Netscape Portable Runtime Library" | ||
2 | HOMEPAGE = "http://www.mozilla.org/projects/nspr/" | ||
3 | LICENSE = "GPL-2.0 | MPL-2.0 | LGPL-2.1" | ||
4 | LIC_FILES_CHKSUM = "file://configure.in;beginline=3;endline=6;md5=90c2fdee38e45d6302abcfe475c8b5c5 \ | ||
5 | file://Makefile.in;beginline=4;endline=38;md5=beda1dbb98a515f557d3e58ef06bca99" | ||
6 | SECTION = "libs/network" | ||
7 | |||
8 | SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz \ | ||
9 | file://remove-rpath-from-tests.patch \ | ||
10 | file://fix-build-on-x86_64.patch \ | ||
11 | file://trickly-fix-build-on-x86_64.patch \ | ||
12 | " | ||
13 | |||
14 | SRC_URI += "file://nspr.pc.in" | ||
15 | |||
16 | SRC_URI[md5sum] = "bf298e874cf454a3c2f8fe7e671c5d2e" | ||
17 | SRC_URI[sha256sum] = "f25779b1a665dab0090b9c977dc6c29a63320f442956ed78629b66b405cb01e5" | ||
18 | |||
19 | S = "${WORKDIR}/nspr-${PV}/nspr" | ||
20 | |||
21 | RDEPENDS_${PN}-dev += "perl" | ||
22 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
23 | |||
24 | TESTS = "runtests.pl \ | ||
25 | runtests.sh \ | ||
26 | accept \ | ||
27 | acceptread \ | ||
28 | acceptreademu \ | ||
29 | affinity \ | ||
30 | alarm \ | ||
31 | anonfm \ | ||
32 | atomic \ | ||
33 | attach \ | ||
34 | bigfile \ | ||
35 | cleanup \ | ||
36 | cltsrv \ | ||
37 | concur \ | ||
38 | cvar \ | ||
39 | cvar2 \ | ||
40 | dlltest \ | ||
41 | dtoa \ | ||
42 | errcodes \ | ||
43 | exit \ | ||
44 | fdcach \ | ||
45 | fileio \ | ||
46 | foreign \ | ||
47 | formattm \ | ||
48 | fsync \ | ||
49 | gethost \ | ||
50 | getproto \ | ||
51 | i2l \ | ||
52 | initclk \ | ||
53 | inrval \ | ||
54 | instrumt \ | ||
55 | intrio \ | ||
56 | intrupt \ | ||
57 | io_timeout \ | ||
58 | ioconthr \ | ||
59 | join \ | ||
60 | joinkk \ | ||
61 | joinku \ | ||
62 | joinuk \ | ||
63 | joinuu \ | ||
64 | layer \ | ||
65 | lazyinit \ | ||
66 | libfilename \ | ||
67 | lltest \ | ||
68 | lock \ | ||
69 | lockfile \ | ||
70 | logfile \ | ||
71 | logger \ | ||
72 | many_cv \ | ||
73 | multiwait \ | ||
74 | nameshm1 \ | ||
75 | nblayer \ | ||
76 | nonblock \ | ||
77 | ntioto \ | ||
78 | ntoh \ | ||
79 | op_2long \ | ||
80 | op_excl \ | ||
81 | op_filnf \ | ||
82 | op_filok \ | ||
83 | op_nofil \ | ||
84 | parent \ | ||
85 | parsetm \ | ||
86 | peek \ | ||
87 | perf \ | ||
88 | pipeping \ | ||
89 | pipeping2 \ | ||
90 | pipeself \ | ||
91 | poll_nm \ | ||
92 | poll_to \ | ||
93 | pollable \ | ||
94 | prftest \ | ||
95 | primblok \ | ||
96 | provider \ | ||
97 | prpollml \ | ||
98 | ranfile \ | ||
99 | randseed \ | ||
100 | reinit \ | ||
101 | rwlocktest \ | ||
102 | sel_spd \ | ||
103 | selct_er \ | ||
104 | selct_nm \ | ||
105 | selct_to \ | ||
106 | selintr \ | ||
107 | sema \ | ||
108 | semaerr \ | ||
109 | semaping \ | ||
110 | sendzlf \ | ||
111 | server_test \ | ||
112 | servr_kk \ | ||
113 | servr_uk \ | ||
114 | servr_ku \ | ||
115 | servr_uu \ | ||
116 | short_thread \ | ||
117 | sigpipe \ | ||
118 | socket \ | ||
119 | sockopt \ | ||
120 | sockping \ | ||
121 | sprintf \ | ||
122 | stack \ | ||
123 | stdio \ | ||
124 | str2addr \ | ||
125 | strod \ | ||
126 | switch \ | ||
127 | system \ | ||
128 | testbit \ | ||
129 | testfile \ | ||
130 | threads \ | ||
131 | timemac \ | ||
132 | timetest \ | ||
133 | tpd \ | ||
134 | udpsrv \ | ||
135 | vercheck \ | ||
136 | version \ | ||
137 | writev \ | ||
138 | xnotify \ | ||
139 | zerolen" | ||
140 | |||
141 | inherit autotools-brokensep | ||
142 | |||
143 | do_configure() { | ||
144 | gnu-configize --force | ||
145 | mv config.sub config.guess build/autoconf | ||
146 | oe_runconf | ||
147 | } | ||
148 | |||
149 | do_compile_prepend() { | ||
150 | oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export | ||
151 | } | ||
152 | |||
153 | do_compile_append() { | ||
154 | oe_runmake -C pr/tests | ||
155 | } | ||
156 | |||
157 | do_install_append() { | ||
158 | install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc | ||
159 | sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc | ||
160 | sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc | ||
161 | sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc | ||
162 | sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc | ||
163 | cd ${S}/pr/tests | ||
164 | mkdir -p ${D}${libdir}/nspr/tests | ||
165 | install -m 0755 ${TESTS} ${D}${libdir}/nspr/tests | ||
166 | |||
167 | # delete compile-et.pl and perr.properties from ${bindir} because these are | ||
168 | # only used to generate prerr.c and prerr.h files from prerr.et at compile | ||
169 | # time | ||
170 | rm ${D}${bindir}/compile-et.pl ${D}${bindir}/prerr.properties | ||
171 | } | ||
172 | |||
173 | FILES_${PN} = "${libdir}/lib*.so" | ||
174 | FILES_${PN}-dev = "${bindir}/* ${libdir}/nspr/tests/* ${libdir}/pkgconfig \ | ||
175 | ${includedir}/* ${datadir}/aclocal/* " | ||
176 | FILES_${PN}-dbg += "${libdir}/nspr/tests/.debug/*" | ||
177 | |||
178 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb new file mode 100644 index 0000000000..540f22330a --- /dev/null +++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "Name Service Switch module for resolving the local hostname" | ||
2 | DESCRIPTION = "plugin for the GNU Name Service Switch (NSS) functionality of \ | ||
3 | the GNU C Library (glibc) providing host name resolution for the locally \ | ||
4 | configured system hostname as returned by gethostname(2)." | ||
5 | HOMEPAGE = "http://0pointer.de/lennart/projects/nss-myhostname/" | ||
6 | LICENSE = "LGPLv2.1" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
8 | |||
9 | SRC_URI = "http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-${PV}.tar.gz" | ||
10 | |||
11 | SRC_URI[md5sum] = "d4ab9ac36c053ab8fb836db1cbd4a48f" | ||
12 | SRC_URI[sha256sum] = "2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67e7caf2" | ||
13 | |||
14 | inherit autotools | ||
15 | |||
16 | pkg_postinst_${PN} () { | ||
17 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | ||
18 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ | ||
19 | -i $D/etc/nsswitch.conf | ||
20 | } | ||
21 | |||
22 | pkg_prerm_${PN} () { | ||
23 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | ||
24 | -e '/^hosts:/s/\s*myhostname//' \ | ||
25 | -i $D/etc/nsswitch.conf | ||
26 | } | ||
diff --git a/meta/recipes-support/nss/files/nss-3.15.1-fix-CVE-2013-1741.patch b/meta/recipes-support/nss/files/nss-3.15.1-fix-CVE-2013-1741.patch new file mode 100644 index 0000000000..21da0c03b5 --- /dev/null +++ b/meta/recipes-support/nss/files/nss-3.15.1-fix-CVE-2013-1741.patch | |||
@@ -0,0 +1,92 @@ | |||
1 | Upstream-Status: backport | ||
2 | yanjun.zhu <yanjun.zhu@windriver.com> | ||
3 | --- a/nss/lib/util/secport.c | ||
4 | +++ b/nss/lib/util/secport.c | ||
5 | @@ -69,13 +69,22 @@ PORTCharConversionFunc ucs4Utf8ConvertFu | ||
6 | PORTCharConversionFunc ucs2Utf8ConvertFunc; | ||
7 | PORTCharConversionWSwapFunc ucs2AsciiConvertFunc; | ||
8 | |||
9 | +/* NSPR memory allocation functions (PR_Malloc, PR_Calloc, and PR_Realloc) | ||
10 | + * use the PRUint32 type for the size parameter. Before we pass a size_t or | ||
11 | + * unsigned long size to these functions, we need to ensure it is <= half of | ||
12 | + * the maximum PRUint32 value to avoid truncation and catch a negative size. | ||
13 | + */ | ||
14 | +#define MAX_SIZE (PR_UINT32_MAX >> 1) | ||
15 | + | ||
16 | void * | ||
17 | PORT_Alloc(size_t bytes) | ||
18 | { | ||
19 | - void *rv; | ||
20 | + void *rv = NULL; | ||
21 | |||
22 | - /* Always allocate a non-zero amount of bytes */ | ||
23 | - rv = (void *)PR_Malloc(bytes ? bytes : 1); | ||
24 | + if (bytes <= MAX_SIZE) { | ||
25 | + /* Always allocate a non-zero amount of bytes */ | ||
26 | + rv = PR_Malloc(bytes ? bytes : 1); | ||
27 | + } | ||
28 | if (!rv) { | ||
29 | ++port_allocFailures; | ||
30 | PORT_SetError(SEC_ERROR_NO_MEMORY); | ||
31 | @@ -86,9 +95,11 @@ PORT_Alloc(size_t bytes) | ||
32 | void * | ||
33 | PORT_Realloc(void *oldptr, size_t bytes) | ||
34 | { | ||
35 | - void *rv; | ||
36 | + void *rv = NULL; | ||
37 | |||
38 | - rv = (void *)PR_Realloc(oldptr, bytes); | ||
39 | + if (bytes <= MAX_SIZE) { | ||
40 | + rv = PR_Realloc(oldptr, bytes); | ||
41 | + } | ||
42 | if (!rv) { | ||
43 | ++port_allocFailures; | ||
44 | PORT_SetError(SEC_ERROR_NO_MEMORY); | ||
45 | @@ -99,10 +110,12 @@ PORT_Realloc(void *oldptr, size_t bytes) | ||
46 | void * | ||
47 | PORT_ZAlloc(size_t bytes) | ||
48 | { | ||
49 | - void *rv; | ||
50 | + void *rv = NULL; | ||
51 | |||
52 | - /* Always allocate a non-zero amount of bytes */ | ||
53 | - rv = (void *)PR_Calloc(1, bytes ? bytes : 1); | ||
54 | + if (bytes <= MAX_SIZE) { | ||
55 | + /* Always allocate a non-zero amount of bytes */ | ||
56 | + rv = PR_Calloc(1, bytes ? bytes : 1); | ||
57 | + } | ||
58 | if (!rv) { | ||
59 | ++port_allocFailures; | ||
60 | PORT_SetError(SEC_ERROR_NO_MEMORY); | ||
61 | @@ -209,6 +222,10 @@ PORT_NewArena(unsigned long chunksize) | ||
62 | { | ||
63 | PORTArenaPool *pool; | ||
64 | |||
65 | + if (chunksize > MAX_SIZE) { | ||
66 | + PORT_SetError(SEC_ERROR_NO_MEMORY); | ||
67 | + return NULL; | ||
68 | + } | ||
69 | pool = PORT_ZNew(PORTArenaPool); | ||
70 | if (!pool) { | ||
71 | return NULL; | ||
72 | @@ -224,8 +241,6 @@ PORT_NewArena(unsigned long chunksize) | ||
73 | return(&pool->arena); | ||
74 | } | ||
75 | |||
76 | -#define MAX_SIZE 0x7fffffffUL | ||
77 | - | ||
78 | void * | ||
79 | PORT_ArenaAlloc(PLArenaPool *arena, size_t size) | ||
80 | { | ||
81 | @@ -330,6 +345,11 @@ PORT_ArenaGrow(PLArenaPool *arena, void | ||
82 | PORTArenaPool *pool = (PORTArenaPool *)arena; | ||
83 | PORT_Assert(newsize >= oldsize); | ||
84 | |||
85 | + if (newsize > MAX_SIZE) { | ||
86 | + PORT_SetError(SEC_ERROR_NO_MEMORY); | ||
87 | + return NULL; | ||
88 | + } | ||
89 | + | ||
90 | if (ARENAPOOL_MAGIC == pool->magic ) { | ||
91 | PZ_Lock(pool->lock); | ||
92 | /* Do we do a THREADMARK check here? */ | ||
diff --git a/meta/recipes-support/nss/files/nss-3.15.1-fix-CVE-2013-5605.patch b/meta/recipes-support/nss/files/nss-3.15.1-fix-CVE-2013-5605.patch new file mode 100644 index 0000000000..7203d02c78 --- /dev/null +++ b/meta/recipes-support/nss/files/nss-3.15.1-fix-CVE-2013-5605.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | signed-off-by: Ryan Sleevi <ryan.sleevi@gmail.com> | ||
2 | Upstream-Status: Backport | ||
3 | reference:https://hg.mozilla.org/projects/nss/rev/e79a09364b5e | ||
4 | |||
5 | --- a/nss/lib/ssl/ssl3con.c | ||
6 | +++ b/nss/lib/ssl/ssl3con.c | ||
7 | @@ -781,6 +781,11 @@ static SECStatus | ||
8 | Null_Cipher(void *ctx, unsigned char *output, int *outputLen, int maxOutputLen, | ||
9 | const unsigned char *input, int inputLen) | ||
10 | { | ||
11 | + if (inputLen > maxOutputLen) { | ||
12 | + *outputLen = 0; /* Match PK11_CipherOp in setting outputLen */ | ||
13 | + PORT_SetError(SEC_ERROR_OUTPUT_LEN); | ||
14 | + return SECFailure; | ||
15 | + } | ||
16 | *outputLen = inputLen; | ||
17 | if (input != output) | ||
18 | PORT_Memcpy(output, input, inputLen); | ||
diff --git a/meta/recipes-support/nss/files/nss-fix-incorrect-shebang-of-perl.patch b/meta/recipes-support/nss/files/nss-fix-incorrect-shebang-of-perl.patch new file mode 100644 index 0000000000..547594d5b6 --- /dev/null +++ b/meta/recipes-support/nss/files/nss-fix-incorrect-shebang-of-perl.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | nss: fix incorrect shebang of perl | ||
2 | |||
3 | Replace incorrect shebang of perl with `#!/usr/bin/env perl'. | ||
4 | |||
5 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
6 | Upstream-Status: Pending | ||
7 | --- | ||
8 | nss/cmd/smimetools/smime | 2 +- | ||
9 | nss/coreconf/cpdist.pl | 2 +- | ||
10 | nss/coreconf/import.pl | 2 +- | ||
11 | nss/coreconf/jniregen.pl | 2 +- | ||
12 | nss/coreconf/outofdate.pl | 2 +- | ||
13 | nss/coreconf/release.pl | 2 +- | ||
14 | nss/coreconf/version.pl | 2 +- | ||
15 | nss/tests/clean_tbx | 2 +- | ||
16 | nss/tests/path_uniq | 2 +- | ||
17 | 9 files changed, 9 insertions(+), 9 deletions(-) | ||
18 | |||
19 | diff --git a/nss/cmd/smimetools/smime b/nss/cmd/smimetools/smime | ||
20 | --- a/nss/cmd/smimetools/smime | ||
21 | +++ b/nss/cmd/smimetools/smime | ||
22 | @@ -1,4 +1,4 @@ | ||
23 | -#!/usr/local/bin/perl | ||
24 | +#!/usr/bin/env perl | ||
25 | |||
26 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
27 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
28 | diff --git a/nss/coreconf/cpdist.pl b/nss/coreconf/cpdist.pl | ||
29 | index 800edfb..652187f 100755 | ||
30 | --- a/nss/coreconf/cpdist.pl | ||
31 | +++ b/nss/coreconf/cpdist.pl | ||
32 | @@ -1,4 +1,4 @@ | ||
33 | -#! /usr/local/bin/perl | ||
34 | +#!/usr/bin/env perl | ||
35 | # | ||
36 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
37 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
38 | diff --git a/nss/coreconf/import.pl b/nss/coreconf/import.pl | ||
39 | index dd2d177..428eaa5 100755 | ||
40 | --- a/nss/coreconf/import.pl | ||
41 | +++ b/nss/coreconf/import.pl | ||
42 | @@ -1,4 +1,4 @@ | ||
43 | -#! /usr/local/bin/perl | ||
44 | +#!/usr/bin/env perl | ||
45 | # | ||
46 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
47 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
48 | diff --git a/nss/coreconf/jniregen.pl b/nss/coreconf/jniregen.pl | ||
49 | index 2039180..5f4f69c 100755 | ||
50 | --- a/nss/coreconf/jniregen.pl | ||
51 | +++ b/nss/coreconf/jniregen.pl | ||
52 | @@ -1,4 +1,4 @@ | ||
53 | -#!/usr/local/bin/perl | ||
54 | +#!/usr/bin/env perl | ||
55 | # | ||
56 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
57 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
58 | diff --git a/nss/coreconf/outofdate.pl b/nss/coreconf/outofdate.pl | ||
59 | index 33d80bb..01fc097 100755 | ||
60 | --- a/nss/coreconf/outofdate.pl | ||
61 | +++ b/nss/coreconf/outofdate.pl | ||
62 | @@ -1,4 +1,4 @@ | ||
63 | -#!/usr/local/bin/perl | ||
64 | +#!/usr/bin/env perl | ||
65 | # | ||
66 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
67 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
68 | diff --git a/nss/coreconf/release.pl b/nss/coreconf/release.pl | ||
69 | index 7cde19d..b5df2f6 100755 | ||
70 | --- a/nss/coreconf/release.pl | ||
71 | +++ b/nss/coreconf/release.pl | ||
72 | @@ -1,4 +1,4 @@ | ||
73 | -#! /usr/local/bin/perl | ||
74 | +#!/usr/bin/env perl | ||
75 | # | ||
76 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
77 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
78 | diff --git a/nss/coreconf/version.pl b/nss/coreconf/version.pl | ||
79 | index d2a4942..79359fe 100644 | ||
80 | --- a/nss/coreconf/version.pl | ||
81 | +++ b/nss/coreconf/version.pl | ||
82 | @@ -1,4 +1,4 @@ | ||
83 | -#!/usr/sbin/perl | ||
84 | +#!/usr/bin/env perl | ||
85 | # | ||
86 | # This Source Code Form is subject to the terms of the Mozilla Public | ||
87 | # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
88 | diff --git a/nss/tests/clean_tbx b/nss/tests/clean_tbx | ||
89 | index 4de9555..a7def9f 100755 | ||
90 | --- a/nss/tests/clean_tbx | ||
91 | +++ b/nss/tests/clean_tbx | ||
92 | @@ -1,4 +1,4 @@ | ||
93 | -#! /bin/perl | ||
94 | +#!/usr/bin/env perl | ||
95 | |||
96 | ####################################################################### | ||
97 | # | ||
98 | diff --git a/nss/tests/path_uniq b/nss/tests/path_uniq | ||
99 | index f29f60a..08fbffa 100755 | ||
100 | --- a/nss/tests/path_uniq | ||
101 | +++ b/nss/tests/path_uniq | ||
102 | @@ -1,4 +1,4 @@ | ||
103 | -#! /bin/perl | ||
104 | +#!/usr/bin/env perl | ||
105 | |||
106 | ######################################################################## | ||
107 | # | ||
108 | -- | ||
109 | 1.8.1.2 | ||
110 | |||
diff --git a/meta/recipes-support/nss/files/nss-fix-support-cross-compiling.patch b/meta/recipes-support/nss/files/nss-fix-support-cross-compiling.patch new file mode 100644 index 0000000000..f0b3550bff --- /dev/null +++ b/meta/recipes-support/nss/files/nss-fix-support-cross-compiling.patch | |||
@@ -0,0 +1,71 @@ | |||
1 | nss: fix support cross compiling | ||
2 | |||
3 | Let some make variables be assigned from outside makefile. | ||
4 | |||
5 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | --- | ||
8 | nss/coreconf/Linux.mk | 12 +++++++++++- | ||
9 | nss/coreconf/arch.mk | 2 +- | ||
10 | nss/lib/freebl/Makefile | 6 ++++++ | ||
11 | 3 files changed, 18 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/nss/coreconf/Linux.mk b/nss/coreconf/Linux.mk | ||
14 | --- a/nss/coreconf/Linux.mk | ||
15 | +++ b/nss/coreconf/Linux.mk | ||
16 | @@ -16,11 +16,21 @@ ifeq ($(USE_PTHREADS),1) | ||
17 | IMPL_STRATEGY = _PTH | ||
18 | endif | ||
19 | |||
20 | +ifndef CC | ||
21 | CC = gcc | ||
22 | +endif | ||
23 | + | ||
24 | +ifdef CXX | ||
25 | +CCC = $(CXX) | ||
26 | +else | ||
27 | CCC = g++ | ||
28 | +endif | ||
29 | + | ||
30 | +ifndef RANLIB | ||
31 | RANLIB = ranlib | ||
32 | +endif | ||
33 | |||
34 | -DEFAULT_COMPILER = gcc | ||
35 | +DEFAULT_COMPILER = $(CC) | ||
36 | |||
37 | ifeq ($(OS_TARGET),Android) | ||
38 | ifndef ANDROID_NDK | ||
39 | diff --git a/nss/coreconf/arch.mk b/nss/coreconf/arch.mk | ||
40 | index 6557348..b722412 100644 | ||
41 | --- a/nss/coreconf/arch.mk | ||
42 | +++ b/nss/coreconf/arch.mk | ||
43 | @@ -37,7 +37,7 @@ OS_TEST := $(shell uname -m) | ||
44 | ifeq ($(OS_TEST),i86pc) | ||
45 | OS_RELEASE := $(shell uname -r)_$(OS_TEST) | ||
46 | else | ||
47 | - OS_RELEASE := $(shell uname -r) | ||
48 | + OS_RELEASE ?= $(shell uname -r) | ||
49 | endif | ||
50 | |||
51 | # | ||
52 | diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile | ||
53 | index 0d293f1..678f506 100644 | ||
54 | --- a/nss/lib/freebl/Makefile | ||
55 | +++ b/nss/lib/freebl/Makefile | ||
56 | @@ -36,6 +36,12 @@ ifdef USE_64 | ||
57 | DEFINES += -DNSS_USE_64 | ||
58 | endif | ||
59 | |||
60 | +ifeq ($(OS_TEST),mips) | ||
61 | +ifndef USE_64 | ||
62 | + DEFINES += -DNS_PTR_LE_32 | ||
63 | +endif | ||
64 | +endif | ||
65 | + | ||
66 | ifdef USE_ABI32_FPU | ||
67 | DEFINES += -DNSS_USE_ABI32_FPU | ||
68 | endif | ||
69 | -- | ||
70 | 1.8.1.2 | ||
71 | |||
diff --git a/meta/recipes-support/nss/files/nss-no-rpath-for-cross-compiling.patch b/meta/recipes-support/nss/files/nss-no-rpath-for-cross-compiling.patch new file mode 100644 index 0000000000..7661dc93a0 --- /dev/null +++ b/meta/recipes-support/nss/files/nss-no-rpath-for-cross-compiling.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | nss:no rpath for cross compiling | ||
2 | |||
3 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
4 | Upstream-Status: Inappropriate [configuration] | ||
5 | --- | ||
6 | nss/cmd/platlibs.mk | 4 ++-- | ||
7 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
8 | |||
9 | diff --git a/nss/cmd/platlibs.mk b/nss/cmd/platlibs.mk | ||
10 | --- a/nss/cmd/platlibs.mk | ||
11 | +++ b/nss/cmd/platlibs.mk | ||
12 | @@ -18,9 +18,9 @@ endif | ||
13 | |||
14 | ifeq ($(OS_ARCH), Linux) | ||
15 | ifeq ($(USE_64), 1) | ||
16 | -EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:/opt/sun/private/lib64:$$ORIGIN/../lib' | ||
17 | +#EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:/opt/sun/private/lib64:$$ORIGIN/../lib' | ||
18 | else | ||
19 | -EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib:/opt/sun/private/lib' | ||
20 | +#EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib:/opt/sun/private/lib' | ||
21 | endif | ||
22 | endif | ||
23 | |||
24 | -- | ||
25 | 1.8.1.2 | ||
26 | |||
diff --git a/meta/recipes-support/nss/files/nss.pc.in b/meta/recipes-support/nss/files/nss.pc.in new file mode 100644 index 0000000000..200f635c65 --- /dev/null +++ b/meta/recipes-support/nss/files/nss.pc.in | |||
@@ -0,0 +1,11 @@ | |||
1 | prefix=OEPREFIX | ||
2 | exec_prefix=OEEXECPREFIX | ||
3 | libdir=OELIBDIR | ||
4 | includedir=OEINCDIR | ||
5 | |||
6 | Name: NSS | ||
7 | Description: Network Security Services | ||
8 | Version: %NSS_VERSION% | ||
9 | Requires: nspr >= %NSPR_VERSION% | ||
10 | Libs: -lssl3 -lsmime3 -lnss3 -lsoftokn3 -lnssutil3 | ||
11 | Cflags: -IOEINCDIR | ||
diff --git a/meta/recipes-support/nss/files/signlibs.sh b/meta/recipes-support/nss/files/signlibs.sh new file mode 100644 index 0000000000..1ec79f4576 --- /dev/null +++ b/meta/recipes-support/nss/files/signlibs.sh | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # signlibs.sh | ||
4 | # | ||
5 | # (c)2010 Wind River Systems, Inc. | ||
6 | # | ||
7 | # regenerates the .chk files for the NSS libraries that require it | ||
8 | # since the ones that are built have incorrect checksums that were | ||
9 | # calculated on the host where they really need to be done on the | ||
10 | # target | ||
11 | |||
12 | CHK_FILES=`find /lib* /usr/lib* -name "*.chk"` | ||
13 | SIGN_BINARY=`which shlibsign` | ||
14 | for I in $CHK_FILES | ||
15 | do | ||
16 | DN=`dirname $I` | ||
17 | BN=`basename $I .chk` | ||
18 | FN=$DN/$BN.so | ||
19 | $SIGN_BINARY -i $FN | ||
20 | done | ||
diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc new file mode 100644 index 0000000000..404deccd8a --- /dev/null +++ b/meta/recipes-support/nss/nss.inc | |||
@@ -0,0 +1,207 @@ | |||
1 | SUMMARY = "Mozilla's SSL and TLS implementation" | ||
2 | DESCRIPTION = "Network Security Services (NSS) is a set of libraries \ | ||
3 | designed to support cross-platform development of \ | ||
4 | security-enabled client and server applications. \ | ||
5 | Applications built with NSS can support SSL v2 and v3, \ | ||
6 | TLS, PKCS 5, PKCS 7, PKCS 11, PKCS 12, S/MIME, X.509 \ | ||
7 | v3 certificates, and other security standards." | ||
8 | HOMEPAGE = "http://www.mozilla.org/projects/security/pki/nss/" | ||
9 | SECTION = "libs" | ||
10 | |||
11 | LICENSE = "MPL-1.1 GPL-2.0 LGPL-2.1" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://nss/lib/freebl/mpi/doc/LICENSE;md5=491f158d09d948466afce85d6f1fe18f \ | ||
14 | file://nss/lib/freebl/mpi/doc/LICENSE-MPL;md5=6bf96825e3d7ce4de25621ae886cc859" | ||
15 | SRC_URI = "\ | ||
16 | file://nss-fix-support-cross-compiling.patch \ | ||
17 | file://nss-no-rpath-for-cross-compiling.patch \ | ||
18 | file://nss-fix-incorrect-shebang-of-perl.patch \ | ||
19 | file://nss-3.15.1-fix-CVE-2013-1741.patch \ | ||
20 | file://nss-3.15.1-fix-CVE-2013-5605.patch \ | ||
21 | " | ||
22 | SRC_URI_append_class-target = "\ | ||
23 | file://nss.pc.in \ | ||
24 | file://signlibs.sh \ | ||
25 | " | ||
26 | inherit siteinfo | ||
27 | PR = "r0" | ||
28 | DEPENDS = "sqlite3 nspr zlib nss-native" | ||
29 | DEPENDS_class-native = "sqlite3-native nspr-native zlib-native" | ||
30 | RDEPENDS_${PN} = "perl" | ||
31 | |||
32 | TD = "${S}/tentative-dist" | ||
33 | TDS = "${S}/tentative-dist-staging" | ||
34 | |||
35 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
36 | |||
37 | do_compile_prepend_class-native() { | ||
38 | export NSPR_INCLUDE_DIR=${STAGING_INCDIR_NATIVE} | ||
39 | export NSPR_LIB_DIR=${STAGING_LIBDIR_NATIVE} | ||
40 | } | ||
41 | |||
42 | do_compile_prepend_class-nativesdk() { | ||
43 | export LDFLAGS="" | ||
44 | } | ||
45 | |||
46 | do_compile() { | ||
47 | export CROSS_COMPILE=1 | ||
48 | export NATIVE_CC="gcc" | ||
49 | export BUILD_OPT=1 | ||
50 | |||
51 | export FREEBL_NO_DEPEND=1 | ||
52 | export FREEBL_LOWHASH=1 | ||
53 | |||
54 | export LIBDIR=${libdir} | ||
55 | export MOZILLA_CLIENT=1 | ||
56 | export NS_USE_GCC=1 | ||
57 | export NSS_USE_SYSTEM_SQLITE=1 | ||
58 | export NSS_ENABLE_ECC=1 | ||
59 | |||
60 | export OS_RELEASE=3.4 | ||
61 | export OS_TARGET=Linux | ||
62 | export OS_ARCH=Linux | ||
63 | |||
64 | if [ "${TARGET_ARCH}" = "powerpc" ]; then | ||
65 | OS_TEST=ppc | ||
66 | elif [ "${TARGET_ARCH}" = "powerpc64" ]; then | ||
67 | OS_TEST=ppc64 | ||
68 | elif [ "${TARGET_ARCH}" = "mips" -o "${TARGET_ARCH}" = "mipsel" -o "${TARGET_ARCH}" = "mips64" -o "${TARGET_ARCH}" = "mips64el" ]; then | ||
69 | OS_TEST=mips | ||
70 | else | ||
71 | OS_TEST="${TARGET_ARCH}" | ||
72 | fi | ||
73 | |||
74 | if [ "${SITEINFO_BITS}" = "64" ]; then | ||
75 | export USE_64=1 | ||
76 | fi | ||
77 | |||
78 | make -C ./nss CCC="${CXX}" \ | ||
79 | OS_TEST=${OS_TEST} \ | ||
80 | } | ||
81 | |||
82 | |||
83 | do_install_prepend_class-nativesdk() { | ||
84 | export LDFLAGS="" | ||
85 | } | ||
86 | |||
87 | do_install() { | ||
88 | export CROSS_COMPILE=1 | ||
89 | export NATIVE_CC="gcc" | ||
90 | export BUILD_OPT=1 | ||
91 | |||
92 | export FREEBL_NO_DEPEND=1 | ||
93 | |||
94 | export LIBDIR=${libdir} | ||
95 | export MOZILLA_CLIENT=1 | ||
96 | export NS_USE_GCC=1 | ||
97 | export NSS_USE_SYSTEM_SQLITE=1 | ||
98 | export NSS_ENABLE_ECC=1 | ||
99 | |||
100 | export OS_RELEASE=3.4 | ||
101 | export OS_TARGET=Linux | ||
102 | export OS_ARCH=Linux | ||
103 | |||
104 | if [ "${TARGET_ARCH}" = "powerpc" ]; then | ||
105 | OS_TEST=ppc | ||
106 | elif [ "${TARGET_ARCH}" = "powerpc64" ]; then | ||
107 | OS_TEST=ppc64 | ||
108 | elif [ "${TARGET_ARCH}" = "mips" -o "${TARGET_ARCH}" = "mipsel" -o "${TARGET_ARCH}" = "mips64" -o "${TARGET_ARCH}" = "mips64el" ]; then | ||
109 | OS_TEST=mips | ||
110 | else | ||
111 | OS_TEST="${TARGET_ARCH}" | ||
112 | fi | ||
113 | if [ "${SITEINFO_BITS}" = "64" ]; then | ||
114 | export USE_64=1 | ||
115 | fi | ||
116 | |||
117 | make -C ./nss \ | ||
118 | CCC="${CXX}" \ | ||
119 | OS_TEST=${OS_TEST} \ | ||
120 | SOURCE_LIB_DIR="${TD}/${libdir}" \ | ||
121 | SOURCE_BIN_DIR="${TD}/${bindir}" \ | ||
122 | install | ||
123 | |||
124 | install -d ${D}/${libdir}/ | ||
125 | for file in ${S}/dist/*.OBJ/lib/*.so; do | ||
126 | echo "Installing `basename $file`..." | ||
127 | cp $file ${D}/${libdir}/ | ||
128 | done | ||
129 | |||
130 | for shared_lib in ${TD}/${libdir}/*.so.*; do | ||
131 | if [ -f $shared_lib ]; then | ||
132 | cp $shared_lib ${D}/${libdir} | ||
133 | ln -sf $(basename $shared_lib) ${D}/${libdir}/$(basename $shared_lib .1oe) | ||
134 | fi | ||
135 | done | ||
136 | for shared_lib in ${TD}/${libdir}/*.so; do | ||
137 | if [ -f $shared_lib -a ! -e ${D}/${libdir}/$shared_lib ]; then | ||
138 | cp $shared_lib ${D}/${libdir} | ||
139 | fi | ||
140 | done | ||
141 | |||
142 | install -d ${D}/${includedir}/nss3 | ||
143 | install -m 644 -t ${D}/${includedir}/nss3 dist/public/nss/* | ||
144 | |||
145 | install -d ${D}/${bindir} | ||
146 | for binary in ${TD}/${bindir}/*; do | ||
147 | install -m 755 -t ${D}/${bindir} $binary | ||
148 | done | ||
149 | } | ||
150 | |||
151 | do_install_append_class-target() { | ||
152 | # Create empty .chk files for the NSS libraries at build time. They could | ||
153 | # be regenerated at target's boot time. | ||
154 | for file in libsoftokn3.chk libfreebl3.chk libnssdbm3.chk; do | ||
155 | touch ${D}/${libdir}/$file | ||
156 | chmod 755 ${D}/${libdir}/$file | ||
157 | done | ||
158 | install -D -m 755 ${WORKDIR}/signlibs.sh ${D}/${bindir}/signlibs.sh | ||
159 | |||
160 | install -d ${D}${libdir}/pkgconfig/ | ||
161 | sed 's/%NSS_VERSION%/${PV}/' ${WORKDIR}/nss.pc.in | sed 's/%NSPR_VERSION%/4.9.2/' > ${D}${libdir}/pkgconfig/nss.pc | ||
162 | sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nss.pc | ||
163 | sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nss.pc | ||
164 | sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nss.pc | ||
165 | sed -i s:OEINCDIR:${includedir}/nss3:g ${D}${libdir}/pkgconfig/nss.pc | ||
166 | |||
167 | # Create a blank certificate | ||
168 | mkdir -p ${D}/etc/pki/nssdb/ | ||
169 | touch ./empty_password | ||
170 | certutil -N -d ${D}/etc/pki/nssdb/ -f ./empty_password | ||
171 | chmod 644 ${D}/etc/pki/nssdb/*.db | ||
172 | rm ./empty_password | ||
173 | } | ||
174 | |||
175 | pkg_postinst_${PN} () { | ||
176 | if [ -n "$D" ]; then | ||
177 | for I in $D/${libdir}/lib*.chk; do | ||
178 | DN=`dirname $I` | ||
179 | BN=`basename $I .chk` | ||
180 | FN=$DN/$BN.so | ||
181 | shlibsign -i $FN | ||
182 | if [ $? -ne 0 ]; then | ||
183 | exit 1 | ||
184 | fi | ||
185 | done | ||
186 | exit 0 | ||
187 | fi | ||
188 | signlibs.sh | ||
189 | } | ||
190 | |||
191 | FILES_${PN} = "\ | ||
192 | ${sysconfdir} \ | ||
193 | ${bindir} \ | ||
194 | ${libdir}/lib*.chk \ | ||
195 | ${libdir}/lib*.so \ | ||
196 | " | ||
197 | FILES_${PN}-dev = "\ | ||
198 | ${libdir}/nss \ | ||
199 | ${libdir}/pkgconfig/* \ | ||
200 | ${includedir}/* \ | ||
201 | " | ||
202 | FILES_${PN}-dbg = "\ | ||
203 | ${bindir}/.debug/* \ | ||
204 | ${libdir}/.debug/* \ | ||
205 | " | ||
206 | |||
207 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/nss/nss_3.15.1.bb b/meta/recipes-support/nss/nss_3.15.1.bb new file mode 100644 index 0000000000..7b06f00cde --- /dev/null +++ b/meta/recipes-support/nss/nss_3.15.1.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require nss.inc | ||
2 | |||
3 | SRC_URI += "\ | ||
4 | http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_15_1_RTM/src/${BPN}-${PV}.tar.gz \ | ||
5 | " | ||
6 | |||
7 | SRC_URI[md5sum] = "fb68f4d210ac9397dd0d3c39c4f938eb" | ||
8 | SRC_URI[sha256sum] = "f994106a33d1f3210f4151bbb3419a1c28fd1cb545caa7dc9afdebd6da626284" | ||
9 | |||
diff --git a/meta/recipes-support/ntp/files/ntp-4.2.4_p6-nano.patch b/meta/recipes-support/ntp/files/ntp-4.2.4_p6-nano.patch new file mode 100644 index 0000000000..cb1e2f7341 --- /dev/null +++ b/meta/recipes-support/ntp/files/ntp-4.2.4_p6-nano.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | --- a/include/ntp_syscall.h.orig 2009-05-19 16:44:55.048156467 -0400 | ||
2 | +++ b/include/ntp_syscall.h 2009-05-19 16:46:19.293323686 -0400 | ||
3 | @@ -14,6 +14,14 @@ | ||
4 | # include <sys/timex.h> | ||
5 | #endif | ||
6 | |||
7 | +#if defined(ADJ_NANO) && !defined(MOD_NANO) | ||
8 | +#define MOD_NANO ADJ_NANO | ||
9 | +#endif | ||
10 | + | ||
11 | +#if defined(ADJ_TAI) && !defined(MOD_TAI) | ||
12 | +#define MOD_TAI ADJ_TAI | ||
13 | +#endif | ||
14 | + | ||
15 | #ifndef NTP_SYSCALLS_LIBC | ||
16 | #ifdef NTP_SYSCALLS_STD | ||
17 | # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t)) | ||
diff --git a/meta/recipes-support/ntp/files/ntp.conf b/meta/recipes-support/ntp/files/ntp.conf new file mode 100644 index 0000000000..a9cc838450 --- /dev/null +++ b/meta/recipes-support/ntp/files/ntp.conf | |||
@@ -0,0 +1,14 @@ | |||
1 | # This is the most basic ntp configuration file | ||
2 | # The driftfile must remain in a place specific to this | ||
3 | # machine - it records the machine specific clock error | ||
4 | driftfile /etc/ntp.drift | ||
5 | # This obtains a random server which will be close | ||
6 | # (in IP terms) to the machine. Add other servers | ||
7 | # as required, or change this. | ||
8 | server time.server.example.com | ||
9 | # Using local hardware clock as fallback | ||
10 | # Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself | ||
11 | server 127.127.1.0 | ||
12 | fudge 127.127.1.0 stratum 14 | ||
13 | # Defining a default security setting | ||
14 | restrict default | ||
diff --git a/meta/recipes-support/ntp/files/ntpd b/meta/recipes-support/ntp/files/ntpd new file mode 100755 index 0000000000..ae50f135d0 --- /dev/null +++ b/meta/recipes-support/ntp/files/ntpd | |||
@@ -0,0 +1,62 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # ntpd init.d script for ntpdc from ntp.isc.org | ||
4 | test -x /usr/bin/ntpd -a -r /etc/ntp.conf || exit 0 | ||
5 | # rcS contains TICKADJ | ||
6 | test -r /etc/default/rcS && . /etc/default/rcS | ||
7 | |||
8 | # Functions to do individual actions | ||
9 | settick(){ | ||
10 | # If TICKADJ is set we *must* adjust it before we start, because the | ||
11 | # driftfile relies on the correct setting | ||
12 | test -n "$TICKADJ" -a -x /usr/bin/tickadj && { | ||
13 | echo -n "Setting tick to $TICKADJ: " | ||
14 | /usr/bin/tickadj "$TICKADJ" | ||
15 | echo "done" | ||
16 | } | ||
17 | } | ||
18 | startdaemon(){ | ||
19 | # The -g option allows ntpd to step the time to correct it just | ||
20 | # once. The daemon will exit if the clock drifts too much after | ||
21 | # this. If ntpd seems to disappear after a while assume TICKADJ | ||
22 | # above is set to a totally incorrect value. | ||
23 | echo -n "Starting ntpd: " | ||
24 | start-stop-daemon --start -x /usr/bin/ntpd -- -p /var/run/ntp.pid "$@" | ||
25 | echo "done" | ||
26 | } | ||
27 | stopdaemon(){ | ||
28 | echo -n "Stopping ntpd: " | ||
29 | start-stop-daemon --stop -p /var/run/ntp.pid | ||
30 | echo "done" | ||
31 | } | ||
32 | |||
33 | case "$1" in | ||
34 | start) | ||
35 | settick | ||
36 | startdaemon -g | ||
37 | ;; | ||
38 | stop) | ||
39 | stopdaemon | ||
40 | ;; | ||
41 | force-reload) | ||
42 | stopdaemon | ||
43 | settick | ||
44 | startdaemon -g | ||
45 | ;; | ||
46 | restart) | ||
47 | # Don't reset the tick here | ||
48 | stopdaemon | ||
49 | startdaemon -g | ||
50 | ;; | ||
51 | reload) | ||
52 | # Must do this by hand, but don't do -g | ||
53 | stopdaemon | ||
54 | startdaemon | ||
55 | ;; | ||
56 | *) | ||
57 | echo "Usage: ntpd { start | stop | restart | reload }" >&2 | ||
58 | exit 1 | ||
59 | ;; | ||
60 | esac | ||
61 | |||
62 | exit 0 | ||
diff --git a/meta/recipes-support/ntp/files/ntpdate b/meta/recipes-support/ntp/files/ntpdate new file mode 100755 index 0000000000..ab0551c5a5 --- /dev/null +++ b/meta/recipes-support/ntp/files/ntpdate | |||
@@ -0,0 +1,54 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/bin | ||
4 | |||
5 | test -x /usr/bin/ntpdate || exit 0 | ||
6 | |||
7 | if test -f /etc/default/ntpdate ; then | ||
8 | . /etc/default/ntpdate | ||
9 | fi | ||
10 | |||
11 | if [ "$NTPSERVERS" = "" ] ; then | ||
12 | if [ "$METHOD" = "" -a "$1" != "silent" ] ; then | ||
13 | echo "Please set NTPSERVERS in /etc/default/ntpdate" | ||
14 | exit 1 | ||
15 | else | ||
16 | exit 0 | ||
17 | fi | ||
18 | fi | ||
19 | |||
20 | # This is a heuristic: The idea is that if a static interface is brought | ||
21 | # up, that is a major event, and we can put in some extra effort to fix | ||
22 | # the system time. Feel free to change this, especially if you regularly | ||
23 | # bring up new network interfaces. | ||
24 | if [ "$METHOD" = static ]; then | ||
25 | OPTS="-b" | ||
26 | fi | ||
27 | |||
28 | if [ "$METHOD" = loopback ]; then | ||
29 | exit 0 | ||
30 | fi | ||
31 | |||
32 | ( | ||
33 | |||
34 | LOCKFILE=/var/lock/ntpdate | ||
35 | |||
36 | # Avoid running more than one at a time | ||
37 | if [ -x /usr/bin/lockfile-create ]; then | ||
38 | lockfile-create $LOCKFILE | ||
39 | lockfile-touch $LOCKFILE & | ||
40 | LOCKTOUCHPID="$!" | ||
41 | fi | ||
42 | |||
43 | if /usr/bin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then | ||
44 | if [ "$UPDATE_HWCLOCK" = "yes" ]; then | ||
45 | hwclock --systohc || : | ||
46 | fi | ||
47 | fi | ||
48 | |||
49 | if [ -x /usr/bin/lockfile-create ] ; then | ||
50 | kill $LOCKTOUCHPID | ||
51 | lockfile-remove $LOCKFILE | ||
52 | fi | ||
53 | |||
54 | ) & | ||
diff --git a/meta/recipes-support/ntp/files/ntpdate.default b/meta/recipes-support/ntp/files/ntpdate.default new file mode 100644 index 0000000000..486b6e07d3 --- /dev/null +++ b/meta/recipes-support/ntp/files/ntpdate.default | |||
@@ -0,0 +1,7 @@ | |||
1 | # Configuration script used by ntpdate-sync script | ||
2 | |||
3 | NTPSERVERS="" | ||
4 | |||
5 | # Set to "yes" to write time to hardware clock on success | ||
6 | UPDATE_HWCLOCK="no" | ||
7 | |||
diff --git a/meta/recipes-support/ntp/files/openssl-check.patch b/meta/recipes-support/ntp/files/openssl-check.patch new file mode 100644 index 0000000000..8b4a6733cd --- /dev/null +++ b/meta/recipes-support/ntp/files/openssl-check.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | Hack OpenSSL check to work when libssl and libcrypto aren't in same dir | ||
2 | |||
3 | Upstream-Status: Inappropriate [config] | ||
4 | |||
5 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
6 | --- | ||
7 | configure | 4 ++-- | ||
8 | m4/ntp_openssl.m4 | 4 ++-- | ||
9 | sntp/configure | 4 ++-- | ||
10 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
11 | |||
12 | diff --git a/configure b/configure | ||
13 | index aae2c01..6a3c15e 100755 | ||
14 | --- a/configure | ||
15 | +++ b/configure | ||
16 | @@ -22868,8 +22868,8 @@ case "$ans" in | ||
17 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
18 | ;; | ||
19 | *) | ||
20 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
21 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
22 | + test -f $i/libssl.so && break | ||
23 | + test -f $i/libssl.a && break | ||
24 | ;; | ||
25 | esac | ||
26 | done | ||
27 | diff --git a/m4/ntp_openssl.m4 b/m4/ntp_openssl.m4 | ||
28 | index 7d9f477..67bdd55 100644 | ||
29 | --- a/m4/ntp_openssl.m4 | ||
30 | +++ b/m4/ntp_openssl.m4 | ||
31 | @@ -41,8 +41,8 @@ case "$ans" in | ||
32 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
33 | ;; | ||
34 | *) | ||
35 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
36 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
37 | + test -f $i/libssl.so && break | ||
38 | + test -f $i/libssl.a && break | ||
39 | ;; | ||
40 | esac | ||
41 | done | ||
42 | diff --git a/sntp/configure b/sntp/configure | ||
43 | index 7782c29..55e82d9 100755 | ||
44 | --- a/sntp/configure | ||
45 | +++ b/sntp/configure | ||
46 | @@ -14810,8 +14810,8 @@ case "$ans" in | ||
47 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
48 | ;; | ||
49 | *) | ||
50 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
51 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
52 | + test -f $i/libssl.so && break | ||
53 | + test -f $i/libssl.a && break | ||
54 | ;; | ||
55 | esac | ||
56 | done | ||
57 | -- | ||
58 | 1.7.1 | ||
59 | |||
diff --git a/meta/recipes-support/ntp/files/tickadj.c.patch b/meta/recipes-support/ntp/files/tickadj.c.patch new file mode 100644 index 0000000000..9ef9de9e1f --- /dev/null +++ b/meta/recipes-support/ntp/files/tickadj.c.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Index: ntp-4.2.2p3-r0/ntp-4.2.2p3/util/tickadj.c | ||
2 | =================================================================== | ||
3 | --- ntp-4.2.2p3/util/tickadj.c 2004-02-25 06:58:33.000000000 +0100 | ||
4 | +++ ntp-4.2.2p3/util/tickadj.c 2007-07-07 01:00:54.000000000 +0200 | ||
5 | @@ -21,7 +21,8 @@ | ||
6 | # include <unistd.h> | ||
7 | #endif /* HAVE_UNISTD_H */ | ||
8 | |||
9 | -#ifdef HAVE___ADJTIMEX /* Linux */ | ||
10 | +/* proper handling here has been moved to upstream ntp bugzilla */ | ||
11 | +#ifdef linux | ||
12 | |||
13 | #include <sys/timex.h> | ||
14 | struct timex txc; | ||
15 | @@ -91,7 +92,7 @@ | ||
16 | } | ||
17 | |||
18 | if (!errflg) { | ||
19 | - if (__adjtimex(&txc) < 0) | ||
20 | + if (adjtimex(&txc) < 0) | ||
21 | perror("adjtimex"); | ||
22 | else if (!quiet) | ||
23 | printf("tick = %ld\ntick_adj = %d\n", | ||
24 | @@ -146,7 +147,7 @@ | ||
25 | #endif | ||
26 | } | ||
27 | |||
28 | - if (__adjtimex(&txc) < 0) | ||
29 | + if (adjtimex(&txc) < 0) | ||
30 | { | ||
31 | perror("adjtimex"); | ||
32 | } | ||
diff --git a/meta/recipes-support/ntp/ntp.inc b/meta/recipes-support/ntp/ntp.inc new file mode 100644 index 0000000000..d93f22d473 --- /dev/null +++ b/meta/recipes-support/ntp/ntp.inc | |||
@@ -0,0 +1,93 @@ | |||
1 | SUMMARY = "Network Time Protocol daemon and utilities" | ||
2 | DESCRIPTION = "The Network Time Protocol (NTP) is used to \ | ||
3 | synchronize the time of a computer client or server to \ | ||
4 | another server or reference time source, such as a radio \ | ||
5 | or satellite receiver or modem." | ||
6 | HOMEPAGE = "http://support.ntp.org" | ||
7 | SECTION = "console/network" | ||
8 | LICENSE = "NTP" | ||
9 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670" | ||
10 | |||
11 | INC_PR = "r3" | ||
12 | |||
13 | SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \ | ||
14 | file://tickadj.c.patch \ | ||
15 | file://ntp-4.2.4_p6-nano.patch \ | ||
16 | file://openssl-check.patch \ | ||
17 | file://ntpd \ | ||
18 | file://ntp.conf \ | ||
19 | file://ntpdate \ | ||
20 | file://ntpdate.default \ | ||
21 | " | ||
22 | |||
23 | inherit autotools update-rc.d | ||
24 | |||
25 | # The ac_cv_header_readline_history is to stop ntpdc depending on either | ||
26 | # readline or curses | ||
27 | EXTRA_OECONF += "--with-net-snmp-config=no --without-ntpsnmpd ac_cv_header_readline_history_h=no" | ||
28 | CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED" | ||
29 | |||
30 | PACKAGECONFIG ??= "" | ||
31 | PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \ | ||
32 | --with-openssl-incdir=${STAGING_INCDIR} \ | ||
33 | --with-crypto, \ | ||
34 | --without-openssl --without-crypto, \ | ||
35 | openssl" | ||
36 | |||
37 | do_install_append() { | ||
38 | install -d ${D}${sysconfdir}/init.d | ||
39 | install -m 644 ${WORKDIR}/ntp.conf ${D}${sysconfdir} | ||
40 | install -m 755 ${WORKDIR}/ntpd ${D}${sysconfdir}/init.d | ||
41 | install -d ${D}${bindir} | ||
42 | install -m 755 ${WORKDIR}/ntpdate ${D}${bindir}/ntpdate-sync | ||
43 | |||
44 | # Fix hardcoded paths in scripts | ||
45 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
46 | sed -i 's!/usr/bin/!${bindir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
47 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
48 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync | ||
49 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${bindir}/ntpdate-sync | ||
50 | |||
51 | install -d ${D}/${sysconfdir}/default | ||
52 | install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate | ||
53 | install -d ${D}/${sysconfdir}/network/if-up.d | ||
54 | ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d | ||
55 | } | ||
56 | |||
57 | PACKAGES += "ntpdate ${PN}-tickadj ${PN}-utils" | ||
58 | # NOTE: you don't need ntpdate, use "ntpd -q -g -x" | ||
59 | |||
60 | # ntp originally includes tickadj. It's split off for inclusion in small firmware images on platforms | ||
61 | # with wonky clocks (e.g. OpenSlug) | ||
62 | RDEPENDS_${PN} = "${PN}-tickadj" | ||
63 | # Handle move from bin to utils package | ||
64 | RPROVIDES_${PN}-utils = "${PN}-bin" | ||
65 | RREPLACES_${PN}-utils = "${PN}-bin" | ||
66 | RCONFLICTS_${PN}-utils = "${PN}-bin" | ||
67 | |||
68 | RSUGGESTS_${PN} = "iana-etc" | ||
69 | |||
70 | FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${sbindir} ${libdir}" | ||
71 | FILES_${PN}-tickadj = "${bindir}/tickadj" | ||
72 | FILES_${PN}-utils = "${bindir}" | ||
73 | FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/network/if-up.d/ntpdate-sync ${bindir}/ntpdate-sync ${sysconfdir}/default/ntpdate" | ||
74 | |||
75 | CONFFILES_${PN} = "${sysconfdir}/ntp.conf" | ||
76 | CONFFILES_ntpdate = "${sysconfdir}/default/ntpdate" | ||
77 | |||
78 | INITSCRIPT_NAME = "ntpd" | ||
79 | # No dependencies, so just go in at the standard level (20) | ||
80 | INITSCRIPT_PARAMS = "defaults" | ||
81 | |||
82 | pkg_postinst_ntpdate() { | ||
83 | if test "x$D" != "x"; then | ||
84 | exit 1 | ||
85 | else | ||
86 | if ! grep -q -s ntpdate /var/spool/cron/root; then | ||
87 | echo "adding crontab" | ||
88 | test -d /var/spool/cron || mkdir -p /var/spool/cron | ||
89 | echo "30 * * * * ${bindir}/ntpdate-sync silent" >> /var/spool/cron/root | ||
90 | fi | ||
91 | fi | ||
92 | } | ||
93 | |||
diff --git a/meta/recipes-support/ntp/ntp_4.2.6p5.bb b/meta/recipes-support/ntp/ntp_4.2.6p5.bb new file mode 100644 index 0000000000..f1e9ecd7a8 --- /dev/null +++ b/meta/recipes-support/ntp/ntp_4.2.6p5.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require ntp.inc | ||
2 | |||
3 | PR = "${INC_PR}.0" | ||
4 | |||
5 | SRC_URI[md5sum] = "00df80a84ec9528fcfb09498075525bc" | ||
6 | SRC_URI[sha256sum] = "d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c" | ||
7 | |||
diff --git a/meta/recipes-support/popt/popt/disable_tests.patch b/meta/recipes-support/popt/popt/disable_tests.patch new file mode 100644 index 0000000000..016cf66a27 --- /dev/null +++ b/meta/recipes-support/popt/popt/disable_tests.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Use of $(top_srcdir) in TESTS is an error which causes | ||
2 | automake-1.13 to abort. Just remove tests. | ||
3 | |||
4 | Upstream-Status: Inappropriate [disable feature] | ||
5 | |||
6 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
7 | diff -Nurd popt-1.16/Makefile.am popt-1.16/Makefile.am | ||
8 | --- popt-1.16/Makefile.am 2010-05-04 23:55:54.000000000 +0300 | ||
9 | +++ popt-1.16/Makefile.am 2013-01-02 13:34:29.540361391 +0200 | ||
10 | @@ -34,11 +34,6 @@ | ||
11 | |||
12 | noinst_SCRIPTS = testit.sh | ||
13 | |||
14 | -TESTS_ENVIRONMENT = \ | ||
15 | -test1="$(top_builddir)/test1" | ||
16 | - | ||
17 | -TESTS = $(top_srcdir)/testit.sh | ||
18 | - | ||
19 | include_HEADERS = popt.h | ||
20 | |||
21 | usrlibdir = $(libdir) | ||
diff --git a/meta/recipes-support/popt/popt/pkgconfig_fix.patch b/meta/recipes-support/popt/popt/pkgconfig_fix.patch new file mode 100644 index 0000000000..0bddbf8c94 --- /dev/null +++ b/meta/recipes-support/popt/popt/pkgconfig_fix.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Install the pkgconfig file into libdir. | ||
4 | |||
5 | --- popt-1.16.orig/Makefile.am 2012-04-26 13:42:54.021139813 +0800 | ||
6 | +++ popt-1.16/Makefile.am 2012-04-26 13:36:03.552096912 +0800 | ||
7 | @@ -47,7 +47,7 @@ | ||
8 | libpopt_la_SOURCES = popt.c poptparse.c poptconfig.c popthelp.c poptint.c | ||
9 | libpopt_la_LDFLAGS = -no-undefined @LTLIBINTL@ @LTLIBICONV@ | ||
10 | |||
11 | -pkgconfigdir = $(prefix)/lib/pkgconfig | ||
12 | +pkgconfigdir = $(libdir)/pkgconfig | ||
13 | pkgconfig_DATA = popt.pc | ||
14 | |||
15 | if HAVE_LD_VERSION_SCRIPT | ||
diff --git a/meta/recipes-support/popt/popt/popt_fix_for_automake-1.12.patch b/meta/recipes-support/popt/popt/popt_fix_for_automake-1.12.patch new file mode 100644 index 0000000000..91bca96a50 --- /dev/null +++ b/meta/recipes-support/popt/popt/popt_fix_for_automake-1.12.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Upstream-Status: pending | ||
2 | |||
3 | This patch avoids this error with automake 1.12: | ||
4 | |||
5 | | configure.ac:49: error: automatic de-ANSI-fication support has been removed | ||
6 | |||
7 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
8 | 2012/05/02 | ||
9 | |||
10 | Index: popt-1.16/configure.ac | ||
11 | =================================================================== | ||
12 | --- popt-1.16.orig/configure.ac | ||
13 | +++ popt-1.16/configure.ac | ||
14 | @@ -46,7 +46,6 @@ AC_GCC_TRADITIONAL | ||
15 | AC_SYS_LARGEFILE | ||
16 | |||
17 | AC_ISC_POSIX | ||
18 | -AM_C_PROTOTYPES | ||
19 | |||
20 | AC_CHECK_HEADERS(float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h) | ||
21 | |||
diff --git a/meta/recipes-support/popt/popt_1.16.bb b/meta/recipes-support/popt/popt_1.16.bb new file mode 100644 index 0000000000..cb13a815e0 --- /dev/null +++ b/meta/recipes-support/popt/popt_1.16.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Library for parsing command line options" | ||
2 | HOMEPAGE = "http://rpm5.org/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d" | ||
7 | PR = "r3" | ||
8 | |||
9 | SRC_URI = "http://rpm5.org/files/popt/popt-${PV}.tar.gz \ | ||
10 | file://pkgconfig_fix.patch \ | ||
11 | file://popt_fix_for_automake-1.12.patch \ | ||
12 | file://disable_tests.patch \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[md5sum] = "3743beefa3dd6247a73f8f7a32c14c33" | ||
16 | SRC_URI[sha256sum] = "e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8" | ||
17 | |||
18 | inherit autotools gettext | ||
19 | |||
20 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner new file mode 100644 index 0000000000..f625f9833a --- /dev/null +++ b/meta/recipes-support/ptest-runner/files/ptest-runner | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | echo "START: $0" | ||
4 | |||
5 | for libdir in /usr/lib* | ||
6 | do | ||
7 | |||
8 | [ ! -d "$libdir" ] && continue | ||
9 | |||
10 | for x in `ls -d $libdir/*/ptest 2>/dev/null` | ||
11 | do | ||
12 | [ ! -f $x/run-ptest ] && continue | ||
13 | [ -h `dirname $x` ] && continue | ||
14 | |||
15 | date "+%Y-%m-%dT%H:%M" | ||
16 | echo "BEGIN: $x" | ||
17 | cd "$x" | ||
18 | ./run-ptest | cat | ||
19 | echo "END: $x" | ||
20 | date "+%Y-%m-%dT%H:%M" | ||
21 | done | ||
22 | done | ||
23 | echo "STOP: $0" | ||
diff --git a/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb b/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb new file mode 100644 index 0000000000..7443811d8c --- /dev/null +++ b/meta/recipes-support/ptest-runner/ptest-runner_1.0.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "A simple shell script to run all installed ptests" | ||
2 | DESCRIPTION = "The ptest-runner package installs a ptest-runner \ | ||
3 | shell script which loops through all installed ptest test suites and \ | ||
4 | runs them in sequence." | ||
5 | HOMEPAGE = "https://wiki.yoctoproject.org/wiki/Ptest" | ||
6 | SRC_URI += "file://ptest-runner" | ||
7 | |||
8 | LICENSE = "MIT" | ||
9 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
10 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
11 | |||
12 | INHIBIT_DEFAULT_DEPS = "1" | ||
13 | |||
14 | do_install () { | ||
15 | mkdir -p ${D}${bindir} | ||
16 | install -m 0755 ${WORKDIR}/ptest-runner ${D}${bindir} | ||
17 | } | ||
18 | |||
19 | do_patch[noexec] = "1" | ||
20 | do_configure[noexec] = "1" | ||
21 | do_compile[noexec] = "1" | ||
22 | do_build[noexec] = "1" | ||
diff --git a/meta/recipes-support/pth/files/pth-add-pkgconfig-support.patch b/meta/recipes-support/pth/files/pth-add-pkgconfig-support.patch new file mode 100644 index 0000000000..67a28ab77a --- /dev/null +++ b/meta/recipes-support/pth/files/pth-add-pkgconfig-support.patch | |||
@@ -0,0 +1,105 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Add pkgconfig support to pth. | ||
4 | |||
5 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
6 | |||
7 | Index: Makefile.in | ||
8 | =========================================================== | ||
9 | --- a/Makefile.in | ||
10 | +++ b/Makefile.in | ||
11 | @@ -47,6 +47,9 @@ datadir = @datadir@ | ||
12 | |||
13 | DESTDIR = | ||
14 | |||
15 | +pkgconfigdir = ${libdir}/pkgconfig | ||
16 | +pkgconfig_DATA = pth.pc | ||
17 | + | ||
18 | ## | ||
19 | ## ____ TOOL DEFINITIONS ___________________________________________ | ||
20 | ## | ||
21 | @@ -216,7 +219,7 @@ test_pthread: test_pthread.o test_common.o libpthread.la | ||
22 | |||
23 | # install the package | ||
24 | install: all-for-install | ||
25 | - @$(MAKE) $(MKFLAGS) install-dirs install-pth @INSTALL_PTHREAD@ | ||
26 | + @$(MAKE) $(MKFLAGS) install-dirs install-pth @INSTALL_PTHREAD@ install-pkgconfigDATA | ||
27 | @touch .done-install >/dev/null 2>&1 || $(TRUE) | ||
28 | @$(MAKE) $(MKFLAGS) what-next | ||
29 | install-dirs: | ||
30 | @@ -227,6 +230,7 @@ install-dirs: | ||
31 | $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1 | ||
32 | $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man3 | ||
33 | $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(datadir)/aclocal | ||
34 | + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(pkgconfigdir) | ||
35 | install-pth: | ||
36 | $(SHTOOL) install -c -m 755 pth-config $(DESTDIR)$(bindir)/pth-config | ||
37 | $(SHTOOL) install -c -m 644 $(S)pth-config.1 $(DESTDIR)$(mandir)/man1/pth-config.1 | ||
38 | @@ -242,12 +246,16 @@ install-pthread: | ||
39 | $(SHTOOL) install -c -m 644 $(S)pthread.3 $(DESTDIR)$(mandir)/man3/pthread.3 | ||
40 | @umask 022; $(LIBTOOL) --mode=install \ | ||
41 | $(SHTOOL) install -c libpthread.la $(DESTDIR)$(libdir)/libpthread.la | ||
42 | +install-pkgconfigDATA: $(pkgconfig_DATA) | ||
43 | + $(SHTOOL) install -c -m 644 $(pkgconfig_DATA) $(DESTDIR)$(pkgconfigdir)/$(pkgconfig_DATA) | ||
44 | |||
45 | # uninstall the package | ||
46 | uninstall: | ||
47 | - @$(MAKE) $(MKFLAGS) @UNINSTALL_PTHREAD@ uninstall-pth uninstall-dirs | ||
48 | + @$(MAKE) $(MKFLAGS) uninstall-pkgconfigDATA @UNINSTALL_PTHREAD@ uninstall-pth uninstall-dirs | ||
49 | @touch .done-uninstall >/dev/null 2>&1 || $(TRUE) | ||
50 | @$(MAKE) $(MKFLAGS) what-next | ||
51 | +uninstall-pkgconfigDATA: | ||
52 | + $(RM) $(DESTDIR)$(pkgconfigdir)/$(pkgconfig_DATA) | ||
53 | uninstall-pthread: | ||
54 | $(RM) $(DESTDIR)$(bindir)/pthread-config | ||
55 | $(RM) $(DESTDIR)$(mandir)/man1/pthread-config.1 | ||
56 | @@ -271,6 +279,7 @@ uninstall-dirs: | ||
57 | -$(RMDIR) $(DESTDIR)$(includedir) >/dev/null 2>&1 || $(TRUE) | ||
58 | -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE) | ||
59 | -$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE) | ||
60 | + -$(RMDIR) $(DESTDIR)$(pkgconfigdir) > /dev/null 2>&1 ||$(TRUE) | ||
61 | |||
62 | # strip down the source tree to its minimum | ||
63 | striptease: | ||
64 | Index: configure.ac | ||
65 | =========================================================== | ||
66 | --- a/configure.ac | ||
67 | +++ b/configure.ac | ||
68 | @@ -656,6 +656,13 @@ pth_acmac.h dnl | ||
69 | chmod +rx pthread-config | ||
70 | chmod +rx pth-config | ||
71 | )dnl | ||
72 | + | ||
73 | +PTH_VERSION=`echo $PTH_VERSION_STR | cut -d' ' -f1` | ||
74 | +AC_SUBST(PTH_VERSION) | ||
75 | + | ||
76 | +AC_CONFIG_FILES([pth.pc]) | ||
77 | +AC_OUTPUT | ||
78 | + | ||
79 | if test ".$enable_pthread" = .no; then | ||
80 | rm -f pthread-config | ||
81 | rm -f pthread.h | ||
82 | Index: pth.pc.in | ||
83 | =========================================================== | ||
84 | --- /dev/null | ||
85 | +++ b/pth.pc.in | ||
86 | @@ -0,0 +1,16 @@ | ||
87 | +prefix=@prefix@ | ||
88 | +exec_prefix=@exec_prefix@ | ||
89 | +libdir=@libdir@ | ||
90 | +includedir=@includedir@ | ||
91 | +bindir=@bindir@ | ||
92 | +mandir=@mandir@ | ||
93 | +datadir=@datadir@ | ||
94 | +acdir=@datadir@/aclocal | ||
95 | + | ||
96 | +Name: pth | ||
97 | +Description: GNU Portable Threads | ||
98 | +Requires: | ||
99 | +Version: @PTH_VERSION@ | ||
100 | +Libs: -L${libdir} -lpth | ||
101 | +Libs.private: | ||
102 | +Cflags: -I${includedir} | ||
103 | -- | ||
104 | 1.7.5.4 | ||
105 | |||
diff --git a/meta/recipes-support/pth/pth_2.0.7.bb b/meta/recipes-support/pth/pth_2.0.7.bb new file mode 100644 index 0000000000..4a85332035 --- /dev/null +++ b/meta/recipes-support/pth/pth_2.0.7.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "GNU Portable Threads library" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/pth/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;beginline=12;endline=15;md5=a48af114a80c222cafd37f24370a77b1" | ||
6 | PR = "r3" | ||
7 | |||
8 | python __anonymous () { | ||
9 | import re | ||
10 | uc_os = (re.match('.*uclibc*', d.getVar('TARGET_OS', True)) != None) | ||
11 | if uc_os: | ||
12 | raise bb.parse.SkipPackage("incompatible with uClibc") | ||
13 | } | ||
14 | |||
15 | SRC_URI = "${GNU_MIRROR}/pth/pth-${PV}.tar.gz \ | ||
16 | file://pth-add-pkgconfig-support.patch" | ||
17 | |||
18 | SRC_URI[md5sum] = "9cb4a25331a4c4db866a31cbe507c793" | ||
19 | SRC_URI[sha256sum] = "72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232" | ||
20 | |||
21 | PARALLEL_MAKE="" | ||
22 | |||
23 | inherit autotools binconfig pkgconfig | ||
24 | |||
25 | do_configure() { | ||
26 | ( cd ${S}; gnu-configize ) | ||
27 | ( cd ${S}; autoconf ) | ||
28 | oe_runconf | ||
29 | } | ||
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info.inc b/meta/recipes-support/shared-mime-info/shared-mime-info.inc new file mode 100644 index 0000000000..6eedb6d3fd --- /dev/null +++ b/meta/recipes-support/shared-mime-info/shared-mime-info.inc | |||
@@ -0,0 +1,36 @@ | |||
1 | SUMMARY = "Shared MIME type database and specification" | ||
2 | HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info" | ||
3 | SECTION = "base" | ||
4 | |||
5 | LICENSE = "LGPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
7 | |||
8 | DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native" | ||
9 | DEPENDS_class-native = "libxml2-native intltool-native glib-2.0-native" | ||
10 | |||
11 | SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.xz" | ||
12 | |||
13 | inherit autotools pkgconfig gettext | ||
14 | |||
15 | EXTRA_OECONF = "--disable-update-mimedb" | ||
16 | |||
17 | FILES_${PN} += "${datadir}/mime" | ||
18 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" | ||
19 | |||
20 | # freedesktop.org.xml is only required when updating the mime database, | ||
21 | # package it separately | ||
22 | PACKAGES =+ "shared-mime-info-data" | ||
23 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" | ||
24 | RDEPENDS_shared-mime-info-data = "shared-mime-info" | ||
25 | |||
26 | do_install () { | ||
27 | autotools_do_install | ||
28 | |||
29 | update-mime-database ${D}${datadir}/mime | ||
30 | } | ||
31 | |||
32 | do_install_class-native () { | ||
33 | autotools_do_install | ||
34 | } | ||
35 | |||
36 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info/install-data-hook.patch b/meta/recipes-support/shared-mime-info/shared-mime-info/install-data-hook.patch new file mode 100644 index 0000000000..3c9f1ea438 --- /dev/null +++ b/meta/recipes-support/shared-mime-info/shared-mime-info/install-data-hook.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | fix shared-mime-info build race condition | ||
2 | |||
3 | The definition of install-data-hook in Makefile.am leads | ||
4 | to multiple, overlapping, executions of install-binPROGRAMS | ||
5 | target. We modify the definition to avoid that. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Joe Slater <jslater@windriver.com> | ||
10 | |||
11 | --- a/Makefile.am | ||
12 | +++ b/Makefile.am | ||
13 | @@ -44,7 +44,9 @@ $(pkgconfig_DATA): config.status | ||
14 | @INTLTOOL_XML_RULE@ | ||
15 | @INTLTOOL_DESKTOP_RULE@ | ||
16 | |||
17 | -install-data-hook: install-binPROGRAMS | ||
18 | +# do NOT make this dependent on anything! | ||
19 | +# | ||
20 | +install-data-hook: | ||
21 | if ENABLE_UPDATE_MIMEDB | ||
22 | $(DESTDIR)"$(bindir)/update-mime-database" -V "$(DESTDIR)$(datadir)/mime" | ||
23 | endif | ||
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info/parallelmake.patch b/meta/recipes-support/shared-mime-info/shared-mime-info/parallelmake.patch new file mode 100644 index 0000000000..84c4d03731 --- /dev/null +++ b/meta/recipes-support/shared-mime-info/shared-mime-info/parallelmake.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | The Makefile used by shared-mime-info is one big race with the SUBDIRS | ||
2 | option and the dependency specifically calling make all combining to | ||
3 | create multiple make instances all of which may try and build targets | ||
4 | like update-mime-database. | ||
5 | |||
6 | This patch removes those options meaning make can correctly identify | ||
7 | dependencies and stop itself racing itself. | ||
8 | |||
9 | RP 10/10/2011 | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
13 | |||
14 | Index: shared-mime-info-1.0/Makefile.am | ||
15 | =================================================================== | ||
16 | --- shared-mime-info-1.0.orig/Makefile.am | ||
17 | +++ shared-mime-info-1.0/Makefile.am | ||
18 | @@ -1,5 +1,3 @@ | ||
19 | -SUBDIRS=. po | ||
20 | - | ||
21 | AM_CPPFLAGS = $(ALL_CFLAGS) | ||
22 | |||
23 | packagesdir = $(datadir)/mime/packages | ||
24 | @@ -72,8 +70,7 @@ uninstall-hook: | ||
25 | |||
26 | all: $(defaultmakedeps) | ||
27 | |||
28 | -create-pot: | ||
29 | - $(AM_V_GEN) $(MAKE) -C po shared-mime-info.pot | ||
30 | +create-pot: po | ||
31 | |||
32 | check: create-pot freedesktop.org.xml update-mime-database check-translations | ||
33 | if test -e $(top_builddir)/freedesktop.org.xml; then \ | ||
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info_1.2.bb b/meta/recipes-support/shared-mime-info/shared-mime-info_1.2.bb new file mode 100644 index 0000000000..11fd6ded64 --- /dev/null +++ b/meta/recipes-support/shared-mime-info/shared-mime-info_1.2.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require shared-mime-info.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "8f90f3f2b8478fa47e70678d34013f99" | ||
4 | SRC_URI[sha256sum] = "a5516ae241b95a948a6749b1cbf65dc20c3bb563a73cc7bedb7065933788bb78" | ||
5 | |||
6 | SRC_URI =+ "file://parallelmake.patch \ | ||
7 | file://install-data-hook.patch" | ||
diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc new file mode 100644 index 0000000000..2e3791bfc3 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3.inc | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "Embeddable SQL database engine" | ||
2 | HOMEPAGE = "http://www.sqlite.org" | ||
3 | SECTION = "libs" | ||
4 | DEPENDS = "readline ncurses" | ||
5 | DEPENDS_class-native = "" | ||
6 | LICENSE = "PD" | ||
7 | |||
8 | inherit autotools pkgconfig | ||
9 | |||
10 | EXTRA_OECONF = "--enable-shared --enable-threadsafe" | ||
11 | EXTRA_OECONF_class-native = "--enable-shared --enable-threadsafe --disable-readline" | ||
12 | export config_BUILD_CC = "${BUILD_CC}" | ||
13 | export config_BUILD_CFLAGS = "${BUILD_CFLAGS}" | ||
14 | export config_BUILD_LIBS = "${BUILD_LDFLAGS}" | ||
15 | export config_TARGET_CC = "${CC}" | ||
16 | export config_TARGET_LINK = "${CCLD}" | ||
17 | export config_TARGET_CFLAGS = "${CFLAGS}" | ||
18 | export config_TARGET_LFLAGS = "${LDFLAGS}" | ||
19 | |||
20 | # pread() is in POSIX.1-2001 so any reasonable system must surely support it | ||
21 | BUILD_CFLAGS += "-DUSE_PREAD" | ||
22 | TARGET_CFLAGS += "-DUSE_PREAD" | ||
23 | |||
24 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" | ||
25 | |||
26 | FILES_${PN} = "${bindir}/*" | ||
27 | FILES_lib${BPN} = "${libdir}/*.so.*" | ||
28 | FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \ | ||
29 | ${libdir}/pkgconfig ${includedir}" | ||
30 | FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}" | ||
31 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" | ||
32 | AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}" | ||
33 | |||
34 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-support/sqlite/sqlite3_3.8.3.1.bb b/meta/recipes-support/sqlite/sqlite3_3.8.3.1.bb new file mode 100644 index 0000000000..4f15f5d3d3 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3_3.8.3.1.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | require sqlite3.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0" | ||
4 | |||
5 | def sqlite_download_version(d): | ||
6 | pvsplit = d.getVar('PV', True).split('.') | ||
7 | return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]]) | ||
8 | |||
9 | PE = "1" | ||
10 | SQLITE_PV = "${@sqlite_download_version(d)}" | ||
11 | SRC_URI = "http://www.sqlite.org/2014/sqlite-autoconf-${SQLITE_PV}.tar.gz" | ||
12 | |||
13 | SRC_URI[md5sum] = "509ff98d8dc9729b618b7e96612079c6" | ||
14 | SRC_URI[sha256sum] = "de5dc216e9289fabf027f78dbbface32ffc8c6341b7d841d0814b1a452ffdb8c" | ||
15 | |||
16 | S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}" | ||
17 | |||
18 | # Provide column meta-data API | ||
19 | BUILD_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" | ||
20 | TARGET_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" | ||
21 | |||
diff --git a/meta/recipes-support/taglib/taglib_1.8.bb b/meta/recipes-support/taglib/taglib_1.8.bb new file mode 100644 index 0000000000..7327bc8c84 --- /dev/null +++ b/meta/recipes-support/taglib/taglib_1.8.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Library for reading and editing the meta-data of popular audio formats" | ||
2 | SECTION = "libs/multimedia" | ||
3 | HOMEPAGE = "http://developer.kde.org/~wheeler/taglib.html" | ||
4 | LICENSE = "LGPLv2.1 | MPL-1" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \ | ||
6 | file://COPYING.MPL;md5=bfe1f75d606912a4111c90743d6c7325 \ | ||
7 | file://taglib/audioproperties.h;beginline=1;endline=24;md5=9df2c7399519b7310568a7c55042ecee" | ||
8 | |||
9 | DEPENDS = "zlib" | ||
10 | |||
11 | PR = "r1" | ||
12 | # http://developer.kde.org/~wheeler/files/src/taglib-${PV}.tar.gz | ||
13 | SRC_URI = "https://github.com/downloads/taglib/taglib/taglib-1.8.tar.gz \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "dcb8bd1b756f2843e18b1fdf3aaeee15" | ||
17 | SRC_URI[sha256sum] = "66d33481703c90236a0a9d1c38fd81b584ca7109ded049225f5463dcaffc209a" | ||
18 | |||
19 | S = "${WORKDIR}/taglib-${PV}" | ||
20 | |||
21 | inherit cmake pkgconfig binconfig | ||
22 | |||
23 | PACKAGES =+ "${PN}-c" | ||
24 | FILES_${PN}-c = "${libdir}/libtag_c.so.*" | ||
25 | |||
26 | EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib', True).replace('lib', '')}" | ||
27 | |||
28 | do_configure_prepend () { | ||
29 | rm -f ${S}/admin/ltmain.sh | ||
30 | rm -f ${S}/admin/libtool.m4.in | ||
31 | } | ||
32 | |||
diff --git a/meta/recipes-support/user-creation/xuser-account_0.1.bb b/meta/recipes-support/user-creation/xuser-account_0.1.bb new file mode 100644 index 0000000000..77ba97dbf1 --- /dev/null +++ b/meta/recipes-support/user-creation/xuser-account_0.1.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "Creates an 'xuser' account used for running X11" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | |||
5 | SRC_URI = "" | ||
6 | |||
7 | inherit allarch useradd | ||
8 | |||
9 | do_configure() { | ||
10 | : | ||
11 | } | ||
12 | |||
13 | do_compile() { | ||
14 | : | ||
15 | } | ||
16 | |||
17 | do_install() { | ||
18 | : | ||
19 | } | ||
20 | |||
21 | USERADD_PACKAGES = "${PN}" | ||
22 | GROUPADD_PARAM_${PN} = "--system shutdown" | ||
23 | USERADD_PARAM_${PN} = "--create-home \ | ||
24 | --groups video,tty,audio,input,shutdown,disk \ | ||
25 | --user-group xuser" | ||
26 | |||
27 | ALLOW_EMPTY_${PN} = "1" | ||
diff --git a/meta/recipes-support/vte/vte-0.28.2/obsolete_automake_macros.patch b/meta/recipes-support/vte/vte-0.28.2/obsolete_automake_macros.patch new file mode 100644 index 0000000000..6763d37540 --- /dev/null +++ b/meta/recipes-support/vte/vte-0.28.2/obsolete_automake_macros.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=691545] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd vte-0.28.2/gnome-pty-helper/configure.in vte-0.28.2/gnome-pty-helper/configure.in | ||
5 | --- vte-0.28.2/gnome-pty-helper/configure.in 2010-07-15 20:08:44.000000000 +0300 | ||
6 | +++ vte-0.28.2/gnome-pty-helper/configure.in 2013-01-11 14:50:34.971027440 +0200 | ||
7 | @@ -8,7 +8,6 @@ | ||
8 | AC_ISC_POSIX | ||
9 | AC_PROG_CC | ||
10 | AC_STDC_HEADERS | ||
11 | -AM_PROG_CC_STDC | ||
12 | |||
13 | if test -z "$enable_maintainer_mode"; then | ||
14 | enable_maintainer_mode=yes | ||
diff --git a/meta/recipes-support/vte/vte.inc b/meta/recipes-support/vte/vte.inc new file mode 100644 index 0000000000..4081a7fac6 --- /dev/null +++ b/meta/recipes-support/vte/vte.inc | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "Virtual terminal emulator GTK+ widget library" | ||
2 | BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte" | ||
3 | LICENSE = "LGPLv2.1+" | ||
4 | DEPENDS = " glib-2.0 gtk+ intltool-native ncurses gobject-introspection-stub" | ||
5 | RDEPENDS_libvte = "vte-termcap" | ||
6 | |||
7 | inherit gnome gtk-doc | ||
8 | |||
9 | EXTRA_OECONF = "--disable-python --disable-introspection" | ||
10 | |||
11 | PACKAGES =+ "libvte vte-termcap" | ||
12 | FILES_libvte = "${libdir}/*.so.* ${libexecdir}/gnome-pty-helper" | ||
13 | FILES_${PN}-dbg =+ "${libexecdir}/.debug ${prefix}/src ${bindir}/.debug \ | ||
14 | ${libdir}/.debug" | ||
15 | FILES_vte-termcap = "${datadir}/vte/termcap-0.0" | ||
16 | |||
diff --git a/meta/recipes-support/vte/vte_0.28.2.bb b/meta/recipes-support/vte/vte_0.28.2.bb new file mode 100644 index 0000000000..485187df82 --- /dev/null +++ b/meta/recipes-support/vte/vte_0.28.2.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require vte.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | ||
4 | |||
5 | PR = "r6" | ||
6 | |||
7 | SRC_URI += "file://obsolete_automake_macros.patch" | ||
8 | |||
9 | SRC_URI[archive.md5sum] = "f07a4bf943194f94b7f142db8f7f36dc" | ||
10 | SRC_URI[archive.sha256sum] = "8d04e202b617373dfb47689e5e628febe2c58840b34cccc4af4feb88c48df903" | ||