RPM Community Forums

Mailing List Message of <rpm-devel>

feature request - __find_provides/requires STDERR access

From: Todd Rinaldo <toddr@cpanel.net>
Date: Thu 15 Apr 2010 - 21:59:03 CEST
Message-Id: <91BC99D2-5652-4064-B780-2E846C9C4499@cpanel.net>
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?

Received on Thu Apr 15 22:20:16 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.