From afb868b0ef88f5fad63bd4a131fcdcb59dbf2ec4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mar 26 2024 16:41:20 +0000 Subject: Haskell: document shared libraries E: unused-direct-shlib-dependency Haskell shared libraries currently cause many `unused-direct-shlib-dependency` rpmlint errors --- diff --git a/guidelines/modules/ROOT/pages/Haskell.adoc b/guidelines/modules/ROOT/pages/Haskell.adoc index 6fcd400..fbe3c60 100644 --- a/guidelines/modules/ROOT/pages/Haskell.adoc +++ b/guidelines/modules/ROOT/pages/Haskell.adoc @@ -279,6 +279,8 @@ Since GHC assumes static versions of libraries are installed they need to be in Executables in Bin and BinLib packages should be statically linked for portability. +Due to how GHC links shared libraries using `+--no-as-needed+` they generate a lot of rpmlint `+E: undefined-non-weak-symbol+` errors, this is unfortunately currently expected (see these https://gitlab.haskell.org/ghc/ghc/-/issues/17157[upstream] https://gitlab.haskell.org/ghc/ghc/-/issues/23216[issues]). + == RPM Macros The templates all have buildrequires for ghc-rpm-macros, which provides https://src.fedoraproject.org/rpms/ghc-rpm-macros/blob/master/f/macros.ghc[macros.ghc] to assist with packaging Haskell Cabal packages.