Bug#854778: liburcu 32 bit and 64 bit versions cannot install simultaneously

2017-03-01 Thread Rehas Sachdeva
On Wed, Mar 1, 2017 at 2:41 AM, Michael Jeanson 
wrote:

> On 2017-02-28 09:20, Matthew Wilcox wrote:
> > 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.
>
> I've just pushed 0.9.3-2 to experimental with multiarch enabled on the
> dev packages. I had to move the includes to the platform specific
> directory since they differ depending on the plaform.
>
> I've tested multiarch installs and I've rebuilt packages that depend on
> liburcu successfully, I would appreciate if you could test the packages
> and report back here. They should show up in the archive soon.
>
> I just tested the same. I am able to install both, and build packages that
depend on liburcu successfully.

Thanks.

Cheers,
>
> Michael
>
>


Bug#854778: liburcu 32 bit and 64 bit versions cannot install simultaneously

2017-02-28 Thread Michael Jeanson
On 2017-02-28 09:20, Matthew Wilcox wrote:
> 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.

I've just pushed 0.9.3-2 to experimental with multiarch enabled on the
dev packages. I had to move the includes to the platform specific
directory since they differ depending on the plaform.

I've tested multiarch installs and I've rebuilt packages that depend on
liburcu successfully, I would appreciate if you could test the packages
and report back here. They should show up in the archive soon.

Cheers,

Michael



Bug#854778: liburcu 32 bit and 64 bit versions cannot install simultaneously

2017-02-28 Thread Matthew Wilcox
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





Bug#854778: liburcu 32 bit and 64 bit versions cannot install simultaneously

2017-02-28 Thread Rehas Sachdeva
Hello,

I want to install liburcu-dev:i386 and liburcu-dev:amd64 simultaneously on
my
x86_64 machine. I cannot do that using 'apt install' as either installation
removes the other.

1. I went through https://wiki.debian.org/Multiarch/Implementation.

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


On Wed, Feb 15, 2017 at 10:53 PM, Michael Jeanson 
wrote:

> On 2017-02-10 04:12, Rehas Sachdeva wrote:
> > Package: liburcu-dev
> > Version: 0.9.1-3
> >
> > I followed the instructions here,
> > https://wiki.debian.org/Multiarch/Implementation
> > to add i386 architecture.
> >
> > I am able to build 64-bit binaries but I am not able to force 32-bit
> > build using -m32 flag, as mentioned here http://liburcu.org/. Below is
> > the error message:
> >
> > /usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.so when
> > searching for -lurcu
> > /usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.a when
> > searching for -lurcu
> > /usr/bin/ld: cannot find -lurcu
> > collect2: error: ld returned 1 exit status
> >
> > I am using GNU/Linux 4.4.0-62-generic, on x86_64 machine.
> >
> > Thanks.
>
> Hi,
>
> I'm not sure exactly what you are trying to achieve but the files you
> refer to in "/usr/local" are not part of the liburcu debian package and
> must be artifacts of a local build and install.
>
> I'll need more details on what you are trying to do and what steps you
> took to get there.
>
> Regards,
>
> Michael
>
>


Bug#854778: liburcu 32 bit and 64 bit versions cannot install simultaneously

2017-02-15 Thread Michael Jeanson
On 2017-02-10 04:12, Rehas Sachdeva wrote:
> Package: liburcu-dev
> Version: 0.9.1-3
> 
> I followed the instructions here,
> https://wiki.debian.org/Multiarch/Implementation
> to add i386 architecture.
> 
> I am able to build 64-bit binaries but I am not able to force 32-bit
> build using -m32 flag, as mentioned here http://liburcu.org/. Below is
> the error message:
> 
> /usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.so when
> searching for -lurcu
> /usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.a when
> searching for -lurcu
> /usr/bin/ld: cannot find -lurcu
> collect2: error: ld returned 1 exit status
> 
> I am using GNU/Linux 4.4.0-62-generic, on x86_64 machine.
> 
> Thanks.

Hi,

I'm not sure exactly what you are trying to achieve but the files you
refer to in "/usr/local" are not part of the liburcu debian package and
must be artifacts of a local build and install.

I'll need more details on what you are trying to do and what steps you
took to get there.

Regards,

Michael



Bug#854778: liburcu 32 bit and 64 bit versions cannot install simultaneously

2017-02-10 Thread Rehas Sachdeva
Package: liburcu-dev
Version: 0.9.1-3

I followed the instructions here,
https://wiki.debian.org/Multiarch/Implementation
to add i386 architecture.

I am able to build 64-bit binaries but I am not able to force 32-bit build
using -m32 flag, as mentioned here http://liburcu.org/. Below is the error
message:

/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.so when
searching for -lurcu
/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu.a when searching
for -lurcu
/usr/bin/ld: cannot find -lurcu
collect2: error: ld returned 1 exit status

I am using GNU/Linux 4.4.0-62-generic, on x86_64 machine.

Thanks.