Adriaan de Groot
f0d13fc9c4
libcalamares: repair build for Qt6
2023-10-23 22:20:02 +02:00
Adriaan de Groot
8bd2d684b9
libcalamares: catch Python errors in more places
...
- (syntax) errors in the pre-script or the module's script
should not trigger a fatal error in Calamares (i.e. terminate
called because of uncaught Python exception).
- Log more clearly where the error is being caught.
2023-10-23 01:18:45 +02:00
Adriaan de Groot
e5c2066d28
libcalamares: fix build
2023-10-22 14:38:25 +02:00
Adriaan de Groot
4297a00537
Merge pull request #2210 from bitigchi/strings
...
Improve string formatting and context
2023-10-22 13:50:38 +02:00
Adriaan de Groot
ff760d84a3
libcalamares: implement mount() for Python
2023-10-22 13:32:22 +02:00
Adriaan de Groot
af9b41e1a9
libcalamares: provide pybind11 constructor for GS
...
This constructor (of the proxy object) is used only by
test-code (see also comment in the Boost implementation)
but needs to be made explicit now.
2023-10-22 13:20:29 +02:00
Adriaan de Groot
b2337c82a7
libcalamares: repair submodule utils
2023-10-21 16:34:07 +02:00
Adriaan de Groot
63b0589382
CI: apply style tool across the entire codebase
2023-10-17 22:24:46 +02:00
Adriaan de Groot
3594a64bd1
Python: add the processing-output functions, too
2023-10-16 20:07:39 +02:00
Adriaan de Groot
d0dd4b765c
Python: add checked and stdout-returning API
2023-10-16 20:07:39 +02:00
Adriaan de Groot
995f6c8ce3
Python: add target_env_call API
2023-10-16 20:07:39 +02:00
Adriaan de Groot
89ede4bcce
Python: add the API to the public header again
...
- add libcalamares.job
- add libcalamares.globalstorage
2023-10-16 20:07:39 +02:00
Adriaan de Groot
ec5a4cb423
Python: support injected pre-script (for testing)
2023-10-16 20:07:39 +02:00
Adriaan de Groot
24de6b69c4
Python: deal with Qt5 compatibility
...
QDebug can't log std::string in Qt5, it seems
2023-10-16 20:07:39 +02:00
Adriaan de Groot
0468ff400b
Python: add top-level descriptive variables
2023-10-16 20:07:39 +02:00
Adriaan de Groot
30e677a762
Python: call the module's run() function
2023-10-16 20:07:39 +02:00
Adriaan de Groot
bfb23b3b84
Python: get pretty_name from Python module
...
Add a convenience method for logging pybind11 objects.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
dd2da734ba
Python: load a module
...
- add enough API so that the dummypython module does load
- interpreter only imports the module, does not run any part of it
2023-10-16 20:07:39 +02:00
Adriaan de Groot
4411c54ba2
Python: do preliminary script-checks
2023-10-16 20:07:39 +02:00
Adriaan de Groot
61f0100cd9
Python: add new Python job implementation
...
The implementation is quite incomplete: it does not
actually run any Python code.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
1eba9c828c
Python: mini-API implementation
...
Just some string-related functions for a very basic module.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
5cad467a49
Python: use the vendored pybind11
...
Add a target that resembles what you would get from "normal"
use of pybind11 when following the examples. Link with it.
Drop Boost:Python sources from libcalamares.
2023-10-16 20:07:39 +02:00
Emir SARI
125a58f7c0
Process more messages
2023-10-15 14:39:17 +03:00
Emir SARI
814f5f0ccc
Improve formatting
2023-10-15 14:19:57 +03:00
Emir SARI
e60d981e07
Improve string formatting and context
2023-10-10 12:55:31 +03:00
Adriaan de Groot
1efb12e332
libcalamares: rename CalamaresUtilsSystem and Gui
2023-09-11 20:40:10 +02:00
Adriaan de Groot
eb840d4117
libcalamares: ditch namespace CalamaresUtils
...
- Most CalamaresUtils things go to Calamares
- YAML support to Calamares::YAML and then remove redundant "yaml"
from the function names.
2023-09-11 20:34:01 +02:00
Adriaan de Groot
f4e3964ee5
libcalamares: use namespace Calamares::Partition consistently
2023-09-11 00:09:31 +02:00
Adriaan de Groot
641e186b7c
libcalamares: use namespace Calamares::Packages consistently
2023-09-10 23:55:48 +02:00
Adriaan de Groot
a9ef587705
libcalamares: use namespace Calamares::Network consistently
2023-09-10 22:32:49 +02:00
Adriaan de Groot
d199288034
libcalamares: use namespace Calamares::GeoIP consistently
2023-09-10 22:26:32 +02:00
Adriaan de Groot
47cbcbd348
libcalamares: move all locale-related things into namespace Calamares::Locale
...
The locale bits were spread over Calamares::Locale and CalamaresUtils::Locale.
2023-09-10 22:26:32 +02:00
Adriaan de Groot
c2064124b9
libcalamares: needs to link in QtNetwork
2023-09-08 21:41:31 +02:00
demmm
07e5a3a113
[partition] start Qt6 work
...
make kpmcorehelper usable for both kf5 & 6, though no section added yet dealing with set to NOT for Qt6
adjust CalamaresConfig to not be hardcoded to kf5
one more var needed in Variant.h, used in PartitionInfo.cpp
adjust QVariant & QtConcurrent use
2023-09-07 13:03:16 +02:00
Adriaan de Groot
5f8b6ed437
dummycpp: adapt to Qt6
...
- since HashVariantType has more than one consumer, move it to header
2023-09-05 00:05:46 +02:00
Adriaan de Groot
ca9006a1bc
i18n: move translation helper-function to CMakeModules
2023-09-04 22:44:08 +02:00
Adriaan de Groot
8a8860e75c
Qt6: resolve TODOs against missing KF6
...
- On FreeBSD, no KF6 was available
- On KDE Neon Unstable, there are somewhat wonky KF6 packages available
- Adjust CMake to find the KDE Neon versions, then fix the C++ code
2023-09-04 21:51:03 +02:00
Adriaan de Groot
4b3278058b
libcalamares: repair test
...
The calamaresstyle tool reformatted a bunch of R-strings,
leading to test failures. Mark them with INDENT-OFF so
astyle doesn't break them again.
2023-09-03 23:16:54 +02:00
Adriaan de Groot
95aa8d8127
libcalamares: update maintainer and sponsor
2023-09-03 23:02:47 +02:00
Adriaan de Groot
bc9d5aae58
libcalamares: repair locale tests for Qt6 compatibility
2023-09-03 23:02:09 +02:00
Adriaan de Groot
49d449c211
i18n: enable Qt6 build of lang/ and libcalamares translations
2023-09-03 23:00:13 +02:00
Adriaan de Groot
ad8c87e5d3
libcalamares: repair tests for Qt6 compatibility
2023-09-03 23:00:13 +02:00
Adriaan de Groot
25250179da
libcalamares: handle variants in Python
...
The Python helpers need a couple of obscure QVariants,
do not add them to the "global" list of compatible variant types.
2023-09-03 23:00:13 +02:00
Adriaan de Groot
cdb2eb8b9a
libcalamares: deal with KF5 macro expansion
...
Since KF5 is not looked-for in the Qt6 build, mock up
a useless macro-expander in its place.
2023-09-03 23:00:13 +02:00
Adriaan de Groot
e0b820abbc
libcalamares: deal with QtConcurrent::run
...
In Qt5, you pass the pointer-to-object for a member-function-call
first, and in Qt6, as a regular parameter.
2023-09-03 22:58:49 +02:00
Adriaan de Groot
fe8939e745
libcalamares: deal with QRegExp
2023-09-03 22:58:49 +02:00
Adriaan de Groot
99d012c5ce
libcalamares: deal with QVariant
...
Compatibility header required, and logging was missing
a (transitively included in Qt5) include for QVariant.
2023-09-03 22:58:44 +02:00
Adriaan de Groot
27329a497a
libcalamares: deal with QMutexLocker
...
- Add a compat/ directory with support for Calamares-named
variations of Qt classes where there are relevant differences
between Qt5 and Qt6
2023-09-03 22:58:33 +02:00
Adriaan de Groot
50f2a6ad4a
libcalamares: deal with QPair
...
Use std::pair instead. Also applies to Qt5 build.
2023-09-03 22:53:43 +02:00
Adriaan de Groot
179796d598
CMake: can't mix KF5 and Qt6
...
This will fail to build because we require KDE Frameworks
CoreAddons, but I don't have one just now.
2023-09-03 22:53:43 +02:00