On Tue, Sep 13, 2022 at 3:56 PM Neal Gompa <ngomp...@gmail.com> wrote:
>
> On Tue, Sep 13, 2022 at 3:36 PM Ron Olson <tachokni...@gmail.com> wrote:
> >
> > Unfortunately I can’t get that rhel+epel8 to work, as it complains “ERROR: 
> > /etc/pki/entitlement is not a directory is subscription-manager 
> > installed?”. I went through all the other epel-8 flavors and they all work. 
> > I added this to the spec file as a test:
> >
> > %if 0%{?rhel} && 0%{?rhel} == 8
> > BuildRequires: gcc-toolset-11
> > %endif
> >
> > So I could try a scratch build on koji but it failed too 
> > (https://koji.fedoraproject.org/koji/taskinfo?taskID=91951147).
> >
> > Not sure how to fix this; I can’t get it to fail on any local instance, and 
> > apparently Koji uses its own special flavor of EPEL-8 so it’s pretty 
> > frustrating. The weird thing is that it was working before with earlier 
> > builds of Swift.
> >
>
> You need to enable it at the beginning of %build
>
> %If 0%{?el8}
> # Enable GCC Toolset 11
> . /opt/rh/gcc-toolset-11/enable
> %endif
>
> Then it'll work.

The use of the "el8" is also cleaner, and a bit more clear about being
compatible for other RHEL baed systems.

Nico Kadel0-Garcia
_______________________________________________
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, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to