Commit Graph

1345 Commits

Author SHA1 Message Date
Adriaan de Groot
e80437c9b9 [libcalamares] Make permissions-parsing public API 2024-09-23 21:53:50 +02:00
Adriaan de Groot
e57aab2008 [libcalamares] Split out file-mode parsing to a separate function 2024-09-11 18:01:26 +02:00
Adriaan de Groot
c51fa0e2f1 [libcalamares] Document the methods of TimeZone 2024-09-06 13:46:09 +02:00
Adriaan de Groot
3e885cda19 [libcalamares] Looks like Qt 6.7 supports Interlingue 2024-07-20 23:35:38 +02:00
Adriaan de Groot
ec5272ad65 [libcalamares] Prepare for ie (Interlingue) support in Qt 2024-07-20 22:32:46 +02:00
Adriaan de Groot
456bb1b3eb [libcalamares] Mark CommandLine as public, expand API a little 2024-07-07 00:00:11 +02:00
Adriaan de Groot
bbe015e732 [libcalamares] Command verbosity was lost during expansion 2024-06-30 18:05:54 +02:00
Adriaan de Groot
265469c9cd explain-verbose-test 2024-06-30 17:34:44 +02:00
Adriaan de Groot
e6de798228 [libcalamares] Add a test for command-timeout 2024-06-30 16:08:52 +02:00
Adriaan de Groot
8bb6c63931 [libcalamares] Avoid stray space when logging command-output 2024-06-30 16:08:52 +02:00
Adriaan de Groot
091c00e4ef [libcalamares] use test to demonstrate verbose CommandLine 2024-06-30 16:08:52 +02:00
Adriaan de Groot
6969a5e01d [libcalamares] log-as-you-go for verbose commands 2024-06-30 16:08:45 +02:00
Adriaan de Groot
4815bf6963 [libcalamares] Expand runCommand() inline for CommandLine
Since we want to hook up more to the runner, the simplified API
in System::runCommand() is not sufficient.
2024-06-30 15:10:05 +02:00
Adriaan de Groot
b0614bb79c [libcalamares] Add verbosity to CommandLine
This is the data structure that stores a single
command for execution by the shell. There is no
back-end implementation for verbosity yet.
2024-05-26 21:32:58 +02:00
Adriaan de Groot
461f011521 [libcalamares] Avoid some undesirable overloads
Implicit int -> bool had a comment, which suggests it should just
be deleted from the overload set to avoid possible confusion.
2024-05-14 23:38:05 +02:00
Adriaan de Groot
8a14ddc97c [shellprocess] Allow gs[key] variables in commands 2024-05-14 23:38:05 +02:00
Adriaan de Groot
4c8e91dc70 [libcalamares] Simplify collecting the maintainers info 2024-04-28 17:38:35 +02:00
Adriaan de Groot
d6c6b7c64b [libcalamares] Remove the commented-out sponsor info 2024-04-28 17:36:27 +02:00
Adriaan de Groot
35990d9a6b [libcalamares] Massage size types to avoid conversion warning 2024-04-28 17:01:07 +02:00
Adriaan de Groot
6dc83fb277 [libcalamares] Deal with Qt5/6 differences in count() 2024-04-28 17:01:07 +02:00
Adriaan de Groot
4625208ba2 [libcalamares] Apply newer clang-formatting 2024-04-17 10:50:38 +02:00
Adriaan de Groot
cca2cd3260 [libcalamares] Remove unnecessary QApplication 2024-04-17 10:11:40 +02:00
Adriaan de Groot
370e75fc71 [libcalamares] Repair apidox for Job 2024-04-16 15:41:12 +02:00
Adriaan de Groot
bf09dfc6af [libcalamares] Suppress sleep / suspend during installation 2024-04-16 15:07:58 +02:00
Adriaan de Groot
fe68b45fc5 [libcalamares] Explain updating-status-text mechanism 2024-04-13 23:37:49 +02:00
Adriaan de Groot
fb83ad326b [libcalamares] Document recommended translation contexts
Jobs have specific contexts for their different strings.
Many jobs (now) misuse prettyName() as a status message,
although the existing fallback mechanism means that the
name gets used as if it is a status message when the job
does not define a description or status.
2024-04-13 23:30:57 +02:00
Adriaan de Groot
14c8893b03 [libcalamares] Turn off Clang 17 warning for MOC
The build produces a zillion warnings about unsafe buffer usage
in the code that wrangles metaobjects and slot names. That is
generated code and we can't fix it.
2024-04-02 23:33:21 +02:00
Adriaan de Groot
012138c1f2 [libcalamares] Start with 3.5 TODOs, improve naming 2024-03-03 21:01:01 +01:00
dalto
7fd9d48a20 [calamares] Add python integration type and build type to log 2024-03-02 14:52:16 -06:00
Adriaan de Groot
028e9e68f9 [libcalamares] Add ${LANG} to process expansions 2024-02-26 22:37:20 +01:00
Adriaan de Groot
2697c35fc7 [libcalamares] Run ProcessJobs with CommandLine
This makes the behavior of process jobs and shellcommands the same.
2024-02-25 23:22:19 +01:00
Adriaan de Groot
4329b824d4 [libcalamares] Test command-expansion with environment 2024-02-25 23:22:19 +01:00
Adriaan de Groot
0ced01ddc3 [libcalamares] Test environment-setting for CommandLine 2024-02-25 23:22:19 +01:00
Adriaan de Groot
d5555eba32 [libcalamares] Add environment-setting to CommandLine
This class is shared -- used by shellprocess and contextualprocess --
to collect the command settings for a single shell invocation.
2024-02-25 23:22:19 +01:00
Adriaan de Groot
6770f781e3 [libcalamares] Tests for new CommandLine constructors 2024-02-25 23:22:19 +01:00
Adriaan de Groot
ae3e609024 [libcalamares] Get default timeout from CommandList 2024-02-25 23:22:19 +01:00
Adriaan de Groot
4aa2c4988c [libcalamares] Replace factory method with constructor 2024-02-25 23:22:19 +01:00
Adriaan de Groot
0d9d2ac59a [libcalamares] Extend CommandLine
- rename fields so they are meaningful (this is a leftover
  from it inheriting std::pair)
- add environment list member
- add constructor that consumes a QVariantMap
2024-02-25 23:22:19 +01:00
Adriaan de Groot
dbddeaba68 CMake: be more noisy about python technologies
- log enabled and disabled features
- enabled python gets logged twice, that's fine
2024-02-24 21:27:45 +01:00
Adriaan de Groot
be5ce2e60f [libcalamares] repair boost / pybind split
The difference wasn't being recorded in the ABI-parts of
the CalamaresConfig.h header file, and it was unclear if
the two builds were "clean", e.g. no pybind11 stuff in a
boost build and vice-versa.

Tidy that up by writing more ABI info to the header and
double-checking defines when including Python-related
Calamares headers.
2024-02-24 13:27:44 +01:00
Adriaan de Groot
34888edae1 [libcalamares] repair visibility also for Boost::Python modules 2024-02-24 12:45:20 +01:00
Adriaan de Groot
7a3bff5117 [libcalamares] repair visibility also for Boost::Python modules 2024-02-24 12:28:36 +01:00
Adriaan de Groot
a6591fcaf3 [libcalamares] Make symbols visible as needed 2024-02-20 00:44:48 +01:00
Adriaan de Groot
84b0262f31 [libcalamares] Default symbols to hidden
This restores the purpose of DLLEXPORT and helps keep the ABI
small-and-stable.
2024-02-19 23:23:03 +01:00
Adriaan de Groot
c09953e15e [libcalamares] Adapt tests to changed RegionZonePair
Don't access the pair like it is a std::pair
2024-02-19 23:04:37 +01:00
Adriaan de Groot
d131f51468 [libcalamares] don't inherit RegionZonePair from std::pair
There is no reason to stick with std::pair, make this
a regular value type with accessors with meaningful names.
2024-02-19 23:04:37 +01:00
Adriaan de Groot
5a1428154c [libcalamares] don't inherit CommandLine from std::pair
There's no reason not to write out the two data fields,
and we do not use anything else that std::pair offers.
2024-02-19 23:04:22 +01:00
Adriaan de Groot
0c9b3b2f16 [libcalamares] don't inherit InstanceKey from std::pair
While tempting, none of the STL containers are intended
for inheritance, and there's risks of slicing when used
as value types. Make InstanceKey a regular value type
data class and add the few operators that we actually
used from std::pair by hand.
2024-02-19 22:18:17 +01:00
Adriaan de Groot
c945cca93a [libcalamares] untangle GeoIP implementation details
Some implementation details should just be compiled
multiple times, rather than wrestling with visibility.
2024-02-19 21:40:10 +01:00
Adriaan de Groot
1444d9d73a [libcalamares] Repair misleading comment
The class used to be a `using Descriptor =` but that was changed without
updating the comment. Make it class documentation.
2024-02-19 19:22:08 +01:00