Re: weird bug in rebuilding RPMs - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: weird bug in rebuilding RPMs
Date
Msg-id 20100208152305.GE4113@alvh.no-ip.org
Whole thread Raw
In response to weird bug in rebuilding RPMs  (zhong ming wu <mr.z.m.wu@gmail.com>)
Responses Re: weird bug in rebuilding RPMs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
zhong ming wu escribió:

> I can now rebuild rpms so that all files go under a specific directory
> specified by _prefix directive in ~/.rpmmacros  Forgetting lots of
> other bugs that I managed to fix, this weird bug is making me use
>  _prefix that does not include the word "pgsql" in the path name any
> where.  For example if _prefix path has the word pgsqL or pgsq
> or pgsqA then rebuilding is successful but if the path includes the
> word pgsql or pgsql-8.1.18 or pgsqll then rebuilding breaks down.

Yeah, the Makefiles contain a trick to put append "/pgsql" to the
include dir (and others) if the prefix does not already contain "pgsql"
or "postgresql" or similar.  This is probably what is causing the build
to fail.  See src/Makefile.global.in:

##########################################################################
#
# Installation directories
#
# These are set by the equivalent --xxxdir configure options.  We
# append "postgresql" to some of them, if the string does not already
# contain "pgsql" or "postgres", in order to avoid directory clutter.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Multiple buffer cache?
Next
From: Tom Lane
Date:
Subject: Re: weird bug in rebuilding RPMs