…since that only is made available when installing wsl via the appstore.
Keep the call to the explicit cloud-init status --wait command since
other commands can prevent the cloud-init from being
processed/completed.
Media Libraries are unconditionally required for the build after
65d72f816a (Introduce Microsoft Media
Foundation APIs) at least when using --enable-mergedlibs
Also libfont-ttf-perl is no longer necessary since
6e93419f46 (check for the perl modules on
the windows side, not in the wsl-container)
and pkg-config since 29b930ae63 (enforce
pkgconf-2.4.3.exe on windows/error if not found)
Add gettext to allow building with translations
Additionally add a check whether a reboot is pending since winget
configure doesn't forward that info when installing components that need
it (there is a mechanism when it installs normal packages that ask for
reboot, but not for wsl install or the newly-added installation of the
MediaPack for Windows N)
Also add a note about the securityContext directive not being respected
by all states/why the admin one still needs to be separate and run with
admin privileges directly.
Change-Id: I3185c6cc45b9c801c8656273d2719ef77f739f75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201269
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
the versions differ now, and when you try to apply the configuration
from within git-bash the Visual Studio installation fails because it
wants to replace bash that is still-in-use.
Also fix a bug in the cloud-init config for the wsl container,
locked_passwd defaults to true in 24.04, and that effectively disables
the password, rendering sudo inoperable. (could still run
"wsl.exe -u root" to login as root and do admin tasks that way)
Alternatively the user could be reconfigured to allow for passwordless
sudo, but that's a matter of preference, I'm just personally so used to
always use sudo with password/it is a nice reminder to only change that
if you know what you're doing/that the container was installed for a
specific purpose and the user might want to install a second copy for
other stuff.
PS:
On Windows Server 2025 the installation using the ubuntu2404.exe alias
won't work/has to be done manually using
wsl.exe --install --distribution Ubuntu-24.04
need some further testing whether that's wider change or specific to
Windows Server
Change-Id: Ie73fdd14cc692aa22e6bc1de5e7465ca60f8a0cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190970
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
when only specifying with filename only (not with full path),
it might be mistreated as C:/pkgconf-2.4.3.exe and then the
build breaks.
configure has in the meantime been changed to explicitly
search for the versioned executable on windows, so there's no
need to manually set PKG_CONFIG anymore
Change-Id: I88a2af433c934adac4f1e9d20954a14e56e6abe7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190552
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
meson is available as an external module/it just needs to be extracted.
That simplifies quite a few things, not to mention a new bug where
specifying it like that would strip the slashes, so if it should be used
manually the mixed style path needs to be used.
Change-Id: Icc39db01c2bc484a64bea76ce68b7dfcb6e5d353
also securityContext: elevated directives so the the winget configure
step doesn't need to be done in Admin-shell. If run with regular user
permissions UAC will prompt.
ninja is part of CMake tools for Windows (that are part of a default
installation with recommended packages, but not in minimal workload)
Change-Id: I952fc7ac02142d537b2555c1f0e39a53032b96ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183806
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins