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

From Tom Lane
Subject Re: weird bug in rebuilding RPMs
Date
Msg-id 10542.1265643186@sss.pgh.pa.us
Whole thread Raw
In response to Re: weird bug in rebuilding RPMs  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [Pgsqlrpms-hackers] weird bug in rebuilding RPMs
List pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> 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.

> 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:

Yeah, I suspect that the RPMs depend in various ways on the assumption
that those pathname substitutions will happen.  I haven't got round to
testing, but it might be a good idea to change rpm-pgsql.patch to make
the substitutions unconditional, so that the file layout below the
_prefix is fixed regardless of what the _prefix is.

But having said that, I don't get the point of trying to build a
nonstandard installation from the RPM.  That seems more or less
antithetical to most of the design concepts of RPM-based distros;
and it certainly seems pretty silly if your intent is to transition
to the standard RPM later.

            regards, tom lane

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: weird bug in rebuilding RPMs
Next
From: "erobles"
Date:
Subject: which the best way to start postgres.