On Fri, Feb 09, 2018 at 03:55:26PM +0100, Dominik 'Rathann' Mierzejewski wrote:
> On Friday, 09 February 2018 at 09:50, Jakub Jelinek wrote:
> > On Fri, Feb 09, 2018 at 09:48:30AM +0100, Rafal Luzynski wrote:
> > > 9.02.2018 08:41 Kevin Kofler <kevin.kof...@chello.at> wrote:
> > > >
> > > >
> > > > Rafal Luzynski wrote:
> > > > > Requires: libstdc++.so.6
> > > >
> > > > That needs to be libstdc++.so.6()(64bit) on x86_64 and other 64-bit 
> > > > multilib
> > > > architectures though.
> > > 
> > > I know and this was going to be my next question: what magic
> > > operator to use to generate the correct form for all architectures?
> > > Or maybe there is no such operator and I should use some %if ... %else
> > > to detect 32bit/64bit/multiarch?
> > 
> > I believe there is none and in the compat-gcc-34 I've built yesterday I'm
> > using %ifarch.
> 
> I think it's better to use something like:
> 
> %if %__isa_bits == 64
> %global dep_suffix ()(64bit)
> %endif
> Requires: libstdc++.so.6%{?dep_suffix}

It is not, because not all 64-bit rpm arches use the (64bit) suffix,
e.g. alpha does not.

        Jakub
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to