Bug 478235 - Disable building testing if chai-PythonModule is not found
Summary: Disable building testing if chai-PythonModule is not found
Status: RESOLVED NOT A BUG
Alias: None
Product: drkonqi
Classification: Applications
Component: general (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-07 22:56 UTC by Jure Repinc
Modified: 2023-12-08 00:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
cmake.log (8.59 KB, text/x-log)
2023-12-07 22:56 UTC, Jure Repinc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2023-12-07 22:56:00 UTC
Created attachment 163994 [details]
cmake.log

SUMMARY
I tried to build DrKonqi via kdesrc-build (as part of workspace build) and since I do not have chai-PythonModule module installed it failed with an error.


STEPS TO REPRODUCE
1. have a system without chai-PythonModule
2. try to build drkonqi, e.g. with kdesrc-build

OBSERVED RESULT
The build failed with error:
-- The following REQUIRED packages have not been found:
* chai-PythonModule, Python module chai is required for testing.

EXPECTED RESULT
Maybe the testing build could automatically be disabled also if chai is not found, and it could continue building the rest without it.
Comment 1 Harald Sitter 2023-12-08 00:30:48 UTC
You should explicitly build with -DBUILD_TESTING=OFF rather than the build implicitly disabling stuff. I think you just need to add the option to kdesrcbuildrc's cmake options