Differences between mock and koji?

seth vidal skvidal at fedoraproject.org
Tue Jun 4 15:05:09 UTC 2013


On Tue, 4 Jun 2013 16:52:14 +0200
Simone Caronni <negativo17 at gmail.com> wrote:

> Hello,
> 
> I have a package that builds fine in a fresh rawhide mock chroot and
> not in a koji build. Is there any difference between the two?
> 
> Here is the error in Koji:
> 
> + make -j5 LIBPATH=/usr/lib64 -f makefile docs
> rm -f doc/crypt.pdf *.dvi *.log *.aux *.toc *.idx *.ilg *.ind *.out
> echo "hello" > crypt.ind
> latex crypt > /dev/null
> kpathsea: Running mktexfmt latex.fmt
> make: *** [docs] Error 1
> RPM build errors:
> error: Bad exit status from /var/tmp/rpm-tmp.5TWg4P (%build)
>     Bad exit status from /var/tmp/rpm-tmp.5TWg4P (%build)
> 
> And here is the same step in mock:
> 
> DEBUG: + make -j4 LIBPATH=/usr/lib64 -f makefile docs
> DEBUG: rm -f doc/crypt.pdf *.dvi *.log *.aux *.toc *.idx *.ilg *.ind
> *.out DEBUG: echo "hello" > crypt.ind
> DEBUG: latex crypt > /dev/null
> DEBUG: latex crypt > /dev/null
> DEBUG: makeindex crypt.idx > /dev/null
> DEBUG: This is makeindex, version 2.15 [TeX Live 2013] (kpathsea +
> Thai support).
> DEBUG: Scanning input file crypt.idx....done (345 entries accepted, 0
> rejected).
> DEBUG: Sorting entries......done (3023 comparisons).
> DEBUG: Generating output file crypt.ind....done (396 lines written, 0
> warnings).
> DEBUG: Output written in crypt.ind.
> [...]
> 
> Log of the failed koji build:
> 
> http://kojipkgs.fedoraproject.org//work/tasks/4779/5464779/build.log
> 
> Command used for mock:
> 
> mock -v --rebuild -r fedora-rawhide-x86_64
> libtomcrypt-1.17-16.fc19.src.rpm
> 

Koji uses mock to build pkgs. 

Mock in Koji is run on systems which are isolated from the network.

If there is no network connection then there shouldn't be any difference

-sv


More information about the devel mailing list