RFE: add an option, or default to handing a closed stdin, to rpmbuild
Bug #669655 reported by
herrold
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
New
|
Undecided
|
Unassigned |
Bug Description
rpmbuild -ba ${NODEPS} ${RMSPEC} ${RMSOURCE} ${CLEAN} \
~/rpmbuild/
... or such
that '< /dev/null' often gets rid of builder 'hangs'
and in the usual case we do not input from stdin to rpmbuild, that is not mediated by the .spec file
You can actually already do what you want, i.e. attaching
/dev/null to stdin/stdout, using these per-script macro templates:
%___build_pre \ %{_builddir} }"\
... environ setup deleted ...
%{verbose:set -x}%{!verbose:exec > /dev/null}\
umask 022\
cd "%{u2p:
%___build_post exit 0
What is needed is just to wrap the build scriptlet like
(
... the build scriptlet ends up here ...
) < /dev/null 2>&1
using the pre/post macros.