gupnp-igd ftbfs on all archs in lucid

Bug #534311 reported by Alexander Sack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gupnp (Ubuntu)
Fix Released
High
Martin Pitt
Lucid
Fix Released
High
Martin Pitt
gupnp-igd (Ubuntu)
Fix Released
High
Martin Pitt
Lucid
Fix Released
High
Martin Pitt
Alexander Sack (asac)
Changed in gupnp-igd (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
milestone: none → ubuntu-10.04-beta-1
Revision history for this message
Laurent Bigonville (bigon) wrote :

0.1.6-1 is required with last version of gupnp

tags: added: kernel-series-unknown
tags: removed: kernel-series-unknown
Revision history for this message
Steve Langasek (vorlon) wrote :

Upstream commit d5dd3215559642ee6e19c6362e72f35c5c2d4b6e fixes the failure to build the test suite. However, *running* the test suite appears to still fail even in the latest upstream version because it depends on having the dbus system bus available at build time.

Laurent, what in 0.1.6 is required for compatibility with gupnp aside from this testsuite fix? If this is required, then we would need an FFe for a merge since the new package has a changed soname and introduces new python bindings.

Revision history for this message
Steve Langasek (vorlon) wrote :

With 0.1.6, enabling the test suite fails with:

/usr/bin/make check-TESTS
make[4]: Entering directory `/home/devel/canonical/lucid/gupnp-igd-0.1.6/tests/gtest'
/simpleigd/new:
** WARNING **: Failed to connect to System Bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
aborting...
/bin/bash: line 4: 17483 Trace/breakpoint trap XML_PATH=. G_SLICE=debug-blocks LD_LIBRARY_PATH=../../libgupnp-igd/.libs ${dir}$tst
FAIL: gupnp-simple-igd
======================================
1 of 1 test failed
Please report to http://www.gupnp.org/
======================================
make[4]: *** [check-TESTS] Error 1

Revision history for this message
Laurent Bigonville (bigon) wrote :
Steve Langasek (vorlon)
Changed in gupnp-igd (Ubuntu Lucid):
importance: Critical → High
Martin Pitt (pitti)
Changed in gupnp-igd (Ubuntu Lucid):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Martin Pitt (pitti)
Changed in gupnp-igd (Ubuntu Lucid):
assignee: Canonical Desktop Team (canonical-desktop-team) → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

Before I even get to the D-Bus failure I now get yet another failure:

make[3]: Betrete Verzeichnis '/home/martin/upstream/gupnp-igd/tests/gtest'
/simpleigd/new:
GLib-GObject-WARNING **: IA__g_object_set_valist: construct property "main-context" for object `GUPnPSimpleIgdThread' can't be set after construction
aborting...

I confirmed this failure on current upstream git head.

I'll investigate that first.

Revision history for this message
Martin Pitt (pitti) wrote :

So for the previous failure, the GUPnPSimpleIgdThreadClass wrapper's _init() function apparently tries to set the context for the wrapped GUPnPSimpleIgdThread:

  g_object_set (self, "main-context", self->priv->context, NULL);

However, GUPnPSimpleIgdThread's property is declared as G_PARAM_CONSTRUCT_ONLY, thus you can't set it from outside.

I replaced G_PARAM_CONSTRUCT_ONLY with G_PARAM_CONSTRUCT, which fixes above problem, but is that actually the correct solution?

Also, this now fails later on in a different test:

/simpleigd/new: OK
/simpleigd/default_ctx: OK
/simpleigd/custom_ctx: OK
/simpleigd/thread: OK
/simpleigd/random/no_conflict: OK
/simpleigd/random/conflict: OK
/simpleigd/dispose_removes/regular: OK
/simpleigd/dispose_removes/thread: OK
/simpleigd/invalid_ip: OK
/simpleigd/empty_ip:
GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GUPnPContextManager'
aborting...
/bin/bash: Zeile 5: 10679 Trace/breakpoint trap (Speicherabzug geschrieben) XML_PATH=. G_SLICE=debug-blocks LD_LIBRARY_PATH=../../libgupnp-igd/.libs ${dir}$tst
FAIL: gupnp-simple-igd

but this seems unrelated.

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, the empty_ip failure only affects git head, not our version in lucid.

Changed in gupnp-igd (Ubuntu Lucid):
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

I filed the main-context property bug upstream: http://bugzilla.openedhand.com/show_bug.cgi?id=2031

Revision history for this message
Martin Pitt (pitti) wrote :

I can replicate the D-Bus failure locally with sudo chmod 600 /var/run/dbus/system_bus_socket. This needs to be fixed in gupnp itself, adding task.

Changed in gupnp (Ubuntu Lucid):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

gupnp uploaded with the D-Bus warning fix.

Changed in gupnp (Ubuntu Lucid):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

gupnp-igd fix uploaded.

Changed in gupnp-igd (Ubuntu Lucid):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gupnp-igd - 0.1.3-4ubuntu1

---------------
gupnp-igd (0.1.3-4ubuntu1) lucid; urgency=low

  [ Steve Langasek ]
  * Merge from Debian testing, remaining changes:
    - debian/rules: Enable test suite on build.
  * 0001-Use-new-api-to-create-a-root-device-if-possible.patch: cherry pick
    from upstream to fix FTBFS with gupnp 0.13. LP: #534311.

  [ Martin Pitt ]
  * Add 0001-Fix-GUPnPSimpleIgd-main-context-property-declaration.patch:
    Fix GUPnPSimpleIgd main-context property declaration. This fixes the tests
    to not break on the "construct property can't be set after construction"
    warning.
  * debian/control: Bump libgupnp-1.0-dev build dependency to 0.13.2-1ubuntu1.
    This version downgrades the D-BUS connection failure warning which caused
    our test suite to fail on the buildds (where no system D-BUS is running).
    (LP: #534311)

gupnp-igd (0.1.3-4) unstable; urgency=low

  * Build depends on automake1.11 (Closes: #550427)
  * Bump Standards-Version (no further changes)

gupnp-igd (0.1.3-3) unstable; urgency=low

  * debian/watch: Fix URL path
  * debian/control:
    - Fix spelling in description
    - Build-depends on automake instead of automake1.10 (Closes: #541529)

gupnp-igd (0.1.3-2) unstable; urgency=low

  * Add libgupnp-1.0-dev and libglib2.0-dev dependencies for
    libgupnp-igd-1.0-dev package

gupnp-igd (0.1.3-1) unstable; urgency=low

  * Initial release (Closes: #533542)
 -- Martin Pitt <email address hidden> Mon, 15 Mar 2010 11:50:27 +0100

Changed in gupnp-igd (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gupnp - 0.13.2-1ubuntu1

---------------
gupnp (0.13.2-1ubuntu1) lucid; urgency=low

  * Add dbus-fail-warning.patch: Downgrade D-Bus connection failure warning.
    It's not fatal for the context of libgupnp, and it causes the test suite
    of gupnp-igd to fail. (LP: #534311)
 -- Martin Pitt <email address hidden> Mon, 15 Mar 2010 11:46:54 +0100

Changed in gupnp (Ubuntu Lucid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.