Bug 202210

Summary: Errorneously detected perl provides
Product: [Fedora] Fedora Reporter: Stepan Kasal <kasal>
Component: rpmAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: cweyl, ffesti, perl-devel, triage
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-20 10:35:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 197460    

Description Stepan Kasal 2006-08-11 16:07:12 UTC
The automatic provides can contain false positives.  For a real-life example,
see bug #197460.

The problem can be demonstrated like this:
$ yum install libgtk-java
...
$ /usr/lib/rpm/perl.prov
/usr/share/doc/libgtk-java-2.8.5/examples/packbox/Packbox.java
perl(packbox)
$ /usr/lib/rpm/perldeps.pl --provides
/usr/share/doc/libgtk-java-2.8.5/examples/packbox/Packbox.java
perl(packbox)

Two ideas came to my mind:

1) When detecting provides, *.java files should be skipped. (Or, more generally,
perl.prov, perl.req, and perldep.pl should silently skip obvious non-perl files.)
2) The automatic provides/requires mechanism should ignore %doc files.  (The
package should work even if it is installed without the documentation.)

IMHO both of the above should be implemented.

Comment 1 Paul Nasrat 2006-08-11 17:39:47 UTC
Are the .java files marked as +x, if so  then they probably should be installed
as 644 which will cause the automatic provides/requires to be skipped.

This sounds like a packaging bug with the examples, as unlike example scripts
.java files are not executable so should never be marked as such.

Comment 2 Stepan Kasal 2006-08-13 19:36:45 UTC
The *.java files do not have +x flag set.

The spec file contains:
%files
%doc doc/examples

and the _directory_ doc/examples has +x set, of course.

This might trigger the bug...


Comment 3 Paul Nasrat 2006-08-16 18:20:33 UTC
OK the problem actually may lie in the fact 

file /usr/share/doc/libgtk-java-2.8.6/examples/packbox/Packbox.java
/usr/share/doc/libgtk-java-2.8.6/examples/packbox/Packbox.java: Perl5 module
source text

As the files start with

I'll try figure if we can work around here.

Comment 4 Red Hat Bugzilla 2007-08-21 05:24:44 UTC
User pnasrat's account has been closed

Comment 5 Panu Matilainen 2007-08-22 06:33:34 UTC
Reassigning to owner after bugzilla made a mess, sorry about the noise...

Comment 6 Bug Zapper 2008-04-03 17:56:35 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 7 Chris Weyl 2008-04-05 21:36:13 UTC
AFAIK this bug is still valid -- rpm's perl autoprov/dep generators are still a
touch off in certain situations.

Comment 8 John Poelstra 2008-04-29 22:25:39 UTC
thanks for your update

Comment 9 Bug Zapper 2008-05-14 02:16:51 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 10 Bug Zapper 2009-06-09 22:15:18 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 11 Bug Zapper 2009-11-16 07:52:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 12 Marcela Mašláňová 2011-03-24 14:00:27 UTC
I suppose this is bug in packaging. According to our guidelines documentation must be non-executable. Even tests must be non-executable if they are installed as documentation. Therefore it is not scanned for requires.

Comment 13 Fedora Admin XMLRPC Client 2012-04-13 23:12:22 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 14 Fedora Admin XMLRPC Client 2012-04-13 23:14:02 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 15 Florian Festi 2015-03-20 10:35:05 UTC
Oh dear! This is ancient. Guess the overall situation has not improved that much. But without a concreate, contemporary case nothing is going to happen. Closing now.