pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
6+ messages / 4 participants
[nested] [flat]

* BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
@ 2012-07-11 23:16 ysharma@cymer.com
  2012-07-12 20:19 ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
  0 siblings, 1 reply; 6+ messages in thread

From: ysharma@cymer.com @ 2012-07-11 23:16 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6729
Logged by:          Yogesh Sharma
Email address:      ysharma@cymer.com
PostgreSQL version: 9.1.4
Operating system:   CentOS 6.3
Description:        

For compilation of 64bit as well 32bit program I am trying to install both
versions. Here is error:

================================================================================================================================================================================
 Package                                Arch                       Version  
                            Repository                                      
                 Size
================================================================================================================================================================================
Installing:
 postgresql91-devel                     i686                      
9.1.4-1PGDG.rhel6                    
/postgresql91-devel-9.1.4-1PGDG.rhel6.i686                       5.4 M
 postgresql91-devel                     x86_64                    
9.1.4-1PGDG.rhel6                    
/postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64                     6.2 M

Transaction Summary
================================================================================================================================================================================
Install       2 Package(s)

Total size: 12 M
Installed size: 12 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
  file /usr/pgsql-9.1/lib/libecpg.a conflicts between attempted installs of
postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
postgresql91-devel-9.1.4-1PGDG.rhel6.i686
  file /usr/pgsql-9.1/lib/libecpg_compat.a conflicts between attempted
installs of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
postgresql91-devel-9.1.4-1PGDG.rhel6.i686
  file /usr/pgsql-9.1/lib/libpgport.a conflicts between attempted installs
of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
postgresql91-devel-9.1.4-1PGDG.rhel6.i686
  file /usr/pgsql-9.1/lib/libpgtypes.a conflicts between attempted installs
of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
postgresql91-devel-9.1.4-1PGDG.rhel6.i686
  file /usr/pgsql-9.1/lib/libpq.a conflicts between attempted installs of
postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
postgresql91-devel-9.1.4-1PGDG.rhel6.i686
  file /usr/pgsql-9.1/lib/pgxs/src/Makefile.global conflicts between
attempted installs of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
postgresql91-devel-9.1.4-1PGDG.rhel6.i686

Error Summary
-------------





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
  2012-07-11 23:16 BUG #6729: Install of postgresql-devel for x86_84 and i686 fails ysharma@cymer.com
@ 2012-07-12 20:19 ` Devrim GÜNDÜZ <devrim@gunduz.org>
  2012-07-12 20:36   ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Tom Lane <tgl@sss.pgh.pa.us>
  2012-07-12 20:41   ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Yogesh_Sharma@Cymer.com
  0 siblings, 2 replies; 6+ messages in thread

From: Devrim GÜNDÜZ @ 2012-07-12 20:19 UTC (permalink / raw)
  To: ysharma@cymer.com; +Cc: pgsql-bugs


Hi,

It is not a bug, but it might be a missing feature (and I'm not sure how
to fix it :-) )

Regards,

On Wed, 2012-07-11 at 23:16 +0000, ysharma@cymer.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      6729
> Logged by:          Yogesh Sharma
> Email address:      ysharma@cymer.com
> PostgreSQL version: 9.1.4
> Operating system:   CentOS 6.3
> Description:        
> 
> For compilation of 64bit as well 32bit program I am trying to install both
> versions. Here is error:
> 
> ================================================================================================================================================================================
>  Package                                Arch                       Version  
>                             Repository                                      
>                  Size
> ================================================================================================================================================================================
> Installing:
>  postgresql91-devel                     i686                      
> 9.1.4-1PGDG.rhel6                    
> /postgresql91-devel-9.1.4-1PGDG.rhel6.i686                       5.4 M
>  postgresql91-devel                     x86_64                    
> 9.1.4-1PGDG.rhel6                    
> /postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64                     6.2 M
> 
> Transaction Summary
> ================================================================================================================================================================================
> Install       2 Package(s)
> 
> Total size: 12 M
> Installed size: 12 M
> Is this ok [y/N]: y
> Downloading Packages:
> Running rpm_check_debug
> Running Transaction Test
> 
> 
> Transaction Check Error:
>   file /usr/pgsql-9.1/lib/libecpg.a conflicts between attempted installs of
> postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
> postgresql91-devel-9.1.4-1PGDG.rhel6.i686
>   file /usr/pgsql-9.1/lib/libecpg_compat.a conflicts between attempted
> installs of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
> postgresql91-devel-9.1.4-1PGDG.rhel6.i686
>   file /usr/pgsql-9.1/lib/libpgport.a conflicts between attempted installs
> of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
> postgresql91-devel-9.1.4-1PGDG.rhel6.i686
>   file /usr/pgsql-9.1/lib/libpgtypes.a conflicts between attempted installs
> of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
> postgresql91-devel-9.1.4-1PGDG.rhel6.i686
>   file /usr/pgsql-9.1/lib/libpq.a conflicts between attempted installs of
> postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
> postgresql91-devel-9.1.4-1PGDG.rhel6.i686
>   file /usr/pgsql-9.1/lib/pgxs/src/Makefile.global conflicts between
> attempted installs of postgresql91-devel-9.1.4-1PGDG.rhel6.x86_64 and
> postgresql91-devel-9.1.4-1PGDG.rhel6.i686
> 
> Error Summary
> -------------
> 
> 
> 


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

Attachments:

  signature.asc (application/pgp-signature, 197B) download

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
  2012-07-11 23:16 BUG #6729: Install of postgresql-devel for x86_84 and i686 fails ysharma@cymer.com
  2012-07-12 20:19 ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
@ 2012-07-12 20:36   ` Tom Lane <tgl@sss.pgh.pa.us>
  2012-07-12 20:42     ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
  1 sibling, 1 reply; 6+ messages in thread

From: Tom Lane @ 2012-07-12 20:36 UTC (permalink / raw)
  To: Devrim GÜNDÜZ <devrim@gunduz.org>; +Cc: ysharma@cymer.com; pgsql-bugs

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.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/.
Not sure how practical such a change is at this late date.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
  2012-07-11 23:16 BUG #6729: Install of postgresql-devel for x86_84 and i686 fails ysharma@cymer.com
  2012-07-12 20:19 ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
  2012-07-12 20:36   ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Tom Lane <tgl@sss.pgh.pa.us>
@ 2012-07-12 20:42     ` Devrim GÜNDÜZ <devrim@gunduz.org>
  2012-07-12 20:48       ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Yogesh_Sharma@Cymer.com
  0 siblings, 1 reply; 6+ messages in thread

From: Devrim GÜNDÜZ @ 2012-07-12 20:42 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: ysharma@cymer.com; pgsql-bugs


Hi,

On Thu, 2012-07-12 at 16:36 -0400, Tom Lane wrote:
> Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.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 ?

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

Attachments:

  signature.asc (application/pgp-signature, 197B) download

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
  2012-07-11 23:16 BUG #6729: Install of postgresql-devel for x86_84 and i686 fails ysharma@cymer.com
  2012-07-12 20:19 ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
  2012-07-12 20:36   ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Tom Lane <tgl@sss.pgh.pa.us>
  2012-07-12 20:42     ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
@ 2012-07-12 20:48       ` Yogesh_Sharma@Cymer.com
  0 siblings, 0 replies; 6+ messages in thread

From: Yogesh_Sharma@Cymer.com @ 2012-07-12 20:48 UTC (permalink / raw)
  To: Devrim GÜNDÜZ <devrim@gunduz.org>; +Cc: pgsql-bugs; Tom Lane <tgl@sss.pgh.pa.us>

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@gunduz.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@gunduz.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 ?
> 

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails
  2012-07-11 23:16 BUG #6729: Install of postgresql-devel for x86_84 and i686 fails ysharma@cymer.com
  2012-07-12 20:19 ` Re: BUG #6729: Install of postgresql-devel for x86_84 and i686 fails Devrim GÜNDÜZ <devrim@gunduz.org>
@ 2012-07-12 20:41   ` Yogesh_Sharma@Cymer.com
  1 sibling, 0 replies; 6+ messages in thread

From: Yogesh_Sharma@Cymer.com @ 2012-07-12 20:41 UTC (permalink / raw)
  To: Devrim GÜNDÜZ <devrim@gunduz.org>; +Cc: pgsql-bugs

Hi Devrim,

How things are going, long time since we exchanged any email.

May be different lib folders can be used:
/usr/pgsql-9.1/lib/libecpg.a
/usr/pgsql-9.1/lib64/libecpg.a

glibc-devel.i686 and glibc-devel.x86_64 does similar thing.

rpm -ql glibc-devel.i686 |grep .a$
/usr/lib/libbsd-compat.a
/usr/lib/libbsd.a
/usr/lib/libc_nonshared.a
/usr/lib/libg.a
/usr/lib/libieee.a
/usr/lib/libmcheck.a
/usr/lib/libpthread_nonshared.a
/usr/lib/librpcsvc.a

rpm -ql glibc-devel.x86_64 |grep .a$
/usr/lib64/libbsd-compat.a
/usr/lib64/libbsd.a
/usr/lib64/libc_nonshared.a
/usr/lib64/libg.a
/usr/lib64/libieee.a
/usr/lib64/libmcheck.a
/usr/lib64/libpthread_nonshared.a
/usr/lib64/librpcsvc.a

It does affects pg_config as now pg_config has to be aware of x86_64 and 
i686 and provide right folder name.

Thanks,

Devrim GÜNDÜZ <devrim@gunduz.org> wrote on 07/12/2012 01:19:18 PM:

> 
> Hi,
> 
> It is not a bug, but it might be a missing feature (and I'm not sure how
> to fix it :-) )
> 
> Regards,
> 
> On Wed, 2012-07-11 at 23:16 +0000, ysharma@cymer.com wrote:
> > The following bug has been logged on the website:
> > 
> > Bug reference:      6729
> > Logged by:          Yogesh Sharma
> > Email address:      ysharma@cymer.com
> > PostgreSQL version: 9.1.4
> > Operating system:   CentOS 6.3

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2012-07-12 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-07-11 23:16 BUG #6729: Install of postgresql-devel for x86_84 and i686 fails ysharma@cymer.com
2012-07-12 20:19 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2012-07-12 20:36   ` Tom Lane <tgl@sss.pgh.pa.us>
2012-07-12 20:42     ` Devrim GÜNDÜZ <devrim@gunduz.org>
2012-07-12 20:48       ` Yogesh_Sharma@Cymer.com
2012-07-12 20:41   ` Yogesh_Sharma@Cymer.com

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox