summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsben Haabendal <esbenhaabendal@gmail.com>2009-11-10 13:20:59 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-10 12:54:58 +0000
commit23a64bce2a001fd6ae248ee227400f73696ff9cf (patch)
treedf2f699e9589b54df74728e66cd12bacb2af0849
parent2dddd57e6304db8dc40025b8c1a82ff8eb8c5aa5 (diff)
downloadpoky-23a64bce2a001fd6ae248ee227400f73696ff9cf.tar.gz
m4-native: Fix building on Ubuntu 9.10
Avoid making GNUmakefile a symlink to itself with some versions of autoconf/automake Signed-off-by: Esben Haabendal <eha@doredevelopment.dk> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/packages/m4/m4-native_1.4.12.bb4
-rw-r--r--meta/packages/m4/m4/ac_config_links.patch28
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/packages/m4/m4-native_1.4.12.bb b/meta/packages/m4/m4-native_1.4.12.bb
index 64442292e0..74fa3c865a 100644
--- a/meta/packages/m4/m4-native_1.4.12.bb
+++ b/meta/packages/m4/m4-native_1.4.12.bb
@@ -1,6 +1,10 @@
1require m4_${PV}.bb 1require m4_${PV}.bb
2inherit native 2inherit native
3 3
4PR = "r1"
5
6SRC_URI_append = " file://ac_config_links.patch;patch=1"
7
4INHIBIT_AUTOTOOLS_DEPS = "1" 8INHIBIT_AUTOTOOLS_DEPS = "1"
5DEPENDS += "gnu-config-native" 9DEPENDS += "gnu-config-native"
6 10
diff --git a/meta/packages/m4/m4/ac_config_links.patch b/meta/packages/m4/m4/ac_config_links.patch
new file mode 100644
index 0000000000..22103876e3
--- /dev/null
+++ b/meta/packages/m4/m4/ac_config_links.patch
@@ -0,0 +1,28 @@
1This patch fixes a build problem for m4-native experienced on Ubuntu 9.10,
2where autoconf/automake (AC_CONFIG_LINKS) ends up making GNUmakefile a
3symlink to itself.
4
5The patch comments out ac_config_links directly in configure,
6as autoreconf is not actually run for m4-native.
7
8I believe it should be safe, as GNUmakefile is actually unpacked from
9source, and what we want is to is to not touch it.
10
11Tested on x86_64_linux (Ubuntu 8.04 and 9.10).
12
132009-11-10 Esben Haabendal <eha@doredevelopment.dk>
14
15diff -urN m4-1.4.13.orig/configure m4-1.4.13/configure
16--- m4-1.4.13.orig/configure 2009-11-10 10:54:00.301707097 +0100
17+++ m4-1.4.13/configure 2009-11-10 10:54:17.314206379 +0100
18@@ -14860,8 +14860,8 @@
19 # only, it does not matter if we skip the link with older autoconf.
20 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
21 # builds, so use a shell variable to bypass this.
22- GNUmakefile=GNUmakefile
23- ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
24+ # GNUmakefile=GNUmakefile
25+ # ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
26
27
28