Bug 1904399 - rpmlint errors out when checking a package using a language w/o the correspondig dictionary
Summary: rpmlint errors out when checking a package using a language w/o the correspon...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1940213 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-04 10:33 UTC by Xavier Bachelot
Modified: 2021-11-30 18:17 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-11-30 18:17:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Xavier Bachelot 2020-12-04 10:33:51 UTC
Description of problem:
rpmlint errors out on a missing dictionary and seemingly don't check anything.

Version-Release number of selected component (if applicable):
rpmlint-1.11-12.fc33.noarch

How reproducible:
Always

Steps to Reproduce:
1. Just run rpmlint on a package that does make use of alternative Summary: %description, etc... for a language with no corresponding dictionary installed.
(https://src.fedoraproject.org/rpms/sympa does have some japanese tags)
2.
3.

Actual results:
$ rpmlint results_sympa/6.2.58/2.fc34/sympa-*.rpm
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
Traceback (most recent call last):
  File "/usr/bin/rpmlint", line 379, in <module>
    main()
  File "/usr/bin/rpmlint", line 169, in main
    runChecks(pkg)
  File "/usr/bin/rpmlint", line 227, in runChecks
    check.check(pkg)
  File "/usr/share/rpmlint/TagsCheck.py", line 699, in check
    self.check_summary(pkg, lang, ignored_words)
  File "/usr/share/rpmlint/TagsCheck.py", line 920, in check_summary
    spell_check(pkg, summary, 'Summary(%s)', lang, ignored_words)
  File "/usr/share/rpmlint/TagsCheck.py", line 462, in spell_check
    checker = enchant.checker.SpellChecker(
  File "/usr/lib/python3.9/site-packages/enchant/checker/__init__.py", line 140, in __init__
    raise DefaultLanguageNotFoundError(lang) from None
enchant.errors.DefaultLanguageNotFoundError: ja

Expected results:
Usual rpmlint output.
At the very least, a missing dictionary shouldn't be a fatal issue. The missing language should just be ignored and a warning issued, then rpmlint would just actually check the packages.

Additional info:
rpmlint works on the specfile itself.

Comment 1 Ben Beasley 2021-03-17 20:02:55 UTC
*** Bug 1940213 has been marked as a duplicate of this bug. ***

Comment 2 Ben Cotton 2021-11-04 14:54:19 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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 EOL if it remains open with a
Fedora 'version' of '33'.

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.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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.

Comment 3 Ben Cotton 2021-11-04 15:52:54 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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 EOL if it remains open with a
Fedora 'version' of '33'.

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.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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.

Comment 4 Ben Cotton 2021-11-30 18:17:14 UTC
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 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.


Note You need to log in before you can comment on or make changes to this bug.