[opensuse-buildservice] Fedora 24 project settings
Hi, I wanted to build my package sumo https://build.opensuse.org/package/show/home:behrisch/sumo for Fedora 24 and noted that the Fedora 24 project config is missing all those nice Prefer and Substitute statements the earlier versions have on OBS. Can they be added? I am not a Fedora expert but to me the following (all copied from the Fedora 23 project config) would be helpful, but I suppose there are more: Prefer: -atlas-sse2 -atlas-sse3 -atlas-sse -atlas-3dnow Substitute: freetype2-devel freetype-devel Substitute: xorg-x11-devel xorg-x11-proto-devel xorg-x11-xtrans-devel Substitute: xorg-x11-Mesa-devel mesa-libGL-devel Best regards and thanks for the continuous support, Michael -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Tue, Jul 12, 2016 at 12:14 AM, Michael Behrisch
Hi, I wanted to build my package sumo https://build.opensuse.org/package/show/home:behrisch/sumo for Fedora 24 and noted that the Fedora 24 project config is missing all those nice Prefer and Substitute statements the earlier versions have on OBS. Can they be added? I am not a Fedora expert but to me the following (all copied from the Fedora 23 project config) would be helpful, but I suppose there are more: Prefer: -atlas-sse2 -atlas-sse3 -atlas-sse -atlas-3dnow Substitute: freetype2-devel freetype-devel Substitute: xorg-x11-devel xorg-x11-proto-devel xorg-x11-xtrans-devel Substitute: xorg-x11-Mesa-devel mesa-libGL-devel
I'd probably argue for the Substitutes that convert SUSE package names to Fedora ones to not be re-introduced. They don't always map 1:1 and it's a bad crutch, especially with pkgconfig() or cmake() virtual Provides in development packages, allowing you to avoid the mess altogether. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 2016-07-12 06:21, schrieb Neal Gompa:
On Tue, Jul 12, 2016 at 12:14 AM, Michael Behrisch
wrote: Hi, I wanted to build my package sumo https://build.opensuse.org/package/show/home:behrisch/sumo for Fedora 24 and noted that the Fedora 24 project config is missing all those nice Prefer and Substitute statements the earlier versions have on OBS. Can they be added? I am not a Fedora expert but to me the following (all copied from the Fedora 23 project config) would be helpful, but I suppose there are more: Prefer: -atlas-sse2 -atlas-sse3 -atlas-sse -atlas-3dnow Substitute: freetype2-devel freetype-devel Substitute: xorg-x11-devel xorg-x11-proto-devel xorg-x11-xtrans-devel Substitute: xorg-x11-Mesa-devel mesa-libGL-devel
I'd probably argue for the Substitutes that convert SUSE package names to Fedora ones to not be re-introduced. They don't always map 1:1 and it's a bad crutch, especially with pkgconfig() or cmake() virtual Provides in development packages, allowing you to avoid the mess altogether.
Thanks for your answer. I am not an expert here but if there is another way to enable this substitution for several packages without editing all specs, I would be happy to use it. Could you elaborate a little on how the virtual Provides could help here? Thank you in advance, Michael -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, Jul 13, 2016 at 4:44 AM, Michael Behrisch
Thanks for your answer. I am not an expert here but if there is another way to enable this substitution for several packages without editing all specs, I would be happy to use it. Could you elaborate a little on how the virtual Provides could help here?
All RPM-based Linux distributions that use modern versions of RPM (Fedora, Mageia, openSUSE/SLE, CentOS/RHEL) have dependency generators, and one of the dependency generators included in RPM is one for using .pc files to generate Provides that indicate alternate names based on pkgconfig modules. For example, glib2-devel can also be referenced by any of its alternate Provides: pkgconfig(gio-2.0), pkgconfig(gio-unix-2.0), pkgconfig(glib-2.0), pkgconfig(gmodule-2.0), pkgconfig(gmodule-export-2.0), pkgconfig(gmodule-no-export-2.0), pkgconfig(gobject-2.0), pkgconfig(gthread-2.0). Essentially, the pkgconfig modules that a devel package has are universal names that you can use. Most development packages have them. Those that use CMake instead of autotools may also have cmake() Provides. For example, kf5-kinit-devel (Fedora) / kinit-devel (openSUSE) / lib64kf5init-devel (Mageia) all have an alternate Provides of "cmake(KF5Init)" that you can use instead of the package names. In most cases, you can get away with using exclusively common names and these generated Provides to get the correct packages, no matter the distribution. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Michael Behrisch
-
Neal Gompa