From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3787 invoked by alias); 18 Oct 2013 08:07:24 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 3772 invoked by uid 89); 18 Oct 2013 08:07:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2013 08:07:23 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id B119152021B; Fri, 18 Oct 2013 10:07:20 +0200 (CEST) Date: Fri, 18 Oct 2013 08:07:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: [ITP] cygcheck-leaves - a script to list installed packages not required by any Message-ID: <20131018080720.GE23477@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <5d065c8706cc3765b4ddba203c9b006a0f4cd208@mail.qip.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ytoMbUMiTKPMT3hY" Content-Disposition: inline In-Reply-To: <5d065c8706cc3765b4ddba203c9b006a0f4cd208@mail.qip.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-10/txt/msg00158.txt.bz2 --ytoMbUMiTKPMT3hY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2435 Hi Mikhail, On Oct 5 23:03, Mikhail wrote: > As soon as setup.exe hasn't got an option to uninstall a package along wi= th its requirements which have become unused after uninstalling that packag= e, and cygcheck utility also does not provide any information on package de= pendencies I have written a bash script to list installed Cygwin packages w= hich are not required by any other installed packages (that is package leav= es in the dependency tree). >=20 > Developers usually have many lib*-devel packages installed on their syste= m, these packages and others are required only as build dependencies so I t= hink this script will be useful primarily for ordinary users who experiment= with software and want to keep their Cygwin installation clean. They will = be able to check the list of installed packages for unneeded ones. >=20 > I would like to propose this script as a Cygwin package if you appreciate= it. The name of the script can be changed according to Cygwin policy on th= e use of cyg- prefix for such a type of programs. >=20 > setup.hint: >=20 > category: Utils > requires: bash coreutils sed wget bzip2 > sdesc: "List installed Cygwin packages which are not required by any othe= r installed packages" I like the idea, but your script doesn't work as expected: $ ./cygcheck-leaves -v --2013-10-18 09:54:19-- ftp://sourceware.org/pub/cygwin/x86_64-cygwin/setu= p.bz2 =3D> `/var/cache/cygcheck-leaves/x86_64-cygwin/.listing' Resolving sourceware.org... 209.132.180.131 Connecting to sourceware.org|209.132.180.131|:21... connected. Logging in as anonymous ... Logged in! =3D=3D> SYST ... done. =3D=3D> PWD ... done. =3D=3D> TYPE I ... done. =3D=3D> CWD (1) /pub/cygwin/x86_64-cygwin ... No such directory `pub/cygwin/x86_64-cygwin'. That should be x86_64, not x86_64-cygwin. The reason is that HOSTTYPE has been already set by tcsh, and tcsh has another idea of that variable than bash. There's also the problem that, even under bash, the HOSTTYPE for 32 bit is i686, but the directory on sourceware is called x86. I guess what you want is something along the lines of targetdir=3D$(uname -m) [ "${targetdir}" =3D "i686" ] && machine=3D'x86' setup_bz2_url=3D"ftp://sourceware.org/pub/cygwin/${targetdir}/setup.bz2" Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ytoMbUMiTKPMT3hY Content-Type: application/pgp-signature Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBAgAGBQJSYOw4AAoJEPU2Bp2uRE+gsS8QAJ7eWWp4QHsUe5V2LwQeGh55 Tx8qRvqZ+r6RBhei/WVSkDljyrYzhwCzHq/lr2BJa+ysgfWJIUm7o4QjkyaJJ+Qz /S7GQoaiiWajp/G05U+Ml1iPhcLu3Ok3EUL3Kw5VvgiFnfKQ8fV2Z0mfDHSHR4Oj 6nQikgpmnxLnK2JO7BWyVgwoELi8Xo7wL7L/y9FU0kJPitL2EpGjMhjF5pjJ+aw7 bg4vFrArx2iZuWhWn3bxyhG3PxKNL1fNduWgIkX/48iTEfLUek3RCpT5OxuoJVdu p8Pjz6Q45iwyMZbdsDH7juoRi2XtBpKV+lqdbj3r9mv+HgD2W+0NAK1tWfI1NnKd NhH2cdG+peSon+i4DJmPtrsigFKIpMbCrkLiXz4sgS2HMXV/RwftsTy3poVY4Kql qlHCK+ZGmVAauhURdmoHJw+9jbe9jqX6c1VP7Pvmjzan/DMKMpQ5cIAq71PIXm80 YWaXyhu18gNyhwi/lX8ynrXMcMIgainQQ71AL++kA8uMEiFFHkV/3k5oBM1QjHkL aGFlgvwMHHXBOsUF4GhyA/5mRz+VNzKbnGhQbtXbKAx3u8Uj5siPgxrR6od+ezXc Iyjlph3S+BHdmLxGveW+rwRQv9OhPvwCt5x5nGE1TXzmsFIj0BfLJLUk2Lnv/TXI kQLowAxDkVMO0gQH+x0u =FYGF -----END PGP SIGNATURE----- --ytoMbUMiTKPMT3hY--