[pkg-go] Bug#954635: golang-github-thecreeper-go-notify: FTBFS: Errors while processing: libdbus2.0-cil libglib2.0-cil libgtk2.0-cil libdbus-glib2.0-cil libnotify0.4-cil libnotify-cil-dev sbuild-build-depends-main-dummy

Emilio Pozuelo Monfort pochu at debian.org
Thu Mar 26 19:37:11 GMT 2020


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 <lucas at 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 
>   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 
> E: installing Assembly /usr/lib/cli/dbus-sharp-2.0/dbus-sharp.dll failed
> E: Installation of libdbus2.0-cil with /usr/share/cli-common/runtimes.d/mono failed
> dpkg: error processing package libdbus2.0-cil (--configure):
>  installed libdbus2.0-cil package post-installation script subprocess returned error exit status 29
> Setting up mono-4.0-gac (6.8.0.105+dfsg-2) ...
> Setting up libglib2.0-cil (2.12.40-3) ...

I am seeing this in more places, see e.g.

https://piuparts.debian.org/sid/fail/libgdcm-cil_3.0.5-1.log

I can easily reproduce those in both testing and sid chroots by installing
libglib2.0-cil or libgdcm-cil (probably others are affected as well but
I just tried those). A subsequent `apt install -f' manages to configure the
affected package, so I wonder if this is related to mono not working properly
until mono-runtime-common is configured due to the absence of /etc/mono/config,
which doesn't happen until later. [1]

This points to a larger issue in the mono ecosystem, so I'm reassigning
this.

Cheers,
Emilio

[1] https://github.com/mono/mono/issues/12316



More information about the Pkg-go-maintainers mailing list