diff --git a/root/common/deps/build/project.yaml b/root/common/deps/build/project.yaml index 4ea40284..8e6e3f58 100644 --- a/root/common/deps/build/project.yaml +++ b/root/common/deps/build/project.yaml @@ -2,3 +2,44 @@ title: Common Build Dependencies Project description: | Build-time dependency packages (Go toolchain, OBS source services) used by multiple projects. publish: false + +project-config: | + %if "%_repository" == "RockyLinux_8" || "%_repository" == "UBI_8" + ExpandFlags: module:llvm-toolset-rhel8 + ExpandFlags: module:perl-5.26 + ExpandFlags: module:perl-IO-Socket-SSL-2.066 + ExpandFlags: module:perl-libwww-perl-6.34 + Prefer: selinux-policy-targeted + %endif + + %if "%_repository" == "RockyLinux_9" + ExpandFlags: module:llvm-toolset-rhel9 + # hdf-libs (EPEL split package) and hdf both provide libdf.so.0 and libmfhdf.so.0 + Prefer: hdf-libs + %endif + + %if "%_repository" == "RockyLinux_10" + Prefer: llvm-libs + %endif + + %if "%_repository" == "Debian_11" || "%_repository" == "Debian_12" || "%_repository" == "Ubuntu_22.04" + # llvm-*-dev needs libtinfo-dev; both libncurses-dev and libtinfo-dev satisfy + # it and OBS reports "have choice" without a Prefer. + Prefer: libncurses-dev + # logrotate Recommends a cron daemon; both cron and bcron may be available. + Prefer: cron + %endif + + %if "%_repository" == "Debian_11" || "%_repository" == "Debian_12" || "%_repository" == "Debian_13" || "%_repository" == "Ubuntu_22.04" || "%_repository" == "Ubuntu_24.04" + Prefer: golang-1.26 + %endif + + %if "%_repository" == "Debian_11" || "%_repository" == "Debian_12" || "%_repository" == "Debian_13" || "%_repository" == "Ubuntu_22.04" || "%_repository" == "Ubuntu_24.04" || "%_repository" == "Ubuntu_26.04" + # libgdal-dev transitively requires both libcurl4-openssl-dev and + # libcurl4-gnutls-dev which conflict; ignore the gnutls variant so + # the openssl variant is used consistently. + Ignore: libcurl4-gnutls-dev + # libgdal-dev and several of its deps use libjpeg-dev which is provided + # by both libjpeg62-turbo-dev and libjpeg-dev; prefer the turbo variant. + Prefer: libjpeg62-turbo-dev + %endif