I just released Apport 2.7. The main new feature is supporting foreign architectures in apport-retrace. If apport-retrace works in sandbox mode and works on a crash that was not produced on the same architecture as apport-retrace is running on, it will now build a sandbox for the report’s architecture and invoke gdb with the necessary magic options to produce a proper stack trace (and the other gdb information). Right now this works for i386, x86_64, and ARMv7, but if someone is interested in making this work for other architectures, please ping me. ... Read More

PyGObject 3.7.2 released
19 November 2012

just released a new PyGObject, for GNOME 3.7.2 which is due on Wednesday. In this version PyGObject went through some major refactoring: Some 5.000 lines of static bindings were removed and replaced with proper introspection and some overrides for backwards compatibility, and the static/GI/overrides code structure was simplified. For the developer this means that you can now use the full GLib API, a lot of which was previously hidden by old and incomplete static bindings; also you can and should now use the officially documented GLib API instead of PyGObject’s static one, which has been marked as deprecated. ... Read More

python-dbusmock templates
15 November 2012

With python-dbusmock you can provide mocks for arbitrary D-BUS services for your test suites or if you want to reproduce a bug. However, when writing actual tests for gnome-settings-daemon etc. I noticed that it is rather cumbersome to always have to set up the “skeleton” of common services such as UPower. python-dbusmock 0.2 now introduces the concept of “templates” which provide those skeletons for common standard services so that your code only needs to set up the particular properties and specific D-BUS objects that you need. ... Read More

PyGObject 3.4.2 released
12 November 2012

I just released PyGObject 3.4.2, a bug fix release for GNOME 3.6.2. Thanks to all contributors! Fix marshalling of GByteArrays (Martin Pitt) Fix marshalling of ssize_t to smaller ints (Martin Pitt) Fix crash with GLib.child_watch_add (Daniel Narvaez) (#688067) Fix various bugs in GLib.IOChannel (Martin Pitt) Work around wrong 64 bit constants in GLib Gir (Martin Pitt) (#685022) Fix OverflowError in source_remove() (Martin Pitt) (#684526) Fix Signal decorator to not use base class gsignals dict (Simon Feltman) (#686496)
A few days ago Olav Vitters announced the GNOME 3.8 goal of porting to Python 3. This has been discussed on desktop-devel-list@ in the past days, and the foundations for this are now ready: pygobject now has a –with-python option. (commit) JHBuild now defaults to building pygobject for Python 3, but introduces a “pygobject-python2” project for the transition phase which provides pygobject built for Python 2. (commit) All dependencies to “pygobject” were changed to “pygobject-python2” to avoid breaking modules. ... Read More
For writing tests for GVFS (current tests, proposed improvements) I want to run Samba as normal user, so that we can test gvfs’ smb backend without root privileges and thus can run them safely and conveniently in a “make check” environment for developers and in JHBuild for continuous integration testing. Before these tests could only run under gvfs-testbed, which needs root. Unlike other servers such as ssh or ftp, this turned out surprisingly non-obvious and hard, so I want to document it in this blog post for posterity’s benefit. ... Read More

PyGObject 3.4.1 released
15 October 2012

I just released PyGObject 3.4.1, in time for the GNOME 3.6.1 release on Wednesday. This version provides a nice set of bug fixes. no API changes. Thanks to all contributors! Complete list of changes: Skip Regress tests with –disable-cairo (Martin Pitt) (#685094) _pygi_marshal_from_py_uint64: Re-fix check of negative values (Martin Pitt) (#685000) Fix leak with python callables as closure argument. (Simon Feltman) (#685598) Gio overrides: Handle setting GSettings enum keys (Martin Pitt) (#685947) tests: Check reading GSettings enums in Gio overrides (Martin Pitt) Fix unsigned values in GArray/GList/GSList/GHash (Martin Pitt) (#685860) build: Fix srcdir ! ... Read More
I found it surprisingly hard to determine in tearDown() whether or not the test that currently ran succeeded or not. I am writing some tests for gnome-settings-daemon and want to show the log output of the daemon if a test failed. I now cobbled together the following hack, but I wonder if there’s a more elegant way? The interwebs don’t seem to have a good solution for this either. def tearDown(self): [. ... Read More
I was working on writing tests for gnome-settings-daemon a week or so ago, and finally got blocked on being unable to set up upower/ConsoleKit/etc. the way I need them. Also, doing so needs root privileges, I don’t want my test suite to actually suspend my machine, and using the real service is generally not suitable for test suites that are supposed to run during “make check”, in jhbuild, and the like — these do not have the polkit privileges to do all that, and may not even have a system D-Bus running in the first place. ... Read More

PyGObject 3.3.92 released
17 September 2012

I just released PyGObject 3.3.92, for GNOME 3.5.92. There is nothing too exciting in this release; a couple of small bug fixes and a lot of new test cases. See the detailled list of changes below. Thanks to all contributors! Changes: release-news: Generate HTML changelog (Martin Pitt) [API add] Add ObjectInfo.get_abstract method (Simon Feltman) (#675581) Add deprecation warning when setting gpointers to anything other than int. (Simon Feltman) (#683599) test_properties: Test accessing a property from a superclass (Martin Pitt) (#684058) test_properties. ... Read More