[Craft] [Bug 426724] Missing support for adding dependencies to a specific package version
Ralf Habacker
bugzilla_noreply at kde.org
Wed Mar 27 14:01:32 GMT 2024
https://bugs.kde.org/show_bug.cgi?id=426724
--- Comment #4 from Ralf Habacker <ralf.habacker at freenet.de> ---
Hi,
i have a real world example for this:
Building package kmymoney from master branch depends on using likalkimia from
git master branch, so I added in the craft blueprint for kmymoney
if self.buildTarget != "master":
self.runtimeDependencies["extragear/libalkimia"] = None
else:
self.runtimeDependencies["extragear/libalkimia"] = 'master'
After that running
craft --target master kmymoney
still fetches libalkimia from the standard branch and not from the master
branch and fails to configure with
CMake Error at CMakeLists.txt:151 (find_package):
Could not find a configuration file for package "LibAlkimia5" that is
compatible with requested version "8.1.72".
The following configuration files were considered but not accepted:
/home/user/CraftRoot/lib/cmake/LibAlkimia5-8.1/LibAlkimia5Config.cmake,
version: 8.1.2
I need to change the defaultTarget to 'master' in libalkimia.py as workaround.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Kde-windows
mailing list