summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/automake')
-rw-r--r--meta/recipes-devtools/automake/automake.inc18
-rw-r--r--meta/recipes-devtools/automake/automake/buildtest.patch33
-rw-r--r--meta/recipes-devtools/automake/automake/path_prog_fixes.patch41
-rw-r--r--meta/recipes-devtools/automake/automake/prefer-cpio-over-pax-for-ustar-archives.patch47
-rw-r--r--meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch42
-rw-r--r--meta/recipes-devtools/automake/automake/python-libdir.patch65
-rw-r--r--meta/recipes-devtools/automake/automake_1.12.6.bb48
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 @@
1SUMMARY = "A GNU tool for automatically generating Makefiles."
2DESCRIPTION = "Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding \
3Standards. Automake requires the use of Autoconf."
4LICENSE = "GPLv2"
5HOMEPAGE = "http://www.gnu.org/software/automake/"
6SECTION = "devel"
7
8SRC_URI = "${GNU_MIRROR}/automake/automake-${PV}.tar.gz"
9
10inherit autotools
11
12do_configure() {
13 oe_runconf
14}
15
16export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH', True))}"
17
18FILES_${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 @@
1Split "check-TESTS" into a buildtest and runtest target, so that they can
2be run separately.
3
4Signed-off-by: Björn Stenberg <bjst@enea.com>
5Upstream-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 @@
1Upstream-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
10Index: 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
25Index: 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 @@
1When the user has a UID or GID that is larger than the ustar format
2supports, pax does not error out gracefully in some cases (FC13). In
3this case cpio does.
4
5See for more details: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8343
6
7Additionally drop tar.m4 out of that part of the Makefile or we end up in
8a fatal attempt to regen loop:
9
10CDPATH="${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
12make: *** [aclocal.m4] Error 127
13
14Upstream-Status: Pending
15
16Signed-off-by: Tom Rini <tom_rini@mentor.com>
17
18Updated for version 1.11.3:
19Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
20Date: 2011/03/14
21
22Index: 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 `-'.
35Index: 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 @@
1Upstream-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
7Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
8
9Updated for automake-1.12.6
10
11Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
12
13diff -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 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
4
5Updated for automake-1.12.6
6
7Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
8
9diff -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 @@
1require automake.inc
2LICENSE="GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4DEPENDS_class-native = "autoconf-native"
5
6RDEPENDS_${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
17RDEPENDS_${PN}_class-native = "autoconf-native perl-native-runtime"
18
19PATHFIXPATCH = "file://path_prog_fixes.patch"
20PATHFIXPATCH_class-native = ""
21PATHFIXPATCH_class-nativesdk = ""
22
23SRC_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
29SRC_URI[md5sum] = "199d39ece2e6070d64ac20d45ac86026"
30SRC_URI[sha256sum] = "0cbe570db487908e70af7119da85ba04f7e28656b26f717df0265ae08defd9ef"
31
32PR = "r0"
33
34do_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
48BBCLASSEXTEND = "native nativesdk"