============================ rpmlint session starts ============================ rpmlint: 2.8.0 configuration: /opt/testing/lib64/python3.13/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/ghc-rpmlintrc checks: 42, packages: 173 ghc-compiler.aarch64: E: zero-length /usr/lib64/ghc-9.12.2/lib/package.conf.d/package.cache.lock ghc-manual.noarch: E: zero-length /usr/share/doc/packages/ghc-9.12.2/html/Haddock/.log ghc.src: E: unused-rpmlintrc-filter "static-library-without-debuginfo" ghc.src: E: unused-rpmlintrc-filter "no-manual-page-for-binary" ghc-compiler.aarch64: E: script-without-shebang /usr/lib64/ghc-9.12.2/lib/prelude.mjs This text file has executable bits set or is located in a path dedicated for executables, but lacks a shebang and cannot thus be executed. If the file is meant to be an executable script, add the shebang, otherwise remove the executable bits or move the file elsewhere. ghc-base-prof.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/ghc-iserv-prof-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/ghc-iserv-dyn-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/ghc-iserv-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/ghc-pkg-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/ghc-toolchain-bin-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/haddock-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/hp2ps-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/hpc-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/hsc2hs-ghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/runghc-9.12.2 ghc-compiler.aarch64: W: position-independent-executable-suggested /usr/lib64/ghc-9.12.2/bin/unlit-ghc-9.12.2 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. ghc-manual.noarch: W: package-with-huge-docs 100% More than half the size of your package is documentation. Consider splitting it into a -doc subpackage. ghc-compiler.aarch64: W: obsolete-not-provided ghc-ghc-internal ghc-compiler.aarch64: W: obsolete-not-provided ghc-ghc-internal-devel ghc-compiler.aarch64: W: obsolete-not-provided ghc-ghc-internal-doc ghc-compiler.aarch64: W: obsolete-not-provided ghc-ghc-internal-prof If a package is obsoleted by a compatible replacement, the obsoleted package should also be provided in order to not cause unnecessary dependency breakage. If the obsoleting package is not a compatible replacement for the old one, leave out the Provides. ghc.spec:464: W: macro-in-comment %{buildroot} ghc.spec:464: W: macro-in-comment %{ghclibdir} ghc.spec:464: W: macro-in-comment %{ghcplatform} There is a unescaped macro after a shell style comment in the specfile. Macros are expanded everywhere, so check if it can cause a problem in this case and escape the macro with another leading % if appropriate. ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/Haddock/.buildinfo ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/Haddock/.doctrees-html ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/Haddock/.doctrees-html ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/Haddock/.log ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/users_guide/.buildinfo ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/users_guide/.doctrees-html ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/users_guide/.doctrees-html ghc-manual.noarch: W: hidden-file-or-dir /usr/share/doc/packages/ghc-9.12.2/html/users_guide/.log The file or directory is hidden. You should see if this is normal, and delete it from the package if not. ghc-compiler.aarch64: W: ghost-files-without-postin ghc-base-doc.noarch: E: files-duplicated-waste (Badness: 100) 189970 ghc-manual.noarch: E: files-duplicated-waste (Badness: 100) 1255129 Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. ghc-compiler.aarch64: W: files-duplicate /usr/bin/ghc-9.12.2 /usr/bin/ghc ghc-compiler.aarch64: W: files-duplicate /usr/bin/ghc-pkg-9.12.2 /usr/bin/ghc-pkg ghc-compiler.aarch64: W: files-duplicate /usr/bin/ghci-9.12.2 /usr/bin/ghci ghc-compiler.aarch64: W: files-duplicate /usr/bin/haddock-ghc-9.12.2 /usr/bin/haddock ghc-compiler.aarch64: W: files-duplicate /usr/bin/hp2ps-ghc-9.12.2 /usr/bin/hp2ps ghc-compiler.aarch64: W: files-duplicate /usr/bin/hpc-ghc-9.12.2 /usr/bin/hpc ghc-compiler.aarch64: W: files-duplicate /usr/bin/hsc2hs-ghc-9.12.2 /usr/bin/hsc2hs ghc-compiler.aarch64: W: files-duplicate /usr/bin/runghc-9.12.2 /usr/bin/runghc ghc-compiler.aarch64: W: files-duplicate /usr/bin/runhaskell-9.12.2 /usr/bin/runhaskell ghc-compiler.aarch64: W: files-duplicate /usr/lib64/ghc-9.12.2/lib/html/Ocean.theme/minus.gif /usr/lib64/ghc-9.12.2/lib/html/Classic.theme/minus.gif ghc-compiler.aarch64: W: files-duplicate /usr/lib64/ghc-9.12.2/lib/html/Ocean.theme/plus.gif /usr/lib64/ghc-9.12.2/lib/html/Classic.theme/plus.gif ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/haddock-bundle.min.js /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/haddock-bundle.min.js:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/haddock-bundle.min.js ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/linuwial.css /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/linuwial.css:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/linuwial.css ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/meta.json /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/meta.json:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/meta.json ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/quick-jump.css /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/quick-jump.css:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/quick-jump.css ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/quick-jump.min.js /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/quick-jump.min.js:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/quick-jump.min.js ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/src/highlight.js /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/src/highlight.js:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/src/highlight.js ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/src/style.css /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/src/style.css:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/src/style.css ghc-base-doc.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/libraries/integer-gmp-1.1/synopsis.png /usr/share/doc/packages/ghc-9.12.2/html/libraries/base-4.21.0.0/synopsis.png:/usr/share/doc/packages/ghc-9.12.2/html/libraries/ghc-prim-0.13.0/synopsis.png ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/doctools.js /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/doctools.js ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/file.png /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/file.png ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/language_data.js /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/language_data.js ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/minus.png /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/minus.png ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/plus.png /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/plus.png ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/pygments.css /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/pygments.css ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/searchtools.js /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/searchtools.js ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/sphinx_highlight.js /usr/share/doc/packages/ghc-9.12.2/html/Haddock/_static/sphinx_highlight.js ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/eventlog_profile.png /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_images/eventlog_profile.png ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/prof_scc.svg /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_images/prof_scc.svg ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/fonts/fontawesome-webfont.eot /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/css/fonts/fontawesome-webfont.eot ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/fonts/fontawesome-webfont.svg /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/css/fonts/fontawesome-webfont.svg ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/fonts/fontawesome-webfont.ttf /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/css/fonts/fontawesome-webfont.ttf ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/fonts/fontawesome-webfont.woff /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/css/fonts/fontawesome-webfont.woff ghc-manual.noarch: W: files-duplicate /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/fonts/fontawesome-webfont.woff2 /usr/share/doc/packages/ghc-9.12.2/html/users_guide/_static/css/fonts/fontawesome-webfont.woff2 Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. ghc-compiler.aarch64: E: env-script-interpreter (Badness: 9) /usr/lib64/ghc-9.12.2/lib/dyld.mjs /usr/bin/env -S node --disable-warning=ExperimentalWarning --experimental-wasm-type-reflection --no-turbo-fast-api-calls --wasm-lazy-validation ghc-compiler.aarch64: E: env-script-interpreter (Badness: 9) /usr/lib64/ghc-9.12.2/lib/post-link.mjs /usr/bin/env -S node This script uses 'env' as an interpreter. For the rpm runtime dependency detection to work, the shebang #!/usr/bin/env needs to be patched into #!/usr/bin/ otherwise the package dependency generator merely adds a dependency on /usr/bin/env rather than the actual interpreter /usr/bin/. Alternatively, if the file should not be executed, then ensure that it is not marked as executable or don't install it in a path that is reserved for executables. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files ExtractRpm 134.3 56.8 BinariesCheck 84.1 35.6 BuildRootAndDateCheck 6.8 2.9 SignatureCheck 4.0 1.7 BashismsCheck 3.1 1.3 TOTAL 236.2 100.0 173 packages and 0 specfiles checked; 9 errors, 63 warnings, 847 filtered, 223 badness; has taken 237.9 s