[scl.org] how to configure mock for SCL ?
Honza Horak
hhorak at redhat.com
Fri Jan 3 12:35:43 UTC 2020
Hi Jonathan,
it would help if you could explain your goal. Are you trying to build a
new collection? Or extending the llvm-toolset somehow?
From the first sight, it looks like there needs to be something changed
in the spec file of your jonathan-llvm-ldc900-llvm-ldc SRPM package, but
hard to tell without seeing it. Is the source available somewhere?
The packaging guidelines are available at
https://access.redhat.com/documentation/en-us/red_hat_software_collections/3/html/packaging_guide/index,
just in case you might have missed that.
Honza
On 1/2/20 3:31 PM, Jonathan MERCIER wrote:
> 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
>
More information about the SCLorg
mailing list