diff options
Diffstat (limited to 'meta/recipes-devtools/automake')
7 files changed, 294 insertions, 0 deletions
diff --git a/meta/recipes-devtools/automake/automake.inc b/meta/recipes-devtools/automake/automake.inc new file mode 100644 index 0000000000..507c062e4a --- /dev/null +++ b/meta/recipes-devtools/automake/automake.inc | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "A GNU tool for automatically generating Makefiles." | ||
2 | DESCRIPTION = "Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding \ | ||
3 | Standards. Automake requires the use of Autoconf." | ||
4 | LICENSE = "GPLv2" | ||
5 | HOMEPAGE = "http://www.gnu.org/software/automake/" | ||
6 | SECTION = "devel" | ||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/automake/automake-${PV}.tar.gz" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | do_configure() { | ||
13 | oe_runconf | ||
14 | } | ||
15 | |||
16 | export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH', True))}" | ||
17 | |||
18 | FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" | ||
diff --git a/meta/recipes-devtools/automake/automake/buildtest.patch b/meta/recipes-devtools/automake/automake/buildtest.patch new file mode 100644 index 0000000000..1dd5337849 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/buildtest.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Split "check-TESTS" into a buildtest and runtest target, so that they can | ||
2 | be run separately. | ||
3 | |||
4 | Signed-off-by: Björn Stenberg <bjst@enea.com> | ||
5 | Upstream-Status: Pending | ||
6 | |||
7 | --- a/lib/am/check.am 2012-11-14 13:46:16.335475995 +0100 | ||
8 | +++ b/lib/am/check.am 2012-08-13 18:40:12.000000000 +0200 | ||
9 | @@ -44,7 +44,7 @@ | ||
10 | am__tty_colors = $(am__tty_colors_dummy) | ||
11 | endif !%?COLOR% | ||
12 | |||
13 | -.PHONY: check-TESTS | ||
14 | +.PHONY: check-TESTS buildtest-TESTS runtest-TESTS | ||
15 | |||
16 | if %?PARALLEL_TESTS% | ||
17 | |||
18 | @@ -465,7 +465,14 @@ | ||
19 | |||
20 | else !%?PARALLEL_TESTS% | ||
21 | |||
22 | -check-TESTS: $(TESTS) | ||
23 | +AM_RECURSIVE_TARGETS += buildtest runtest | ||
24 | + | ||
25 | +buildtest-TESTS: $(TESTS) | ||
26 | + | ||
27 | +check-TESTS: buildtest-TESTS | ||
28 | + $(MAKE) $(AM_MAKEFLAGS) runtest-TESTS | ||
29 | + | ||
30 | +runtest-TESTS: | ||
31 | @failed=0; all=0; xfail=0; xpass=0; skip=0; \ | ||
32 | srcdir=$(srcdir); export srcdir; \ | ||
33 | ## Make sure Solaris VPATH-expands all members of this list, even | ||
diff --git a/meta/recipes-devtools/automake/automake/path_prog_fixes.patch b/meta/recipes-devtools/automake/automake/path_prog_fixes.patch new file mode 100644 index 0000000000..9ee0672f70 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/path_prog_fixes.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | --- | ||
4 | Makefile.am | 3 ++- | ||
5 | Makefile.in | 3 ++- | ||
6 | aclocal.in | 4 ++-- | ||
7 | automake.in | 6 ++++-- | ||
8 | 4 files changed, 10 insertions(+), 6 deletions(-) | ||
9 | |||
10 | Index: automake-1.12.1/aclocal.in | ||
11 | =================================================================== | ||
12 | --- automake-1.12.1.orig/aclocal.in | ||
13 | +++ automake-1.12.1/aclocal.in | ||
14 | @@ -1,8 +1,8 @@ | ||
15 | -#!@PERL@ -w | ||
16 | +#!@bindir@/env perl | ||
17 | # -*- perl -*- | ||
18 | # @configure_input@ | ||
19 | |||
20 | -eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' | ||
21 | +eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac' | ||
22 | if 0; | ||
23 | |||
24 | # aclocal - create aclocal.m4 by scanning configure.ac | ||
25 | Index: automake-1.12.1/automake.in | ||
26 | =================================================================== | ||
27 | --- automake-1.12.1.orig/automake.in | ||
28 | +++ automake-1.12.1/automake.in | ||
29 | @@ -1,8 +1,10 @@ | ||
30 | -#!@PERL@ -w | ||
31 | +#!@bindir@/env perl | ||
32 | # -*- perl -*- | ||
33 | # @configure_input@ | ||
34 | |||
35 | -eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' | ||
36 | +use warnings; | ||
37 | + | ||
38 | +eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac' | ||
39 | if 0; | ||
40 | |||
41 | # automake - create Makefile.in from Makefile.am | ||
diff --git a/meta/recipes-devtools/automake/automake/prefer-cpio-over-pax-for-ustar-archives.patch b/meta/recipes-devtools/automake/automake/prefer-cpio-over-pax-for-ustar-archives.patch new file mode 100644 index 0000000000..4627855a1c --- /dev/null +++ b/meta/recipes-devtools/automake/automake/prefer-cpio-over-pax-for-ustar-archives.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | When the user has a UID or GID that is larger than the ustar format | ||
2 | supports, pax does not error out gracefully in some cases (FC13). In | ||
3 | this case cpio does. | ||
4 | |||
5 | See for more details: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8343 | ||
6 | |||
7 | Additionally drop tar.m4 out of that part of the Makefile or we end up in | ||
8 | a fatal attempt to regen loop: | ||
9 | |||
10 | CDPATH="${ZSH_VERSION+.}:" && cd . && perllibdir="automake-1.11.1/lib:./lib" "automake-1.11.1/aclocal" --acdir=m4 -I m4 | ||
11 | /bin/sh: automake-1.11.1/aclocal: No such file or directory | ||
12 | make: *** [aclocal.m4] Error 127 | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Tom Rini <tom_rini@mentor.com> | ||
17 | |||
18 | Updated for version 1.11.3: | ||
19 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
20 | Date: 2011/03/14 | ||
21 | |||
22 | Index: automake-1.11.3/m4/tar.m4 | ||
23 | =================================================================== | ||
24 | --- automake-1.11.3.orig/m4/tar.m4 2012-01-31 03:41:18.000000000 -0800 | ||
25 | +++ automake-1.11.3/m4/tar.m4 2012-03-14 17:36:11.901303777 -0700 | ||
26 | @@ -31,7 +31,7 @@ m4_if([$1], [v7], | ||
27 | [m4_fatal([Unknown tar format])]) | ||
28 | AC_MSG_CHECKING([how to create a $1 tar archive]) | ||
29 | # Loop over all known methods to create a tar archive until one works. | ||
30 | -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | ||
31 | +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) cpio pax none' | ||
32 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | ||
33 | # Do not fold the above two line into one, because Tru64 sh and | ||
34 | # Solaris sh will not grok spaces in the rhs of `-'. | ||
35 | Index: automake-1.11.3/Makefile.in | ||
36 | =================================================================== | ||
37 | --- automake-1.11.3.orig/Makefile.in 2012-02-01 02:37:59.000000000 -0800 | ||
38 | +++ automake-1.11.3/Makefile.in 2012-03-14 17:38:03.530869197 -0700 | ||
39 | @@ -62,7 +62,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a | ||
40 | $(top_srcdir)/m4/options.m4 $(top_srcdir)/m4/runlog.m4 \ | ||
41 | $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/silent.m4 \ | ||
42 | $(top_srcdir)/m4/strip.m4 $(top_srcdir)/m4/substnot.m4 \ | ||
43 | - $(top_srcdir)/m4/tar.m4 $(top_srcdir)/configure.ac | ||
44 | + $(top_srcdir)/configure.ac | ||
45 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
46 | $(ACLOCAL_M4) | ||
47 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | ||
diff --git a/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch b/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch new file mode 100644 index 0000000000..f8334a7212 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | * OE-Core's python creates the same binary output | ||
4 | for both pyc and pyo, so disable the creation of | ||
5 | pyc files by automake. | ||
6 | |||
7 | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> | ||
8 | |||
9 | Updated for automake-1.12.6 | ||
10 | |||
11 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
12 | |||
13 | diff -Nurd automake-1.12.6/lib/py-compile automake-1.12.6/lib/py-compile | ||
14 | --- automake-1.12.6/lib/py-compile 2012-12-13 21:57:31.000000000 +0200 | ||
15 | +++ automake-1.12.6/lib/py-compile 2012-12-27 19:34:01.426015140 +0200 | ||
16 | @@ -115,26 +115,6 @@ | ||
17 | filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" | ||
18 | fi | ||
19 | |||
20 | -$PYTHON -c " | ||
21 | -import sys, os, py_compile, imp | ||
22 | - | ||
23 | -files = '''$files''' | ||
24 | - | ||
25 | -sys.stdout.write('Byte-compiling python modules...\n') | ||
26 | -for file in files.split(): | ||
27 | - $pathtrans | ||
28 | - $filetrans | ||
29 | - if not os.path.exists(filepath) or not (len(filepath) >= 3 | ||
30 | - and filepath[-3:] == '.py'): | ||
31 | - continue | ||
32 | - sys.stdout.write(file) | ||
33 | - sys.stdout.flush() | ||
34 | - if hasattr(imp, 'get_tag'): | ||
35 | - py_compile.compile(filepath, imp.cache_from_source(filepath), path) | ||
36 | - else: | ||
37 | - py_compile.compile(filepath, filepath + 'c', path) | ||
38 | -sys.stdout.write('\n')" || exit $? | ||
39 | - | ||
40 | # this will fail for python < 1.5, but that doesn't matter ... | ||
41 | $PYTHON -O -c " | ||
42 | import sys, os, py_compile, imp | ||
diff --git a/meta/recipes-devtools/automake/automake/python-libdir.patch b/meta/recipes-devtools/automake/automake/python-libdir.patch new file mode 100644 index 0000000000..47541bdedc --- /dev/null +++ b/meta/recipes-devtools/automake/automake/python-libdir.patch | |||
@@ -0,0 +1,65 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | Signed-off-by: Kumar Gala <galak@kernel.crashing.org> | ||
4 | |||
5 | Updated for automake-1.12.6 | ||
6 | |||
7 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
8 | |||
9 | diff -Nurd automake-1.12.6/m4/python.m4 automake-1.12.6/m4/python.m4 | ||
10 | --- automake-1.12.6/m4/python.m4 2012-12-13 22:02:25.000000000 +0200 | ||
11 | +++ automake-1.12.6/m4/python.m4 2012-12-27 17:40:26.558164660 +0200 | ||
12 | @@ -91,12 +91,13 @@ | ||
13 | [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) | ||
14 | AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) | ||
15 | |||
16 | - dnl Use the values of $prefix and $exec_prefix for the corresponding | ||
17 | - dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made | ||
18 | + dnl Use the values of $prefix, $libdir and $exec_prefix for the corresponding | ||
19 | + dnl values of PYTHON_PREFIX PYTHON_LIB_PREFIX, and PYTHON_EXEC_PREFIX. These are made | ||
20 | dnl distinct variables so they can be overridden if need be. However, | ||
21 | dnl general consensus is that you shouldn't need this ability. | ||
22 | |||
23 | AC_SUBST([PYTHON_PREFIX], ['${prefix}']) | ||
24 | + AC_SUBST([PYTHON_LIB_PREFIX], ['${libdir}']) | ||
25 | AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) | ||
26 | |||
27 | dnl At times (like when building shared libraries) you may want | ||
28 | @@ -148,7 +149,8 @@ | ||
29 | else: | ||
30 | from distutils import sysconfig | ||
31 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') | ||
32 | -sys.stdout.write(sitedir)"` | ||
33 | +sys.stdout.write(sitedir)" || | ||
34 | + echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"` | ||
35 | case $am_cv_python_pythondir in | ||
36 | $am_py_prefix*) | ||
37 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` | ||
38 | @@ -158,7 +160,7 @@ | ||
39 | case $am_py_prefix in | ||
40 | /usr|/System*) ;; | ||
41 | *) | ||
42 | - am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages | ||
43 | + am_cv_python_pythondir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages | ||
44 | ;; | ||
45 | esac | ||
46 | ;; | ||
47 | @@ -190,7 +192,8 @@ | ||
48 | else: | ||
49 | from distutils import sysconfig | ||
50 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') | ||
51 | -sys.stdout.write(sitedir)"` | ||
52 | +sys.stdout.write(sitedir)" || | ||
53 | + echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"` | ||
54 | case $am_cv_python_pyexecdir in | ||
55 | $am_py_exec_prefix*) | ||
56 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` | ||
57 | @@ -200,7 +203,7 @@ | ||
58 | case $am_py_exec_prefix in | ||
59 | /usr|/System*) ;; | ||
60 | *) | ||
61 | - am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages | ||
62 | + am_cv_python_pyexecdir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages | ||
63 | ;; | ||
64 | esac | ||
65 | ;; | ||
diff --git a/meta/recipes-devtools/automake/automake_1.12.6.bb b/meta/recipes-devtools/automake/automake_1.12.6.bb new file mode 100644 index 0000000000..549051bc7b --- /dev/null +++ b/meta/recipes-devtools/automake/automake_1.12.6.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | require automake.inc | ||
2 | LICENSE="GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
4 | DEPENDS_class-native = "autoconf-native" | ||
5 | |||
6 | RDEPENDS_${PN} += "\ | ||
7 | autoconf \ | ||
8 | perl \ | ||
9 | perl-module-bytes \ | ||
10 | perl-module-data-dumper \ | ||
11 | perl-module-strict \ | ||
12 | perl-module-text-parsewords \ | ||
13 | perl-module-thread-queue \ | ||
14 | perl-module-threads \ | ||
15 | perl-module-vars " | ||
16 | |||
17 | RDEPENDS_${PN}_class-native = "autoconf-native perl-native-runtime" | ||
18 | |||
19 | PATHFIXPATCH = "file://path_prog_fixes.patch" | ||
20 | PATHFIXPATCH_class-native = "" | ||
21 | PATHFIXPATCH_class-nativesdk = "" | ||
22 | |||
23 | SRC_URI += "${PATHFIXPATCH} \ | ||
24 | file://prefer-cpio-over-pax-for-ustar-archives.patch \ | ||
25 | file://python-libdir.patch \ | ||
26 | file://py-compile-compile-only-optimized-byte-code.patch \ | ||
27 | file://buildtest.patch" | ||
28 | |||
29 | SRC_URI[md5sum] = "199d39ece2e6070d64ac20d45ac86026" | ||
30 | SRC_URI[sha256sum] = "0cbe570db487908e70af7119da85ba04f7e28656b26f717df0265ae08defd9ef" | ||
31 | |||
32 | PR = "r0" | ||
33 | |||
34 | do_install_append () { | ||
35 | install -d ${D}${datadir} | ||
36 | |||
37 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
38 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
39 | for i in aclocal aclocal-1.12 automake automake-1.12; do | ||
40 | if [ -f ${D}${bindir}/$i ]; then | ||
41 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/perl,' \ | ||
42 | -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${USRBINPATH}/perl \1 exec ${USRBINPATH}/perl \2,' \ | ||
43 | ${D}${bindir}/$i | ||
44 | fi | ||
45 | done | ||
46 | } | ||
47 | |||
48 | BBCLASSEXTEND = "native nativesdk" | ||