Re: Overriding automatic dependancies

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

 



On Thu, 2004-02-12 at 15:53, Jos Vos wrote:

> It does not.  For that, you can do something like this:
> 
>   %define _use_internal_dependency_generator 0
>   %define __find_provides %SOURCE2
>   %define __find_requires %SOURCE3
> 
> Where the referred sources are scripts that could be something like:
> 
>   #!/bin/sh
>   /usr/lib/rpm/redhat/find-provides | ... some nice filtering ...

That approach has a slight problem (depending on the desired
cross-distro compatibility etc): such a package will not work as
expected if redhat-rpm-config (/usr/lib/rpm/redhat/...) is not
installed.

To kludge around it, one can create the filter on the fly in the
specfile, for example in the %prep section:

  %define _use_internal_dependency_generator 0
  cat <<EOF > my-findreq
  #!/bin/sh
  %{__find_requires} | grep -v bad_stuff
  EOF
  %define __find_requires %{_builddir}/%{name}-%{version}/my-findreq
  chmod +x %{__find_requires}


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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