Skip to content

Commit

Permalink
Add --trace macros to enable %trace on the command line.
Browse files Browse the repository at this point in the history
This allows you to do 'rpmspec --trace -P foo.spec", which is much more
natural than editing the .spec itself to add %trace, and much more
convenient than using --eval yourself.

Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela authored and ffesti committed Feb 24, 2017
1 parent bf248ba commit 17d5ae8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpmpopt.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ rpm alias --ftpproxy --define '_httpproxy !#:+'
rpm alias --httpport --define '_httpport !#:+'
# [--httpproxy <host>] "hostname or IP of http proxy"
rpm alias --httpproxy --define '_httpproxy !#:+'
# [--trace] "trace macro expansion"
rpm alias --trace --eval '%trace'

# Minimally preserve commonly used switches from cli split-up
rpm exec --addsign rpmsign --addsign
Expand Down Expand Up @@ -198,6 +200,8 @@ rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#
rpmbuild alias --sign \
--pipe 'rpm --addsign `grep ".*: .*\.rpm$"|cut -d: -f2` < "/dev/"`ps -p $$ -o tty | tail -n 1`' \
--POPTdesc=$"generate GPG signature (deprecated, use command rpmsign instead)"
# [--trace] "trace macro expansion"
rpmbuild alias --trace --eval '%trace'

rpmsign alias --key-id --define '_gpg_name !#:+' \
--POPTdesc=$"key id/name to sign with" \
Expand All @@ -222,5 +226,7 @@ rpmspec alias --buildconflicts --srpm --conflicts \
--POPTdesc=$"list capabilities conflicting with build of this package"
rpmspec alias --buildrequires --srpm --requires \
--POPTdesc=$"list capabilities required to build this package"
# [--trace] "trace macro expansion"
rpmspec alias --trace --eval '%trace'
# \endverbatim
#*/

0 comments on commit 17d5ae8

Please sign in to comment.