[Bug 924938] wrong provides in latest build

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 25 07:44:14 UTC 2013


Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=924938

--- Comment #19 from Jan Kaluža <jkaluza at redhat.com> ---
(In reply to comment #10)
> file maintainer, any idea?

File in rawhide should detect Perl files better. I've run my regression tests (
https://fedorahosted.org/file-tests/ ) and saw only improvements between 5.11
and 5.14.

Some Perl files previously detect as "awk script, ASCII text" are now properly
detected as "Perl5 module source, ASCII text".

I have very limited understanding of interaction between File and rpmbuild.
>From what I know, rpmbuild checks all files using the File tool and try to
match File output according to regexps in /usr/lib/rpm/fileattrs (I'm testing
that matching in my test-suite too).

What happened here is that File probably (I don't have the old File installed
right now to prove that) started reporting "/usr/share/perl5/perl5db.pl" as
Perl script. Next thing is speculation, because I don't what exactly rpmbuild
does when it finds some Perl file using File tool, but I think it probably
checks for "package X" in that Perl File. And it finds this in our file:

./usr/share/perl5/perl5db.pl:        package Carp;    # Do not include us in
the list

That could explain why you see that particular Provides there. Please try to
remove that file, do scratch-build and test the Provides to prove this theory.
If it's true, I think it's rpmbuild bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=vGiQOz81B1&a=cc_unsubscribe


More information about the perl-devel mailing list