pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_rolling-replace -u ... gives message opt/pkg/bin/pkg_tarup[159]: local: not found [No such file or directory]



* On 2013-01-08 at 10:44 GMT, Richard PALO wrote:

> >add_to_list()
> >{
> >        local added
> >
> >        added=0
> >
> 
> this is the "local" object of the error message.
> 
> It seems "local" should be "typeset" if posix compatible
> /usr/xpg4/bin/sh is specified... else bash to keep it.
> 
> To test, I pkgvi'd /opt/pkg/bin/pkg_tarup and changed 'local' to
> 'typeset' and indeed no more error.

Unfortunately that's equally non-portable, the NetBSD /bin/sh for
example does not support 'typeset'.

Instead I just removed it completely, it's unnecessary anyway, try
again with pkg_tarup-1.9.1.

Regards,

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index