Your MacPorts ports need some love: the "cd" command is going away

markd at macports.org markd at macports.org
Mon Nov 12 15:22:13 PST 2007


Ryan Schmidt <ryandesign at macports.org> writes:
>It should work as given, except for replacing "EMAIL" with your  
>maintainer name.
>
>Here's the output I get for you:
>
>port file maintainer:markd \
>| xargs grep "[[:space:]]cd[[:space:]]" \
>| grep -v "system[[:space:]]" \
>| sed s%^/Users/rschmidt/macports/dports/%%
>
>net/argus-monitor/Portfile:     cd ${prefix}/etc/postfix
>devel/expect/Portfile:post-destroot             { cd ${destroot}$ 
>{prefix}/lib
>net/monarch/Portfile:   cd ${monarchdir}
>net/monarch/Portfile:        cd ${monarchdir}
>net/nagios/Portfile:   cd ${prefix}/etc/nagios
>net/nedi/Portfile:      cd ${prefix}/apache2/conf
>net/nedi/Portfile:      cd ${prefix}/share/${name}
>net/nedi/Portfile:      cd ${nedidir}${name}
>net/nedi/Portfile:0 * * * * cd ${nedidir}${name} ; ./nedi.pl -c >> / 
>dev/null 2>&1
>net/netmrg/Portfile:    cd ${prefix}/share/netmrg/db
>net/nrg/Portfile:      cd ${prefix}/var/${name}
>www/php5-rrdtool/Portfile:      cd ${worksrcpath}
>net/rancid/Portfile:    cd <Apache-directory>/lg
>net/smokeping/Portfile: cd ${smokedata}/log
>net/smokeping/Portfile:        cd ${smokeetc}
>mail/sympa/Portfile:    cd ${prefix}/apache2/conf
>mail/vm-pop3d/Portfile: cd ${prefix}/etc/postfix
>mail/vm-pop3d/Portfile: cd ${prefix}/etc/${name}
>mail/vm-pop3d/Portfile: cd my-vdomain1.com
>net/zabbix/Portfile:    cd ${prefix}/share/zabbix/schema
>net/zabbix/Portfile:    cd ${prefix}/share/zabbix/data
>
>
>On Nov 12, 2007, at 12:41, markd at macports.org wrote:
>
>> I just realized that a number of my ports use "cd ${somedir}" in the
>> ui_msgs to instruct users.  I hope none of my ports use the "cd" Tcl
>> primitive, but I'm still having trouble getting this command right  
>> to know
>> for sure.
>
>Good point! You're right, my search will erroneously flag occurrences  
>of "cd" within ui_msgs. Not sure how to filter those out automatically.

Not sure what I'm doinbg wrong, but anyway only the expect port has an
offending tcl "cd" in it.  I'll fix that shortly.  The others are all
within a ui_msg.

Mark



More information about the macports-dev mailing list