Mailing List Archive

Syntax error in configure for android
Hi Mark

Your latest changes cause an error in configure when building for android.
The line "extralibs=${extralibs//-lfreetype/}" causes an error "Bad
Substitution".
It seems that this syntax is only supported under bash, but the script
is running under sh.
It Probably should use a sed instead.
I am not sure what it is trying to achieve, it first tries to remove
-lfreetype then adds it back.
In my build, -lfreetype is not in the string anyway so I just commented
that line temporarily.

Peter
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Syntax error in configure for android [ In reply to ]
On Sat, Jan 05, 2019 at 12:11:45PM -0500, Peter Bennett wrote:
> Your latest changes cause an error in configure when building for android.
> The line "extralibs=${extralibs//-lfreetype/}" causes an error "Bad
> Substitution".
> It seems that this syntax is only supported under bash, but the script is
> running under sh.
> It Probably should use a sed instead.
> I am not sure what it is trying to achieve, it first tries to remove
> -lfreetype then adds it back.
> In my build, -lfreetype is not in the string anyway so I just commented that
> line temporarily.

I saw that too but wanted to finish and test a full build before
reporting it. I siwtch configure to use bash for the tiem being.

That construct removes *all* instances ofr -lfreetype and then adds
*one* -lfreetype to the end. The ${src//from/} construct does the
remove all "from" part. That's what's not supported in plain sh on
Debian. In contrast, ${src/from/} only removes the *first* "from"
instacne.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org