delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/07/10:19:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_50,SPF_NEUTRAL,TW_GT,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4F577C4F.1000302@cs.utoronto.ca>
Date: Wed, 07 Mar 2012 10:18:39 -0500
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to uninstall tetex (without installing texlive)?
References: <4F576D50 DOT 70707 AT gmail DOT com>
In-Reply-To: <4F576D50.70707@gmail.com>
X-IsSubscribed: yes
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

On 07/03/2012 9:14 AM, Ryan Johnson wrote:
> Hi all,
>
> For the moment I don't want to upgrade to texlive (the 200MB download 
> factors in there), but even after removing every visible semblance of 
> tetex, setup still wants to bring in texlive. I've searched setup.ini 
> and ensured that no package listing tetex as a dependency there is 
> installed (tetex, dblatex, kpathsea, etc.) but no luck.
>
> I've attached my current package list from cygcheck ... is there 
> something on there I missed?
Update: the culprits were gnome-common, gtk-doc, and xmlto.

In case it becomes useful to anybody else in the future, below are the 
scripts I used to unmask the dependencies.

Regards,
Ryan

$ join <(cygcheck -cd | sort) <(cat setup.ini | awk -f cygcheck.awk | 
python cygcheck.py texlive)
$ cat cygcheck.awk
/[@]/ {
     printf("%s", $2)
}
/requires:/ {
     for (i=2; i <= NF; i++) {
         printf(" %s", $(i))
     }
     printf("\n")
}

$ cat cygcheck.py
import collections,sys
base,closure = sys.argv[1], set()
users = collections.defaultdict(lambda:set())

for line in sys.stdin:
     names = line.split()
     name = names[0]
     for dep in names[1:]:
         users[dep].add(name)

todos = set(u for u in users.iterkeys() if u.startswith(base))
while todos:
     user = todos.pop()
     if user not in closure:
         closure.add(user)
         todos |= users[user]

print '\n'.join(sorted(closure))


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

- Raw text -


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