[opensuse-buildservice] package name substitutions
Hi I am trying to build a package for Fedora on openSUSE's OBS. A required package has a different name on Fedora. So I thought I would do the following in my spec file: %if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif In fact, I tried the names in the other order (Substitute: sqlite3 sqlite) as well. It makes no difference. OBS always complains that nothing provides sqlite3 on Fedora 30. It's like the substitute directive is not happening. I'm basing this on these docs: https://en.opensuse.org/openSUSE:Build_Service_prjconf#Substitute The project is: https://build.opensuse.org/package/show/home:rogeroberholtzer/proj Did I get this wrong? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mai 22 2019, Roger Oberholtzer
I am trying to build a package for Fedora on openSUSE's OBS. A required package has a different name on Fedora. So I thought I would do the following in my spec file:
%if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file. 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-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, May 22, 2019 at 1:59 PM Andreas Schwab
On Mai 22 2019, Roger Oberholtzer
wrote: I am trying to build a package for Fedora on openSUSE's OBS. A required package has a different name on Fedora. So I thought I would do the following in my spec file:
%if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file.
If I am using the Web interface, where is this? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mai 22 2019, Roger Oberholtzer
On Wed, May 22, 2019 at 1:59 PM Andreas Schwab
wrote: On Mai 22 2019, Roger Oberholtzer
wrote: I am trying to build a package for Fedora on openSUSE's OBS. A required package has a different name on Fedora. So I thought I would do the following in my spec file:
%if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file.
If I am using the Web interface, where is this?
Advanced tab. 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-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, May 22, 2019 at 2:23 PM Andreas Schwab
%if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file.
If I am using the Web interface, where is this?
Advanced tab.
I was looking there. There is a meta configuration that is XML. So I am guessing it would be somewhere else in the Advanced tab? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, May 22, 2019 at 2:34 PM Roger Oberholtzer
On Wed, May 22, 2019 at 2:23 PM Andreas Schwab
wrote: %if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file.
If I am using the Web interface, where is this?
Advanced tab.
I was looking there. There is a meta configuration that is XML. So I am guessing it would be somewhere else in the Advanced tab?
The docs say:
From web interface you can go on the tab advanced and then project config.
When I look at other projects, I see a tab called Project Config. My project does not have this tab. I have no idea why.
-- Roger Oberholtzer
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, May 22, 2019 at 2:40 PM Roger Oberholtzer
On Wed, May 22, 2019 at 2:34 PM Roger Oberholtzer
wrote: On Wed, May 22, 2019 at 2:23 PM Andreas Schwab
wrote: %if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file.
If I am using the Web interface, where is this?
Advanced tab.
I was looking there. There is a meta configuration that is XML. So I am guessing it would be somewhere else in the Advanced tab?
The docs say:
From web interface you can go on the tab advanced and then project config.
When I look at other projects, I see a tab called Project Config. My project does not have this tab. I have no idea why.
Ahh. I see. It is only present at the top level. Not for each individual project. I think I see what I need to do.
-- Roger Oberholtzer
-- Roger Oberholtzer
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mai 22 2019, Roger Oberholtzer
On Wed, May 22, 2019 at 2:23 PM Andreas Schwab
wrote: %if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
Substitute needs to be put in the project config, not the spec file.
If I am using the Web interface, where is this?
Advanced tab.
I was looking there. There is a meta configuration that is XML. So I am guessing it would be somewhere else in the Advanced tab?
In the project, not the package. 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-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Moin, On Wed, 22 May 2019, 13:34:46 +0200, Roger Oberholtzer wrote:
Hi
I am trying to build a package for Fedora on openSUSE's OBS. A required package has a different name on Fedora. So I thought I would do the following in my spec file:
%if 0%{?fedora_version} Substitute: sqlite sqlite3 %endif
In fact, I tried the names in the other order (Substitute: sqlite3 sqlite) as well. It makes no difference. OBS always complains that nothing provides sqlite3 on Fedora 30. It's like the substitute directive is not happening.
not sure if this actually helps, but, did you try to move the Substitute: *before* the BuildRequires:?
I'm basing this on these docs:
https://en.opensuse.org/openSUSE:Build_Service_prjconf#Substitute
The project is:
https://build.opensuse.org/package/show/home:rogeroberholtzer/proj
Did I get this wrong?
-- Roger Oberholtzer
Cheers. l8er manfred
participants (3)
-
Andreas Schwab
-
Manfred Hollstein
-
Roger Oberholtzer