Your analysis is correct, Emilio. It’s related to that upstream bug, in that `gacutil` is used by packages to register their libraries to the system library cache, but `gacutil` does not work until `/etc/mono/config` exists and contains a mapping for System.Native. There’s a pre-depends from mono-gap on mono-runtime-common to make it fine, but as per the log in the bug, mono-gac isn’t being configured until after the packages actually consuming mono-gac, so it doesn’t help much for clean installs.
I wonder why I never hit this before. I also wonder why the gac install isn’t done with triggers. On Thu, 26 Mar 2020 20:37:11 +0100 Emilio Pozuelo Monfort <po...@debian.org> wrote: > Control: reassign -1 src:mono 6.8.0.105+dfsg-2 > Control: retitle -1 CLI binding packages fail to install: Unhandled > Exception: System.TypeInitializationException: The type initializer for 'Sys' > threw an exception > Control: affects -1 src:golang-github-thecreeper-go-notify libglib2.0-cil > libgdcm-cil > Control: severity -1 grave > > On Sun, 22 Mar 2020 08:45:16 +0100 Lucas Nussbaum <lu...@debian.org> wrote: > > Source: golang-github-thecreeper-go-notify > > Version: 0.0~git20160203.0.b5cd147-4 > > Severity: serious > > Justification: FTBFS on amd64 > > Tags: bullseye sid ftbfs > > Usertags: ftbfs-20200321 ftbfs-bullseye > > > > Hi, > > > > During a rebuild of all packages in sid, your package failed to build > > on amd64. > > > > Relevant part (hopefully): > [snip] > > Setting up librest-0.7-0:amd64 (0.8.1-1+b1) ... > > Setting up libgtk-3-0:amd64 (3.24.14-1) ... > > Setting up libgtk2.0-0:amd64 (2.24.32-4) ... > > Setting up libgtk-3-bin (3.24.14-1) ... > > Setting up notification-daemon (3.20.0-4) ... > > Setting up libmono-system-numerics4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up libmono-system-core4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up dh-autoreconf (19) ... > > Setting up libmono-system-security4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up mono-runtime-sgen (6.8.0.105+dfsg-2) ... > > Setting up mono-runtime (6.8.0.105+dfsg-2) ... > > update-alternatives: using /usr/bin/mono to provide /usr/bin/cli (cli) in > > auto mode > > Setting up libmono-system-configuration4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up debhelper (12.9) ... > > Setting up libmono-corlib4.5-cil (6.8.0.105+dfsg-2) ... > > Setting up libmono-cairo4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up libmono-system-xml4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up dh-golang (1.48) ... > > Setting up libmono-system4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up libmono-posix4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up libmono-system-drawing4.0-cil (6.8.0.105+dfsg-2) ... > > Setting up libdbus2.0-cil (0.8.1-2) ... > > * Installing 1 assembly from libdbus2.0-cil into Mono > > > > Unhandled Exception: > > System.TypeInitializationException: The type initializer for 'Sys' threw an > > exception. ---> System.DllNotFoundException: System.Native > > assembly:<unknown assembly> type:<unknown type> member:(null) > > at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag() > > at Interop+Sys..cctor () [0x00000] in > > <12b418a7818c4ca0893feeaaf67f1e7f>:0 > > --- End of inner exception stack trace --- > > at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, > > System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x0000f] in > > <12b418a7818c4ca0893feeaaf67f1e7f>:0 > > at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath) > > [0x00006] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 > > at System.IO.File.Exists (System.String path) [0x00058] in > > <12b418a7818c4ca0893feeaaf67f1e7f>:0 > > at Mono.Tools.Driver.LoadConfig (System.Boolean quiet) [0x00031] in > > <3a4d36ecef0a47439a72108fe400486f>:0 > > at Mono.Tools.Driver.Main (System.String[] args) [0x00347] in > > <3a4d36ecef0a47439a72108fe400486f>:0 > > [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The > > type initializer for 'Sys' threw an exception. ---> > > System.DllNotFoundException: System.Native assembly:<unknown assembly> > > type:<unknown type> member:(null) > > at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag() > > at Interop+Sys..cctor () [0x00000] in > > <12b418a7818c4ca0893feeaaf67f1e7f>:0 > > --- End of inner exception stack trace --- > > at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, > > System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x0000f] in > > <12b418a7818c4ca0893feeaaf67f1e7f>:0 > > at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath) > > [0x00006] in <12b418a7818c4ca0893feeaaf67f1e7f>:0