fails to ./configure with gobject if pygobject depends are not installed

Bug #694823 reported by Alexander Sack
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntrack
Fix Released
High
Alexander Sack

Bug Description

...
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for a Python interpreter with version >= 2.3.5... python
checking for python... /usr/local/bin/python
checking for python version... 2.6
checking for python platform... freebsd8
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages
checking for GLIB... yes
checking for GOBJECT... yes
checking for PYGOBJECT... no
checking for PYGOBJECT... no
configure: error: no h2def found

Related branches

Revision history for this message
Alexander Sack (asac) wrote :

right ... configure.ac is buggy as it doesn't guard the check for h2def to only apply if pygobject is enabled.

Changed in ntrack:
assignee: nobody → Alexander Sack (asac)
importance: Undecided → High
milestone: none → 012
status: New → In Progress
Revision history for this message
Alexander Sack (asac) wrote :

[asac@ ~/ntrack/ntrack]$ bzr diff
=== modified file 'configure.ac'
--- configure.ac 2010-12-23 01:06:21 +0000
+++ configure.ac 2010-12-27 20:41:03 +0000
@@ -110,6 +110,9 @@
            AC_SUBST(PYGOBJECT_CFLAGS)
            AC_SUBST(PYGOBJECT_LIBS)])

+fi
+
+if test $ac_have_pygobject = 1; then
   if test -x /usr/share/pygobject/2.0/codegen/h2def.py; then
     H2DEF=/usr/share/pygobject/2.0/codegen/h2def.py
     PYG_CODEGEN=pygobject-codegen-2.0

Revision history for this message
Alexander Sack (asac) wrote :

------------------------------------------------------------
revno: 274
fixes bug(s): https://launchpad.net/bugs/694823
committer: Alexander Sack <email address hidden>
branch nick: ntrack
timestamp: Sun 2011-03-27 00:58:16 +0100
message:
  build: fix build fail if gobject support is available, but pygobject isn't - lp:694823

  * honor ac_have_pygobject and don't set H2DEF and PYG_CODEGEN for those cases
------------------------------------------------------------

Changed in ntrack:
status: In Progress → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

012 is released, fixing this bug: https://launchpad.net/ntrack/main/012

Changed in ntrack:
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.