On 02/03/2017 06:18 PM, David Howells wrote:
Okay, creating a script:

        #!/bin/sh
        if [ -x /usr/lib/rpm/redhat/find-requires ] ; then
        FINDREQ=/usr/lib/rpm/redhat/find-requires
        else
        FINDREQ=/usr/lib/rpm/find-requires
        fi
        $FINDREQ $*
        case `uname -m` in
            *64)
                echo 'libisl.so.15()(64bit)'
                ;;
            *)
                echo 'libisl.so.15()'
                ;;
        esac
gives me the following:

        warthog>rpm -qpR x86_64/gcc-x86_64-linux-gnu-6.3.1-1.fc26.x86_64.rpm
        ...
        libisl.so.15()(64bit)
        ...

which seems more or less what I was looking for.  Deciding whether or not I
want to include the "(64bit)" flag is another issue to be solved.

Eek. Please don't.

You're turning the whole dependency generator upside down into a deprecated mode which has unwanted side-effects, just to insert one dependency. Which you can just as well create in the spec directly, something like

%if %{__isa_bits} == 64
Requires: libisl.so.15()(64bit)
%else
Requires: libisl.so.15()
%endif

...for a very simple example. And if you really want to do things with the dependency generator, all you need to do is to override %__elf_requires, not the entire thing.

        - Panu -

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

Reply via email to