Fix autoreconf libtool patching
PATCH 1/1 Fix autoreconf libtool patching
From: przemyslaw <[email protected]>
Some ltmain.sh files enclose the version number in quotes. This is already handled corretly by pkg-autotools.mk in LIBTOOL_PATCH_HOOK. This patch adds the same fix for AUTORECONF_HOOK.
Signed-off-by przemyslaw <[email protected]>
--- package/pkg-autotools.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/pkg-autotools.mk +2 -1
@@ -185,7 +185,8 @@ define AUTORECONF_HOOK $(Q)cd $$($$(PKG)_SRCDIR) && $(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT) $(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \ for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \ - ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$$$i | sed 's/\([0-9].[0-9]*\).*/\1/'`; \ + ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$$$i | \ + sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \ if test $$$${ltmain_version} = "1.5"; then \ support/scripts/apply-patches.sh $$$${i%/*} support/libtool buildroot-libtool-v1.5.patch; \ elif test $$$${ltmain_version} = "2.2"; then\
Signature · 1 line
1.7.10.4
PATCH 1/1 Fix autoreconf libtool patching
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Przemyslaw" == Przemyslaw Wrzos <[email protected]> writes:
Przemyslaw> From: przemyslaw <[email protected]> Przemyslaw> Some ltmain.sh files enclose the version number in quotes. This is Przemyslaw> already handled corretly by pkg-autotools.mk in LIBTOOL_PATCH_HOOK. Przemyslaw> This patch adds the same fix for AUTORECONF_HOOK.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard