delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/25/02:35:01

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type; q=dns; s=default; b=yHNYx2j02rEwbBEJNx6C5AkM8daJs
yEpbL4OeYRo/zzM3mjE4Pfnxy2plNo2MIxc649ClS/eIfJe5Bq2RnTyBBONAPkwg
ZJrP1TVwyqu9YWeZMpyPlpDyX1ySi9FflSPeTe+7G1ojwl0RCMNkcaTIOWB8SAEC
4MPOZ3g8ffCMpU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type; s=default; bh=nn6p8eELqgMjRL/Bz5QlCvIW7d4=; b=Iz8
mH4e4pIU2RmbEWv7r+31PgnMj5+3qcJ3HFbgvdJEKVdn99o0dCLdI/rj8rz3QwAW
U5Zr4rSrkVWm8OyJ0ko0M6e18P4aDwTaRNkfcmfgz0+7Oz5NAZydrbufYSdznjOL
8ekVvfM1PFCTRdtyheHYGJhv+H6f6aB6Q7vRs6bk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mailout05.t-online.de
Message-ID: <551256F8.3020207@t-online.de>
Date: Wed, 25 Mar 2015 07:34:32 +0100
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: [PATCH] cygcheck-dep 2.0-1: Bogus output from -l option
X-IsSubscribed: yes

--------------010303030302020700070808
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------010303030302020700070808
Content-Type: text/x-patch;
 name="cygcheck-dep-2.0-1.option-l.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="cygcheck-dep-2.0-1.option-l.patch"

--- 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
 ####### */
 


--------------010303030302020700070808
Content-Type: text/plain; charset=us-ascii

--
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
--------------010303030302020700070808--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019