On Thu, 14 Feb 2002, Alexander Skwar wrote:

> I'm right now compiling a package, and since I didn't yet have the
> necessary devel packages installed, I needed to add quite a lot of
> BuildRequires and Requires to the SPEC.  In particular I added:
> 
> BuildRequires:          libxml-devel, libglade-devel, libxpm4-devel, gettext-devel, 
>bison, byacc
> Requires:               xml         , libglade      , libxpm4
> BuildRequires:          libscrollkeeper-devel, libbzip2-devel
> 
> Well, it's right, the package (multi-gnome-terminal) requires it.  But
> these are only indirect requires.  For instance, every package that uses
> gettext should have a gettext-devel BuildRequires.  Also the
> libbzip2-devel require shouldn't be in my SPEC, I think.  Same with
> bison, byacc, libscrollkeeper-devel and libxpm4-devel


Definitely. Most of the extra BuildRequires results from missing
Requires in devel packages. Fixing this is possible, but requires
human eyes instead of any sort of automagic scripts, since there's
some black magic not detectable such as

#if 0
#include <blah.h>
#endif


> I'd think the following packages should be requir like this:
> 
> libxml-devel, libscrollkeeper-devel:   libgnome32-devel

Are you sure about these?

> gettext-devel, bison, byacc, libbzip2-devel: rpm-build

I believe no or very few packages can build without rpm-build :)

> libxpm4-devel: XFree86-devel

Verified. True.

Abel

> 
> Alexander Skwar
> 



Reply via email to