Bug 10017 - Build system does not properly honer the --prefix config option on test 2.2 and 2.3
Summary: Build system does not properly honer the --prefix config option on test 2.2 a...
Status: RESOLVED FIXED
Alias: None
Product: CTDB 2.5.x or older
Classification: Unclassified
Component: ctdb (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 17:00 UTC by Jeffrey Lang
Modified: 2016-08-10 08:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Lang 2013-07-14 17:00:42 UTC
When building CTDB and using the --prefix option the generated system is improperly configured.

The build system assumes the CTDB is to be installed at /, and when the --prefix statement is used generates incorrect paths, i.e.

./configure --prefix=/usr/local/ctdb

the Makefile that generated assumes that

ETCDIR = /usr/local/ctdb/etc/ctdb

Which if you run the "make showlayout" does not match.

This error is also hard coded into the ctdbd.c options list.
Comment 1 Martin Schwenke 2016-08-10 08:50:54 UTC
This is properly fixed in CTDB in Samba >= 4.4.  It is too invasive to backport.

Some of these issues were fixes in earlier versions but the fixes in 4.4 are comprehensive.