delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/10/12:36:56

X-Spam-Check-By: sourceware.org
Message-ID: <46434A09.314C2671@dessent.net>
Date: Thu, 10 May 2007 09:36:25 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gcc packaging bug [was: Re: can not exec cc1.exe]
References: <f1ti79$6rc$1 AT sea DOT gmane DOT org> <4642612E DOT F1914D13 AT dessent DOT net> <f1u0q8$a7e$1 AT sea DOT gmane DOT org> <464293F4 DOT 6C621FE4 AT dessent DOT net> <f1v92k$9fd$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

Jim Marshall wrote:

> all of the mingw directories were still there. I manually deleted all
> the files  in these directories (/usr/i686-pc-mingw and
> /usr/lib/gcc/i686-pc-mingw32).  I then reran the cygwin setup and had it
> install the mingw tools. This fixed the problem. I am presuming that the
> setup was not actually erasing the mingw files from the HD (as evidenced
> by what I saw) so that was causing the problem in that when setup was
> not properly over-writing the existing files.

I'm glad it's now fixed.  But for the mingw-gcc-* packages, setup does
not actually create or delete any of those links, it is all done by
postinstall/preremove files.  If you take a look (see
/etc/{preremove,postinstall}/gcc-mingw*) you will see that the preremove
script only deletes the files contained in the manifest, and the
symlinks are not included there; and the postinstall only tries to
create the symlinks if they don't exist.  This could be considered a
slight packaging bug I suppose, since once created, those symlinks will
never be removed/recreated on reinstalls.

Brian

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

- Raw text -


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