openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
934 stars 438 forks source link

Debian Testing/Unstable builds unresolvable #10773

Closed tumic0 closed 3 years ago

tumic0 commented 3 years ago

Debian_Testing/Debian_Unstable builds using qtbase5-private-dev are unresolvable on build.opensuse.org due to the following issue:

unresolvable: have choice for libfontconfig1-dev needed by qtbase5-private-dev: libfontconfig-dev libfontconfig1-dev

See the GPXSee build for an example.

adrianschroeter commented 3 years ago

please do not report content problems here.

Please go to our mailing lists like opensuse-buildservice in such cases.

tumic0 commented 3 years ago

Is this really a content problem? Does OBS generally work fine with Debian transitional packages that are causing the issue and only the Debian build hosts at build.opensuse.org are broken?!

kernc commented 2 years ago

have choice for libjpeg-dev needed by libgdk-pixbuf-2.0-dev: libjpeg-dev libjpeg62-turbo-dev, have choice for libjpeg-dev needed by libtiff-dev: libjpeg-dev libjpeg62-turbo-dev

@adrianschroeter If a package doesn't directly depend on libjpeg-dev, it shouldn't need to specify it as a dependency, right? The build service should try to resolve package dependency ambiguities in some default headless manner. A bug of the worker's APT preferences or some such.

Lukey3332 commented 1 year ago

For anyone stumbling over this problem, here is the solution. e.g. in your case you'd add something like the following to your prjconf:

Prefer: -libjpeg-dev
kernc commented 1 year ago

@Lukey3332 Thanks, but IIUC, this works for RPM spec files, not for debian control files, right?

Lukey3332 commented 1 year ago

No, works for debian too. You don't add this config to the package itself, but to your obs project under the "Project Config" tab.

kernc commented 1 year ago

@Lukey3332 Thanks! This fixed it for Debian_Testing target, but it seemingly didn't do anything for xUbuntu_21.10 and xUbuntu_22.04 targets with the exact same issue, even after manually triggering a rebuild. Any ideas? 😅

kernc commented 1 year ago

Managed to fix that for Debian as well as xUbuntu targets with:

Prefer: -libjpeg-dev
Prefer: libjpeg-turbo8-dev

in Project Config tab. Thanks!