This is the mail archive of the cygwin@cygwin.com 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]

Re: RPM installer (was Re: SETUP WIZARD FOR CYGWIN?XFREE86)


Dario Alcocer wrote:

>     Chuck> The difficulty here is you've got to maintain TWO separate
>     Chuck> binaries for your core utilities -- one set of (cygwin
>     Chuck> itself, ash, rpm, db, etc) for the "real" system and one
>     Chuck> set for the "mini" environment.
> 
> I think this would be the major sticking point; having a parallel
> set of Cygwin binaries would be problematic, both for maintenance and
> support.
> 
> I think the approach I've outlined in the following message should
> work:
> 
>     http://www.cygwin.com/ml/cygwin/2001-07/msg01508.html

Ummm...in that message you DO talk about an "'installer-toolbox' version
of RPM".  I just like making things explicit: remember that executables
embed the filename of the DLLs on which they depend. 

So, if your "ITK" cygwin dll was named cygwin1.dll, then sure: you could
use the same rpm.exe both in the ITK and "for real".  But then, you're
deliberately installing two different cygwin1.dll's on a system (even
temporarily -- but what about people who like to keep the ITK around?). 
AND you have to play games with $PATH so that the "right" one is used in
the proper circumstances.  Sure, in THIS case the two dll's will not
cause the problems we've all grown to know and love, since they have
different shared region names.

But how do you explain that to your users?  "But I asked on the cygwin
list and they said never have two cgywin1.dll's.  So I deleted the one
with the newer timestamp from C:\cygwin\bin and left the one in
<desktop>\cygwin-itk\"

Geez. What a nightmare.

It seems easier (from a long-term, customer-support perspective) to
build the the ITK-cygwin dll with a different name (say,
cygwin1-itk.dll) and then link special versions of your ITK progs
against it.  So, you'd have:

cygwin1-itk
rpm-itk
ash-itk
textutils-itk
tcl/tk-itk

And that's probably it.  (Now that I think about it, you probably don't
need a special gcc for building the itk tools -- just swap two different
spec files...) Sure, short term this looks like hell.  But "The Right
Way To Do Things(tm)" usually does.  And is usually better in the long
run.  

--Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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