8541 Commits

Author SHA1 Message Date
James Valleroy
c217fdb5c6
Release v24.5 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v24.5
2024-02-26 20:59:13 -05:00
James Valleroy
169eb9854f
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-26 20:58:28 -05:00
Olaf Schaf
a9b77bbec8
Translated using Weblate (German)
Currently translated at 100.0% (1557 of 1557 strings)
2024-02-22 15:02:04 +01:00
Sunil Mohan Adapa
dbdac3b001
zoph: Add shared daemon component for mariadb/mysql
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:54 -05:00
Sunil Mohan Adapa
2fc354ea7f
wordpress: Add shared daemon component for mariadb/mysql
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:52 -05:00
Sunil Mohan Adapa
02e409a3a1
daemon: Add new component for daemons shared across apps
- This is useful for managing redis service needed by the upcoming Nextcloud
app.

- Disable the daemon only if all the apps using it are disabled. Enable it when
even one of the them is enabled.

- The component is not a 'leader' component as it does not decide the
enabled/disabled status of the app.

Tests:

- Unit tests pass.

- Install zoph and wordpress with full patch series. If one of the apps is
disabled, mysql service is still enabled and running. If both apps are disabled,
then mysql service is disabled and not running. Enabled/disabled status of apps
are accurate after they are enabled/disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:49 -05:00
Sunil Mohan Adapa
d32d02ecb5
gitweb, users: Minor fixes for newer pycodestyle
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:47 -05:00
Sunil Mohan Adapa
5399efde73
pyproject.toml: Exclude the build directory from mypy checks
- build/ directory is generated after the 'make build install' step and contains
files that are duplicates of the main source leading to a failure.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-21 20:54:44 -05:00
Sunil Mohan Adapa
3aae4b39d6
tor: tests: Convert to pytest style tests from class based tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-18 18:21:33 -05:00
Sunil Mohan Adapa
37b9e21e30
tor: tests: Fix issue with pytest 8.x versions
Closes: https://bugs.debian.org/1063968.

- Due to a changed behavior in pytest 8.x, any imports with 'setup_module' name
will be treated as a method to setup the module in the style of unittest/nose.
pytest tries to call this as a method and will fail.

- Rename the import to 'setup_module_' instead of 'setup_module' to fix this issue.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-18 18:21:31 -05:00
Sunil Mohan Adapa
71a10bfd31
backups: tests: Don't use pytest marks on fixtures
- It removes this warning. plinth/modules/backups/tests/test_ssh_remotes.py:62: PytestRemovedIn9Warning: Marks applied to fixtures have no effect.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-18 18:21:28 -05:00
James Valleroy
6c5fbf6523
tests: Patch apps_init for enable/disable daemon test
Otherwise, apps_init calls _sort_apps, which randomly fails in functional tests
CI job. The failure may be due to the tests running in parallel, since I could
not reproduce it locally.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-02-18 10:13:46 -08:00
Sunil Mohan Adapa
5e10b2d4ae
firewalld: Implement force upgrading to any 2.x versions
Closes: #2396.

New configuration options were introduced from 1.3.x to 2.1.x. This cause
configuration file prompt due to our existing changes to the configuration file.
Changes to the configuration file were investigated in #2396.

Tests:

- Install firewalld 1.3.x. Ensure that firewalld configuration changes are
present as intended by FreedomBox. Change priority of the .deb package to allow
installing 2.1.x. Run apt update and notice that force upgrade has been
performed to 2.1.x.

- firewalld upgrade has also been tested as part of this patch series.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:53 -05:00
Sunil Mohan Adapa
bd4ddcf158
setup: Ensure that apt is updated before checking force upgrade
If the package cache is outdated and a check is performed for whether force
upgrade is needed, it might return negative. After the operation proceeds to run
setup, we perform 'apt update' before 'apt install' at this point the
configuration file prompt will cause failure.

Tests:

- Re-run firewalld upgrade from 1.3.x to 2.1.x with a re-run setup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:51 -05:00
Sunil Mohan Adapa
e208bdbbca
setup: Ensure that force upgrade won't run when app is not installed
- This keep the initial setup of the app simple and efficient. Setup will be
less prone to any issues in force upgrade code. There are also fewer chances for
immediate regressions.

Tests:

- Tested as part of the patch series.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:48 -05:00
Sunil Mohan Adapa
56b58174b3
setup: Minor refactoring of force upgrader class instantiation
- It is okay to instantiate before shutdown to mark shutdown initiation.

- Still keep the instantiating lazy.

Tests:

- Tested as part of patch series.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:47:45 -05:00
James Valleroy
29d48e86b7
setup: Try force upgrade before running app setup
Avoid running setup if it would bypass a needed force upgrade.

Fixes: #2397

Tests:

- Rerun setup on an app and see that there are no errors.

- Install modified freedombox on bookworm and perform dist-upgrade to
  testing. Then rerun setup on Firewall app. It fails with the message "App
  firewall failed to force upgrade." firewalld package is not upgraded.

- Modify Firewall app to allow force upgrade to latest version. Then rerun
  setup on Firewall app. firewalld is successfully force upgraded.

  NOTE: In this case, Firewall setup is run twice, once by force upgrade, and
  again by rerun setup.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-02-15 19:47:41 -05:00
Sunil Mohan Adapa
7b2a65d449
container: Fix issue with missing make command on stable image
Fixes: #2402.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-15 19:42:33 -05:00
James Valleroy
b09f2cd74e
Release v24.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v24.4
2024-02-12 21:24:48 -05:00
James Valleroy
13793fee1f
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 21:23:44 -05:00
James Valleroy
b355faf59a
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 20:40:56 -05:00
Besnik Bleta
510daf3d43
Translated using Weblate (Albanian)
Currently translated at 99.6% (1552 of 1558 strings)
2024-02-13 02:32:56 +01:00
James Valleroy
2d3c610f3a
debian: Remove lintian override for init script
The lintian tag was removed. See:
579d080bff

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 20:18:52 -05:00
Sunil Mohan Adapa
2788d6810d
Makefile: Move various tests into build system
- This allows those tests to be invoked on console and not just in CI pipelines.

Tests:

- Running make check works.

- CI pipeline succeeds.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
[jvalleroy: Remove phony test target]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:16 -05:00
Sunil Mohan Adapa
ba55d8fe2e
Makefile: Move most of the provision process into build system
Tests:

- Performing a fresh container setup works.

- Performing a fresh VM setup works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:14 -05:00
Sunil Mohan Adapa
808380ff52
doc: dev: Update all references to setup.py
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:11 -05:00
Sunil Mohan Adapa
812ed5d60d
*: Introduce make file based build, eliminate setup.py
- setuptools aims to a build library instead of being invoked by setup.py.
Launching setup tools using ./setup.py is deprecated. Launching it using
generic build tools that use pyproject.toml is recommended.

- With the new approach customizing the build is not possible to the earlier
extent. So, introduce is a simple and sufficient build system using 'make'.

Tests:

- Check the pyproject.toml using validate-pyproject tool.

- Run diffoscope on old and new packages and verify that no unexpected changes
were introduced by the build system change.

- None of the files part of .deb package have different file permissions
compared to before.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:09 -05:00
Sunil Mohan Adapa
e9adf0d78f
pyproject.toml: Move project meta data from setup.py
- setuptools and other tools can pickup the information from here.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:06 -05:00
Sunil Mohan Adapa
54f447785d
doc: Install man1 page using Makefile
- Also fix a typo with target name.

- Remove redundant OUTPUT= declarations.

- Make sure that 'manual-pages' PHONY target is not attempted to be removed on
clean.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:04 -05:00
Sunil Mohan Adapa
09103d0c25
actions: Drop legacy placeholders for unused actions
Since we have done a stable release after changes to action scripts. All
FreedomBox installations can be assumed to have moved to the new action scripts
format. All old installations will continue to get a security updates only and
this change will not reach them.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:17:01 -05:00
Sunil Mohan Adapa
8202b734a6
help: tests: Run tests using doc in current dir instead of /usr
- This prevents the test from failing if install has not run yet.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:16:59 -05:00
Sunil Mohan Adapa
721984c0e0
d/copyright: Update copyright year
- Avoids a lintian message.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2024-02-12 19:16:55 -05:00
Besnik Bleta
34257fcacb
Translated using Weblate (Albanian)
Currently translated at 96.9% (1511 of 1558 strings)
2024-02-11 21:14:40 +01:00
Sunil Mohan Adapa
f52ebd535f
Translated using Weblate (Telugu)
Currently translated at 95.8% (1493 of 1558 strings)
2024-02-11 21:14:39 +01:00
Dietmar
974fe1e96b
Translated using Weblate (German)
Currently translated at 99.9% (1557 of 1558 strings)
2024-02-11 21:14:38 +01:00
James Valleroy
81c6d02579
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 23:12:24 +01:00
Aswith Varma
c724bdc172
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Sreehitha Velivela
c3022c67a9
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Sri Harsha
33e0f83fc1
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Bhavishya nitha
4a442232b7
Translated using Weblate (Telugu)
Currently translated at 95.4% (1487 of 1558 strings)
2024-02-10 07:01:55 +01:00
Sri Harsha
ac189b9eea
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
VINAY K.V.N.S
7a199c58e3
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
Bhavishya nitha
aff8303e8d
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
Aswith Varma
a1f50732a6
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
M Jagadeesh
65c5b73d89
Translated using Weblate (Telugu)
Currently translated at 95.2% (1484 of 1558 strings)
2024-02-09 06:12:49 +01:00
Aswith Varma
775eff1fdc
Translated using Weblate (Telugu)
Currently translated at 94.2% (1469 of 1558 strings)
2024-02-09 06:04:22 +01:00
VINAY K.V.N.S
cbfeab2b26
Translated using Weblate (Telugu)
Currently translated at 94.2% (1468 of 1558 strings)
2024-02-09 06:04:21 +01:00
ABHI RAM POTNURU
c660591a3e
Translated using Weblate (Telugu)
Currently translated at 94.2% (1468 of 1558 strings)
2024-02-09 06:04:21 +01:00
Mahi Reddy
493ee728ae
Translated using Weblate (Telugu)
Currently translated at 94.2% (1468 of 1558 strings)
2024-02-09 06:04:21 +01:00
Bhavishya nitha
5643ef073e
Translated using Weblate (Telugu)
Currently translated at 94.2% (1468 of 1558 strings)
2024-02-09 06:04:21 +01:00