Best way to filter automated dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is adding something like the following the best way to filter or
exclude a certain shared library from the list of automatically
generated dependencies for a certain package?

%prep
%define _use_internal_dependency_generator 0
cat <<EOF > %{_builddir}/%{name}-%{version}/myfindreq
#!/bin/sh
%{__find_requires} | %{__grep} -v libfoo
EOF
%define __find_requires %{_builddir}/%{name}-%{version}/myfindreq
chmod +x %{__find_requires}

Why won't the following work?

%prep
%define _use_internal_dependency_generator 0
%define __find_requires /usr/lib/rpm/find-requires | grep -v libfoo

Also, is the _requires_exceptions macro still supported?  I couldn't
get it working:

%define _requires_exceptions libfoo

I know that messing with the automated dependencies is in general a
bad idea, but unfortunately we're using a third party library who's
RPM doesn't properly specify the dependencies it provides.  Instead,
I'm going to filter the dependency from our RPM and then specify the
actual file manually.

Thanks for the help.

- Daniel
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux