Summary: | compiling cantor via craft fails | ||
---|---|---|---|
Product: | [Developer tools] Craft | Reporter: | Uwe Stöhr <uwestoehr> |
Component: | Core | Assignee: | Hannah von Reth <vonreth> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde-windows, kfunk, simonandric5 |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/cantor/5700cc59da6f8bba503a38ba4c902877206a59cf | Version Fixed In: |
Description
Uwe Stöhr
2017-11-12 19:01:23 UTC
The relevant part is : -- Could NOT find KF5Pty (missing: KF5Pty_DIR) -- Could NOT find KF5Pty: found neither KF5PtyConfig.cmake nor kf5pty-config.cmake Do you have R:/lib/cmake/KF5Pty/ ? What's inside ? > Do you have R:/lib/cmake/KF5Pty/ ?
No. I installed kpty using craft. But now I see that there is indeed no
KF5PtyConfig.cmake
on my system.
I get:
frameworks/tier2/kpty
Homepage:
Description: Pty abstraction
Tags:
Latest version: 5.39.0
Installed versions: 5.39.0
Installed revision: None
but
craft -i kpty
gives me:
*** Handling package: frameworks/tier2/kpty, action: all ***
*** Action: fetch for frameworks/tier2/kpty ***
*** Action: unpack for frameworks/tier2/kpty ***
*** Action: compile for frameworks/tier2/kpty ***
*** Action: cleanimage for frameworks/tier2/kpty ***
*** Action: install for frameworks/tier2/kpty ***
*** Action: qmerge for frameworks/tier2/kpty ***
*** Craft all succeeded: frameworks/tier2/kpty after 0 seconds ***
So it seems it is a bug in the package of kpty. Should I report it there or as bug in craft?
Please check the blueprints in such cases. Inspecting kpty.py reveals: ``` if OsUtils.isUnix(): class Package(UnixPackage): def __init__(self): UnixPackage.__init__(self) else: class Package(VirtualPackageBase): def __init__(self): VirtualPackageBase.__init__(self) ``` => It won't be built on non-Unix platforms. KF5 Pty can't be built on Windows (check 'Support Platforms' on https://api.kde.org/frameworks/kpty/html/index.html). => Make Cantor buildable without kpty or make kpty build on Windows (likely won't make sense). Git commit 5700cc59da6f8bba503a38ba4c902877206a59cf by Christophe Giboudeaux. Committed on 12/11/2017 at 22:11. Pushed by cgiboudeaux into branch 'Applications/17.08'. Don't look for KF5Pty when using Windows. KF5::Pty is used in 2 backends : - sage isn't built for WIN32 platform, - maxima doesn't link to KF5::Pty on Windows. M +6 -2 CMakeLists.txt https://commits.kde.org/cantor/5700cc59da6f8bba503a38ba4c902877206a59cf Many thanks for the quick fix! But How can I benefit from the fix? I did craft -i cantor but get the same error as before. You're probably using the 17.08.3 tag for Cantor, which doesn't contain the fix. Christophe pushed his fix to 17.08 branch though. Overwrite the target for just one single Craft invokation: => craft --target=master -i cantor Overwrite the target for KDE Applications permanently: => Open CraftSettings.ini in %KDEROOT%\etc\ and set: [BlueprintVersions] KDEApplications = master > craft --target=master -i cantor many thanks Kevin! I was looking for a full documentation of craft but couldn't find one. I only found this page: https://community.kde.org/Craft Could you maybe add the info for the --target option and the one with KDEApplications = master to this page? Many thanks! |