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.merc...@cnrgh.fr <mailto:jonathan.merc...@cnrgh.fr>


_______________________________________________
SCLorg mailing list
SCLorg@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.merc...@cnrgh.fr <mailto:jonathan.merc...@cnrgh.fr>

_______________________________________________
SCLorg mailing list
SCLorg@redhat.com
https://www.redhat.com/mailman/listinfo/sclorg

Reply via email to