[OE-core] [PATCH] grep: use internal regex library with musl-libc

Andre McCurdy armccurdy at gmail.com
Tue Jul 14 08:30:30 UTC 2015


musl does not have the GNU regex API provided by glibc.

  http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc#Regular_expressions

Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
---
 meta/recipes-extended/grep/grep_2.5.1a.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/grep/grep_2.5.1a.bb b/meta/recipes-extended/grep/grep_2.5.1a.bb
index 34d081b..5a2da28 100644
--- a/meta/recipes-extended/grep/grep_2.5.1a.bb
+++ b/meta/recipes-extended/grep/grep_2.5.1a.bb
@@ -23,8 +23,11 @@ SRC_URI[sha256sum] = "38c8a2bb9223d1fb1b10bdd607cf44830afc92fd451ac4cd07619bf92b
 
 inherit autotools gettext texinfo
 
+EXTRA_OECONF_INCLUDED_REGEX = "--without-included-regex"
+EXTRA_OECONF_INCLUDED_REGEX_libc-musl = "--with-included-regex"
+
 EXTRA_OECONF = "--disable-perl-regexp \
-                --without-included-regex"
+                ${EXTRA_OECONF_INCLUDED_REGEX}"
 
 CFLAGS += "-D PROTOTYPES"
 do_configure_prepend () {
-- 
1.9.1




More information about the Openembedded-core mailing list