What do I need to setup to allow mock to build for rhel+epel on Fedora?
I'm getting this error:
$ mock -r rhel+epel-8-x86_64 --print-root ERROR: /etc/pki/entitlement is not a directory is subscription-manager installed?
Barry
Barry Scott wrote:
What do I need to setup to allow mock to build for rhel+epel on Fedora?
I'm getting this error:
$ mock -r rhel+epel-8-x86_64 --print-root ERROR: /etc/pki/entitlement is not a directory is subscription-manager installed?
I haven't tried building against RHEL in mock, so I don't have any particular insights nor first-hand experience.
But I guess the first question is, do you have that package (subscription-manager) installed on the host?
Have you read
https://rpm-software-management.github.io/mock/Feature-rhelchroots
?
https://pavel.raiskup.cz/blog/fedora-builders-for-rhel.html may also have some useful tips. If nothing else, it seems to confirm that COPR is using Fedora hosts with RHEL+EPEL chroots.
I wrote:
Barry Scott wrote:
What do I need to setup to allow mock to build for rhel+epel on Fedora?
I'm getting this error:
$ mock -r rhel+epel-8-x86_64 --print-root ERROR: /etc/pki/entitlement is not a directory is subscription-manager installed?
I haven't tried building against RHEL in mock, so I don't have any particular insights nor first-hand experience.
Now I do have basic, first-hand experience. I followed the steps in the 'Feature-rhelchroots' URL below and starting a RHEL chroot worked nicely.
https://rpm-software-management.github.io/mock/Feature-rhelchroots
Hopefully that works well for you too.
On Mon, Mar 13, 2023 at 12:00 PM Barry Scott barry@barrys-emacs.org wrote:
What do I need to setup to allow mock to build for rhel+epel on Fedora?
I'm getting this error:
$ mock -r rhel+epel-8-x86_64 --print-root ERROR: /etc/pki/entitlement is not a directory is subscription-manager installed?
Does it have to be RHEL? I've used Alma and Rocky with success.
Thanks, Richard
On 13 Mar 2023, at 20:15, Richard Shaw hobbes1069@gmail.com wrote:
On Mon, Mar 13, 2023 at 12:00 PM Barry Scott <barry@barrys-emacs.org mailto:barry@barrys-emacs.org> wrote:
What do I need to setup to allow mock to build for rhel+epel on Fedora?
I'm getting this error:
$ mock -r rhel+epel-8-x86_64 --print-root ERROR: /etc/pki/entitlement is not a directory is subscription-manager installed?
Does it have to be RHEL? I've used Alma and Rocky with success.
Good question.
If I build for Alma or Rocky will it install on RHEL, Centos, Oracle Linux etc?
I picked RHEL as all the others aim to be ABI compatible with it. Is the reverse necessarily true?
I'm going to try out the suggest in the next or so when I get free to for my project.
Barry
Thanks, Richard _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
On Mon, Mar 13, 2023 at 12:00 PM Barry Scott barry@barrys-emacs.org wrote:
What do I need to setup to allow mock to build for rhel+epel on Fedora?
I'm getting this error:
$ mock -r rhel+epel-8-x86_64 --print-root ERROR: /etc/pki/entitlement is not a directory is subscription-manager installed?
You could also get a developer subscription for RHEL if you like. 16 devices for free. (IIRC)
https://developers.redhat.com/
--murph
Barry Scott wrote:
On 13 Mar 2023, at 20:15, Richard Shaw hobbes1069@gmail.com wrote: Does it have to be RHEL? I've used Alma and Rocky with success.
Good question.
If I build for Alma or Rocky will it install on RHEL, Centos, Oracle Linux etc?
I picked RHEL as all the others aim to be ABI compatible with it. Is the reverse necessarily true?
Yes (in nearly all cases).
The main exception is during the (generally short) window of time between a new RHEL release and the rebuilds catching up.
This has been on the order of a day or three for point releases and a week to a month or so for major releases. The time has typically decreased as the projects get more help, support, and continually improved tooling & build systems.
If you don't have a strong reason to require or desire to build against RHEL, building against a rebuild like Alma or Rocky works just fine. (I use Rocky Linux, both for mock builds and for running servers.)