On Sat, Jun 3, 2023 at 12:03 PM Stephen Smoogen <ssmoo...@redhat.com> wrote:
>
>
>
> On Sat, 3 Jun 2023 at 11:57, Brad Bell <bradb...@seanet.com> wrote:
>>
>> I am getting the error message below in response to a `fedpkg mockbuild` 
>> command. What am I doing
>> wrong ?
>>
>>  >fedpkg mockbuild
>> ... snip ...
>> ERROR: Mock config 'epel-9-x86_64' not found, see errors above.
>>
>>
>> Here is my system information:
>>
>>  >git branch
>> * epel9
>>    rawhide
>>
>>  >uname -a
>> Linux brad-mobile 6.2.15-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 11 
>> 17:37:39 UTC 2023 x86_64
>> GNU/Linux
>>
>>  >ls /etc/mock | grep epel-9
>> alma+epel-9-aarch64.cfg
>> alma+epel-9-ppc64le.cfg
>> alma+epel-9-s390x.cfg
>> alma+epel-9-x86_64.cfg
>> centos-stream+epel-9-aarch64.cfg
>> centos-stream+epel-9-ppc64le.cfg
>> centos-stream+epel-9-s390x.cfg
>> centos-stream+epel-9-x86_64.cfg
>> oraclelinux+epel-9-aarch64.cfg
>> oraclelinux+epel-9-x86_64.cfg
>> rhel+epel-9-aarch64.cfg
>> rhel+epel-9-ppc64le.cfg
>> rhel+epel-9-s390x.cfg
>> rhel+epel-9-x86_64.cfg
>> rocky+epel-9-aarch64.cfg
>> rocky+epel-9-ppc64le.cfg
>> rocky+epel-9-s390x.cfg
>> rocky+epel-9-x86_64.cfg
>>
>
> You need to choose a distribution to build against and set the configs for it
>
> ln -s /etc/mock/foobar+epel-9-x86_64.cfg /etc/mock/epel-9-x86_64.cfg
> ln -s /etc/mock/foobar+epel-8-x86_64.cfg /etc/mock/epel-8-x86_64.cfg
>

I recommend not doing it in /etc, and instead doing it in
~/.config/mock, like so:

ngompa@fedora ~> ls -hal ~/.config/mock/
total 16K
drwxr-xr-x. 1 ngompa ngompa  140 Jun 16  2022 ./
drwxrwxr-x. 1 ngompa ngompa 3.7K Jun  3 12:14 ../
lrwxrwxrwx. 1 ngompa ngompa   33 Feb 12  2022 epel-8-aarch64.cfg ->
/etc/mock/eldistro+epel-8-aarch64.cfg
lrwxrwxrwx. 1 ngompa ngompa   32 Feb 12  2022 epel-8-x86_64.cfg ->
/etc/mock/eldistro+epel-8-x86_64.cfg
lrwxrwxrwx. 1 ngompa ngompa   33 Jun 16  2022 epel-9-aarch64.cfg ->
/etc/mock/eldistro+epel-9-aarch64.cfg
lrwxrwxrwx. 1 ngompa ngompa   32 Jun 16  2022 epel-9-x86_64.cfg ->
/etc/mock/eldistro+epel-9-x86_64.cfg

(I changed my choice to the non-existent "eldistro" intentionally,
substitute with your preferred variant)



--
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to