Bug 3034 - buildreq: changing build stage with ease
Summary: buildreq: changing build stage with ease
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-utils (show other bugs)
Version: unstable
Hardware: all Linux
: P2 enhancement
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-23 17:34 MSD by at@altlinux.org
Modified: 2005-07-13 15:45 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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