> On 3 Feb 2022, at 09:45, Vít Ondruch <vondr...@redhat.com> wrote:
> 
> 
> Dne 02. 02. 22 v 21:59 Michel Alexandre Salim napsal(a):
>>> On Wed, Feb 02, 2022 at 06:41:16PM +0100, Alain Vigne wrote:
>>> My problem is : I don't know how to debug in the mock environment. (But, I
>>> should persevere: there is always a solution, you proved it to me ;)
>>> 
>> Try `mock shell`.
> 
> 
> I think that `mock shell --unpriv` (login as unpriviliged user) is even 
> better variant, because this is actually the way the build is run. I am not 
> sure why this is not the default option ....
> 
> 
> Vít
> 
> 
>>  You won't have Internet access inside, so if you need
>> to add more packages (e.g. an editor, or less, or a missing BR) you need
>> to use `mock install` from outside the mock environment.
>> 
>> (needless to say, pass the same `-r` and `--uniqueext` options as the
>> original build. you can see what the default chroot is by looking at
>> what /etc/mock/default.cfg symlinks to).

I usually add 

    find %{buildroot}

In the %install section so that the log contains the information I need to fix 
problems like this.

Then all the information is in the mock’s logs.

Barry



>> 
>> Cheers,
>> 
>> 
>> _______________________________________________
>> devel mailing list -- devel@lists.fedoraproject.org
>> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>> Fedora Code of Conduct: 
>> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives: 
>> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>> Do not reply to spam on the list, report it: 
>> https://pagure.io/fedora-infrastructure
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
> Do not reply to spam on the list, report it: 
> https://pagure.io/fedora-infrastructure
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to