I think you may need to rebuild them differently from this in order to have it 
work.
I just installed zlib1g-dev:i386 and :amd64 to have an example to look at.  
Each of these packages contains the same files under /usr/share and 
/usr/include, and dpkg happily installed them both without special flags on my 
part.
Try “apt-get source liburcu-dev”, and edit the debian/control file’s Multi-Arch 
line for liburcu-dev.  Then rebuild it and see if it behaves differently when 
you try to install them both at the same time.

2. I fetched .deb files for both, extracted them using,
   dpkg-deb -R liburcu-dev_0.9.1-3_amd64.deb rcupackage_amd64
   dpkg-deb -R liburcu-dev_0.9.1-3_i386.deb rcupackage_i386

3. Added 'Multi-Arch: same' to DEBIAN/control file for both packages.

4. Re-packaged them using,
   dpkg-deb -b rcupackage_amd64 rcupackage_amd64.deb
   dpkg-deb -b rcupackage_i386 rcupackage_i386.deb

5. Installed both using,
   sudo dpkg -i rcupackage_amd64.deb; sudo apt install -f
   sudo dpkg -i --force-overwrite rcupackage_i386.deb; sudo apt install -f
   The overwrite was done for files in /usr/share/doc/liburcu-dev/examples/
   and file /usr/include/urcu/config.h.

In this way, I was able to install both and use them for what I wanted. But how
to avoid the clash of files? I understand that we have these different names
usr/lib/i386-linux-gnu and usr/lib/x86_64-linux-gnu.

Thanks,
Rehas



Reply via email to