 diff -X ../utils/updatePatches.excludes -Nru upstream/pkg/ghc-prim/Setup.hs boot/pkg/ghc-prim/Setup.hs
---- upstream/pkg/ghc-prim/Setup.hs	2021-06-08 14:01:28.000000000 +1200
-+++ boot/pkg/ghc-prim/Setup.hs	2021-06-10 20:42:21.000000000 +1200
-@@ -6,23 +6,31 @@
- import Control.Monad
- import Data.List
- import Data.Maybe
-+import Distribution.ModuleName (components)
- import Distribution.PackageDescription
- import Distribution.Simple
+--- upstream/pkg/ghc-prim/Setup.hs	2021-06-10 11:42:32.592166900 +0200
++++ boot/pkg/ghc-prim/Setup.hs	2021-06-10 14:36:29.340000000 +0200
+@@ -11,6 +11,9 @@
  import Distribution.Simple.LocalBuildInfo
  import Distribution.Simple.Program
  import Distribution.Simple.Utils

+                      }
+  when (hasLibs pkg_descr) $ addPrimModule (\pd lbi _ -> register pd lbi)
+     pkg_descr localbuildinfo uh registerFlags

 import Distribution.Text
 import System.Cmd
 import System.FilePath
@@ -23,6 +26,7 @@
                           $ regHook simpleUserHooks,
                   buildHook = build_primitive_sources
                             $ buildHook simpleUserHooks,
