Opened 4 years ago

Last modified 3 years ago

#62428 closed defect

gobject-introspection @1.60.2_5 fails to configure (with fixes) — at Version 5

Reported by: dsteck Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gobject-introspection

Description (last modified by dsteck)

Configure failed in two ways. Tested on macports with everything uninstalled, Big Sur 11.2.3 (20D91), CLI tools 12.4.0.0.1.1610135815, as x86_64 (everything current as of now, 10 March 2021).

  1. configure complains that it can't find gtkdocize

(see gobject-introspection-fail1.log)

solution: add port gtk-doc as a dependency

  1. configure complains that it can't find Python.h; the issue is that CPP='', so the test is run without specifying a preprocessor

(see gobject-introspection-fail2.log)

solution: add two lines to portfile (not sure if this is the right fix, but it's how I was able to make it work):
configure.cpp 'gcc -E'
configure.post_args CPP=${configure.cpp}

Change History (7)

Changed 4 years ago by dsteck

config.log for first problem

Changed 4 years ago by dsteck

config.log for second problem

comment:1 Changed 4 years ago by dsteck

Description: modified (diff)

comment:2 Changed 4 years ago by kencu (Ken)

autoconf was updated a few days ago after about 8 years, and adds the gtkdocize problem.

We may see 1000 ports that need gtk-doc added as a build dep. Or perhaps we sort out how to add it to autoconf directly, but unfortunately at present there is a circular dependency issue (gtk-doc depends on glib2 which depends on autoconf which (maybe) depends on gtk-doc). There is another ticket tracking this issue.

For now you can activate the previous autoconf to get rid of this particular headache until more ports are fixed.

no idea about the cpp issue, but I would not be surprised if that also comes from the new autoconf.

We have only just begun to feel the pain coming from this autoconf upgrade I fear...

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Cc: devans@… removed
Owner: set to dbevans
Status: newassigned

No need to be dramatic, Ken. The change only affects ports that have a configure script that uses the GTK_DOC_CHECK macro, are running autoreconf, and specify the -i/--install option. There are only around 180 ports that could possibly be affected based on the latter two conditions. Of those, only the gnome-related ones are likely to actually be using GTK_DOC_CHECK.

If completely regenerating the build system is desired, adding the dependency is correct. If not, autoreconf -fvi isn't the command you're looking for, and either not using -i or only running a subset of the commands that autoreconf would run is the appropriate approach.

Last edited 4 years ago by jmroot (Joshua Root) (previous) (diff)

comment:4 Changed 4 years ago by dsteck

Thanks for the info Ken and Joshua, and sorry to hear that a lot of maintenance work may lie ahead. That explains why I didn't have any trouble building this port a few weeks ago (I assumed it was related to the Xcode update). I'll leave it to people wiser than me to decide how to best deal with the issues here...

comment:5 Changed 4 years ago by dsteck

Description: modified (diff)
Note: See TracTickets for help on using tickets.