RPM Community Forums

Mailing List Message of <rpm-devel>

Re: feature request - __find_provides/requires STDERR access

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 15 Apr 2010 - 22:38:35 CEST
Message-id: <7ED824C1-7947-4503-8B0D-480D317260E8@mac.com>

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
Received on Thu Apr 15 22:39:12 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.