[MacPorts] #26034: qt4-mac fails on Tiger: find: 1: unknown expression primary

MacPorts noreply at macports.org
Tue Aug 10 16:55:09 PDT 2010


#26034: qt4-mac fails on Tiger: find: 1: unknown expression primary
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  michaelld@…           
     Type:  defect                   |      Status:  new                   
 Priority:  Normal                   |   Milestone:                        
Component:  ports                    |     Version:  1.9.1                 
 Keywords:                           |        Port:  qt4-mac               
-------------------------------------+--------------------------------------
 Couldn't upgrade qt4-mac on my Tiger i386 machine; it said:

 {{{
 [snip]
 :info:destroot xinstall:
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work
 /qt-everywhere-opensource-src-4.6.3/INSTALL ->
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/share/doc/qt4-mac/INSTALL
 :info:destroot xinstall:
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work
 /qt-everywhere-opensource-src-4.6.3/LGPL_EXCEPTION.txt ->
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/share/doc/qt4-mac/LGPL_EXCEPTION.txt
 :info:destroot xinstall:
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work
 /qt-everywhere-opensource-src-4.6.3/LICENSE.GPL3 ->
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/share/doc/qt4-mac/LICENSE.GPL3
 :info:destroot xinstall:
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work
 /qt-everywhere-opensource-src-4.6.3/LICENSE.LGPL ->
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/share/doc/qt4-mac/LICENSE.LGPL
 :info:destroot xinstall:
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work
 /qt-everywhere-opensource-src-4.6.3/README ->
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_qt4-mac/work/destroot/opt/local/libexec/qt4-mac/share/doc/qt4-mac/README
 :error:destroot Target org.macports.destroot returned: find: 1: unknown
 expression primary
 }}}

 The problem is this part of the portfile:

 {{{
         foreach tfm [exec find ${destroot}${qt_dir}/lib -name
 "*.framework" \
                          -type d -depth 1 | sed -e "s@\.framework@@g" \
                          -e "s@${destroot}${qt_dir}/lib/@@g"] {
 }}}

 According to "`man find`" on Tiger, the "`-depth`" option does not take an
 argument.

 {{{
      -d      The -d option causes find to perform a depth-first traversal,
              i.e., directories are visited in post-order and all entries
 in a
              directory will be acted on before the directory itself.  By
              default, find visits directories in pre-order, i.e., before
 their
              contents.  Note, the default is not a breadth-first
 traversal.
 [snip]
      -depth  Always true; same as the -d option.  -depth can be useful
 when
              find is used with cpio(1) to process files that are contained
 in
              directories with unusual permissions.  It enures that you
 have
              write permission while you are placing files in a directory,
 then
              sets the directory's permissions as the last thing.
 }}}

 Perhaps you can replace "`exec find`" with "`fs-traverse`" or, since via
 the "`-depth 1`" option, you seem to be wanting only immediate children of
 the directory, likely "`glob`" is what you should be using.

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


More information about the macports-tickets mailing list