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]



False piste, I believe this is a bug in pkg_tarup

after referring to http://lists.linux-ha.org/pipermail/linux-ha-dev/2008-August/015909.html

I notice this extract:
#! /usr/xpg4/bin/sh
#
# $Id: pkg_tarup,v 1.27 2012/02/22 07:39:05 wiz Exp $
#
# Tar up installed package
#
# Package names are assumed to not contain spaces.
#
# (c) Copyright 2000-2002 Hubert Feyrer <hubert%feyrer.de@localhost>
#
...
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.

I guess I could post a patch to gnats-bugs if a developer could confirm with preference of keeping '/usr/xpg4/bin/sh' in shebang.



Home | Main Index | Thread Index | Old Index