This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] cygcheck-dep 2.0-1: Bogus output from -l option


The 'cygcheck-dep -l' output also lists various packages which are actually required by other packages.

Testcase:

$ cygcheck -f /bin/cygcheck-dep
cygcheck-dep-2.0-1

$ cygcheck-dep -c -N ncursesw
 ncursesw: is recursively needed for ( )

$ cygcheck-dep -c -N ncurses
 ncurses: is recursively needed for ( ncursesw )

$ cygcheck-dep -c -l | grep '^ ncurses'
 ncurses
 ncursesw

The attached patch should fix that.

Christian

--- cygcheck-dep.orig	2013-12-06 22:08:41.000000000 +0100
+++ cygcheck-dep	2015-03-25 07:25:10.336495900 +0100
@@ -581,7 +581,7 @@
 fi
 
 if [ "$f_nonleaves_be_necessary" ]; then
-  nonleaf_pkgs="$(IFS=$'\n' sort -n <<<"${pkg_drequisites[*]}" | sed '/^$/d' | uniq -c | sort -r | sed 's/^.* //')"
+  nonleaf_pkgs="$(IFS=$'\n'; tr ' ' '\n' <<<"${pkg_drequisites[*]}" | sed '/^$/d' | sort -n | uniq)"
 fi
 ####### */
 

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]