[opensuse-packaging] SLE_15 vs SLE_15_backports
Hi, Trying to compile syslog-ng in my repo both for SLE_15 and SLE_15_backports and ran into something interesting. I use the following to detect SLES, and it works fine for the SLE_15 variant. But for SLE_15_backports I get "nothing provides riemann-c-client-devel" # riemann does not compile on SLES %if !0%{?is_opensuse} %bcond_with riemann %else %bcond_without riemann %endif Any clues why the above does not work for backports? Bye, CzP -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 13 Aug 13:56, Peter Czanik wrote:
Hi,
Trying to compile syslog-ng in my repo both for SLE_15 and SLE_15_backports and ran into something interesting. I use the following to detect SLES, and it works fine for the SLE_15 variant. But for SLE_15_backports I get "nothing provides riemann-c-client-devel"
# riemann does not compile on SLES %if !0%{?is_opensuse} %bcond_with riemann %else %bcond_without riemann %endif
Package Hub 15 now also defines is_opensuse for various reasons, but you can still detect it with the is_backports variable. Regards, ismail -- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
On 08/13/2018 02:08 PM, İsmail Dönmez wrote:
On 13 Aug 13:56, Peter Czanik wrote:
# riemann does not compile on SLES %if !0%{?is_opensuse} %bcond_with riemann %else %bcond_without riemann %endif
Package Hub 15 now also defines is_opensuse for various reasons, but you can still detect it with the is_backports variable.
Regards, ismail
This is getting more complicated. https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Dete... This means that the openSUSE Leap 15.0 is not defined with %if 0%{?sle_version} == 150000 && 0%{?is_opensuse} but requires, %if 0%{?sle_version} == 150000 && 0%{?is_opensuse} && !0%{is_backports} But for Package Hub 12, is_opensuse is undefined? And these various reasons that is_opensuse is defined for Package Hub 15 - is that to push people to submit missing bits to Package Hub 15? - Adam -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi, On 16 Aug 14:52, Adam Majer wrote:
On 08/13/2018 02:08 PM, İsmail Dönmez wrote:
On 13 Aug 13:56, Peter Czanik wrote:
# riemann does not compile on SLES %if !0%{?is_opensuse} %bcond_with riemann %else %bcond_without riemann %endif
Package Hub 15 now also defines is_opensuse for various reasons, but you can still detect it with the is_backports variable.
Regards, ismail
This is getting more complicated.
https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Dete...
This means that the openSUSE Leap 15.0 is not defined with
%if 0%{?sle_version} == 150000 && 0%{?is_opensuse}
but requires,
%if 0%{?sle_version} == 150000 && 0%{?is_opensuse} && !0%{is_backports}
But for Package Hub 12, is_opensuse is undefined?
Yes.
And these various reasons that is_opensuse is defined for Package Hub 15 - is that to push people to submit missing bits to Package Hub 15?
No, it's to enable openSUSE specific parts in the spec files. With Package Hub 15 we took all the packages from Leap 15 so it behaves mostly like openSUSE now. Regards, ismail -- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Hi, Thanks. Finally I got back to this problem. The following seems to work: %if !0%{?is_opensuse} || 0%{?is_backports} %bcond_with riemann %else %bcond_without riemann %endif This makes differentiation between Leap and SLES a bit more complicated... Bye, On Mon, Aug 13, 2018 at 2:08 PM, İsmail Dönmez <idoenmez@suse.de> wrote:
On 13 Aug 13:56, Peter Czanik wrote:
Hi,
Trying to compile syslog-ng in my repo both for SLE_15 and SLE_15_backports and ran into something interesting. I use the following to detect SLES, and it works fine for the SLE_15 variant. But for SLE_15_backports I get "nothing provides riemann-c-client-devel"
# riemann does not compile on SLES %if !0%{?is_opensuse} %bcond_with riemann %else %bcond_without riemann %endif
Package Hub 15 now also defines is_opensuse for various reasons, but you can still detect it with the is_backports variable.
Regards, ismail
-- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Aug 13 2018, Peter Czanik <peter@czanik.hu> wrote:
Any clues why the above does not work for backports?
Try osc buildconfig to investigate. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Adam Majer
-
Andreas Schwab
-
İsmail Dönmez
-
Peter Czanik