FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 10-27-2011, 04:38 AM
Sérgio Basto
 
Default mock questions

Hi,
how I can save or get all shell scripts generated by rpmbuild
like /var/tmp/rpm-tmp.Alfd0Z (%build)
I got a build prepare , build compile ,


Thanks in advance.
--
Sérgio M. B.

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-27-2011, 05:07 AM
"Vijay N. Majagaonkar"
 
Default mock questions

2011/10/27 Sérgio Basto <sergio@serjux.com>


Hi,

how I can save or get all shell scripts generated by rpmbuild

like /var/tmp/rpm-tmp.Alfd0Z (%build)

I got a build prepare *, build compile ,


man mock*
export MOCKARGS='--no-cleanup-after'


ThanksV!jay
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-27-2011, 05:31 AM
Sérgio Basto
 
Default mock questions

On Thu, 2011-10-27 at 10:37 +0530, Vijay N. Majagaonkar wrote:
>
> 2011/10/27 Sérgio Basto <sergio@serjux.com>
> Hi,
> how I can save or get all shell scripts generated by rpmbuild
> like /var/tmp/rpm-tmp.Alfd0Z (%build)
> I got a build prepare , build compile ,
>
> man mock
>
>
> export MOCKARGS='--no-cleanup-after'

no after mock --rebuild with --no-cleanup-after
the scripts rpm-tmp.something are deleted

find /var/lib/mock/fedora-15-x86_64/ -name "rpm-tmp*"

nothing
>
>
>
> Thanks
> V!jay
> --
> buildsys mailing list
> buildsys@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys

--
Sérgio M. B.

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 10-27-2011, 12:48 PM
Sérgio Basto
 
Default mock questions

On Thu, 2011-10-27 at 05:38 +0100, Sérgio Basto wrote:
> Hi,
> how I can save or get all shell scripts generated by rpmbuild
> like /var/tmp/rpm-tmp.Alfd0Z (%build)
> I got a build prepare , build compile ,

"If the build process ends in an error, you can take a look at the bash
scripts in /var/tmp/rpm-tmp.*. Looking at these scripts will tell you
exactly what variables are being defined and what is being done. Often
times you can fix an error in the spec file just by looking at the
scripts.
These scripts will be deleted upon termination of a section, preventing
you from looking at them. You can cheat and get a look at them by
forcing an error in that section. Just add "exit 1" to your spec file
in the appropriate section. Another useful thing is to "set; exit 1" in
a spec file. This will exit and spit out a list of defined environment
variables. Finally, you can place "bash -i" in a spec file to stop
rpmbuild and drop to a shell where you can take a look around."

Nothing to stop "these scripts", be deleted upon termination of a
section ?

Thanks in advance
- -
Sérgio M. B.

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 10:47 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org