[<<][openwrt][>>][..]
Sat Jun 30 10:05:54 EDT 2012

Asterisk on OpenWRT

It seems to use a lot of resources on Debian mipsel, so let's try to
run it on OpenWRT.  I run into a problem with the build of libgrypt
due to this line

VERSION="2.2.6b Debian-2.2.6b-2"

in
 
trunk/build_dir/target-mipsel_uClibc-0.9.33/libgcrypt-1.5.0/ltmain.sh

It looks like the `"' character is not expected by the sed regexp.  The error is:

make[3]: Entering directory `/opt/xc/openwrt/belkin/trunk/feeds/packages/libs/libgcrypt'
(cd /opt/xc/openwrt/belkin/trunk/build_dir/target-mipsel_uClibc-0.9.33/libgcrypt-1.5.0; for lt in $(/opt/xc/openwrt/belkin/trunk/staging_dir/host/bin/find . -name ltmain.sh); do lt_version="$(/opt/xc/openwrt/belkin/trunk/staging_dir/host/bin/sed -ne 's,^[[:space:]]*VERSION=\([0-9]\.[0-9]\+\).*,\1,p' $lt)"; case "$lt_version" in 1.5|2.2|2.4) echo "autotools.mk: Found libtool v$lt_version - applying patch to $lt"; (cd $(dirname $lt) && /usr/bin/patch -N -s -p1 < /opt/xc/openwrt/belkin/trunk/tools/libtool/files/libtool-v$lt_version.patch || true) ;; *) echo "autotools.mk: error: Unsupported libtool version v$lt_version - cannot patch $lt"; exit 1 ;; esac; done; );
autotools.mk: error: Unsupported libtool version v - cannot patch ./ltmain.sh
make[3]: *** [/opt/xc/openwrt/belkin/trunk/build_dir/target-mipsel_uClibc-0.9.33/libgcrypt-1.5.0/.configured_] Error 1
make[3]: Leaving directory `/opt/xc/openwrt/belkin/trunk/feeds/packages/libs/libgcrypt'
make[2]: *** [package/feeds/packages/libgcrypt/compile] Error 2
make[2]: Leaving directory `/opt/xc/openwrt/belkin/trunk'
make[1]: *** [/opt/xc/openwrt/belkin/trunk/staging_dir/target-mipsel_uClibc-0.9.33/stamp/.package_compile] Error 2
make[1]: Leaving directory `/opt/xc/openwrt/belkin/trunk'
make: *** [world] Error 2

A possible fix is this sed regexp:

's,^[[:space:]]*VERSION=\"\([0-9]\.[0-9]\+\).*,\1,p'

or more general

's,^[[:space:]]*VERSION=.\?\([0-9]\.[0-9]\+\).*,\1,p'

So where does that line come from?  Can't find it without looking
hard.  Just going to patch ltmain.sh and changing it to this, which
seems to move along the build:

VERSION=2.2.6b


[Reply][About]
[<<][openwrt][>>][..]