Re: Packaging for EPEL8 with gcc-9+

2021-05-12 Thread Евгений Пивнев
This works, thank you: 
https://koji.fedoraproject.org/koji/taskinfo?taskID=67775500

> 12 мая 2021 г., в 18:45, Gary Buhrmaster  
> написал(а):
> 
> On Wed, May 12, 2021 at 9:49 AM Евгений Пивнев  wrote:
>> 
>> Is there any real package .spec that use cc-toolset-9 as example?
>> SCL documentation is too extensive and mostly about creating new SCL,
>> I cannot find short description how simply to make one new package using 
>> modern C++.
>> 
> 
> Not sure if it is a real package (or if this
> is even the way it should be done), but I
> have seen the following in spec files
> along with the needed (for your package)
> (%if ...) tests for epel8.
> 
>  BuildRequires:  gcc-toolset-9
> 
> and at the top of the %build section:
> 
>  source scl_source enable gcc-toolset-9 >/dev/null 2>/dev/null && true || true
> 
> As I recall, depend on what that package
> requires/is doing in other sections one may
> also need to do the same source scl_source
> in those sections.
> 
> Good luck.
> ___
> 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


Re: Packaging for EPEL8 with gcc-9+

2021-05-12 Thread Marek Polacek
On Wed, May 12, 2021 at 03:45:01PM +, Gary Buhrmaster wrote:
> On Wed, May 12, 2021 at 9:49 AM Евгений Пивнев  wrote:
> >
> > Is there any real package .spec that use cc-toolset-9 as example?
> > SCL documentation is too extensive and mostly about creating new SCL,
> > I cannot find short description how simply to make one new package using 
> > modern C++.
> >
> 
> Not sure if it is a real package (or if this
> is even the way it should be done), but I
> have seen the following in spec files
> along with the needed (for your package)
> (%if ...) tests for epel8.
> 
>   BuildRequires:  gcc-toolset-9
> 
> and at the top of the %build section:
> 
>   source scl_source enable gcc-toolset-9 >/dev/null 2>/dev/null && true || 
> true
> 
> As I recall, depend on what that package
> requires/is doing in other sections one may
> also need to do the same source scl_source
> in those sections.

A long time ago I added the %enable_devtoolset9 macro to make this easier,
you might want to try that.  But I don't think it has (m)any users, so
I can't guarantee that it works as expected.

Marek
___
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


Re: Packaging for EPEL8 with gcc-9+

2021-05-12 Thread Gary Buhrmaster
On Wed, May 12, 2021 at 9:49 AM Евгений Пивнев  wrote:
>
> Is there any real package .spec that use cc-toolset-9 as example?
> SCL documentation is too extensive and mostly about creating new SCL,
> I cannot find short description how simply to make one new package using 
> modern C++.
>

Not sure if it is a real package (or if this
is even the way it should be done), but I
have seen the following in spec files
along with the needed (for your package)
(%if ...) tests for epel8.

  BuildRequires:  gcc-toolset-9

and at the top of the %build section:

  source scl_source enable gcc-toolset-9 >/dev/null 2>/dev/null && true || true

As I recall, depend on what that package
requires/is doing in other sections one may
also need to do the same source scl_source
in those sections.

Good luck.
___
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


Re: Packaging for EPEL8 with gcc-9+

2021-05-12 Thread Евгений Пивнев
Is there any real package .spec that use cc-toolset-9 as example?
SCL documentation is too extensive and mostly about creating new SCL,
I cannot find short description how simply to make one new package using modern 
C++.

> 5 мая 2021 г., в 16:09, Stephen John Smoogen  ):
> 
> 
> 
> On Wed, 5 May 2021 at 03:33, Евгений Пивнев  > wrote:
> May be this is trivial question but I cannot find how to package application 
> for EPEL8 that requires C++17+
> Adding «Requires: gcc-toolchain-10» into *.spec not helps.
> 
> The package name is gcc-toolset-9 and it is a SCL so you need to set up the 
> build environment like it is using other SCL's with an `scl enable` in the 
> spec file.
> 

___
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


Re: Packaging for EPEL8 with gcc-9+

2021-05-05 Thread Stephen John Smoogen
On Wed, 5 May 2021 at 03:33, Евгений Пивнев  wrote:

> May be this is trivial question but I cannot find how to package
> application for EPEL8 that requires C++17+
> Adding «Requires: gcc-toolchain-10» into *.spec not helps.
>

The package name is gcc-toolset-9 and it is a SCL so you need to set up the
build environment like it is using other SCL's with an `scl enable` in the
spec file.




> ___
> 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
>


-- 
Stephen J Smoogen.
I've seen things you people wouldn't believe. Flame wars in
sci.astro.orion. I have seen SPAM filters overload because of Godwin's Law.
All those moments will be lost in time... like posts on  BBS...
___
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


Re: Packaging for EPEL8 with gcc-9+

2021-05-05 Thread Nico Kadel-Garcia
On Wed, May 5, 2021 at 3:32 AM Евгений Пивнев  wrote:
>
> May be this is trivial question but I cannot find how to package application 
> for EPEL8 that requires C++17+
> Adding «Requires: gcc-toolchain-10» into *.spec not helps.

Maybe one hasn't been published? I find that https://rpm.pbone.net/ is
really, really useful for this kind of search for an RPM.
___
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


Packaging for EPEL8 with gcc-9+

2021-05-05 Thread Евгений Пивнев
May be this is trivial question but I cannot find how to package application 
for EPEL8 that requires C++17+
Adding «Requires: gcc-toolchain-10» into *.spec not helps.
___
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