Re: Question about a lib requires

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

 



On Fri, 18 Dec 2009 18:04:27 +0000, Adam wrote:

> On Fri, 2009-12-18 at 19:11 +0200, Jussi Lehtola wrote:
> 
> > > > Is there a way to include these requires properly ? (like adding
> > > > directly /usr/bin/jpegtran and /usr/bin/tiffinfo in Requires).
> > > Yes.
> > > 
> > > Requires: /usr/bin/jpegtran
> > > Requires: /usr/bin/tiffinfo
> > > 
> > > Does it really just need the binaries and not the libs, just that rpm 
> > > would auto-Require the libjpeg and libtiff RPMs?
> > 
> > And if it actually needs the binaries, then you can just put in  
> >  Requires: libjpeg, libtiff
> > and safely ignore the rpmlint warning. AFAIK resolving file dependencies
> > is a lot slower than resolving explicit dependencies.
> 
> +1: just requiring the library packages and ignoring the rpmlint warning
> seems correct here, to me. You are smarter than rpmlint, after all.
> rpmlint is just considering the case where you're adding a library
> dependency, not realizing it will be automatically generated. It is not
> considering the case where the library package includes a binary that
> you need to depend on.

Well, there are guidelines for such explicit Requires:

  http://fedoraproject.org/wiki/Packaging:Guidelines#Explicit_Requires

If you apply this, a comment should be added to the spec file to explain
explicit dependencies. Together with 
  http://fedoraproject.org/wiki/Packaging:Guidelines#Requires
that section of the guidelines covers more than just library dependencies.

The file dependencies, which are preferred in this case, are covered,
too:

  http://fedoraproject.org/wiki/Packaging:Guidelines#File_Dependencies

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux