HomeClusterLabs Projects
Diffusion Booth f31669330ce7

build: Make distcheck work for non-root user
f31669330ce7Unpublished

Unpublished Commit ยท Learn More

  • Repository Importing: This repository is still importing.
  • Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

build: Make distcheck work for non-root user

make distcheck calls configure script with --prefix to allow
installation to tmp directory. ocfdir is not using ${prefix} and instead
contains absolute path (either taken from resource-agents.pc or
hardcoded one) so make install fails when running as non-root user.

Solution is taken from pacemaker project and it relies on setting
AM_DISTCHECK_CONFIGURE_FLAGS so --with-ocfdir is added with directory
where user has write permissions.

Big thanks to Fabio M. Di Nitto <fdinitto@redhat.com> for finding this
solution.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Oct 18 2023, 5:31 AM
Dejan Muhamedagic <dejanmm@fastmail.fm>Committed on Oct 20 2023, 8:38 AM
Parents
rB6a3a0716340b: build: Include icons in release tarballs
Branches
Unknown
Tags
Unknown

Event Timeline