Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1050897
Summary: | Ruby script classification should not change when require 'foo' appears prior module | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> | ||||
Component: | file | Assignee: | Marek Cermak <macermak> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 25 | CC: | jkaluza, kdudka, macermak, vondruch | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | file-5.30-10.fc26 file-5.29-9.fc25 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-08-22 20:44:33 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Vít Ondruch
2014-01-09 10:06:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. This was not resolved to my knowledge ... The default output of file(1) is intended for humans. It is continuously being extended to provide additional info, so it can easily differ between different versions of file(1). Please consider using the --mime option if you need more predictable output. If you want to improve the heuristics that file uses for classification of ruby source code, please attach a set of examples with the expected classification. As I tried to explain in additional information, there is really nothing like "Ruby module". The file is always Ruby script, it might contain classes, modules, mixture of classes or modules, or no classes or modules at all. But there is no official notion of "Ruby module source" as file currently pretends. This is completely artificial thing ... And as far as I remember, this issue was unveiled by some tool like rpmdiff or so, which is using file on background, so I am not in control of the parameters ... This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'. file-5.29-9.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ee474bb41c file-5.30-10.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-859756e3ac Created attachment 1315153 [details] Patch proposal Ruby magic file modification Upstream commit: https://github.com/file/file/commit/d56eb7ea0b9c2a4edec17032a92fe66aebb1aa3a file-5.29-9.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-ee474bb41c file-5.30-10.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-859756e3ac file-5.30-10.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. file-5.29-9.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |