[CRIU] [PATCH] cscope: ignore symbolic linked files

Laurent Dufour ldufour at linux.vnet.ibm.com
Tue May 5 02:18:51 PDT 2015


When it is run, cscope complains about files it cannot find:

cscope: cannot find file test/zdtm/live/streaming/socket-tcp.c
cscope: cannot find file test/zdtm/live/streaming/socket-tcp6.c
cscope: cannot find file test/zdtm/live/static/socket-tcpbuf-local.c
cscope: cannot find file test/zdtm/live/static/mntns_shared_bind02.c
cscope: cannot find file test/zdtm/live/static/socket_listen6.c
cscope: cannot find file test/zdtm/live/static/socket-tcp6.c
cscope: cannot find file test/zdtm/live/static/socket-tcpbuf6.c
cscope: cannot find file test/zdtm/live/static/mntns_link_ghost.c
cscope: cannot find file test/zdtm/live/transition/fork2.c

These files are relative symbolic links, and since cscope is run at the top
directory, the ../* links are not valid.

This patch removes the symbolic links from the list of scanned files. This
is not removing any tags since the real file are still scanned.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 208557e33b21..df72f070cdbc 100644
--- a/Makefile
+++ b/Makefile
@@ -271,7 +271,7 @@ tags:
 
 cscope:
 	$(E) "  GEN     " $@
-	$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' -print > cscope.files
+	$(Q) $(FIND) . -name '*.[hcS]' ! -path './.*' ! -type l -print > cscope.files
 	$(Q) $(CSCOPE) -bkqu
 
 docs:
-- 
1.9.1



More information about the CRIU mailing list