Opened 11 years ago

Closed 10 years ago

#41824 closed defect (worksforme)

gtk-doc: configure cannot detect Perl on Snow Leopard

Reported by: fatima.chami@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: gtk-doc

Description (last modified by larryv (Lawrence Velázquez))

sudo port install rednotebook
--->  Computing dependencies for rednotebook
--->  Dependencies to be installed: py27-webkitgtk webkit-gtk-2.0 geoclue libsoup glib-networking libproxy gconf gtk-doc gtk3 at-spi2-atk at-spi2-core xorg-libXevie xorg-evieproto xorg-libXtst xorg-recordproto dbus-python27 intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils orbit2 libidl policykit gstreamer1-gst-plugins-base gstreamer1 libogg libtheora libvorbis orc xorg-libXv xorg-videoproto harfbuzz-icu libsecret libgcrypt libgpg-error vala mesa xorg-dri2proto xorg-glproto webp py27-yaml libyaml
--->  Configuring gtk-doc
Error: Failed to configure gtk-doc, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/gtk-doc/work/gtk-doc-1.18/config.log
Error: org.macports.configure for port gtk-doc returned: configure failure: command execution failed
Error: Failed to install gtk-doc
Please see the log file for port gtk-doc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/gtk-doc/main.log
Error: The following dependencies were not installed: py27-webkitgtk webkit-gtk-2.0 geoclue libsoup glib-networking libproxy gconf gtk-doc gtk3 at-spi2-atk at-spi2-core xorg-libXevie xorg-evieproto xorg-libXtst xorg-recordproto dbus-python27 intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils orbit2 libidl policykit gstreamer1-gst-plugins-base gstreamer1 libogg libtheora libvorbis orc xorg-libXv xorg-videoproto harfbuzz-icu libsecret libgcrypt libgpg-error vala mesa xorg-dri2proto xorg-glproto webp py27-yaml libyaml
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port rednotebook failed

Attachments (2)

main.log (125.2 KB) - added by fatima.chami@… 11 years ago.
main.log
config.log (23.8 KB) - added by fatima.chami@… 11 years ago.
gtk-doc config.log

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by fatima.chami@…

Attachment: main.log added

main.log

Changed 11 years ago by fatima.chami@…

Attachment: config.log added

gtk-doc config.log

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…
Port: gtk-doc added; rednotebook removed
Priority: HighNormal
Summary: unable to install rednotebook on MAC os 10.6.8 snow leopardgtk-doc: configure cannot detect Perl on Snow Leopard

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

These are the relevant lines in the configure.ac file:

AC_MSG_CHECKING([if Perl version >= 5.6.0])
if "$PERL" -e "require v5.6.0"; then
	AC_MSG_RESULT([yes])
else
	AC_MSG_RESULT([no])
	AC_MSG_ERROR([perl >= 5.6.0 is required for gtk-doc])
fi

Simplifying it into a one-liner that can be executed manually on the command-line, it becomes:
if /opt/local/bin/perl -e "require v5.6.0"; then echo "yes"; else echo "no"; fi, which returns "yes" for me:

$ if /opt/local/bin/perl -e "require v5.6.0"; then echo "yes"; else echo "no"; fi
yes

what does /opt/local/bin/perl --version return for you? For me, it is:

$ /opt/local/bin/perl --version

This is perl 5, version 12, subversion 5 (v5.12.5) built for darwin-thread-multi-2level

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Perhaps the gtk-doc Portfile could set configure.perl to a specific version that is known to work instead of just trusting that whatever ${prefix}/bin/perl is a symlink to will work?

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 in reply to:  2 Changed 10 years ago by dbevans (David B. Evans)

Replying to egall@…:

Perhaps the gtk-doc Portfile could set configure.perl to a specific version that is known to work instead of just trusting that whatever ${prefix}/bin/perl is a symlink to will work?

This may not fix the reporters problem as ALL versions of perl provided by MacPorts are greater than v5.6. Possibly something not so obvious going on here.

comment:5 Changed 10 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: newclosed

Nevertheless, in accordance with current MacPorts perl usage policy, gtk-doc perl dependency and configuration set to current MacPorts default perl5.16 in r123187. Builds without fault on all buildbots including SL (as did the previous version).

Note: See TracTickets for help on using tickets.