Bug 1967822 - rpmlint dies: --help: line 1: checkbashisms: command not found
Summary: rpmlint dies: --help: line 1: checkbashisms: command not found
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-04 06:18 UTC by Petr Pisar
Modified: 2021-06-04 13:58 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-06-04 13:58:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2021-06-04 06:18:57 UTC
I have rpmlint-2.0.0-1.fc35.noarch:

$ rpmlint perl-Object-Pad.spec 
--help: line 1: checkbashisms: command not found
Traceback (most recent call last):
  File "/usr/bin/rpmlint", line 33, in <module>
    sys.exit(load_entry_point('rpmlint==2.0.0', 'console_scripts', 'rpmlint')())
  File "/usr/lib/python3.9/site-packages/rpmlint/cli.py", line 173, in lint
    lint = Lint(options)
  File "/usr/lib/python3.9/site-packages/rpmlint/lint.py", line 53, in __init__
    self.load_checks()
  File "/usr/lib/python3.9/site-packages/rpmlint/lint.py", line 291, in load_checks
    self.checks[check] = self.load_check(check)
  File "/usr/lib/python3.9/site-packages/rpmlint/lint.py", line 297, in load_check
    obj = klass(self.config, self.output)
  File "/usr/lib/python3.9/site-packages/rpmlint/checks/BashismsCheck.py", line 12, in __init__
    self._detect_early_fail_option()
  File "/usr/lib/python3.9/site-packages/rpmlint/checks/BashismsCheck.py", line 16, in _detect_early_fail_option
    output = subprocess.check_output(['checkbashisms', '--help'],
  File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib64/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['checkbashisms', '--help']' returned non-zero exit status 127.

Comment 1 Artur Frenszek-Iwicki 2021-06-04 08:50:11 UTC
/usr/bin/checkbashisms is provided by the "devscripts-checkbashisms" package.
Looking at rpmlint's spec, that package is listed in BuildRequires, but not in Requires.

Comment 2 Tom "spot" Callaway 2021-06-04 13:58:26 UTC
Requires fixed in rpmlint-2.0.0-2.fc35.


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