RE: rpmbuild - how to not print commands in spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello;
    Thanks for responding. "Set +x" certainly seemed like the logical
choice, but unfortunately that didn't solve the problem. I tried doing a
"rpmbuild --quiet" but then my printf statements were suppressed also.  
Thanks;
John V. 

-----Original Message-----
From: Rpm-list [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Tim
Mooney
Sent: Thursday, October 12, 2017 05:44 PM
To: General discussion about the RPM package manager
Subject: Re: rpmbuild - how to not print commands in spec file 

In regard to: rpmbuild - how to not print commands in spec file , Tech...:

>    Sorry if this is an obvious question, but I've gone through the rpm 
> documentation (all 400 pages of it) and I'm not finding the solution. 
> When I run rpmbuild with the spec file, every command is printed out 
> with all of the expanded arguments. The docs say that there's a way to
turn that off.
> What I would like to do is only print out what I tell it to print out 
> and not print all of the commands. Any insight at all would be greatly 
> appreciated.

I haven't followed how recent Fedora & Red Hat's rpm 4.x has diverged
(advanced?) from the documentation, so there may be a global macro that you
can set that will disable the "set -x" that gets added in each section, but
the "old way" to do it would be to put

set +x

at the top of each section (right after %prep, right after %build, right
after %install) etc.

Tim
-- 
Tim Mooney                                             Tim.Mooney@xxxxxxxx
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux