tags:

views:

11

answers:

1

We have to compile binary RPMs for both architectures (i386 and x86_64) for centos. When we want to install both, we have conflicts on common files (like in /usr/include, /bin, ...)

Is there .spec creation rules that help avoiding these conflicts ?

A: 

I found a link (others sources seems to agree) :

As I understand it, the answer would be :

  • common files must be exactly the same in both packages ;
  • binaries must be renamed in, for example, <binary>-32 and <binary>-64 ;
  • libs should be placed in subdirectories in /usr/lib and a file put in /etc/ld.so.conf.d/ to include these folders.
Christophe Drevet