============================ rpmlint session starts ============================ rpmlint: 2.6.1 configuration: /opt/testing/lib/python3.11/rpmlint/configdefaults.toml /opt/testing/share/rpmlint/cron-whitelist.toml /opt/testing/share/rpmlint/dbus-services.toml /opt/testing/share/rpmlint/device-files-whitelist.toml /opt/testing/share/rpmlint/licenses.toml /opt/testing/share/rpmlint/opensuse.toml /opt/testing/share/rpmlint/pam-modules.toml /opt/testing/share/rpmlint/permissions-whitelist.toml /opt/testing/share/rpmlint/pie-executables.toml /opt/testing/share/rpmlint/polkit-rules-whitelist.toml /opt/testing/share/rpmlint/scoring.toml /opt/testing/share/rpmlint/security.toml /opt/testing/share/rpmlint/sudoers-whitelist.toml /opt/testing/share/rpmlint/sysctl-whitelist.toml /opt/testing/share/rpmlint/systemd-tmpfiles.toml /opt/testing/share/rpmlint/users-groups.toml /opt/testing/share/rpmlint/world-writable-whitelist.toml /opt/testing/share/rpmlint/zypper-plugins.toml /etc/xdg/rpmlint/scoring-strict.override.toml rpmlintrc: /home/abuild/rpmbuild/SOURCES/grub2.rpmlintrc checks: 41, packages: 13 grub2-arm-efi.noarch: E: zero-length /usr/share/grub2/arm-efi/fdt.lst grub2-arm-uboot.noarch: E: zero-length /usr/share/grub2/arm-uboot/fdt.lst grub2-arm-uboot.noarch: E: zero-length /usr/share/grub2/arm-uboot/video.lst grub2.src: E: unused-rpmlintrc-filter "zero-length /boot/grub2/grub.cfg" grub2.src: E: unused-rpmlintrc-filter "non-etc-or-var-file-marked-as-conffile /boot/grub2/grub.cfg" grub2.src: E: unused-rpmlintrc-filter "non-conffile-in-etc /etc/bash_completion.d/grub" grub2.src: E: unused-rpmlintrc-filter "statically-linked-binary .*/grub2/*/kernel.img" grub2.src: E: unused-rpmlintrc-filter "unstripped-binary-or-object .*/grub2/*/.*.mod" grub2.src: E: unused-rpmlintrc-filter "s390x: W: executable-stack" grub2.src: E: unused-rpmlintrc-filter "suse-filelist-forbidden-noarch" grub2.src: E: unused-rpmlintrc-filter "filelist-forbidden-noarch" grub2-common.armv6hl: W: potential-bashisms /usr/sbin/grub2-mkconfig grub2-common.armv6hl: W: potential-bashisms /etc/grub.d/20_linux_xen checkbashisms reported potential bashisms in a /bin/sh shell script, you might want to manually check this script for bashisms. grub2-common.armv6hl: W: position-independent-executable-suggested /usr/bin/grub2-emu This executable should be position independent (all binaries should). Check that it is built with -fPIE/-fpie in compiler flags and -pie in linker flags. grub2.armv6hl: W: package-with-huge-docs 100% More than half the size of your package is documentation. Consider splitting it into a -doc subpackage. grub2.spec:40: E: obsolete-suse-version-check 1140 grub2.spec:47: E: obsolete-suse-version-check 1210 grub2.spec:62: E: obsolete-suse-version-check 1210 grub2.spec:148: E: obsolete-suse-version-check 1110 grub2.spec:446: E: obsolete-suse-version-check 1140 The specfile contains a comparison of %suse_version against a suse release that is no longer in maintenance. Consider removing obsolete parts of your spec file to make it more readable. grub2-common.armv6hl: E: non-executable-script /etc/grub.d/25_bli 644 /bin/sh grub2-arm-efi.noarch: E: non-executable-script /usr/share/grub2/arm-efi/modinfo.sh 644 /bin/sh grub2-arm-uboot.noarch: E: non-executable-script /usr/share/grub2/arm-uboot/modinfo.sh 644 /bin/sh This text file contains a shebang or is located in a path dedicated for executables, but lacks the executable bits and cannot thus be executed. If the file is meant to be an executable script, add the executable bits, otherwise remove the shebang or move the file elsewhere. grub2.armv6hl: E: no-binary The package should be of the noarch architecture because it doesn't contain any binaries. grub2.spec: W: no-%check-section The spec file does not contain an %check section. Please check if the package has a testsuite and what it takes to enable the testsuite as part of the package build. If it is not possible to run it in the build environment (OBS/koji) or no testsuite exists, then please ignore this warning. You should not insert an empty %check section. grub2.spec:1538: W: libdir-macro-in-noarch-package snapper-plugin %dir %{_libdir}/snapper grub2.spec:1539: W: libdir-macro-in-noarch-package snapper-plugin %dir %{_libdir}/snapper/plugins grub2.spec:1541: W: libdir-macro-in-noarch-package snapper-plugin %{_libdir}/snapper/plugins/grub grub2.spec:1548: W: libdir-macro-in-noarch-package %{grubxenarch} %dir %{_libdir}/%{name} grub2.spec:1549: W: libdir-macro-in-noarch-package %{grubxenarch} %{_libdir}/%{name}/%{grubxenarch} grub2.spec:1570: W: libdir-macro-in-noarch-package systemd-sleep-plugin %dir %{_libdir}/systemd/system-sleep grub2.spec:1571: W: libdir-macro-in-noarch-package systemd-sleep-plugin %{_libdir}/systemd/system-sleep/grub2.sleep The %{_libdir} or %{_lib} macro was found in a noarch package in a section that gets included in binary packages. This is most likely an error because these macros are expanded on the build host and their values vary between architectures, probably resulting in a package that does not work properly on all architectures at runtime. Investigate whether the package is really architecture independent or if some other dir/macro should be instead. grub2-snapper-plugin.noarch: E: explicit-lib-dependency libxml2-tools You must let rpm find the library dependencies by itself. Do not put unneeded explicit Requires: tags. grub2-branding-upstream.noarch: E: branding-supplements-missing (grub2 and branding-upstream) Branding packages should provide a supplement in the form: 'Supplements: (basepackage and branding-)' grub2-branding-upstream.noarch: E: branding-provides-missing Please add a provides entry similar to: 'Provides: %name-branding = %version' grub2-branding-upstream.noarch: E: branding-conflicts-missing grub2-branding Branding packages should conflict with other flavors of the branding package by using: 'Conflicts: pkg-branding = brandingversion' and not directly by listing all the alternative brandings in it. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files BashismsCheck 4.2 58.4 ExtractRpm 1.0 14.5 BinariesCheck 0.8 11.2 SpecCheck 0.2 3.3 SignatureCheck 0.2 3.2 BuildRootAndDateCheck 0.2 2.4 FilesCheck 0.1 1.9 TagsCheck 0.1 1.7 SUIDPermissionsCheck 0.1 1.5 TOTAL 7.2 100.0 13 packages and 0 specfiles checked; 24 errors, 12 warnings, 947 filtered, 24 badness; has taken 7.3 s