[MacPorts] #41824: gtk-doc: configure cannot detect Perl on Snow Leopard

MacPorts noreply at macports.org
Thu May 1 07:58:44 PDT 2014


#41824: gtk-doc: configure cannot detect Perl on Snow Leopard
-----------------------------+----------------------
  Reporter:  fatima.chami@…  |      Owner:  devans@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.2.1
Resolution:                  |   Keywords:
      Port:  gtk-doc         |
-----------------------------+----------------------

Comment (by egall@…):

 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: [[BR]] `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?

-- 
Ticket URL: <https://trac.macports.org/ticket/41824#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list