This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rogue file in /etc/postinstall after update?


Lee D. Rothstein wrote:
> why are th e following files left in /etc/postinstall after each
> update/reinstall or initial install?:
> 
> gcc-mingw-ada-3.4.4-20050522-1.tgz
> gcc-mingw-core-3.4.4-20050522-1.tgz
> gcc-mingw-g++-3.4.4-20050522-1.tgz
> gcc-mingw-g77-3.4.4-20050522-1.tgz
> gcc-mingw-gdc-3.4.4-0.12.1.tgz
> gcc-mingw-gpc-3.2.3-20040516.tgz
> gcc-mingw-java-3.4.4-20050522-1.tgz
> gcc-mingw-objc-3.4.4-20050522-1.tgz
> 

They are not "rogue" files. That's how the gcc-mingw* packages WORK.
See: /etc/postinstall/gcc-mingw-*:

#!/bin/sh
[ -f /etc/postinstall/gcc-mingw-core-3.4.4-20050522-1.tgz ] || exit 0
[ -d /usr/include ] || exit 0
/bin/mkdir -p /usr/i686-pc-mingw32 /usr/include/mingw /usr/lib/mingw
/usr/i686-pc-cygwin/bin
cd /usr/i686-pc-mingw32
[ ! -e /usr/i686-pc-mingw32/include -a -d "../include/mingw" ] && ln -s
"../include/mingw" /usr/i686-pc-mingw32/include
[ ! -e /usr/i686-pc-mingw32/lib -a -d "../lib/mingw" ] && ln -s
"../lib/mingw" /usr/i686-pc-mingw32/lib
[ ! -e /usr/i686-pc-mingw32/bin -a -d "../i686-pc-cygwin/bin" ] && ln -s
"../i686-pc-cygwin/bin" /usr/i686-pc-mingw32/bin
echo "*** Unpacking
/etc/postinstall/gcc-mingw-core-3.4.4-20050522-1.tgz.  Please wait. ***"
/bin/tar -xzvf /etc/postinstall/gcc-mingw-core-3.4.4-20050522-1.tgz -C
/usr > /etc/preremove/gcc-mingw-core-manifest.lst



5 seconds of research would have answered your question.  But don't
worry. As soon as gcc-4.4.x for cygwin goes live, Dave plans to release
a true cross compiler for mingw, so the "gcc-mingw-*" packages will no
longer be structured in this way.

--
Chuck

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]