3.20. Checking pello for sanity
This section shows possible warnings and errors that can occur when checking RPM sanity on the example of the pello SPEC file and pello binary RPM.
3.20.1. Checking the pello SPEC File Copier lienLien copié sur presse-papiers!
Exemple 3.5. Output of running the rpmlint
command on the SPEC file for pello
The invalid-url Source0
warning says that the URL listed in the Source0
directive is unreachable. This is expected, because the specified example.com
URL does not exist. Presuming that this URL will work in the future, you can ignore this warning.
The hardcoded-library-path
errors suggest to use the %{_libdir}
macro instead of hard-coding the library path. For the sake of this example, you can safely ignore these errors. However, for packages going into production make sure to check all errors carefully.
Exemple 3.6. Output of running the rpmlint
command on the SRPM for pello
The new invalid-url URL
error here is about the URL
directive, which is unreachable. Assuming that the URL will be valid in the future, you can safely ignore this error.
3.20.2. Checking the pello binary RPM Copier lienLien copié sur presse-papiers!
When checking binary RPMs, rpmlint
checks for the following items:
- Documentation
- Manual pages
- Consistent use of the Filesystem Hierarchy Standard
Exemple 3.7. Output of running the rpmlint
command on the binary RPM for pello
The no-documentation
and no-manual-page-for-binary
warnings say that the RPM has no documentation or manual pages, because you did not provide any.
The only-non-binary-in-usr-lib
warning says that you provided only non-binary artifacts in /usr/lib/
. This directory is normally reserved for shared object files, which are binary files. Therefore, rpmlint
expects at least one or more files in /usr/lib/
directory to be binary.
This is an example of an rpmlint
check for compliance with Filesystem Hierarchy Standard. Normally, use RPM macros to ensure the correct placement of files. For the sake of this example, you can safely ignore this warning.
The non-executable-script
error warns that the /usr/lib/pello/pello.py
file has no execute permissions. The rpmlint
tool expects the file to be executable, because the file contains the shebang. For the purpose of this example, you can leave this file without execute permissions and ignore this error.
Apart from the above warnings and errors, the RPM passed rpmlint
checks.