Search the web
Sign In
New User? Sign Up
rpm-list · Redhat RPM List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Adding a build history to an RPM   Message List  
Reply | Forward Message #26823 of 26827 |
Re: Adding a build history to an RPM

Gavin Stark - RDM wrote:
> When building an rpm from a source rpm I'd like to be able to capture
> the configure, make, install, and rpm specific output history. Any
> process (adding a file, etc.) would be acceptable as long as the
> output can be retrieved later. I am using rpm to package some
> software and often want to be able to keep the build history. I know
> I can keep the output as a separate file but I figured that since the
> rpm makes a nice package it would be handy to have this in there as
> well.

What you are asking for is a little unusual. Typically the build
would not be stored with the resulting binary. But if you really
wanted to you could save the output of the %prep, %build, %install
scripts into a file in the build root and then package it up the same
as any other generated file. But it just does not seem like a good
thing to me so I would recomment against it.

Hints:

%prep
{
%setup -q
} 2>&1 | tee -a build.log
%build
{
%configure
make
} 2>&1 | tee -a build.log
%install
{
%makeinstall
} 2>&1 | tee -a build.log

%files
%doc build.log

Bob

_______________________________________________
Rpm-list mailing list
Rpm-list@...
https://www.redhat.com/mailman/listinfo/rpm-list



Thu Oct 6, 2005 5:10 am

bob@...
Send Email Send Email

Forward
Message #26823 of 26827 |
Expand Messages Author Sort by Date

I'm sorry if this has been asked and answered elsewhere, but I had difficulty finding a search feature for this mailing list. (Can anyone point me to one?) ...
Gavin Stark - RDM
g.stark@...
Send Email
Oct 3, 2005
8:37 pm

... What you are asking for is a little unusual. Typically the build would not be stored with the resulting binary. But if you really wanted to you could...
Bob Proulx
bob@...
Send Email
Oct 6, 2005
5:11 am

I am looking for something similar too. I need to capture the rpmbuild command line options and rpmmacros. I already save the envronment, rpm -qa, and...
Jason Pyeron
jpyeron@...
Send Email
Oct 7, 2005
7:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help