I configured corosync with one prefix, then reran configure with the
proper --prefix=DIR option, but the prior, bogus value stuck and ended
up being installed.  That made it so a subsequent attempt to build
openais failed, due to using an invalid -I/bogus/prefix option
when compiling.

Here's the fix:

>From cce288d20523f47763e1be356a33ffc6c8eda9ad Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email protected]>
Date: Mon, 4 May 2009 14:05:46 +0200
Subject: [PATCH] fix missing-dependency bug, so as not to install bogus .pc 
files

* pkgconfig/Makefile.am (all .pc files): Depend on Makefile, so that
a change in $(prefix) there provokes regeneration of these files.
---
 pkgconfig/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am
index 4fc618c..d43a692 100644
--- a/pkgconfig/Makefile.am
+++ b/pkgconfig/Makefile.am
@@ -39,7 +39,7 @@ target_LIBS = $(LIBS:%=lib%.pc)

 target_PACKAGE = corosync.pc

-lib%.pc: libtemplate.pc.in
+lib%.pc: libtemplate.pc.in Makefile
        rm -f $...@-t $@
        sed \
                -e 's...@prefix@#$(exec_prefix)#g' \
@@ -50,7 +50,7 @@ lib%.pc: libtemplate.pc.in
        chmod a-w $...@-t
        mv $...@-t $@

-%: %.in
+%: %.in Makefile
        rm -f $...@-t $@
        sed \
                -e 's...@prefix@#$(exec_prefix)#g' \
--
1.6.3.rc4.190.g4648
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to