[Slapt-get-devel] hello

Dan Barber danb at mojolin.com
Tue Aug 31 08:35:03 EDT 2004


Jason,

Perhaps you can add the following portion of your reply into your FAQ... I
think it covers the issue quite well.

Dan

>
> > An example (or several) might be more concise. First off, lets take the
> > package libdvdread-0.9.4-i486-1.tgz. Lets say this pkg is a dep of
> > dvdbackup-0.1-i486-1.tgz, listed as the minimum threshold version (>=)
> > of libdvdread. According the the FAQ the version arch and build factor
> > into the composite package version. so this package is 0.9.4-i486-1.
> > What if the user had this library installed by any of the following
> > package names:
> >
> >     libdvdread-0.9.4-i386-1.tgz        (differing yet upward compatible
> > arch)
>
> They are seen as the same.  For the cmp_pkg_versions() function, the
> arch is ignored if the package follows the standard package naming
> convention (established in 8.1).  If not, an attempt to parse out the
> version #'s is made, and a comparison is done.  If that still doesn't
> yield a greater or lesser version, standard strcmp() is used as the
> final word in which version is greater, lesser, or equivalent.
>
> >     libdvdread-0.9.4-i586-1.tgz        (differing yet backward
> > compatible arch)
>
> They are seen as the same.
>
> >     libdvdread-0.9.4-i686-1.tgz        (differing yet backward
> > compatible arch)
>
> They are seen as the same.
>
> >     libdvdread-0.9.4-i486-2.tgz        (up one build #)
>
> 0.9.4-i386-1 is less than 0.9.4-486-2
>
> >     libdvdread-0.9.4-i686-5.tgz        (differing yet backward
> > compatible arch, and higher build
>
> 0.9.4-i386-1 is less than 0.9.4-686-5
>
> > One more question. I have seen many 3rd party packages that include
> > the "tag" of the packager appended to the build #. How does slapt-get
> > handle this? Say the user has the following package installed:
> >
> >     libdvdread-0.9.4-i486-1burn.tgz
>
> The integer value of the build strings are compared (0.9.4-i486-1 and
> 0.9.4-i486-1burn).  So "1burn" has an integer value of 1, and "1" has an
> integer value of 1.  So in our example, both package versions are the
> same.
>
> > Would this package satisfy the libdvdread-0.9.4-i486-1.tgz dependency?
>
> Yes.
>
> > Or if the installed version was one of the pkgs in the previous example?
>
> Yes, as long as it was equal or greater, as I showed in each previous
> examples.
>



More information about the Slapt-get-devel mailing list