[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#4895: gcc installs before binutils and fails



On Thu, 24 Oct 1996, Brian C. White wrote:

> > >If any part of binutils is necessary for "install", then binutils probably
> > >needs to be listed under "Pre-Depends" instead of just "Depends".
> > 
> > No, pre-depends should /only/ be used on system critical things like
> > libc5, bash, dpkg, etc.  gcc should have NO pre-depends lines!
> 
> Prehaps I don't understand "Pre-Depends".  As far as I can tell it is
> like this:
> 
>   Depends:	other packages that must be installed before this package
> 		can be used

This is the case with gcc.

> 
>   Pre-Depends:	other packages that must be installed before this package
> 		can be _installed_
> 
> Dpkg will then make sure the "pre-depends" packages are installed and
> configured before it does anything on the package that pre-depends
> on them.  Packages such as "libc5", "bash", "dpkg", etc. fit this because
> they must be configured before they can be called by the preinst and
> postinst scripts.
> 
> My point was that if "gcc" required something in "binutils" to be fully
> configured during gcc's installation (I can see no reason why this should
> be the case), then "pre-depends" would be the proper solution.
> 
> If I have misunderstood the definitions, please enlighten me.
>                         
You understand the definitions just fine. It's the bug that has you
confused ;-)
Gcc rightfully depends on binutils (it needs them to do certain compiles)
and should not be installed without also installing binutils.
If you install binutils first and then install gcc (as my list driven
script does) there is no problem.
Dselect fails to do this properly and dpkg complains when it is asked to
install gcc before dselect has installed binutils.
This is a bug in dselect, unless the installer who submitted it has
altered the state of the dependency screen that was presented for this
issue.
If binutils has been selected to be installed in response to gcc's
dependence then dselect is in error as to the order of opperations.

Hope that makes it more clear,
                     
Dwarf

------------                                          --------------

aka   Dale Scheetz                   Phone:   1 (904) 877-0257
      Flexible Software              Fax:     NONE 
      Black Creek Critters           e-mail:  dwarf@polaris.net

------------ If you don't see what you want, just ask --------------

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: