Bug#638337: [pkg-cli-libs-team] Bug#638337: gstreamer-sharp: FTBFS: SecurityException: No access to the given key

2011-08-22 Thread Iain Lane
clone 638337 -1
reassign -1 mono
severity -1 normal
forwarded -1 http://bugzilla.xamarin.com/show_bug.cgi?id=357

Hi there,

On Thu, Aug 18, 2011 at 02:09:44PM -0400, Aaron M. Ucko wrote:
 Package: gstreamer-sharp
 Version: 0.9.2-1
 Severity: serious
 Justification: fails to build from source
 
 Automated builds of gstreamer-sharp have been hitting test suite failures:
 
 Unhandled Exception: System.Security.SecurityException: No access to the 
 given key
   at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, 
 System.String basedir) [0x0] in filename unknown:0 
   at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, 
 Boolean createNonExisting) [0x0] in filename unknown:0 
   at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey 
 rkey, System.String keyname, Boolean writable) [0x0] in filename 
 unknown:0 
   at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean 
 writable) [0x0] in filename unknown:0 
   at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name) [0x0] in 
 filename unknown:0 
   at (wrapper remoting-invoke-with-check) 
 Microsoft.Win32.RegistryKey:OpenSubKey (string)
   at NUnit.Util.SettingsService.ConvertLegacySettings () [0x0] in 
 filename unknown:0 
   at NUnit.Util.SettingsService..ctor () [0x0] in filename unknown:0 
   at NUnit.ConsoleRunner.Runner.Main (System.String[] args) [0x0] in 
 filename unknown:0 
   at NUnit.ConsoleRunner.Class1.Main (System.String[] args) [0x0] in 
 filename unknown:0 
 
 Could you please take a look?

Thanks for this report.

This FTBFS is because nunit-console uses Mono's registry API to store
user settings. Mono unconditionally stores these settings in
~/.mono/registry/. It doesn't appear to have a facility to override this
at all. Thus, if HOME is not writable and an application uses the
registry, the build will fail.

I'm assigning a clone to mono, and I suggested to hyperair that, until
this bug is fixed, we should disable the tests in gstreamer-sharp.

I reported two bugs about this. One is that you cannot override
SpecialFolders.Personal (it doesn't use $HOME)

  http://bugzilla.xamarin.com/show_bug.cgi?id=357

and the other is that the registry isn't stored in $XDG_CONFIG_DIR (if
it was, we'd be able to set that and wouldn't have this problem)

  http://bugzilla.xamarin.com/show_bug.cgi?id=358

If either of these bugs get fixed then we should be able to export the
appropriate env vars in Debian package builds to get nunit tests working
again.

Cheers,

-- 
Iain Lane  [ i...@orangesquash.org.uk ]
Debian Developer   [ la...@debian.org ]
Ubuntu Developer   [ la...@ubuntu.com ]
PhD student   [ i...@cs.nott.ac.uk ]


signature.asc
Description: Digital signature


Bug#638337: [pkg-cli-libs-team] Bug#638337: gstreamer-sharp: FTBFS: SecurityException: No access to the given key

2011-08-22 Thread Aaron M. Ucko
Iain Lane la...@debian.org writes:

 at all. Thus, if HOME is not writable and an application uses the
 registry, the build will fail.

Gah.  Thanks for getting to the bottom of it; I've run afoul of such
bugs in the past as well, and they're always a nuisance because the
only possible workaround is ugly LD_PRELOAD hackery.

 I'm assigning a clone to mono, and I suggested to hyperair that, until
 this bug is fixed, we should disable the tests in gstreamer-sharp.

That sounds reasonable.  You could perhaps also conditionalize them on
the official home directory's writeability, if that's not too much
trouble.

Thanks!

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org