[MacPorts] #18287: lesstif: possibly undefined macro: LT_HAVE_FREETYPE

MacPorts noreply at macports.org
Sun Feb 1 12:53:06 PST 2009


#18287: lesstif: possibly undefined macro: LT_HAVE_FREETYPE
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  jeremyhu@…           
     Type:  defect                   |      Status:  assigned             
 Priority:  Normal                   |   Milestone:  Port Bugs            
Component:  ports                    |     Version:  1.7.0                
 Keywords:  libtool                  |        Port:  lesstif              
-------------------------------------+--------------------------------------

Comment(by ryandesign@…):

 Apparently single quotes are problematic in Tcl:

 {{{
 DEBUG: Executing org.macports.patch (lesstif)
 DEBUG: Executing proc-post-org.macports.patch-patch-0
 DEBUG: sed: 1: "'s:LT_HAVE_FREETYPE:FIN ...": invalid command code '
     while executing
 "exec /usr/bin/sed 's:LT_HAVE_FREETYPE:FINDXFT_HAVE_FREETYPE:g' <
 /mp/var/macports/build/_Users_rschmidt_macports_dports_x11_lesstif/work/lesstif-0.95...."
     ("eval" body line 1)
     invoked from within
 "eval exec $cmdline"
 Error: reinplace: sed: 1: "'s:LT_HAVE_FREETYPE:FIN ...": invalid command
 code '
 Error: Target org.macports.patch returned: reinplace sed(1) failed
 Warning: the following items did not execute (for lesstif):
 org.macports.activate org.macports.patch org.macports.configure
 org.macports.build org.macports.destroot org.macports.install
 Error: Status 1 encountered during processing.
 }}}

 Double quotes work fine though: I can install lesstif with either libtool
 1.5.26 or 2.2.6a. Thanks.

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 46107)
 +++ Portfile    (working copy)
 @@ -37,6 +37,8 @@

  post-patch {
         system "touch
 ${worksrcpath}/test/{NEWS,README,AUTHORS,ChangeLog,COPYING}"
 +       reinplace "s:LT_HAVE_FREETYPE:FINDXFT_HAVE_FREETYPE:g"
 ${worksrcpath}/acinclude.m4
 +       reinplace "s:LT_HAVE_XRENDER:FINDXFT_HAVE_XRENDER:g"
 ${worksrcpath}/acinclude.m4
  }

  use_autoreconf yes
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/18287#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list