Re: weird bug in rebuilding RPMs

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: zhong ming wu <mr(dot)z(dot)m(dot)wu(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: weird bug in rebuilding RPMs
Date: 2010-02-08 15:23:05
Message-ID: 20100208152305.GE4113@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs 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.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-02-08 15:33:06 Re: weird bug in rebuilding RPMs
Previous Message Robert Haas 2010-02-08 04:52:25 Re: BUG #5319: recursion in the triggers

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-02-08 15:33:06 Re: weird bug in rebuilding RPMs
Previous Message Marc Lustig 2010-02-08 15:11:28 recovering fs-data from previous installation