On Jul 10, 2014, at 11:11 PM, Bill Christensen <[email protected]> 
wrote:

> 
> 
> On Thu, Jul 10, 2014 at 6:55 PM, Ryan Schmidt <[email protected]> wrote:
> 
> On Jul 10, 2014, at 2:20 PM, Bill Christensen <[email protected]> 
> wrote:
> 
> > I changed the setting in MacPorts' file from --with-mail-gid=_mailman to 
> > --with-mail-gid=staff and attempted to reinstall, but I'm getting an error 
> > that it's "Unable to open port - invalid command name 
> > '--with-mail-gid=staff'".
> 
> You have a syntax error in your portfile. Perhaps you forgot to add the 
> backslash at the end of the preceding line. If you show us the modifications 
> you made, we made be able to be more precise.
> 
> 
> Ok, got it.  I had put a comment line directly above --with-mail-gid=staff to 
> remind myself what I had done.  I had to pull that out of the 
> "configure.args" block.  It also appears to work better if I abstract it a 
> bit by using;
> 
>        set mmgroup2            staff 
> 
> then after the note to myself so I can revert if needed, change the 
> --with-mail-gid as below
> 
> 
>        #BC MOD was --with-mail-gid=${mmgroup} \
> 
>       configure.args         
> 
>                         --with-mail-gid=${mmgroup2} \

You can't do it that way because in the Tcl language, comments are extended to 
the next line by backslashes.

You probably want to just put, in a section by itself:


       #BC MOD was --with-mail-gid=${mmgroup}
       set mmgroup2            staff 
       configure.args-append --with-mail-gid=${mmgroup2}


_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to