============================ rpmlint session starts ============================ rpmlint: 2.6.1 configuration: /opt/testing/lib64/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 checks: 41, packages: 2 ghc-bootstrap.aarch64: E: zero-length /opt/lib/ghc-9.4.4/lib/package.conf.d/package.cache.lock ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/ghc is a link to a script (/opt/bin/ghc-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/ghc-pkg is a link to a script (/opt/bin/ghc-pkg-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/ghci is a link to a script (/opt/bin/ghci-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/haddock is a link to a script (/opt/bin/haddock-ghc-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/hp2ps is a link to a script (/opt/bin/hp2ps-ghc-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/hpc is a link to a script (/opt/bin/hpc-ghc-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/hsc2hs is a link to a script (/opt/bin/hsc2hs-ghc-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/runghc is a link to a script (/opt/bin/runghc-9.4.4) but missing requires for /bin/sh ghc-bootstrap.aarch64: W: symlink-to-binary-with-shebang /opt/bin/runhaskell is a link to a script (/opt/bin/runhaskell-9.4.4) but missing requires for /bin/sh A file in /usr/bin is a link to a script in a different place with a shebang. rpm won't be able to inject the needed interpreter as dependency, so it should be done manually. ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/Cabal-3.8.1.0/libHSCabal-3.8.1.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/Cabal-syntax-3.8.1.0/libHSCabal-syntax-3.8.1.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/array-0.5.4.0/libHSarray-0.5.4.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/base-4.17.0.0/libHSbase-4.17.0.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/binary-0.8.9.1/libHSbinary-0.8.9.1.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/bytestring-0.11.3.1/libHSbytestring-0.11.3.1.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/containers-0.6.6/libHScontainers-0.6.6.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/deepseq-1.4.8.0/libHSdeepseq-1.4.8.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/directory-1.3.7.1/libHSdirectory-1.3.7.1.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/exceptions-0.10.5/libHSexceptions-0.10.5.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/filepath-1.4.2.2/libHSfilepath-1.4.2.2.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-9.4.4/libHSghc-9.4.4.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-bignum-1.3/libHSghc-bignum-1.3.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-boot-9.4.4/libHSghc-boot-9.4.4.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-boot-th-9.4.4/libHSghc-boot-th-9.4.4.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-compact-0.1.0.0/libHSghc-compact-0.1.0.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-heap-9.4.4/libHSghc-heap-9.4.4.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghc-prim-0.9.0/libHSghc-prim-0.9.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/ghci-9.4.4/libHSghci-9.4.4.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/haskeline-0.8.2/libHShaskeline-0.8.2.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/hpc-0.6.1.0/libHShpc-0.6.1.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/integer-gmp-1.1/libHSinteger-gmp-1.1.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/libiserv-9.4.4/libHSlibiserv-9.4.4.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/mtl-2.2.2/libHSmtl-2.2.2.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/parsec-3.1.15.0/libHSparsec-3.1.15.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/pretty-1.1.3.6/libHSpretty-1.1.3.6.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/process-1.6.16.0/libHSprocess-1.6.16.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/stm-2.5.1.0/libHSstm-2.5.1.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/template-haskell-2.19.0.0/libHStemplate-haskell-2.19.0.0.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/terminfo-0.4.1.5/libHSterminfo-0.4.1.5.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/text-2.0.1/libHStext-2.0.1.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/time-1.12.2/libHStime-1.12.2.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/transformers-0.5.6.2/libHStransformers-0.5.6.2.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/unix-2.7.3/libHSunix-2.7.3.a ghc-bootstrap.aarch64: E: static-library-without-debuginfo /opt/lib/ghc-9.4.4/lib/aarch64-linux-ghc-9.4.4/xhtml-3000.2.2.1/libHSxhtml-3000.2.2.1.a The static library doesn't contain any debuginfo. Binaries linking against this static library can't be properly debugged. ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/ghc-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/ghc-pkg-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/haddock-ghc-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/hp2ps-ghc-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/hpc-ghc-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/hsc2hs-ghc-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/bin/runghc-9.4.4 ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/lib/bin/ghc-iserv ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/lib/bin/ghc-iserv-dyn ghc-bootstrap.aarch64: W: position-independent-executable-suggested /opt/lib/ghc-9.4.4/lib/bin/unlit 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-bootstrap.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. ghc-bootstrap.aarch64: E: filelist-forbidden-opt /opt/lib ghc-bootstrap.aarch64: E: filelist-forbidden-opt /opt/bin ghc-bootstrap.aarch64: E: filelist-forbidden-opt /opt/share /opt may not be used by distribution packages. It is reserved for 3rd party packagers. ghc-bootstrap.aarch64: E: explicit-lib-dependency libffi-devel ghc-bootstrap.aarch64: E: explicit-lib-dependency libncurses5 ghc-bootstrap.aarch64: E: explicit-lib-dependency libnuma-devel You must let rpm find the library dependencies by itself. Do not put unneeded explicit Requires: tags. ghc-bootstrap.aarch64: E: devel-dependency gmp-devel Your package has a dependency on a devel package but it's not a devel package itself. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files BinariesCheck 9.5 43.7 ExtractRpm 7.5 34.4 SignatureCheck 1.8 8.4 FilesCheck 1.2 5.4 BuildRootAndDateCheck 0.6 2.8 SUIDPermissionsCheck 0.5 2.5 BashismsCheck 0.4 2.1 TOTAL 21.8 100.0 2 packages and 0 specfiles checked; 43 errors, 20 warnings, 3917 filtered, 43 badness; has taken 22.1 s