Re: How to replace the rpm-build package with my own in a mock container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 16, 2021 at 9:11 AM Mikhail Gavrilov
<mikhail.v.gavrilov@xxxxxxxxx> wrote:
>
> Hi folks.
> Can anyone tell me how to replace the rpm-build package with my own in a mock container.
> I am already added my local repository to `/etc/mock/templates/fedora-rawhide.tpl` with locally builded rpm-build  package.
> [local-repo]
> name=local repo
> baseurl=file:///home/mikhail/rpmbuild/RPMS/x86_64
> cost=0
> enabled=1
> # not secure
> gpgcheck=0

Take a look at what I do for building Samba, at
https://github.com/nkadel/samba4repo/blob/master/Makefile. I build a
customized .cfg file with a higher priority. Running mock inside of
mock..... is not likely to work well. You really need a container or
VM, because the a lot of the network services are disabled inside the
mock chroot cage.

> And my repository has higher priority than default koji repository
> [local]
> name=local
> baseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/$basearch/
> cost=2000
> enabled={{ not mirrored }}
> skip_if_unavailable=False
>
> But `mock -r fedora-rawhide-i386 --rebuild ...` command still use default koji package.
>
> I removed all directories from `/var/lib/mock` and run "mock -r fedora-rawhide-i386 clean --scrub all" for cleaning caches, but didn't helps.
>
> Also I didn't see in build.log any attempts to download `rpm-build` package. https://pastebin.com/RVWjnQRa
>
>
> I already asked this question in irc but didn't get answer, so sorry for noise.
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux