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

Re: Elf-x11r6lib in packages



On Mon, 15 Sep 1997, Lawrence wrote:

> It seems that dselect does fulfill it.
> 
> Enrique Zanardi wrote:
> > 
> > On Sun, 14 Sep 1997, Jim Pick wrote:
> > 
> > > I think a better approach might be to fix dpkg and xpm4 so that xpm4
> > > can resolve the versioned dependencies.
> > 
> > It really is dpkg's fault I think. As it is, there is no way
> > we can replace a package A with another B if there are others that
> > declare versioned dependencies on A. dpkg doesn't use the Provides:
> > field to fulfill versioned dependencies.

Does it? I've tried this: On a system with xpm4 and xpm4g installed, ran 
dselect and selected "freeciv" that Depends: libc5 (>= 5.4.0-0), 
xlib6 (>= 3.2-0), xpm4.7 (>= 3.4g-0) (a pure libc5-based program).
This was the result:

"dselect - recursive package listing                  mark:+/=/- verbose:v help:?
EIOM Pri Section  Package      Description                                      
  =* Opt games    freeciv      A free Civilization clone for Unix and X.        
  =* Opt x11      xpm4.7       X Pixmap libraries - runtime                     
 *=- ?   ?        xpm4         X Pixmap libraries (for libc5) - runtime         
 *=- ?   ?        xpm4g        X Pixmap libraries (for libc6) - runtime         
 *=- ?   ?        xpm-bin      X Pixmap libraries - associated binaries         

freeciv      not installed;  install (was: hold).  Optional                     
freeciv depends on xpm4.7 (>= 3.4g-0)
"

I have been diving in dpkg sources and found this:

dpkg-1.4.0.19/dpkg/depcon.c (line 271, function depisok) 
"
      /* If there was no version specified we try looking for Providers. */
"
So, if it was a versioned dependency, dpkg will ignore Providers. :-(


-- 
Enrique Zanardi					ezanardi@noah.dfis.ull.es
Dpto. Fisica Fundamental y Experimental
Univ. de La Laguna


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: