Package Details: rpmlint 2.5.0-3

Git Clone URL: https://aur.archlinux.org/rpmlint.git (read-only, click to copy)
Package Base: rpmlint
Description: A tool for checking common errors in rpm packages
Upstream URL: https://github.com/rpm-software-management/rpmlint
Licenses: GPL-2.0-only
Submitter: td123
Maintainer: carsme
Last Packager: carsme
Votes: 7
Popularity: 0.000365
First Submitted: 2011-09-12 22:55 (UTC)
Last Updated: 2024-01-28 22:56 (UTC)

Latest Comments

1 2 Next › Last »

cyqsimon commented on 2023-03-08 05:55 (UTC) (edited on 2023-03-08 05:59 (UTC) by cyqsimon)

Oops my bad. My main use for rpmlint is for building packages for RHEL servers, so I generally test on a Rocky 9 system. I ran man rpmlint on it absent-mindedly, and there was a man page, so I assumed Fedora's rpmlint package must has it too, seen that RHEL 9 wasn't released that long ago. When I saw that man rpmlint shows nothing on my laptop, I came straight over here to report the issue.

Turns out that was a false assumption - Fedora's rpmlint doesn't have a man page, unfortunately. Oddly, despite its rather recent release, RHEL 9 still ships rpmlint 1.11 (which is like 5 years old at this point), while Fedora obviously ships rpmlint 2.4.

So I did a git bisect on their repo, and it seems like the man page was explicitly removed in f8799b0e9d3333da8b67eef30f384b876b620b16:

Say goodbye to manpage and bash_completion

Sadly both of those are really obsolete and not matching the behaviour
that is currently present in the binaries.

The manpage content is now in argparse data when one runs --help it
provides equal information that was stored in the mans.

If needed one can use help2man to generate new ones during the
package build

Welp, too bad I guess. I did enjoy the more abundant information and the nice formatting of the man page. =(

carsme commented on 2023-03-07 19:06 (UTC) (edited on 2023-03-07 19:07 (UTC) by carsme)

@cyqsimon I could not find any man pages in the rpmlint repository. Do you have a suggestion of where to get them?

cyqsimon commented on 2023-03-07 13:04 (UTC)

Just noticed today that the man page for rpmlint is not installed. Can you please install it too? Thanks.

cyqsimon commented on 2022-12-18 13:20 (UTC)

@carsme thanks for the fix.

Considering that rpm is not Arch's package manager, I felt relatively safe deleting /var/lib/rpm.

But just as a precaution, could there be situations on Arch where /var/lib/rpm could potentially contain some useful user data?

carsme commented on 2022-04-18 19:40 (UTC)

@nicoulaj Those tests should only run if you have an RPM database (at /var/lib/rpm). If you do have an RPM database on your system, could you try to remove it and install again?

nicoulaj commented on 2022-04-17 19:34 (UTC)

Some tests fail:

======================================================================================================================================== FAILURES ========================================================================================================================================
_____________________________________________________________________________________________________________________________ test_run_installed[packages0] ______________________________________________________________________________________________________________________________

capsys = <_pytest.capture.CaptureFixture object at 0x7fd182fedd80>, packages = PosixPath('test/source/wrongsrc-0-0.src.rpm')

    @pytest.mark.skipif(not HAS_RPMDB, reason='No RPM database present')
    @pytest.mark.parametrize('packages', [Path('test/source/wrongsrc-0-0.src.rpm')])
    def test_run_installed(capsys, packages):
        # load up 1 normal path file and 2 installed packages
        additional_options = {
            'rpmfile': [packages],
            'installed': ['binutils', 'rpm'],
        }
        options = {**options_preset, **additional_options}
        linter = Lint(options)
        linter.checks = _remove_except_zip(linter.checks)
        linter.run()
        out, err = capsys.readouterr()
>       assert '3 packages and 0 specfiles checked' in out
E       AssertionError: assert '3 packages and 0 specfiles checked' in '============================ rpmlint session starts ============================\nrpmlint: 2.2.0\nconfiguration:\n   ...g\nchecks: 27, packages: 3\n\n 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 0.0 s \n'

test/test_lint.py:233: AssertionError
____________________________________________________________________________________________________________________________ test_run_installed_and_no_files _____________________________________________________________________________________________________________________________

capsys = <_pytest.capture.CaptureFixture object at 0x7fd183348520>

    @pytest.mark.skipif(not HAS_RPMDB, reason='No RPM database present')
    def test_run_installed_and_no_files(capsys):
        additional_options = {
            'rpmfile': [],
            'installed': ['rpm'],
        }
        options = {**options_preset, **additional_options}
        linter = Lint(options)
        linter.checks = _remove_except_zip(linter.checks)
        linter.run()
        out, err = capsys.readouterr()
>       assert '1 packages and 0 specfiles checked' in out
E       AssertionError: assert '1 packages and 0 specfiles checked' in '============================ rpmlint session starts ============================\nrpmlint: 2.2.0\nconfiguration:\n   ...g\nchecks: 27, packages: 1\n\n 0 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 0.0 s \n'

test/test_lint.py:283: AssertionError
_________________________________________________________________________________________________________________________________ test_installed_package _________________________________________________________________________________________________________________________________

capsys = <_pytest.capture.CaptureFixture object at 0x7fd1833509a0>

    @pytest.mark.skipif(not HAS_RPMDB, reason='No RPM database present')
    def test_installed_package(capsys):
        additional_options = {
            'installed': ['bzip2'],
            'permissive': True
        }
        options = {**options_preset, **additional_options}
        linter = Lint(options)
        retcode = linter.run()
        out, err = capsys.readouterr()
>       assert '1 packages and 0 specfiles checked' in out
E       AssertionError: assert '1 packages and 0 specfiles checked' in '============================ rpmlint session starts ============================\nrpmlint: 2.2.0\nconfiguration:\n   ...g\nchecks: 27, packages: 1\n\n 0 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 0.0 s \n'

test/test_lint.py:437: AssertionError

carsme commented on 2021-07-26 14:11 (UTC)

@stig124 Released a new pkgver. Hopefully it's fixed now.

stig124 commented on 2021-07-24 17:17 (UTC)

The package doesn't build, 41 errors in tests

See logs : https://termbin.com/fvnk

anthr76 commented on 2021-05-18 14:38 (UTC)

Version 2.0 is out

nyoxi commented on 2017-08-16 17:10 (UTC)

There's an issue in PKGBUILD. The 'url' should not be an array. Please replace line: url=("http://${pkgname}.sourceforge.net/") with: url="http://${pkgname}.sourceforge.net/"