Re: [HACKERS] Error Building rpm

Lists: pgsql-hackerspgsql-www
From: Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com>
To: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Cc: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Subject: Error Building rpm
Date: 2013-01-21 05:23:49
Message-ID: CAP68xY=mzxNixF73RbdmD+MD6=JTqsnEUH+7_hhLfAQay9kCTg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www

Hi All,

I am trying to build rpm of PostgreSQL, and the approach is building rpm for
1. CentOS 6+
2. Fedora 15+
3. RedHat 6+
4. OpenSUSE
5. SuSE

via single spec file and not using any external rpm or repo while building

the problem i am facing right now is there is some dependencies which is
now not provided by RedHat and SUSE

1. SLE_11_SP2
perl-ExtUtils-Embed,
uuid-devel,
openldap-devel (For this i am using openldap2-devel its working fine so no
problem)

2.openSUSE_12.2
perl-ExtUtils-Embed,
openldap-devel (For this i am using openldap2-devel its working fine so
no problem)

3.RedHat_RHEL-6
uuid-devel (Now RedHat is not providing this rpm)

If i am installing uuid-devel from external source i am able to build rpm
but how to build without installing it from external repo.
now redhat is giving libuuid.

and Suse is not having perl-ExtUtils-Embed rpm.

Please advised.

--
ViVek Raghuwanshi
Mobile -+91-09595950504
Skype - vivek_raghuwanshi
IRC vivekraghuwanshi
http://vivekraghuwanshi.wordpress.com/
http://in.linkedin.com/in/vivekraghuwanshi


From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error Building rpm
Date: 2013-01-21 05:29:26
Message-ID: 50FCD236.2000701@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www

On 1/20/2013 9:23 PM, Vivek Singh Raghuwanshi wrote:
> 3.RedHat_RHEL-6
> uuid-devel (Now RedHat is not providing this rpm)

you sure about that? now, I'm running CentOS 6 not RHEL6, but the
packages are 1:1 and built from the same SRPMs.

uuid-devel.i686
1.6.1-10.el6 base
uuid-devel.x86_64
1.6.1-10.el6 base


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Subject: Re: Error Building rpm
Date: 2013-01-21 05:32:32
Message-ID: 9677.1358746352@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www

Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com> writes:
> 3.RedHat_RHEL-6
> uuid-devel (Now RedHat is not providing this rpm)

works for me in RHEL-6 ...

regards, tom lane


From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Error Building rpm
Date: 2013-01-21 05:39:39
Message-ID: 1358746779.31904.10.camel@lenovo01-laptop03.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www


Hi,

On Mon, 2013-01-21 at 10:53 +0530, Vivek Singh Raghuwanshi wrote:
> I am trying to build rpm of PostgreSQL, and the approach is building
> rpm for
> 1. CentOS 6+
> 2. Fedora 15+
> 3. RedHat 6+
> 4. OpenSUSE
> 5. SuSE
>
> via single spec file and not using any external rpm or repo while
> building

Building RPMs using a single spec file is almost impossible, as I wrote
you in my previous emails. SuSE has different package names, Fedora 15+
has separate init system (systemd), etc. That's why I am keeping
separate copies of each spec file for Fedora and its derivatives (RHEL,
SL, CentOS) separately.
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Error Building rpm
Date: 2013-01-21 06:03:54
Message-ID: CAP68xYnZ1qme2F0D_2Uxxz8Pjq6CXKW_5PaWJ1nHouW_sSaVCQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www

Thanks Devrim,

But i am trying to achieve this via multiple if conditions , can you send
me your redhat and suse spec files.

On Mon, Jan 21, 2013 at 11:09 AM, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org> wrote:

>
> Hi,
>
> On Mon, 2013-01-21 at 10:53 +0530, Vivek Singh Raghuwanshi wrote:
> > I am trying to build rpm of PostgreSQL, and the approach is building
> > rpm for
> > 1. CentOS 6+
> > 2. Fedora 15+
> > 3. RedHat 6+
> > 4. OpenSUSE
> > 5. SuSE
> >
> > via single spec file and not using any external rpm or repo while
> > building
>
> Building RPMs using a single spec file is almost impossible, as I wrote
> you in my previous emails. SuSE has different package names, Fedora 15+
> has separate init system (systemd), etc. That's why I am keeping
> separate copies of each spec file for Fedora and its derivatives (RHEL,
> SL, CentOS) separately.
> --
> Devrim GÜNDÜZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
>

--
ViVek Raghuwanshi
Mobile -+91-09595950504
Skype - vivek_raghuwanshi
IRC vivekraghuwanshi
http://vivekraghuwanshi.wordpress.com/
http://in.linkedin.com/in/vivekraghuwanshi


From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Error Building rpm
Date: 2013-01-21 06:41:15
Message-ID: 1358750475.31904.11.camel@lenovo01-laptop03.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www


Hi,

On Mon, 2013-01-21 at 11:33 +0530, Vivek Singh Raghuwanshi wrote:

> But i am trying to achieve this via multiple if conditions , can you
> send me your redhat and suse spec files.

As I have emailed you before, spec files,etc. are at
http://svn.pgrpms.org/repo

Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Vivek Singh Raghuwanshi <vivekraghuwanshi(at)gmail(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Error Building rpm
Date: 2013-01-21 06:45:55
Message-ID: CAP68xYk60utPxNxWX8UUKF3CPZ9c8m9zn3cBJV9_+59eGOLuNQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-www

On Mon, Jan 21, 2013 at 12:11 PM, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org> wrote:

>
> Hi,
>
> On Mon, 2013-01-21 at 11:33 +0530, Vivek Singh Raghuwanshi wrote:
>
> > But i am trying to achieve this via multiple if conditions , can you
> > send me your redhat and suse spec files.
>
> As I have emailed you before, spec files,etc. are at
> http://svn.pgrpms.org/repo
>

Spec file for SuSE is only for 8.4 not for 9.2+

>
> Regards,
> --
> Devrim GÜNDÜZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
>

--
ViVek Raghuwanshi
Mobile -+91-09595950504
Skype - vivek_raghuwanshi
IRC vivekraghuwanshi
http://vivekraghuwanshi.wordpress.com/
http://in.linkedin.com/in/vivekraghuwanshi