Hi Kevin, On January 27, 2022 3:59:04 AM UTC, Kevin Kofler via devel <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote: >Hi, > >when working on finally fixing Trojitá to build (it had been FTBFS since >F34, so removal was impending), I have noticed that the Akonadi contacts >plugin was not getting built because of missing transitive build >dependencies: >https://bugzilla.redhat.com/show_bug.cgi?id=2046299 >https://bugzilla.redhat.com/show_bug.cgi?id=2046310 >https://bugzilla.redhat.com/show_bug.cgi?id=2046574 > >They all have in common that FooConfig.cmake wants the CMake package Bar, >but foo-devel does not Require bar-devel. So building against Foo does not >work out of the box, only when manually BRing also bar-devel. > >The thing is, we have had for a while AutoProvides scripts for CMake that >automatically let bar-devel Provide cmake(Bar). This is already used in many >places. What is missing, though, is corresponding AutoRequires, so that foo- >devel automatically Requires: cmake(Bar) if FooConfig.cmake requires Bar. There is something like that already in place: https://src.fedoraproject.org/rpms/cmake/blob/rawhide/f/cmake.req But I guess it does not produce the requires that you expect it should? Maybe an automatic buildrequires generator would solve your use case better? Cheers, Dan _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure