diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 815aef093a2196906490c5c2eb0478550964c087..11edb9aeaa67c82ec13c7427b1fc30b291aa5204 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -66,7 +66,7 @@ ifneq ($(PKG_NAME),toolchain)
 				XARGS="$(XARGS)"; \
 			$(SCRIPT_DIR)/gen-dependencies.sh "$$(IDIR_$(1))"; \
 		) | while read FILE; do \
-			grep -qE "^$$$$FILE$$$$" $(PKG_INFO_DIR)/$(1).provides || \
+			grep -q "^$$$$FILE$$$$" $(PKG_INFO_DIR)/$(1).provides || \
 				echo "$$$$FILE" >> $(PKG_INFO_DIR)/$(1).missing; \
 		done; \
 		if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \