Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails

From: Yogesh_Sharma(at)Cymer(dot)com
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
Date: 2012-07-12 20:48:39
Message-ID: OFB2D1E5F2.6F7DB60C-ON88257A39.0071FEB7-88257A39.007251C6@cymer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

What about following:

%ifarch x86_64
%define PGLIBDIR lib64
%else
%define PGLIBDIR lib
%endif

In %install use /usr/pgsql-9.1/%{LIBDIR}/
same in %files

pg_config impacted ?

Thanks,
Yogesh Sharma

Devrim GÜNDÜZ <devrim(at)gunduz(dot)org> wrote on 07/12/2012 01:42:56 PM:

>
> Hi,
>
> On Thu, 2012-07-12 at 16:36 -0400, Tom Lane wrote:
> > Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim(at)gunduz(dot)org> writes:
> > > It is not a bug, but it might be a missing feature (and I'm not sure
> > how
> > > to fix it :-) )
> >
> > It's fairly common for -devel packages of different architectures to
> > conflict. If you were to try to fix it, you'd likely need the 64-bit
> > versions to install their stuff into .../lib64/ not .../lib/.
>
> Well, there lies the problem. My packages push everything
> under /usr/pgsql-9.1 , and libs go to /usr/pgsql-9.1/lib. A
>
> > Not sure how practical such a change is at this late date.
>
> What if I build *9.2* with --libdir=/usr/pgsql-9.1/lib64 for x86_64, and
> then push 32-bit packages to /usr/pgsql-9.1/lib ?
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message mfwilson 2012-07-12 22:16:18 BUG #6733: All Tables Empty After pg_upgrade (PG 9.2.0 beta 2)
Previous Message Devrim GÜNDÜZ 2012-07-12 20:42:56 Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails