Bug 25971 - Release 3.12.0: System.TimeZoneInfo.Local fails on openSUSE
Summary: Release 3.12.0: System.TimeZoneInfo.Local fails on openSUSE
Status: RESOLVED INVALID
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Core ()
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-13 07:55 UTC by Timotheus Pokorra
Modified: 2015-01-14 16:17 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Timotheus Pokorra 2015-01-13 07:55:48 UTC
when building Mono 3.12.0 for openSUSE, I get this error:

[ 4197s] MDOC    [net_4_5] cs-errors.tree
[ 4200s] mdoc: System.TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.
[ 4200s]   at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0 
[ 4200s]   at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time) [0x00000] in <filename unknown>:0 
[ 4200s]   at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in <filename unknown>:0 
[ 4200s]   at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
[ 4200s]   at ICSharpCode.SharpZipLib.Zip.ZipEntry..ctor (System.String name, Int32 versionRequiredToExtract, Int32 madeByInfo) [0x00000] in <filename unknown>:0 
[ 4200s]   at ICSharpCode.SharpZipLib.Zip.ZipEntry..ctor (System.String name) [0x00000] in <filename unknown>:0 
[ 4200s]   at Monodoc.Storage.ZipStorage.SetupEntry (ICSharpCode.SharpZipLib.Zip.ZipOutputStream zipOutput, System.String& id) [0x00000] in <filename unknown>:0 
[ 4200s]   at Monodoc.Storage.ZipStorage.Store (System.String id, System.IO.Stream stream) [0x00000] in <filename unknown>:0 
[ 4200s]   at Monodoc.Providers.ErrorProvider.CloseTree (Monodoc.HelpSource hs, Monodoc.Tree tree) [0x00000] in <filename unknown>:0 
[ 4200s]   at Mono.Documentation.MDocAssembler.Run (IEnumerable`1 args) [0x00000] in <filename unknown>:0 
[ 4200s]   at Mono.Documentation.MDoc.Run (System.String[] args) [0x00000] in <filename unknown>:0 
[ 4200s]   at Mono.Documentation.MDoc.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ 4200s] See `mdoc help' for more information.
[ 4200s] make[7]: *** [cs-errors.tree] Error 1
[ 4200s] make[6]: *** [do-all] Error 2
[ 4200s] make[5]: *** [all-recursive] Error 1
[ 4200s] make[4]: *** [profile-do--net_4_5--all] Error 2
[ 4200s] make[3]: *** [profiles-do--all] Error 2
[ 4200s] make[2]: *** [all-local] Error 2
[ 4200s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/mono-3.12.0/runtime'
[ 4200s] make[1]: *** [all-recursive] Error 1
[ 4200s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/mono-3.12.0'
[ 4200s] make: *** [all] Error 2

I need to debug to see what exactly goes wrong.
Note to self: https://github.com/mono/mono/blob/mono-3.12.0-branch/mcs/class/System.Core/System/TimeZoneInfo.cs#L120
Comment 1 Timotheus Pokorra 2015-01-14 16:17:17 UTC
Building on OBS did not install the timezone package by default.
timezone provides the file /etc/localtime.
I needed to add the timezone package to the required packages for the build.