On Apr 15, 2010, at 3:59 PM, Todd Rinaldo wrote: > In my spec, I had: > > %define _use_internal_dependency_generator 0 > %define __perl_prov to %{nil} > %define __find_provides %{SOURCE4} > %define __perl_req to %{nil} > %define __find_requires %{SOURCE3} > > when I built against the spec file though, I was getting an obscure error: > > Finding Provides: /home/rpmbuild/rpm-build/SOURCES/filter-rpm-provides.pl > getOutputFrom(): Broken pipe > > The reason turned out to be that I was dieing in my provides.pl script. > Problem 1: I had no way to be sure that the broken pipe was with > filter-rpm-provides.pl. > Problem 2: I had no access to STDERR from that script to know why it was > failing. Also simulating the stdin to that program is not always trivial. > > Could I suggest that when __find_requires/provides scripts are called, STDERR > output be relayed into the output from rpmbuild so it's more clear why this > failure is happening? >
What version of rpm? What is in Source3: and Source4:? Even better, if you post a URL to the src.rpm, I'll show you how to use the PLD-derived dependency filtering. Its way way easier than what you are doing ... 73 de Jeff ______________________________________________________________________ RPM Package Manager http://rpm5.org Developer Communication List rpm-devel@rpm5.org