Subject: pkg/33088: rsync install fails with /bin/sh error
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stuart@zeus.com>
List: pkgsrc-bugs
Date: 03/15/2006 16:45:01
>Number: 33088
>Category: pkg
>Synopsis: rsync install fails with /bin/sh error
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 15 16:45:00 +0000 2006
>Originator: Stuart Shelton
>Release:
>Organization:
>Environment:
>Description:
I don't have rsync installed - running "bmake install", "bmake reinstall", or "bmake update" in net/rsync results in:
# bmake install
===> do-fetch [rsync-2.6.7] ===> Checking for vulnerabilities in rsync-2.6.7
===> do-su-install [rsync-2.6.7] ===> Installing for rsync-2.6.7
/bin/sh: syntax error at line 1 : `do' unexpected
*** Error code 2
Stop.
bmake: stopped in /usr/bsd/src/net/rsync
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/net/rsync
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/net/rsync
*** Error code 1
Stop.
bmake: stopped in /usr/bsd/src/net/rsync
... so far as I can tell, this appears to be an error in $PKGSRCDIR/mk/bsd.pkg.mk concerning do-su-install or real-su-install - but I've not managed to track it down yet.
I've tried replacing /bin/sh with pkgsrc's bash and the OS GNU bash - and the same problem is encountered in all cases. However, with bash I notice that the error is:
/bin/sh: -c: line 1: syntax error near unexpected token `do'
... but I can't see any instances of "-c" near a "do"
>How-To-Repeat:
>Fix: