Skip to content
Snippets Groups Projects
Commit 4a1d29c5 authored by John Crispin's avatar John Crispin
Browse files

Fix possible fail to check for dependencies


Few characters in filenames (a plus sign, a dot) can be interpreted
specially by grep. This can lead to the omission of missing package
dependency. For example if we would have "some.file.so" then it
matches also "some2file.so". -F switch off special meaning
of any character and -x match against whole line.

Signed-off-by: default avatarSławomir Demeszko <s.demeszko@wireless-instruments.com>

SVN-Revision: 44247
parent fd2689ec
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ ifneq ($(PKG_NAME),toolchain)
XARGS="$(XARGS)"; \
$(SCRIPT_DIR)/gen-dependencies.sh "$$(IDIR_$(1))"; \
) | while read FILE; do \
grep -q "^$$$$FILE$$$$" $(PKG_INFO_DIR)/$(1).provides || \
grep -qxF "$$$$FILE" $(PKG_INFO_DIR)/$(1).provides || \
echo "$$$$FILE" >> $(PKG_INFO_DIR)/$(1).missing; \
done; \
if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment