Changes

Jump to: navigation, search

ReleaseEngineering/PuppetAgain/HowTo/Build RPMs

12 bytes added, 16:56, 11 April 2018
no edit summary
Edit the spec file to your heart's content. To actually build the .src.rpm:
$ mock -r puppetagain-centos6.5-64 --buildsrpm --sources $PWD --spec /path/to/spec
The script output will tell you where the SRPM is. Copy it somewhere else, or mock will delete it in the next step.
<pre>
$ # 64 bit:
$ rm -rf /var/cache/mock/epel-6.5-x86_64/ccache
$ $ mock --rebuild -r puppetagain-centos6-64 mozilla-python27-2.7.3-0.el6.src.rpm
$
$ # 32 bit:
$ rm -rf /var/cache/mock/epel-6.5-i386/ccache/
$ mock --rebuild -r puppetagain-centos6-32 mozilla-python27-2.7.3-0.el6.src.rpm
</pre>
The script will tell you where the results are available.
If your build fails with something like "configure: error: cannot compute suffix of object files: cannot compile" in /var/lib/mock/epel-6.5-x86_64/result/build.log, or error messages complaining of a permission denied for /tmp/ccache/0/0 folder, it probably means that the last person to build an rpm didn't do the 'rm -rf' cleanup step. You'll need to do it as root:
<pre>
$ su -
(slave root password)
# rm -rf /var/cache/mock/epel-6.5-i386/ccache/# rm -rf /var/cache/mock/epel-6.5-x86_64/ccache
</pre>
Canmove, confirm
6,439
edits

Navigation menu