Opened 12 years ago

Closed 12 years ago

#34204 closed defect (invalid)

avahi upgrade fails

Reported by: mkae (Marko Käning) Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: avahi

Description

I just tried to upgrade avahi, but it fails:

--->  Configuring avahi
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for avahi is at: /opt/macports-test/var/macports/logs/_opt_macports-test_var_macports_sources_rsync.macports.org_release_ports_net_avahi/avahi/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

Peeking into the log reveals:

:info:configure checking for /opt/macports-test/bin/python2.7 extension module directory... /opt/macports-test/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
:info:configure checking for python module gtk... no
:info:configure configure: error: Could not find Python module gtk
:info:configure shell command " cd "/opt/macports-test/var/macports/build/_opt_macports-test_var_macports_sources_rsync.macports.org_release_ports_net_avahi/avahi/work/avahi-0.6.31" && ./configure --prefix=/opt/macports-test --disable-autoipd --disable-qt3 --disable-qt4 --disable-mono --disable-monodoc --with-distro=darwin --enable-compat-libdns_sd --disable-gtk3 --disable-xmltoman --enable-introspection=no --disable-tests " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for avahi): org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Log for avahi is at: /opt/macports-test/var/macports/logs/_opt_macports-test_var_macports_sources_rsync.macports.org_release_ports_net_avahi/avahi/main.log

that python's gtk module cannot be found.

Installed is, however, py27-gtk:

$ port installed py*gtk
The following ports are currently installed:
  py27-gtk @2.22.0_1 (active)

which obviously doesn't get found.

Change History (7)

comment:1 Changed 12 years ago by mkae (Marko Käning)

There was a time that I installed avahi w/o gtk like this

sudo port install avahi@no_gtk

but the current port doesn't seem to do anything about it, since the above error message concerning Python being not able to find gtk appears in both cases...

comment:2 Changed 12 years ago by pixilla (Bradley Giesbrecht)

The no_gtk variant was converted to the modern style gtk variant and made it a default, so the equivalent of "+no_gtk" would be "-gtk".

I guess I could have provided a stub variant for a while.

comment:3 Changed 12 years ago by mkae (Marko Käning)

Yep, I eventually had a look into the portfile. :-)

But I couldn't run

sudo port install avahi@-gtk

for some reason.

gtk is the DEFAULT VARIANT... Wondering whether it is actually possible to disable it by the above line.

comment:4 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Drop the @ which is used for specifying a specific version of an installed port.

port info avahi -gtk

comment:5 Changed 12 years ago by mkae (Marko Käning)

Ooohhhh, my goodness... What a mistake. Thanks, Brad!!! :-)

That ran through no problem.

Looks like one needs to take care with no_gtk variants. Looks like one needs to eradicate all these in order to let -gtk work fine, right? Apart from that I guess this ticket could be seen as closed.

comment:6 in reply to:  5 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Replying to mk@…:

Looks like one needs to take care with no_gtk variants. Looks like one needs to eradicate all these in order to let -gtk work fine, right?

If you have no_gtk in variants.conf you can probably just add "-gtk" as well.

I made the change because MacPorts has a preference to move away from "no_variant" style and instead setting "default_variants +variant".

comment:7 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.