This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[PATCH] cygcheck-dep 2.0-1: Bogus output from -l option
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Wed, 25 Mar 2015 07:34:32 +0100
- Subject: [PATCH] cygcheck-dep 2.0-1: Bogus output from -l option
- Authentication-results: sourceware.org; auth=none
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