build-sys: Enable composefs at *build time* by default

There's no additional dependencies, and it's a small amount
of new code.

The riskiest thing is the changes to ostree-prepare-root, but
I believe that things are in a good state now there.

Again, this just enables it at *build time* - it's still
off at runtime by default.
This commit is contained in:
Colin Walters 2023-07-14 10:34:46 -04:00
parent 3d29f89c0e
commit 592351d1b0
3 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ jobs:
extra-packages: >-
libssl-dev
configure-options: >-
--with-composefs --with-crypto=openssl
--with-crypto=openssl
# A build using libsoup3. After bookworm is released, this can
# be switched to Debian Stable.

View File

@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/coreos/fcos-buildroot:testing-devel as builder
WORKDIR /src
COPY . .
RUN env CONFIGOPTS=--with-composefs ./ci/build.sh && make install DESTDIR=/cosa/component-install
RUN env ./ci/build.sh && make install DESTDIR=/cosa/component-install
RUN make -C tests/kolainst
RUN make -C tests/kolainst install DESTDIR=/cosa/component-tests
# Uncomment this to fake a build to test the code below

View File

@ -294,7 +294,7 @@ AC_COMPILE_IFELSE(
AC_ARG_WITH(composefs,
AS_HELP_STRING([--with-composefs], [Support composefs]),
:, with_composefs=no)
:, with_composefs=yes)
if test x$with_composefs != xno; then OSTREE_FEATURES="$OSTREE_FEATURES composefs";
AC_DEFINE([HAVE_COMPOSEFS], 1, [Define if we have libcomposefs])