Re: Perl autorequires failing for git-svn

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

 



On 2014-01-15, Todd Zullinger <tmz@xxxxxxxxx> 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
#!/bin/sh
%{__perl_requires} $* |\
sed \
%if %{filter_yaml_any}
    -e '/perl(YAML::Any)/d' \
%endif
    -e '/perl(packed-refs)/d'
EOF

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

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

-- Petr

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux