From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- meta/recipes-devtools/m4/m4-1.4.17.inc | 13 ++++ meta/recipes-devtools/m4/m4-1.4.9.inc | 13 ++++ meta/recipes-devtools/m4/m4-native_1.4.17.bb | 13 ++++ meta/recipes-devtools/m4/m4-native_1.4.9.bb | 12 ++++ meta/recipes-devtools/m4/m4.inc | 10 +++ meta/recipes-devtools/m4/m4/ac_config_links.patch | 30 +++++++++ .../m4/m4/fix_for_circular_dependency.patch | 77 ++++++++++++++++++++++ meta/recipes-devtools/m4/m4/make.patch | 42 ++++++++++++ meta/recipes-devtools/m4/m4/remove-gets.patch | 23 +++++++ meta/recipes-devtools/m4/m4_1.4.17.bb | 3 + meta/recipes-devtools/m4/m4_1.4.9.bb | 3 + 11 files changed, 239 insertions(+) create mode 100644 meta/recipes-devtools/m4/m4-1.4.17.inc create mode 100644 meta/recipes-devtools/m4/m4-1.4.9.inc create mode 100644 meta/recipes-devtools/m4/m4-native_1.4.17.bb create mode 100644 meta/recipes-devtools/m4/m4-native_1.4.9.bb create mode 100644 meta/recipes-devtools/m4/m4.inc create mode 100644 meta/recipes-devtools/m4/m4/ac_config_links.patch create mode 100644 meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch create mode 100644 meta/recipes-devtools/m4/m4/make.patch create mode 100644 meta/recipes-devtools/m4/m4/remove-gets.patch create mode 100644 meta/recipes-devtools/m4/m4_1.4.17.bb create mode 100644 meta/recipes-devtools/m4/m4_1.4.9.bb (limited to 'meta/recipes-devtools/m4') diff --git a/meta/recipes-devtools/m4/m4-1.4.17.inc b/meta/recipes-devtools/m4/m4-1.4.17.inc new file mode 100644 index 0000000000..790678e288 --- /dev/null +++ b/meta/recipes-devtools/m4/m4-1.4.17.inc @@ -0,0 +1,13 @@ +require m4.inc + +LICENSE = "GPLv3" + +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\ + file://examples/COPYING;md5=4031593b2166d6c47cae282d944a7ede" + +SRC_URI += "file://ac_config_links.patch \ + file://remove-gets.patch \ + " + +SRC_URI[md5sum] = "a5e9954b1dae036762f7b13673a2cf76" +SRC_URI[sha256sum] = "3ce725133ee552b8b4baca7837fb772940b25e81b2a9dc92537aeaf733538c9e" diff --git a/meta/recipes-devtools/m4/m4-1.4.9.inc b/meta/recipes-devtools/m4/m4-1.4.9.inc new file mode 100644 index 0000000000..aab2c1efa2 --- /dev/null +++ b/meta/recipes-devtools/m4/m4-1.4.9.inc @@ -0,0 +1,13 @@ +require m4.inc + +LICENSE = "GPLv2" + +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe\ + file://examples/COPYING;md5=1d49bd61dc590f014cae7173b43e3e5c" + +PR = "r2" +SRC_URI += "file://fix_for_circular_dependency.patch" + +SRC_URI[md5sum] = "1ba8e147aff5e79bd2bfb983d86b53d5" +SRC_URI[sha256sum] = "815ce53853fbf6493617f467389b799208b1ec98296b95be44a683f8bcfd7c47" + diff --git a/meta/recipes-devtools/m4/m4-native_1.4.17.bb b/meta/recipes-devtools/m4/m4-native_1.4.17.bb new file mode 100644 index 0000000000..06d8aa244e --- /dev/null +++ b/meta/recipes-devtools/m4/m4-native_1.4.17.bb @@ -0,0 +1,13 @@ +require m4-${PV}.inc + +inherit native + +INHIBIT_AUTOTOOLS_DEPS = "1" +DEPENDS += "gnu-config-native" + +do_configure() { + install -m 0644 ${STAGING_DATADIR}/gnu-config/config.sub . + install -m 0644 ${STAGING_DATADIR}/gnu-config/config.guess . + oe_runconf +} + diff --git a/meta/recipes-devtools/m4/m4-native_1.4.9.bb b/meta/recipes-devtools/m4/m4-native_1.4.9.bb new file mode 100644 index 0000000000..23a21d0939 --- /dev/null +++ b/meta/recipes-devtools/m4/m4-native_1.4.9.bb @@ -0,0 +1,12 @@ +require m4-${PV}.inc + +INHIBIT_AUTOTOOLS_DEPS = "1" +DEPENDS += "gnu-config-native" + +do_configure() { + install -m 0644 ${STAGING_DATADIR}/gnu-config/config.sub . + install -m 0644 ${STAGING_DATADIR}/gnu-config/config.guess . + oe_runconf +} + +inherit native diff --git a/meta/recipes-devtools/m4/m4.inc b/meta/recipes-devtools/m4/m4.inc new file mode 100644 index 0000000000..ae101c2b6d --- /dev/null +++ b/meta/recipes-devtools/m4/m4.inc @@ -0,0 +1,10 @@ +SUMMARY = "Traditional Unix macro processor" +DESCRIPTION = "GNU m4 is an implementation of the traditional Unix macro processor. It is mostly SVR4 \ +compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). \ +GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc." + +inherit autotools + +EXTRA_OEMAKE += "'infodir=${infodir}'" +LDFLAGS_prepend_libc-uclibc = " -lrt " +SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz" diff --git a/meta/recipes-devtools/m4/m4/ac_config_links.patch b/meta/recipes-devtools/m4/m4/ac_config_links.patch new file mode 100644 index 0000000000..275c0b2e7d --- /dev/null +++ b/meta/recipes-devtools/m4/m4/ac_config_links.patch @@ -0,0 +1,30 @@ +Upstream-Status: Inappropriate [configuration] + +This patch fixes a build problem for m4-native experienced on Ubuntu 9.10, +where autoconf/automake (AC_CONFIG_LINKS) ends up making GNUmakefile a +symlink to itself. + +The patch comments out ac_config_links directly in configure, +as autoreconf is not actually run for m4-native. + +I believe it should be safe, as GNUmakefile is actually unpacked from +source, and what we want is to is to not touch it. + +Tested on x86_64_linux (Ubuntu 8.04 and 9.10). + +2009-11-10 Esben Haabendal + +diff -urN m4-1.4.13.orig/configure m4-1.4.13/configure +--- m4-1.4.13.orig/configure 2009-11-10 10:54:00.301707097 +0100 ++++ m4-1.4.13/configure 2009-11-10 10:54:17.314206379 +0100 +@@ -14860,8 +14860,8 @@ + # only, it does not matter if we skip the link with older autoconf. + # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH + # builds, so use a shell variable to bypass this. +- GNUmakefile=GNUmakefile +- ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" ++ # GNUmakefile=GNUmakefile ++ # ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" + + + diff --git a/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch b/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch new file mode 100644 index 0000000000..98774535d5 --- /dev/null +++ b/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch @@ -0,0 +1,77 @@ +Upstream-Status: Inappropriate [licensing] + +The older GPLv2 m4 does not work well with newer autoconf. It causes the +circular dependency as seen bellow. + Removing this m4 file which was needed only forl older autoconf + +| configure.ac:34: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE +| /build_disk/poky_build/build1/tmp/work/i586-poky-linux/m4-1.4.9-r0/m4-1.4.9/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from... +| ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... +| /build_disk/poky_build/build1/tmp/work/i586-poky-linux/m4-1.4.9-r0/m4-1.4.9/m4/gnulib-comp.m4:21: M4_EARLY is expanded from... +| configure.ac:34: the top level +| autom4te: /build_disk/poky_build/build1/tmp/sysroots/x86_64-linux/usr/bin/m4 failed with exit status: 1 +| aclocal: /build_disk/poky_build/build1/tmp/sysroots/x86_64-linux/usr/bin/autom4te failed with exit status: 1 +| autoreconf: aclocal failed with exit status: 1 + +Nitin A Kamble +2011/03/16 + +Index: m4-1.4.9/m4/extensions.m4 +=================================================================== +--- m4-1.4.9.orig/m4/extensions.m4 ++++ m4-1.4.9/m4/extensions.m4 +@@ -6,53 +6,10 @@ + # gives unlimited permission to copy and/or distribute it, + # with or without modifications, as long as this notice is preserved. + +-# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS +-# Autoconf. Perhaps we can remove this once we can assume Autoconf +-# 2.61 or later everywhere, but since CVS Autoconf mutates rapidly +-# enough in this area it's likely we'll need to redefine +-# AC_USE_SYSTEM_EXTENSIONS for quite some time. +- +-# AC_USE_SYSTEM_EXTENSIONS +-# ------------------------ +-# Enable extensions on systems that normally disable them, +-# typically due to standards-conformance issues. +-AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], +-[ +- AC_BEFORE([$0], [AC_COMPILE_IFELSE]) +- AC_BEFORE([$0], [AC_RUN_IFELSE]) +- +- AC_REQUIRE([AC_GNU_SOURCE]) +- AC_REQUIRE([AC_AIX]) +- AC_REQUIRE([AC_MINIX]) +- +- AH_VERBATIM([__EXTENSIONS__], +-[/* Enable extensions on Solaris. */ +-#ifndef __EXTENSIONS__ +-# undef __EXTENSIONS__ +-#endif +-#ifndef _POSIX_PTHREAD_SEMANTICS +-# undef _POSIX_PTHREAD_SEMANTICS +-#endif +-#ifndef _TANDEM_SOURCE +-# undef _TANDEM_SOURCE +-#endif]) +- AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], +- [ac_cv_safe_to_define___extensions__], +- [AC_COMPILE_IFELSE( +- [AC_LANG_PROGRAM([ +-# define __EXTENSIONS__ 1 +- AC_INCLUDES_DEFAULT])], +- [ac_cv_safe_to_define___extensions__=yes], +- [ac_cv_safe_to_define___extensions__=no])]) +- test $ac_cv_safe_to_define___extensions__ = yes && +- AC_DEFINE([__EXTENSIONS__]) +- AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) +- AC_DEFINE([_TANDEM_SOURCE]) +-]) + + # gl_USE_SYSTEM_EXTENSIONS + # ------------------------ + # Enable extensions on systems that normally disable them, + # typically due to standards-conformance issues. + AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], +- [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) ++ []) diff --git a/meta/recipes-devtools/m4/m4/make.patch b/meta/recipes-devtools/m4/m4/make.patch new file mode 100644 index 0000000000..79fb415121 --- /dev/null +++ b/meta/recipes-devtools/m4/m4/make.patch @@ -0,0 +1,42 @@ +Upstream-Status: Inappropriate [embedded specific] + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- m4-1.4.2/doc/Makefile.in~make ++++ m4-1.4.2/doc/Makefile.in +@@ -57,9 +57,9 @@ + date > $(srcdir)/stamp-vti + + install: all +- $(srcdir)/../mkinstalldirs $(infodir) ++ $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir) + cd $(srcdir) && for file in m4.info*; do \ +- $(INSTALL_DATA) $$file $(infodir)/$$file; \ ++ $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file; \ + done + + uninstall: +--- m4-1.4.2/src/Makefile.in~make ++++ m4-1.4.2/src/Makefile.in +@@ -35,7 +35,7 @@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + transform = @program_transform_name@ +-bindir = $(exec_prefix)/bin ++bindir = @bindir@ + + COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) + LINK = $(CC) $(LDFLAGS) -o $@ +@@ -84,8 +84,8 @@ + $(LINK) ansi2knr.o $(LIBS) + + install: all +- $(srcdir)/../mkinstalldirs $(bindir) +- $(INSTALL_PROGRAM) m4 $(bindir)/`echo m4 | sed '$(transform)'` ++ $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ++ $(INSTALL_PROGRAM) m4 $(DESTDIR)$(bindir)/`echo m4 | sed '$(transform)'` + + uninstall: + rm -f $(bindir)/`echo m4 | sed '$(transform)'` diff --git a/meta/recipes-devtools/m4/m4/remove-gets.patch b/meta/recipes-devtools/m4/m4/remove-gets.patch new file mode 100644 index 0000000000..effb353f11 --- /dev/null +++ b/meta/recipes-devtools/m4/m4/remove-gets.patch @@ -0,0 +1,23 @@ +eglibc has remove gets starting 2.16 +therefore check for its being there before +undefining it. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +Index: m4-1.4.17/lib/stdio.in.h +=================================================================== +--- m4-1.4.17.orig/lib/stdio.in.h 2013-10-16 14:41:01.678496227 +0300 ++++ m4-1.4.17/lib/stdio.in.h 2013-10-16 14:41:48.849427839 +0300 +@@ -717,10 +717,12 @@ + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning; besides, C11 + removed it. */ ++#if defined gets + #undef gets + #if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + #endif ++#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ diff --git a/meta/recipes-devtools/m4/m4_1.4.17.bb b/meta/recipes-devtools/m4/m4_1.4.17.bb new file mode 100644 index 0000000000..b12c0adf3a --- /dev/null +++ b/meta/recipes-devtools/m4/m4_1.4.17.bb @@ -0,0 +1,3 @@ +require m4-${PV}.inc + +BBCLASSEXTEND = "nativesdk" diff --git a/meta/recipes-devtools/m4/m4_1.4.9.bb b/meta/recipes-devtools/m4/m4_1.4.9.bb new file mode 100644 index 0000000000..b12c0adf3a --- /dev/null +++ b/meta/recipes-devtools/m4/m4_1.4.9.bb @@ -0,0 +1,3 @@ +require m4-${PV}.inc + +BBCLASSEXTEND = "nativesdk" -- cgit v1.2.3-54-g00ecf