Re: overzealous /usr/lib/rpm/perl.req

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

 



Once upon a time, Axel Thimm <Axel.Thimm@xxxxxxxxxx> said:
> Yes, for the archives the recipe is:
> 
> Source999: filter-requires-<foo>.sh
> %define _use_internal_dependency_generator 0
> %define __find_requires %{SOURCE999}
> 
> and filter-requires-<foo>.sh does:
> 
> #!/bin/sh
> 
> /usr/lib/rpm/find-requires "$@" \
>   | egrep -v <extended regex of bogus/superfluous dependencies>

This is rather ugly, but is popping up in more packages.  I really think
RPM needs to handle this case cleaner in the spec file.  Maybe something
like:

ExcludeRequires: perl(Win32)

This is especially a problem with perl, since some modules have
conditional requirements (like "if I'm running on Win32, use a Win32
module, otherwise use the POSIX module") for portability.  The RPM perl
requires scanner can't handle those.

-- 
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


_______________________________________________
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