Adriaan de Groot
66682b3e84
Merge branch 'calamares' into work-3.3
2022-05-18 15:13:21 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
aedb55ea36
[partition] Require modern KPMCore
2022-03-21 23:44:20 +01:00
Adriaan de Groot
49c56add7d
Merge branch 'calamares' into work-3.3
2022-03-21 23:21:54 +01:00
Adriaan de Groot
7aafeec2cb
[libcalamares] Fix entry-format, it was totally bogus
2022-03-01 16:14:45 +01:00
Adriaan de Groot
2f782f18c4
[libcalamares] Fix file reading
...
- atEnd() doesn't behave as expected
- drop the textstream, not needed
- rename variables to be more descriptive
2022-03-01 16:13:25 +01:00
Adriaan de Groot
60630efa6a
[partition] Log DBus calls and switch to blocking calls to ensure they happen
2022-03-01 14:03:04 +01:00
Adriaan de Groot
c5fec83f64
[libcalamares] Fix typo
2022-02-28 11:30:36 +01:00
Adriaan de Groot
f2a6736883
[libcalamares] More chatty when DBus fails
2022-02-28 11:29:45 +01:00
Adriaan de Groot
5b40f17b9c
[libcalamares] Prep-work for supporting non-Solid automounting
2022-02-28 11:26:57 +01:00
Adriaan de Groot
7f14aa6bf1
[libcalamares] Avoid warnings about KPMCore headers
2022-02-08 16:35:23 +01:00
Adriaan de Groot
0070dd2c01
[libcalamares] Add a convenience for reading mtab
...
- used by umount and cleartempmounts (in future)
2022-01-18 13:22:20 +01:00
Adriaan de Groot
4611545f93
[libcalamares] Warnings-- on switch()
...
- some switch statements handle a bunch of items explicitly,
then default the rest. Clang complains about that. Turn off
the warning for these specific switches, since there's dozens
of values that simply do not need to be handled.
2021-12-07 15:42:14 +01:00
Adriaan de Groot
049bccbdd8
[libcalamares] Cut down log-spam from KPMManager
2021-09-22 01:28:40 +02:00
Adriaan de Groot
3519697d0e
[libcalamares] Slightly more memory-safe
...
Use unique_ptr to ensure Private is always deleted.
SEE #1758
2021-08-31 12:54:51 +02:00
Adriaan de Groot
ac8f99a206
[libcalamares] Don't double-include FileSystem
...
The partitioning header 'FileSystem.h' is for KPMCore support;
it is already included by Global.h and guarded by ifdefs for
KPMCore. Do not unconditionally include it from the implementation.
2021-03-27 02:38:45 +01:00
Adriaan de Groot
559b79f920
[partition] Use (better documented) filesystem-use API
2021-03-23 12:09:06 +01:00
Adriaan de Groot
10bec1d970
[libcalamares] Expand API to allow clearing out the filesystem use
2021-03-23 12:09:01 +01:00
Adriaan de Groot
9665af0e5a
[libcalamares] Make keys case-insensitive (as documented)
2021-03-23 12:09:01 +01:00
Adriaan de Groot
48541629f9
[libcalamares] Extend tests to handle case-insensitive
2021-03-23 12:09:01 +01:00
Adriaan de Groot
f3681a533e
[libcalamares] Rearrange filesystem-use API
...
- make the functies that take a GS* first-class
- use the convenience functions from JobQueue for the others
- inline so only the explicit-GS* functions are in the library
2021-03-23 12:09:01 +01:00
Adriaan de Groot
488631824d
[libcalamares] Make the KPMCore global storage filesystem handlers inline
2021-03-23 12:09:01 +01:00
Adriaan de Groot
75eb2c3cd4
[libcalamares] Add tests for filesystem_use service
2021-03-23 12:08:52 +01:00
Adriaan de Groot
afdf431b77
[libcalamares] Add partition service for managing global storage
...
- the global storage key filesystem_use has a structured meaning,
so give it a (trivial-ish) API for reading and writing.
2021-03-23 12:08:52 +01:00
Adriaan de Groot
c98a330bf9
[libcalamares] Store DBus reply value, drop debug-logging
2021-02-03 00:46:00 +01:00
Adriaan de Groot
1704ad5977
[partition] Add a job to handle automount behavior
...
- while here, nudge CalamaresUtils automount API a little,
since it doesn't really need an rvalue-ref.
2021-02-02 19:18:19 +01:00
Adriaan de Groot
3ade1fd84a
Merge branch 'add-automount-control' into calamares
2021-01-18 16:28:12 +01:00
Gaël PORTAY
bf9c9a64f1
[libcalamares] Introduce new function getPartitionTable
2021-01-08 08:54:02 -05:00
Adriaan de Groot
d74bdbcfd0
[libcalamares] coding-style, logging in calautomount
2020-12-22 22:07:17 +01:00
Adriaan de Groot
3150785ff1
[libcalamares] Use shared_ptr instead of unique_ptr
...
The value inside a unique_ptr can't be opaque, it needs to be known
at any site where the pointer may be deleted. shared_ptr does not
have that (deletion is part of the shared_ptr object, which is larger
than the unique_ptr) and so can be used for opaque deletions.
2020-12-22 21:29:49 +01:00
Adriaan de Groot
1c4bf58fb4
[libcalamares] automount-manipulation test-program
2020-12-22 21:25:00 +01:00
Adriaan de Groot
f0a33a235c
[libcalamares] Make automountDisable() more flexible
2020-12-22 21:24:30 +01:00
Adriaan de Groot
9e6bddf31a
[partition] Add new AutoMount-manipulating helpers
2020-12-22 16:05:20 +01:00
Adriaan de Groot
1c285f011b
[libcalamares] Export partition-syncer symbols
2020-12-22 16:03:51 +01:00
Adriaan de Groot
4a08fdbb92
[partition] Reduce warnings from KPMCore
...
- make KPMHelper.h an "everything include" and suppress warnings
from it, then use it in the tests.
2020-11-01 00:20:17 +01:00
Adriaan de Groot
d26fde6647
[partition] Reduce warnings
...
- Add a helper header that munges the warnings-settings so that
KPMcore headers can be included.
2020-11-01 00:05:05 +01:00
Gaël PORTAY
03df5f6891
[libcalamares] Fix constness of functions
2020-10-30 09:42:59 -04:00
Gaël PORTAY
aec066359a
[libcalamares] Fix coding style
2020-10-30 09:42:59 -04:00
Adriaan de Groot
98c7cec732
CMake: restore NOTREACHED, without the macro-mess
...
- gcc (up to at least version 10) is worse at recognizing that all
cases have been handled, so it complains about all the switches
that cover enum values.
2020-10-25 18:52:38 +01:00
Adriaan de Groot
2b9fa0f982
CMake: drop the NOTREACHED macro
...
- both clang and g++ support __builtin_unreachable(); (as Kevin
Kofler pointed out) so we don't need the macro to do different things;
- the compilers have gotten better at detecting unreachable code,
so instead of inserting macros or fiddly bits, just drop them
and the unreachable code they comment.
2020-10-25 12:49:49 +01:00
Adriaan de Groot
3313a5341d
[partitions] Adapt to KPMcore 4.2 changes
2020-10-17 14:59:01 +02:00
Adriaan de Groot
a2180936ef
CI: apply coding style across the entire codebase again
2020-08-26 02:28:43 +02:00
Adriaan de Groot
1cd9b93a22
REUSE: Giant boilerplate cleanup
...
- point to main Calamares site in the 'part of' headers instead
of to github (this is the "this file is part of Calamares"
opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
this is the 3-paragraph summary of the GPL-3.0-or-later, which has
a meaning entirely covered by the SPDX tag.
2020-08-26 02:28:38 +02:00
Adriaan de Groot
3480988f53
REUSE: SPDX tagging of application library and main
...
- CC0-1.0 for the uninteresting version-headers
- GPL-3.0-or-later for the services
- add SPDX identifiers to Calamares C++ libraries and application sources
- add SPDX identifiers to Calamares QML (panels and slideshow)
- the `qmldir` is a list of names of things in the directory,
so CC0-1.0 it as "uninteresting"
- QRC files are lists of names of things in the directory,
so CC0-1.0 them as well
2020-08-26 02:05:46 +02:00
Adriaan de Groot
62a8ee9708
[libcalamares] Add name-for-partition-type method
...
- add apidox to all the untranslatedFS() methods
- add the most-basic of untranslatedFS(), which works on a given
FileSystem::Type; this one can handle special cases where
Cala needs a different untranslated name than what KPMCore provides.
2020-08-09 00:00:14 +02:00
Adriaan de Groot
537aad1222
[libcalamares] SPDX, DLLEXPORT on partition/FileSystem.h
2020-08-08 23:32:09 +02:00
Adriaan de Groot
fe3495ff97
[libcalamares] Expand KPMCore tests
...
- check on FS names as well
2020-08-08 22:54:59 +02:00
Adriaan de Groot
22fdca8f44
[libcalamares] Use Logger::Pointer for logging void-pointers
2020-06-23 13:02:06 +02:00
Adriaan de Groot
55abe0247b
[libcalamares] Fix tests on 32-bit platforms
...
- The size of a 2GiB partition (in bytes) is larger than the largest
32-bit signed integer; we hit signed overflow while calculating
2^11 * 2^10 * 2^10 and the test fails.
- Switch the whole table of sizes to qint64 instead.
- For testing purposes only, introduce a _qi suffix for qint64.
FIXES #1430
2020-06-14 23:42:25 +02:00
Callum Farmer
0c4dc71d5c
[libcalamares] Update SPDX identifiers.
...
Update CppJob.h
Update CalamaresConfig.h.in
Update DllMacro.h
Update GlobalStorage.cpp
Update GlobalStorage.h
Update Job.cpp
Update Job.h
Update JobExample.cpp
Update JobExample.h
Update JobQueue.cpp
Update CalamaresConfig.h.in
Update CppJob.cpp
Update CppJob.h
Update DllMacro.h
Update GlobalStorage.cpp
Update GlobalStorage.h
Update Job.cpp
Update Job.h
Update JobExample.cpp
Update JobExample.h
Update JobQueue.h
Update ProcessJob.cpp
Update ProcessJob.h
Update PythonHelper.cpp
Update PythonJob.cpp
Update PythonJob.h
Update PythonHelper.h
Update PythonJobApi.cpp
Update PythonJobApi.h
Update Settings.cpp
Update Settings.h
Update GeoIPJSON.cpp
Update GeoIPJSON.h
Update GeoIPTests.cpp
Update GeoIPTests.h
Update GeoIPXML.cpp
Update GeoIPXML.h
Update Handler.cpp
Update Handler.h
Update Interface.cpp
Update Interface.h
Update test_geoip.cpp
Update CountryData_p.cpp
Update Label.cpp
Update Label.h
Update LabelModel.cpp
Update LabelModel.h
Update CountryData_p.cpp
Update CountryData_p.cpp
Update Lookup.cpp
Update Lookup.h
Update Tests.cpp
Update Tests.h
Update TimeZone.cpp
Update TimeZone.h
Update TranslatableConfiguration.cpp
Update TranslatableConfiguration.h
Update ZoneData_p.cxxtr
Update cldr-extractor.py
Update zone-extractor.py
Update Actions.h
Update Actions.h
Update Descriptor.h
Update InstanceKey.cpp
Update Module.cpp
Update Module.h
Update Requirement.cpp
Update RequirementsChecker.h
Update RequirementsModel.cpp
Update RequirementsModel.h
Update Tests.cpp
Update Manager.cpp
Update Manager.h
Update Tests.cpp
Update FileSystem.cpp
Update FileSystem.h
Update KPMManager.cpp
Update KPMManager.h
Update KPMTests.cpp
Update FileSystem.cpp
Update FileSystem.cpp
Update FileSystem.h
Update KPMManager.cpp
Update KPMManager.h
Update Mount.cpp
Update Mount.h
Update PartitionIterator.cpp
Update PartitionIterator.h
Update PartitionIterator.h
Update PartitionQuery.cpp
Update PartitionQuery.h
Update PartitionSize.cpp
Update PartitionSize.h
Update Sync.cpp
Update Sync.h
Update Tests.cpp
Update Tests.h
Update BoostPython.h
Update CalamaresUtilsSystem.cpp
Update CalamaresUtilsSystem.h
Update CommandList.cpp
Update CommandList.h
Update Dirs.cpp
Update Dirs.h
Update Entropy.cpp
Update Entropy.h
Update Entropy.cpp
Update Logger.cpp
Update Logger.h
Update NamedEnum.h
Update NamedSuffix.h
Update PluginFactory.cpp
Update PluginFactory.h
Update RAII.h
Update RAII.h
Update Retranslator.cpp
Update Retranslator.h
Update String.cpp
Update String.h
Update TestPaths.cpp
Update Tests.cpp
Update Tests.h
Update UMask.cpp
Update UMask.h
Update Units.h
Update Variant.cpp
Update Variant.h
Update Yaml.cpp
Update Yaml.h
Update moc-warnings.h
2020-06-03 12:52:53 +01:00