Re: using rpmbuild with PostgreSQL 9.2.6 source code

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>, PostgreSQL General Discussion Forum <pgsql-general(at)postgresql(dot)org>
Subject: Re: using rpmbuild with PostgreSQL 9.2.6 source code
Date: 2014-01-20 09:05:41
Message-ID: 52DCE6E5.7010307@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 01/20/2014 03:46 PM, Sameer Kumar wrote:
> Hi,
>
> I have downloaded the tar source code of PostgreSQL and also the SPEC
> file. I am trying to use rpmbuild command but I always get below error:

When you mention something you downloaded, also show the URL you
downloaded it from.

In this case, since it's about package building, we'd kind of need to
know the operating system and version you are running on too. Though
that's guessable from the package list.

Rather than attempting to build PostgreSQL packages, why not use the
existing PGDG packages from http://yum.postgresql.org/ for RHEL / CentOS 6?

If you need to patch them, then you should be able to just "yum install
yum-utils", "yumdownloader --source postgres" to get the srpm, "rpm -i"
the srpm into your ~/RPMBUILD directory, and make any appropriate
modifications before rebuilding.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2014-01-20 09:12:12 Re: using rpmbuild with PostgreSQL 9.2.6 source code
Previous Message Felix.徐 2014-01-20 08:54:41 What is the correct way to get the content of a varchar field in pgsql's source code

Browse pgsql-hackers by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2014-01-20 09:12:12 Re: using rpmbuild with PostgreSQL 9.2.6 source code
Previous Message Daniel Erez 2014-01-20 08:58:55 Re: Add value to error message when size extends