[scl.org] how to configure mock for SCL ?

Jonathan MERCIER jmercier at cng.fr
Thu Jan 2 14:57:50 UTC 2020


Ok so I finally get he understanding when it is wrote /bildir it refer 
to the chroot path wichi is /var/lib/mock/fedora-30-scl-x86_64/root

So now I have to found why the %prep exit with sucess without to unpack 
the source using mock while that works with rpmbuild directly



Le 02/01/2020 à 15:31, Jonathan MERCIER a écrit :
>
> Dear,
>
> I try to use mock wiyth SCL but I have some complication:
>
> I have:
>
> 1/ a source rpm file from rpmbuild -bs ...
>
> 2/ a mock config file
>
> $ cat fedora-30-scl-x86_64.cfg
> include('/etc/mock/templates/fedora-30.tpl')
> config_opts['chroot_setup_cmd'] = 'install @buildsys-build 
> scl-utils-build scl-utils'
> config_opts['target_arch'] = 'x86_64'
> config_opts['legal_host_arches'] = ('x86_64',)
> config_opts['root'] = 'fedora-30-scl-x86_64'
>
> ---------------------------------------------------------------
>
> 3/ add current user to mock group and check it with th id command
>
> 4/ init the mock environnment
>
> $ sudo mock -r fedora-30-scl-x86_64.cfg --init
>
> ---------------------------------------------------------------
>
> 5/ rebuild
>
> $ sudo mock -r fedora-scl-30-x86_64.cfg --define "scl 
> jonathan-llvm-ldc900"  --rebuild 
> SRPMS/jonathan-llvm-ldc900-llvm-ldc-9.0.0-1.fc30.src.rpm
>
> $ cat /var/lib/mock/fedora-30-scl-x86_64/result/build.log
>
> follow the link to see its content ----> 
> https://paste.centos.org/view/dda8bba1
>
> ---------------------------------------------------------------
>
> And that fail at this step!
>
> The buildscript from the spec file is launched and fail as cmake do 
> not found the source.
>
> from the log I see the build directory it is: /builddir/build/BUILD/
>
> but this directory do not exists.
>
> So how to configure mock to create the expected buildir to be used for 
> SCLs ?
>
>
> thanks
>
>
> Have a nice day
>
> -- 
>
> Jonathan MERCIER
>
> Researcher computational biology
>
> PhD, Jonathan MERCIER
>
> Centre National de Recherche en Génomique Humaine (CNRGH)
>
> Bioinformatics (LBI)
>
> 2, rue Gaston Crémieux
>
> 91057 Evry Cedex
>
> Tel :(33) 1 60 87 83 44
>
> Email :jonathan.mercier at cnrgh.fr <mailto:jonathan.mercier at cnrgh.fr>
>
>
> _______________________________________________
> SCLorg mailing list
> SCLorg at redhat.com
> https://www.redhat.com/mailman/listinfo/sclorg
-- 

Jonathan MERCIER

Researcher computational biology

PhD, Jonathan MERCIER

Centre National de Recherche en Génomique Humaine (CNRGH)

Bioinformatics (LBI)

2, rue Gaston Crémieux

91057 Evry Cedex

Tel :(33) 1 60 87 83 44

Email :jonathan.mercier at cnrgh.fr <mailto:jonathan.mercier at cnrgh.fr>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/sclorg/attachments/20200102/d247c9ad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opbnhadmohkhgdnh.
Type: image/png
Size: 5638 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20200102/d247c9ad/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blbdbihgkageipmb.
Type: image/png
Size: 17553 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20200102/d247c9ad/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcelijhjhckdaoan.
Type: image/jpg
Size: 5638 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20200102/d247c9ad/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jhfmgikfeeajbhel.
Type: image/jpg
Size: 17553 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20200102/d247c9ad/attachment-0001.jpg>


More information about the SCLorg mailing list