Perl autorequires failing for git-svn

Petr Pisar ppisar at
Wed Jan 15 09:51:04 UTC 2014

On 2014-01-15, Todd Zullinger <tmz at> wrote:
> I'm trying to fix a problem with the git-svn package that causes it to 
> not pull in the proper perl dependencies (filed as rhbz #1026760). 
> (It's possible I've simply missed an important announcement, but I 
> didn't spot anything in the guidelines.)
> It appears that the file package was changed from 5.11 in f19 to 5.14 
> in f20.  With this change, the git-svn script reports a different type 
> and find-requires does not pass it to perl.req for processing.
Despite there is incompatibility between updated file and rpmbuild,
which could be fixed probably on rpmbuild side to scan modules and scripts
for requires, the basic problem is git.spec uses old, obsoleted,
and broken manual generators:

# Filter bogus perl requires
# packed-refs comes from a comment in contrib/hooks/update-paranoid
# YAML::Any is optional and not available on el5
cat << \EOF > %{name}-req
%{__perl_requires} $* |\
sed \
%if %{filter_yaml_any}
    -e '/perl(YAML::Any)/d' \
    -e '/perl(packed-refs)/d'

%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
chmod +x %{__perl_requires}

The spec file should use new generators (__requires_exclude) only.

-- Petr

More information about the devel mailing list