Adriaan de Groot
d435ddd955
libcalamares: don't name unused parameters
2023-10-24 22:15:10 +02:00
Adriaan de Groot
5d1b94a708
libcalamares: don't name unused parameters
2023-10-24 22:14:26 +02:00
Adriaan de Groot
f24df7ccc9
libcalamares: use Pybind11Helpers consistently
...
This header includes all of the needed pybind11 headers,
but also wrangles defines and warnings in one spot.
2023-10-24 22:13:06 +02:00
Adriaan de Groot
019450132e
libcalamares: add missing parent constructor call to PythonJob
2023-10-24 22:06:25 +02:00
Adriaan de Groot
1c2480a308
packagechooser: suppres signedness warning
2023-10-24 21:55:03 +02:00
Adriaan de Groot
d0bb6134ae
keyboard: remove unused variable
2023-10-24 21:48:58 +02:00
Adriaan de Groot
dac6931e81
libcalamares: switch Python to an embedded module
...
This breaks python scripts that `import libcalamares` running
outside of the framework (e.g. outside of a Calamares job).
2023-10-24 15:33:26 +02:00
Adriaan de Groot
8bea736651
libcalamares: make VERSION in Python modules the full-version
2023-10-24 15:31:09 +02:00
Adriaan de Groot
da0ce1d3d6
libcalamares: move Python module-definitions to the Job
2023-10-24 15:29:07 +02:00
Adriaan de Groot
3ffa4f5bf6
libcalamares: mount() is part of the Python API
2023-10-24 15:24:12 +02:00
Adriaan de Groot
0d3519fe79
libcalamares: tidy up API documentation
...
The __attribute__ on the namespace confuses clang-tidy, which is
why this one namespace is indented.
2023-10-24 15:14:08 +02:00
Adriaan de Groot
ede1c29a0e
libcalamares: embed the pybind11 API differently
2023-10-24 15:04:08 +02:00
Adriaan de Groot
6ba8d9fd7d
modules: adapt to changes in network manager
2023-10-24 02:01:19 +02:00
Adriaan de Groot
8ebba4fcff
libcalamares*: adapt consumers of network manager
2023-10-24 02:01:19 +02:00
Adriaan de Groot
35998066c2
libcalamares: re-do singleton-ness of NetworkAccessManager
...
The Calamares Manager should not be a singleton; it is needed
in multiple threads (e.g. from QML). It can have a singleton
Private manager that caches and shares things, though.
2023-10-24 02:01:19 +02:00
Adriaan de Groot
cfc5b03264
contextualprocess: repair typo from string-fix
2023-10-24 00:01:06 +02:00
Adriaan de Groot
8edb5f4290
Merge pull request #2222 from bitigchi/strings
...
Improve string formatting and context
2023-10-23 23:06:23 +02:00
Adriaan de Groot
f0d13fc9c4
libcalamares: repair build for Qt6
2023-10-23 22:20:02 +02:00
Emir SARI
682cbe6951
Improve string formatting and context
2023-10-23 13:39:26 +03: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
71d27eee8e
hostinfo: ditch flaky test
2023-10-21 15:47:10 +02:00
Adriaan de Groot
5846ea384a
machineid: ditch flaky test
2023-10-21 15:43:19 +02:00
Adriaan de Groot
a649b67880
machineid: document flaky test
2023-10-17 22:54:08 +02:00
Adriaan de Groot
aaa82386d8
libcalamaresui: always use KOSRelease
...
The places where KOSRelease was ifdeffed always set the ifdef in
the surrounding CMake code, so make it unconditional.
2023-10-17 22:46:11 +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
42172826ca
loadmodule: extend test-module-loader application
...
- Introduce -S to load settings beforehand, allows testing
in dont-chroot and debug and OEM modes.
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
Adriaan de Groot
35ae45e3ec
Docs: mention Boost::Python retired
2023-10-15 22:23:27 +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
demmm
2d2436f9a5
[QML modules] add Qt6 needed files
...
use alias for all -qt6.qrc QML files, so no change is needed for Qml.cpp searchQML files
most QMl does not need QtGraphicalEffects
keyboardq duplicate all .xml files too
2023-10-14 19:56:53 +02:00
Adriaan de Groot
7abbcd685e
users: repair broken tests
...
Applying the styling tool breaks the string literals.
2023-10-14 00:33:04 +02:00
Adriaan de Groot
d8415cfd53
shellprocess: repair broken tests
...
Applying calamaresstyle to this file re-formats the
raw-string-literals, which breaks the tests. Restore
the previous string formatting.
2023-10-14 00:27:44 +02:00
Philip Mueller
fd10a4a4a2
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2023-10-13 10:39:10 +07:00
Adriaan de Groot
2b147a2998
welcomeq: have Qt5 and Qt6 versions of the QML as an example
2023-10-12 22:35:32 +02:00
Adriaan de Groot
4a5e7af9a4
libcalamaresui: support Qt6 QMLViewStep
2023-10-10 23:51:52 +02:00
Adriaan de Groot
628c98becb
libcalamaresui: apply coding style (include order)
2023-10-10 23:51:52 +02:00
Emir SARI
e60d981e07
Improve string formatting and context
2023-10-10 12:55:31 +03:00
Adriaan de Groot
cf9f283a8e
Merge pull request #2209 from lubuntu-team/lubuntu/netplan-configs
...
Quick vendor patch to add support for Netplan-based configs
2023-10-09 22:31:34 +02:00
Simon Quigley
e5db326a7e
Quick vendor patch to add support for Netplan-based configs
2023-10-08 21:37:26 -05:00
Emir SARI
108b6759f7
Improve string formatting and context
...
Improves some strings according to the KDE HIG, and specifies
whether they are titles, buttons, or tooltips.
2023-10-06 07:05:42 +03:00
GeckoLinux
d4accae21b
Correct the comment description of the "Replace" partition behavior
...
The described behavior of the "Replace" option was incorrect, it does not keep the same filesystem type that the partition already had, rather it uses the `defaultFileSystemType` value. See:
https://github.com/calamares/calamares/issues/1970
2023-10-01 19:23:35 -05:00
Adriaan de Groot
309fa9718e
users: repair build on openSUSE Qt6
...
Build failure looks like
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
src/modules/users/CMakeFiles/users_internal.dir/users_internal_autogen/mocs_compilation.cpp.o:
relocation R_X86_64_32 against symbol `_ZN6Config16staticMetaObjectE' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
This was the original reason for starting to change the library type.
2023-10-02 00:37:59 +02:00
Adriaan de Groot
364e940a9a
CMake: don't default to SHARED libraries, require explicit
2023-09-28 20:56:09 +02:00
Adriaan de Groot
77d489b5e5
users: repair previous "fix"
...
The build failure on openSUSE is real, but the "fix" switched
the internal library accidentally to SHARED, without installing it.
It shouldn't be a library at all, really (if STATIC won't do).
FIXES #2203
2023-09-28 20:55:39 +02: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
Philip Mueller
b272011b21
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2023-09-11 07:22:30 +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
766c28ca82
interactiveterminal: prepare for Qt6
...
- Try to build with KF6
- Bodge out the actual loading-of-konsole-part
2023-09-10 22:26:32 +02:00
Adriaan de Groot
8925c34ff7
CMake: massage finding-of-things to be less demanding
...
1- Need to be careful switching dependencies from REQUIRED to OPTIONAL
2- Don't do ECM REQUIRED all over the place
3- Workaround neon CI not having KCrash (which translated to KF5 not
found, which translated to a missing REQUIRED dependency, see 1).
2023-09-10 21:10:02 +02:00
Adriaan de Groot
472c07008e
keyboardq: don't bother re-finding required Qt components
2023-09-10 20:23:19 +02:00
dalto
f3f5bd8a5d
[initcpiocfg] Revert addition of setfont
2023-09-10 12:53:31 -05:00
dalto
09ccdb4ecb
[initcpiocfg] Fix typo in initcpiocfg.conf
2023-09-09 10:10:02 -05:00
dalto
23c4aa0aa4
[bootloader] Fix error in condition with uses_sd_encrypt
2023-09-09 10:09:30 -05:00
Adriaan de Groot
0500eb54da
users: workaround build failure
...
x86_64-suse-linux/bin/ld: libusers_internal.a(mocs_compilation.cpp.o):
relocation R_X86_64_32 against symbol `_ZN6Config16staticMetaObjectE'
can not be used when making a shared object; recompile with -fPIC
x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
2023-09-09 01:27:13 +02:00
Adriaan de Groot
60df29d734
Merge pull request #2164 from ivan1986/add-keyboard-group
...
add keyboard layout switch selector
2023-09-08 21:45:36 +02:00
Adriaan de Groot
c2064124b9
libcalamares: needs to link in QtNetwork
2023-09-08 21:41:31 +02:00
Adriaan de Groot
57746be66e
kpmcore: factor out sometimes-needed dependencies
2023-09-07 23:45:57 +02:00
Adriaan de Groot
7dffabef43
netinstall, tracking: KF6 use
2023-09-07 23:39:39 +02:00
Ivan Borzenkov
4d00eef822
fixes
2023-09-07 23:31:48 +03:00
Ivan Borzenkov
ea725da79b
keyboard switch to same line
2023-09-07 21:57:58 +03:00
Ivan Borzenkov
1ac3459afa
add keyboard layout switch selector
2023-09-07 21:57:58 +03:00
Adriaan de Groot
1b235e56a3
Merge pull request #2199 from demmm/calamares
...
[users] CheckPWQuality.cpp Qt6 correction
2023-09-07 20:03:32 +02:00
demmm
b8dd4ef20a
[partition] Qt6 conversion completed
...
adjust QMouseEvents, update CHANGES
2023-09-07 18:10:21 +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
dalto8
7c55529072
[initcpiocfg] Remove noconfig since a config file was added
2023-09-06 22:20:53 +00:00
demmm
14419ac26f
[users] CheckPWQuality.cpp Qt6 correction
...
2 additional QVariant replacements
2023-09-06 18:33:24 +02:00
Adriaan de Groot
bf7983dac8
Merge branch 'work/qt6-i18n' into calamares
2023-09-05 23:55:14 +02:00
Adriaan de Groot
e1bb6f1eb3
CMake: remove Qt6 handholding of modules
2023-09-05 23:54:44 +02:00
Adriaan de Groot
ead610b429
zfs: adapt to Qt6
2023-09-05 23:54:44 +02:00
Adriaan de Groot
9d324bcccd
users: adapt to Qt6
2023-09-05 23:54:36 +02:00
Adriaan de Groot
680d4f8dc2
preservefiles: adapt to Qt6
2023-09-05 23:54:36 +02:00
Adriaan de Groot
2eff5f74a5
plasmalnf: not compatible with Qt6
2023-09-05 23:54:36 +02:00
Adriaan de Groot
d7df1a8eca
packagechooser: Adapt to Qt6
...
While here, deal with the WITH_ -> BUILD_ change of options.
2023-09-05 23:54:36 +02:00
Adriaan de Groot
7b36dfb351
Merge pull request #2196 from AsahiLinux/keyboard-init-order
...
keyboard: Do the autodetection stuff after setConfigurationMap
2023-09-05 15:54:15 +02:00
Adriaan de Groot
1ca6b27afe
Merge pull request #2195 from AsahiLinux/wayland-hidpi
...
Make HiDPI SVG rendering work on Wayland
2023-09-05 15:53:53 +02:00
Adriaan de Groot
07e7757c31
oemid: adjust to Qt6
2023-09-05 15:36:09 +02:00