Skip to contentSkip to conversation

autoconf213: do_configure fails

DISCUSSION Lukas-David Gorris 1 participant 3 messages Mar 12, 2011

lore
Share & tools
lore
#0 lore raw

Build Configuration:
BB_VERSION = "1.12.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "9dd12ec"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "htcleo"
DISTRO            = "shr"
DISTRO_VERSION    = "-20110312"
TARGET_FPU        = "hard"

Log data follows:

| + do_configure
| + true
| + export ac_cv_path_PERL=/usr/bin/perl
| + ac_cv_path_PERL=/usr/bin/perl
| + export ac_cv_path_M4=/usr/bin/m4
| + ac_cv_path_M4=/usr/bin/m4
| + export ac_cv_prog_gnu_m4=yes
| + ac_cv_prog_gnu_m4=yes
| + sed -i '-es,^SUBDIRS = .*,SUBDIRS = bin .

lib,' /home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r13.0/autoconf-2.13/Makefile.am
| sed: can't
read /home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r13.0/autoconf-2.13/Makefile.am: No such file or directory

The same situation with autoconf213-native:
"Makefile.am: No such file or directory"

+ do_configure
+ true
+ export ac_cv_path_PERL=/usr/bin/perl
+ ac_cv_path_PERL=/usr/bin/perl
+ export ac_cv_path_M4=/usr/bin/m4
+ ac_cv_path_M4=/usr/bin/m4
+ export ac_cv_prog_gnu_m4=yes
+ ac_cv_prog_gnu_m4=yes
+ sed -i '-es,^SUBDIRS = .*,SUBDIRS = bin . lib,' /home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r13.0/autoconf-2.13/Makefile.am
sed: can't read /home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r13.0/autoconf-2.13/Makefile.am: No such file or directory

#1 lore raw

Am Samstag, den 12.03.2011, 13:36 +0100 schrieb Lukas-David Gorris:

Quoted 5 lines

read /home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r13.0/autoconf-2.13/Makefile.am: No such file or directory

The same situation with autoconf213-native:
"Makefile.am: No such file or directory"

I'm sorry, this topic has only been discussed previously in thread "[oe] [PATCH] autoconf.inc: check if files exist before using sed on them"

A patch has been supplied by Denis Carikli. Khem advised to do a build from scratch in order to make sure it doesn't affect other autoconf recipes.

I am doing such a clean build now (with new tmpdir) and will update about the results.

Denis' patch:

(quoted diff) +0 -0

b/recipes/autoconf/autoconf.inc
index 7f22c2b..e0eecd3 100644

recipes/autoconf/autoconf.inc +0 -0
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "m4 perl gnu-config"
 DEPENDS_virtclass-native = "m4-native gnu-config-native perl-native"
 RDEPENDS_${PN}_virtclass-native = "m4-native gnu-config-native

perl-native"

-INC_PR = "r13"
+INC_PR = "r14"

SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2;name=autoconf
\
file://program_prefix.patch"
@@ -25,13 +25,19 @@ do_configure_prepend () {
export ac_cv_path_M4="${ac_cv_path_M4=${bindir}/m4}" export ac_cv_prog_gnu_m4="${ac_cv_prog_gnu_m4=yes}"
fi
-
- sed -i -e's,^SUBDIRS = .*,SUBDIRS = ${SUBDIRS},' ${S}/Makefile.am
+ if [ -e ${S}/Makefile.am ]
+ then
+ sed -i -e's,^SUBDIRS = .*,SUBDIRS = ${SUBDIRS},' ${S}/Makefile.am
+ fi
}

do_configure_append() {

 	# replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
-	sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/bin/*.in
+	ls ${S} | grep -q '\.in$'
+	if [ $? -eq 0 ]
+	then
+		sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/bin/*.in
+	fi
 }

PARALLEL_MAKE = ""

Signature · 7 lines
1.7.0.4



Best,

Lukas
#2 lore raw

Am Samstag, den 12.03.2011, 14:22 +0100 schrieb Lukas-David Gorris:

Quoted 37 lines

Am Samstag, den 12.03.2011, 13:36 +0100 schrieb Lukas-David Gorris:

I am doing such a clean build now (with new tmpdir) and will update about the results.

Denis' patch:

recipes/autoconf/autoconf.inc +0 -0
index 7f22c2b..e0eecd3 100644
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "m4 perl gnu-config"
 DEPENDS_virtclass-native = "m4-native gnu-config-native perl-native"
 RDEPENDS_${PN}_virtclass-native = "m4-native gnu-config-native

perl-native"

recipes/autoconf/autoconf.inc +1 -1
-INC_PR = "r13"
+INC_PR = "r14"
 
 SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2;name=autoconf

\

recipes/autoconf/autoconf.inc +4 -2
 	   file://program_prefix.patch"
@@ -25,13 +25,19 @@ do_configure_prepend () {
 		export ac_cv_path_M4="${ac_cv_path_M4=${bindir}/m4}"
 		export ac_cv_prog_gnu_m4="${ac_cv_prog_gnu_m4=yes}"
 	fi
-
-	sed -i -e's,^SUBDIRS = .*,SUBDIRS = ${SUBDIRS},' ${S}/Makefile.am
+	if [ -e ${S}/Makefile.am ]
+	then
+		sed -i -e's,^SUBDIRS = .*,SUBDIRS = ${SUBDIRS},' ${S}/Makefile.am
+	fi
 }
 
 do_configure_append() {

recipes/autoconf/autoconf.inc do_configure_prepend () { · line 43

Quoted 10 lines
recipes/autoconf/autoconf.inc +5 -1
 	# replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
-	sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/bin/*.in
+	ls ${S} | grep -q '\.in$'
+	if [ $? -eq 0 ]
+	then
+		sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/bin/*.in
+	fi
 }
 
 PARALLEL_MAKE = ""

Ok I rebuilt from scratch with that patch. Turns out it doesn't affect other autoconf versions: recipes/autoconf/autoconf_2.65.bb builds fine.
But it doesn't fix autoconf213 and autoconf213-native . It will still fail, now with following error:

| + sed -i -e '1s:#!.*:#! /usr/bin/env perl:' '/home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r14.0/autoconf-2.13/bin/*.in'
| sed: can't
read /home/luke/linux/openembedded/tmp/work/armv7a-oe-linux-gnueabi/autoconf213-2.13-r14.0/autoconf-2.13/bin/*.in: No such file or directory

The problem is autoconf213 lacks Makefile.in (all other autoconf recipes in OE have it).
Any sed magicians who know how to solve this ?

Best,

Lukas