[CM] snd 5.12
Fernando Pablo Lopez-Lezcano
nando@ccrma.Stanford.EDU
Tue, 16 Jul 2002 11:37:54 -0700
> > Dependency Problem:
> > /home/bil/test/bin/guile is needed by snd-5-12
>
> Apparently RPM includes any scripts it finds in its search for dependencies,
> adding the script engine to its dependency list:
>
> > /usr/lib/rpm/find-requires
> > # Auto-generate requirements for executables (both ELF and a.out) and
> > # library sonames, script interpreters, and perl modules.
>
> > /usr/share/doc/rpm-4.0.4/CHANGES
> > scripts to /usr/lib/rpm <arjanv@redhat.com> (#44581).
>
> I can't find any way to turn this off (short of writing my own
> dependency list), so I have to make the scripts unexecutable before
> building the rpm files. I made a new set of snd-5-12 rpms.
There is another possible hack...
> If your package contains perl scripts, then you may find a need to
> get rid of a pesky Requires:. This can be done by writing a wrapper
> script to filter /usr/lib/rpm/find-requires, something like
> #!/bin/sh
> /usr/lib/rpm/find-requires | sed -e 's/perl(XXX)//'
> Mention the wrapper script in a SourceN: directive,
> SourceN: wrapper.sh
> and add to your specfile
> %define __find_requires %SOURCEn
> (note: n == N, substitute the correct number)
> This is a bit clunky, but gets the job done for now. I'll probably
> diddle up some spec file syntax in rpm to do the same filtering without
> the wrapper.sh baggage pretty soon.
That redefines the meaning of the standard find-requires
script and would make it possible to "filter out" the unwanted
dependencies. Obviously a hack, of course. I just found some
docs on this at:
http://landau.mines.edu/doc/local-apps/rpm-devel-4.0.4/apidocs/html/dependencies.html
-- Fernando