Bug 3034

Summary: buildreq: changing build stage with ease
Product: Sisyphus Reporter: at <at>
Component: rpm-utilsAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P2 CC: at, glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description at@altlinux.org 2003-09-23 17:34:36 MSD
Because of new perl.req script, new build dependencies can be discovered too late
for -bc.  Thus sometimes I want to change the stage to -bi.  I have to run
something like this:

buildreq --args="$(eval `grep -- -bc /usr/bin/buildreq | sed -e s,-bc,-bi,`; echo
"$RPMARG")" package.spec

Actually this can be an alias (buildreqi).  Anyway, I believe there should be an
easier way.

1) buildreq should be able to take its STAGE argument (-bc is the default)
2) buildreq should specially mark non-default STAGE invocation in specfile
comment, something like:
# Automatically added by buildreq on Mon Sep 22 2003 (-bi)
3) when run next time, buildreq should restore the STAGE argument from the
comment.

PS: "should" means "feature request" here.
Comment 1 Dmitry V. Levin 2003-09-26 16:42:06 MSD
Implemented in rpm-utils-0.7.3-alt1