[Mono-dev] [PATCH] Create mono/runtime/etc/mono/config during the build

Jonathan Pryor jonpryor at vt.edu
Wed Sep 13 19:20:03 EDT 2006


The unit tests for mcs/tools/mono-shlib-cop are currently broken; I'm
not sure when they were broken, but they currently are [1]:

It's dying because mono-shlib-cop wants to read the
$sysconfigdir/mono/config to get the <dllmap/> elements used in library
remapping.  Again, I'm not sure why things are broken now, but things
used to work.

The attached patch modifies the build so that a
mono/runtime/etc/mono/config symlink is created to mono/data/config.
This allows the mono-shlib-cop unit tests to work again, and would fix
any circumstances where a library rename from $sysconfigdir/mono/config
was needed during test execution.

Permission to commit?

Thanks,
 - Jon

[1]
        $ cd mcs/tools/mono-shlib-cop
        $ make test
        $ make run-test
        ok=:; make run-test-recursive || ok=false; make run-test-local
        || ok=false; $ok
        make[1]: Entering directory
        `/home/jon/Projects/mono-HEAD/mcs/tools/mono-shlib-cop'
        make[1]: Leaving directory
        `/home/jon/Projects/mono-HEAD/mcs/tools/mono-shlib-cop'
        make[1]: Entering directory
        `/home/jon/Projects/mono-HEAD/mcs/tools/mono-shlib-cop'
        /home/jon/Projects/mono-HEAD/mono/runtime/mono-wrapper
        mono-shlib-cop.exe mono-shlib-cop.exe | diff -
        mono-shlib-cop.exe.out
        
        Unhandled Exception: System.IO.FileNotFoundException: Could not
        find file
        "/home/jon/Projects/mono-HEAD/mono/runtime/etc/mono/config". : /home/jon/Projects/mono-HEAD/mono/runtime/etc/mono/config
          at System.IO.FileStream..ctor (System.String name, FileMode
        mode, FileAccess access, FileShare share, Int32 bufferSize,
        Boolean anonymous, FileOptions options) [0x00000]
          at System.IO.FileStream..ctor (System.String name, FileMode
        mode, FileAccess access, FileShare share) [0x00000]
          at (wrapper remoting-invoke-with-check)
        System.IO.FileStream:.ctor
        (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
          at System.Xml.XmlUrlResolver.GetEntity (System.Uri
        absoluteUri, System.String role, System.Type ofObjectToReturn)
        [0x00000]
          at System.Xml.XmlTextReader.GetStreamFromUrl (System.String
        url, System.String absoluteUriString) [0x00000]
          at System.Xml.XmlTextReader..ctor (System.String url,
        System.Xml.XmlNameTable nt) [0x00000]
          at System.Xml.XmlDocument.Load (System.String filename)
        [0x00000]
          at
        Mono.Unmanaged.Check.AssemblyCheckInfo.SetInstallationPrefixes
        (System.String[] prefixes) [0x00000]
          at (wrapper remoting-invoke-with-check)
        Mono.Unmanaged.Check.AssemblyCheckInfo:SetInstallationPrefixes
        (string[])
          at Mono.Unmanaged.Check.Runner.Main (System.String[] args)
        [0x00000]
        0a1,3
        > error: in Mono.Unmanaged.Check.Runner.Foo: library `libc.so.6'
        is missing symbol `Foo'
        > error: in Mono.Unmanaged.Check.Runner.Bar: Could not load
        library `another-native-lib': ./libanother-native-lib.so: cannot
        open shared object file: No such file or directory
        > warning: in Mono.Unmanaged.Check.AssemblyChecker.g_free:
        Library `libglib-2.0.so' might be a development library
        make[1]: *** [run-mono-shlib-cop-test] Error 1
        make[1]: Leaving directory
        `/home/jon/Projects/mono-HEAD/mcs/tools/mono-shlib-cop'
        make: *** [do-run-test] Error 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.patch
Type: text/x-patch
Size: 2182 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060913/9d794e4e/attachment.bin 


More information about the Mono-devel-list mailing list