Re: How to make .spec Requires for libXXX.so.VER

2015-09-29 Thread Jan Kratochvil
On Tue, 29 Sep 2015 14:32:06 +0200, Sérgio Basto wrote: > On Seg, 2015-09-28 at 09:11 +0200, Jan Kratochvil wrote: > > This works for Requires (or Recommends) but not for BuildRequires: > > Sorry if it is off-topic ... > I got a similar question, I just tested and the following works in > copr :

Re: How to make .spec Requires for libXXX.so.VER

2015-09-29 Thread Sérgio Basto
Hi, On Seg, 2015-09-28 at 09:11 +0200, Jan Kratochvil wrote: > On Sat, 01 Aug 2015 21:48:24 +0200, Igor Gnatenko wrote: > > On Sat, Aug 1, 2015 at 10:25 PM, Jan Kratochvil > > wrote: > > > (1) How to make a dependency on librpm.so.7? > > > > > > librpm.so.7 is in rpm-libs-4.12.90-3.fc24.x86_64 wh

Re: How to make .spec Requires for libXXX.so.VER

2015-09-28 Thread Jan Kratochvil
On Sat, 01 Aug 2015 21:48:24 +0200, Igor Gnatenko wrote: > On Sat, Aug 1, 2015 at 10:25 PM, Jan Kratochvil > wrote: > > (1) How to make a dependency on librpm.so.7? > > > > librpm.so.7 is in rpm-libs-4.12.90-3.fc24.x86_64 which --provides: > > librpm.so.7()(64bit) > > librpmio.so.7

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Jan Kratochvil
On Sun, 02 Aug 2015 13:54:58 +0200, Ralf Corsepius wrote: > I still don't get it. If librpm's SONAME changes between Fedora releases, > these libs will be call incompatible, no matter if they will be dlopen'ed or > linked directly. The librpm functionality in GDB is very marginal one. For normal

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Ralf Corsepius
On 08/02/2015 09:33 AM, Jan Kratochvil wrote: It was reworked from ordinary DT_NEEDED to this dlopen() approach because librpm.so is (was) the only incompatible shared library dependency between various versions of RHELs/CentOSes and Fedoras. So with dlopen()ed librpm one can take latest Fedora

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Jan Kratochvil
On Sun, 02 Aug 2015 12:02:08 +0200, Florian Weimer wrote: > Isn't GDB moving to C++ soon? C++ is in the plan but I do not know the schedule. > This means that possibility will be lost anyway. I think it is already lost by all the DT_NEEDED libpython versions anyway. > If that's the only reaso

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Florian Weimer
On 08/02/2015 09:33 AM, Jan Kratochvil wrote: > It was reworked from ordinary DT_NEEDED to this dlopen() approach because > librpm.so is (was) the only incompatible shared library dependency between > various versions of RHELs/CentOSes and Fedoras. So with dlopen()ed librpm one > can take latest F

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Jan Kratochvil
On Sun, 02 Aug 2015 10:54:17 +0200, Florian Weimer wrote: > Why do you use dlopen for such essential system libraries? Why not link > to them directly? https://lists.fedoraproject.org/pipermail/devel/2015-August/213029.html Message-ID: <20150802073308.ga15...@host1.jankratochvil.net> -- devel ma

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Florian Weimer
On 08/01/2015 09:25 PM, Jan Kratochvil wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1249325 > > GDB requires some library libXXX.so.3 by dlopen(). Therefore it is not found > by rpm automatic requires/provides from DT_NEEDED. Therefore one has to add > the libXXX.so.3 by specific BuildR

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Jan Kratochvil
On Sat, 01 Aug 2015 21:48:24 +0200, Igor Gnatenko wrote: > I'd propose to add something like: > %if %{__isa_bits} = 64 > Requires: libFOO.so.X()(64bit) > %else > Requires: libFOO.so.X > %endif Thanks, used that. __isa_bits is 32 even on s390 (sometimes called as 31-bit). Jan Kratochvil -- deve

Re: How to make .spec Requires for libXXX.so.VER

2015-08-02 Thread Jan Kratochvil
On Sun, 02 Aug 2015 08:35:46 +0200, Ralf Corsepius wrote: > On 08/01/2015 09:25 PM, Jan Kratochvil wrote: > >(1) How to make a dependency on librpm.so.7? > > > >librpm.so.7 is in rpm-libs-4.12.90-3.fc24.x86_64 which --provides: > > librpm.so.7()(64bit) > > librpmio.so.7()(64bit) > > rpm

Re: How to make .spec Requires for libXXX.so.VER

2015-08-01 Thread Ralf Corsepius
On 08/01/2015 09:25 PM, Jan Kratochvil wrote: Hi, https://bugzilla.redhat.com/show_bug.cgi?id=1249325 GDB requires some library libXXX.so.3 by dlopen(). Therefore it is not found by rpm automatic requires/provides from DT_NEEDED. Therefore one has to add the libXXX.so.3 by specific BuildRequi

Re: How to make .spec Requires for libXXX.so.VER

2015-08-01 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Aug 01, 2015 at 10:48:24PM +0300, Igor Gnatenko wrote: > On Sat, Aug 1, 2015 at 10:25 PM, Jan Kratochvil > wrote: > > Hi, > Hi, > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1249325 > > > > GDB requires some library libXXX.so.3 by dlopen(). Therefore it is not > > found > > by rpm

Re: How to make .spec Requires for libXXX.so.VER

2015-08-01 Thread Igor Gnatenko
On Sat, Aug 1, 2015 at 10:25 PM, Jan Kratochvil wrote: > Hi, Hi, > > https://bugzilla.redhat.com/show_bug.cgi?id=1249325 > > GDB requires some library libXXX.so.3 by dlopen(). Therefore it is not found > by rpm automatic requires/provides from DT_NEEDED. Therefore one has to add > the libXXX.so.

How to make .spec Requires for libXXX.so.VER

2015-08-01 Thread Jan Kratochvil
Hi, https://bugzilla.redhat.com/show_bug.cgi?id=1249325 GDB requires some library libXXX.so.3 by dlopen(). Therefore it is not found by rpm automatic requires/provides from DT_NEEDED. Therefore one has to add the libXXX.so.3 by specific BuildRequires and Requires to the .spec file. libXXX is l