diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a22efc9d970..f96530ace92 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,6 +98,10 @@ jobs: echo "::group::Build configuration" autoreconf -f -i + # We have to explicitly pass --datadir and --sysconfdir because the software + # uses these vars not only in Makefiles, but also as substitutions in various + # .in files. At the same time these values default contain the '${prefix}' + # string verbatim, which does not get expanded during the substitution. env CFLAGS=-isystem/usr/local/include \ CPPFLAGS='-isystem/usr/local/include' \ LDFLAGS=-L/usr/local/lib \ @@ -105,14 +109,16 @@ jobs: SOFTHSM2_PATH=/usr/local/lib/softhsm/libsofthsm2.so \ MAKE=gmake \ LIBS=-lintl \ - ./configure --disable-cifs-idmap-plugin \ + ./configure --datadir=/usr/local/share \ + --sysconfdir=/usr/local/etc \ + --disable-cifs-idmap-plugin \ --disable-linux-caps \ --without-autofs \ --without-selinux \ --without-nfsv4-idmapd-plugin \ --with-smb-idmap-interface-version=6 \ - --with-adcli-path=${LOCALBASE}/sbin/adcli \ - --with-realm-path=${LOCALBASE}/sbin/realm \ + --with-adcli-path=/usr/local/sbin/adcli \ + --with-realm-path=/usr/local/sbin/realm \ --with-xml-catalog-path=/usr/local/share/xml/catalog \ --with-passkey echo "::endgroup::"