diff options
Diffstat (limited to 'meta/recipes-devtools/automake')
6 files changed, 301 insertions, 0 deletions
diff --git a/meta/recipes-devtools/automake/automake.inc b/meta/recipes-devtools/automake/automake.inc new file mode 100644 index 000000000..370cacadf --- /dev/null +++ b/meta/recipes-devtools/automake/automake.inc @@ -0,0 +1,14 @@ +SUMMARY = "A GNU tool for automatically generating Makefiles." +DESCRIPTION = "Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding \ +Standards. Automake requires the use of Autoconf." +LICENSE = "GPLv2" +HOMEPAGE = "http://www.gnu.org/software/automake/" +SECTION = "devel" + +SRC_URI = "${GNU_MIRROR}/automake/automake-${PV}.tar.gz" + +inherit autotools + +export AUTOMAKE = "${@bb.which('automake', d.getVar('PATH', True))}" + +FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" 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 000000000..312cec6b1 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/path_prog_fixes.patch @@ -0,0 +1,69 @@ +Upstream-Status: Inappropriate [embedded specific] + +--- + Makefile.am | 3 ++- + Makefile.in | 3 ++- + aclocal.in | 4 ++-- + automake.in | 6 ++++-- + 4 files changed, 10 insertions(+), 6 deletions(-) + +Index: automake-1.10.1/Makefile.am +=================================================================== +--- automake-1.10.1.orig/Makefile.am 2008-01-21 22:28:58.000000000 +0000 ++++ automake-1.10.1/Makefile.am 2008-10-10 17:21:20.000000000 +0100 +@@ -75,7 +75,8 @@ + -e 's,[@]SHELL[@],$(SHELL),g' \ + -e 's,[@]VERSION[@],$(VERSION),g' \ + -e 's,[@]configure_input[@],Generated from $@.in; do not edit by hand.,g' \ +- -e 's,[@]datadir[@],$(datadir),g' ++ -e 's,[@]datadir[@],$(datadir),g' \ ++ -e 's,[@]bindir[@],$(bindir),g' + + ## These files depend on Makefile so they are rebuilt if $(VERSION), + ## $(datadir) or other do_subst'ituted variables change. +Index: automake-1.10.1/Makefile.in +=================================================================== +--- automake-1.10.1.orig/Makefile.in 2008-01-21 22:29:10.000000000 +0000 ++++ automake-1.10.1/Makefile.in 2008-10-10 17:22:21.000000000 +0100 +@@ -185,7 +185,8 @@ + -e 's,[@]SHELL[@],$(SHELL),g' \ + -e 's,[@]VERSION[@],$(VERSION),g' \ + -e 's,[@]configure_input[@],Generated from $@.in; do not edit by hand.,g' \ +- -e 's,[@]datadir[@],$(datadir),g' ++ -e 's,[@]datadir[@],$(datadir),g' \ ++ -e 's,[@]bindir[@],$(bindir),g' + + WGET = wget + WGET_SV_CVS = $(WGET) http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/ +Index: automake-1.10.1/aclocal.in +=================================================================== +--- automake-1.10.1.orig/aclocal.in 2008-01-21 22:11:41.000000000 +0000 ++++ automake-1.10.1/aclocal.in 2008-10-10 17:21:20.000000000 +0100 +@@ -1,8 +1,8 @@ +-#!@PERL@ -w ++#!@bindir@/env perl + # -*- perl -*- + # @configure_input@ + +-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' ++eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac' + if 0; + + # aclocal - create aclocal.m4 by scanning configure.ac +Index: automake-1.10.1/automake.in +=================================================================== +--- automake-1.10.1.orig/automake.in 2008-01-21 22:11:41.000000000 +0000 ++++ automake-1.10.1/automake.in 2008-10-10 17:21:20.000000000 +0100 +@@ -1,8 +1,10 @@ +-#!@PERL@ -w ++#!@bindir@/env perl + # -*- perl -*- + # @configure_input@ + +-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' ++use warnings; ++ ++eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac' + if 0; + + # 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 000000000..4627855a1 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/prefer-cpio-over-pax-for-ustar-archives.patch @@ -0,0 +1,47 @@ +When the user has a UID or GID that is larger than the ustar format +supports, pax does not error out gracefully in some cases (FC13). In +this case cpio does. + +See for more details: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8343 + +Additionally drop tar.m4 out of that part of the Makefile or we end up in +a fatal attempt to regen loop: + +CDPATH="${ZSH_VERSION+.}:" && cd . && perllibdir="automake-1.11.1/lib:./lib" "automake-1.11.1/aclocal" --acdir=m4 -I m4 +/bin/sh: automake-1.11.1/aclocal: No such file or directory +make: *** [aclocal.m4] Error 127 + +Upstream-Status: Pending + +Signed-off-by: Tom Rini <tom_rini@mentor.com> + +Updated for version 1.11.3: +Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> +Date: 2011/03/14 + +Index: automake-1.11.3/m4/tar.m4 +=================================================================== +--- automake-1.11.3.orig/m4/tar.m4 2012-01-31 03:41:18.000000000 -0800 ++++ automake-1.11.3/m4/tar.m4 2012-03-14 17:36:11.901303777 -0700 +@@ -31,7 +31,7 @@ m4_if([$1], [v7], + [m4_fatal([Unknown tar format])]) + AC_MSG_CHECKING([how to create a $1 tar archive]) + # Loop over all known methods to create a tar archive until one works. +-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' ++_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) cpio pax none' + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + # Do not fold the above two line into one, because Tru64 sh and + # Solaris sh will not grok spaces in the rhs of `-'. +Index: automake-1.11.3/Makefile.in +=================================================================== +--- automake-1.11.3.orig/Makefile.in 2012-02-01 02:37:59.000000000 -0800 ++++ automake-1.11.3/Makefile.in 2012-03-14 17:38:03.530869197 -0700 +@@ -62,7 +62,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/a + $(top_srcdir)/m4/options.m4 $(top_srcdir)/m4/runlog.m4 \ + $(top_srcdir)/m4/sanity.m4 $(top_srcdir)/m4/silent.m4 \ + $(top_srcdir)/m4/strip.m4 $(top_srcdir)/m4/substnot.m4 \ +- $(top_srcdir)/m4/tar.m4 $(top_srcdir)/configure.ac ++ $(top_srcdir)/configure.ac + am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) + 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 000000000..f09bfbca5 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch @@ -0,0 +1,42 @@ +Upstream-Status: Inappropriate [embedded specific] + +* OE-Core's python creates the same binary output + for both pyc and pyo, so disable the creation of + pyc files by automake. + +Signed-off-by: Andreas Oberritter <obi@opendreambox.org> +--- + lib/py-compile | 17 ----------------- + 1 files changed, 0 insertions(+), 17 deletions(-) + +diff --git a/lib/py-compile b/lib/py-compile +index 3f9d05b..101c814 100755 +--- a/lib/py-compile ++++ b/lib/py-compile +@@ -101,23 +101,6 @@ else + filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" + fi + +-$PYTHON -c " +-import sys, os, py_compile +- +-files = '''$files''' +- +-sys.stdout.write('Byte-compiling python modules...\n') +-for file in files.split(): +- $pathtrans +- $filetrans +- if not os.path.exists(filepath) or not (len(filepath) >= 3 +- and filepath[-3:] == '.py'): +- continue +- sys.stdout.write(file) +- sys.stdout.flush() +- py_compile.compile(filepath, filepath + 'c', path) +-sys.stdout.write('\n')" || exit $? +- + # this will fail for python < 1.5, but that doesn't matter ... + $PYTHON -O -c " + import sys, os, py_compile +-- +1.7.0.4 + 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 000000000..078360058 --- /dev/null +++ b/meta/recipes-devtools/automake/automake/python-libdir.patch @@ -0,0 +1,62 @@ +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Kumar Gala <galak@kernel.crashing.org> + +Index: automake-1.11.3/m4/python.m4 +=================================================================== +--- automake-1.11.3.orig/m4/python.m4 2012-01-31 11:41:18.000000000 +0000 ++++ automake-1.11.3/m4/python.m4 2012-04-24 10:04:57.726413598 +0000 +@@ -92,12 +92,13 @@ + [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) + AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) + +- dnl Use the values of $prefix and $exec_prefix for the corresponding +- dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made ++ dnl Use the values of $prefix, $libdir and $exec_prefix for the corresponding ++ dnl values of PYTHON_PREFIX PYTHON_LIB_PREFIX, and PYTHON_EXEC_PREFIX. These are made + dnl distinct variables so they can be overridden if need be. However, + dnl general consensus is that you shouldn't need this ability. + + AC_SUBST([PYTHON_PREFIX], ['${prefix}']) ++ AC_SUBST([PYTHON_LIB_PREFIX], ['${libdir}']) + AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) + + dnl At times (like when building shared libraries) you may want +@@ -123,7 +124,8 @@ + else + am_py_prefix=$prefix + fi +- am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null` ++ am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null || ++ echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"` + case $am_cv_python_pythondir in + $am_py_prefix*) + am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` +@@ -133,7 +135,7 @@ + case $am_py_prefix in + /usr|/System*) ;; + *) +- am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages ++ am_cv_python_pythondir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages + ;; + esac + ;; +@@ -158,7 +160,8 @@ + else + am_py_exec_prefix=$exec_prefix + fi +- am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null` ++ am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null || ++ echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"` + case $am_cv_python_pyexecdir in + $am_py_exec_prefix*) + am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` +@@ -168,7 +171,7 @@ + case $am_py_exec_prefix in + /usr|/System*) ;; + *) +- am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages ++ am_cv_python_pyexecdir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages + ;; + esac + ;; diff --git a/meta/recipes-devtools/automake/automake_1.11.3.bb b/meta/recipes-devtools/automake/automake_1.11.3.bb new file mode 100644 index 000000000..20087741a --- /dev/null +++ b/meta/recipes-devtools/automake/automake_1.11.3.bb @@ -0,0 +1,67 @@ +require automake.inc +LICENSE="GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" +DEPENDS_virtclass-native = "autoconf-native" + +RDEPENDS_${PN} += "\ + autoconf \ + perl \ + perl-module-bytes \ + perl-module-constant \ + perl-module-cwd \ + perl-module-data-dumper \ + perl-module-dynaloader \ + perl-module-errno \ + perl-module-exporter-heavy \ + perl-module-file-basename \ + perl-module-file-compare \ + perl-module-file-copy \ + perl-module-file-glob \ + perl-module-file-spec-unix \ + perl-module-file-stat \ + perl-module-getopt-long \ + perl-module-io \ + perl-module-io-file \ + perl-module-posix \ + perl-module-strict \ + perl-module-text-parsewords \ + perl-module-vars " + +RDEPENDS_${PN}_virtclass-native = "autoconf-native perl-native-runtime" +RDEPENDS_${PN}_virtclass-nativesdk = "autoconf-nativesdk" + +PATHFIXPATCH = "file://path_prog_fixes.patch" +PATHFIXPATCH_virtclass-native = "" +PATHFIXPATCH_virtclass-nativesdk = "" + +PERLPATH = "${bindir}/perl" +PERLPATH_virtclass-native = "/usr/bin/perl" +PERLPATH_virtclass-nativesdk = "/usr/bin/perl" + +SRC_URI += "${PATHFIXPATCH} \ + file://prefer-cpio-over-pax-for-ustar-archives.patch \ + file://python-libdir.patch \ + file://py-compile-compile-only-optimized-byte-code.patch" + + +SRC_URI[md5sum] = "93ecb319f0365cb801990b00f658d026" +SRC_URI[sha256sum] = "921b5188057e57bdd9c0ba06e21d0b0ea7dafa61a9bd08a2b041215bcff12f55" + +PR = "r0" + +do_install () { + oe_runmake 'DESTDIR=${D}' install + install -d ${D}${datadir} + + # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location + # for target as /usr/bin/perl, so fix it to /usr/bin/perl. + for i in aclocal aclocal-1.11 automake automake-1.11; do + if [ -f ${D}${bindir}/$i ]; then + sed -i -e '1s,#!.*perl,#! ${PERLPATH},' \ + -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${PERLPATH} \1 exec ${PERLPATH} \2,' \ + ${D}${bindir}/$i + fi + done +} + +BBCLASSEXTEND = "native nativesdk" |
