Subject: pkg/26799: net/torrentutils is broken
To: None <gnats-bugs@gnats.NetBSD.org>
From: Simon Hitzemann <simon@hitzemann.org>
List: pkgsrc-bugs
Date: 08/29/2004 18:23:55
>Number:         26799
>Category:       pkg
>Synopsis:       net/torrentutils is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 29 16:54:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Simon Hitzemann
>Release:        NetBSD 2.0G
>Organization:
	
>Environment:
	
	
System: NetBSD minas-morgul.hitzemann.org 2.0G NetBSD 2.0G (MINAS-MORGUL) #3: Wed Aug 4 16:45:41 CEST 2004 root@minas-morgul.hitzemann.org:/usr/src/sys/arch/i386/compile/MINAS-MORGUL i386
Architecture: i386
Machine: i386
>Description:
	
	The package net/torrentutils uses bash a lot and thus breaks the installation
	as well as the resulting scripts on a standard NetBSD system.
>How-To-Repeat:
	
	during make install

	===> build-message [torrentutils-0.3.0nb1] ===> Building for torrentutils-0.3.0nb1
	cat torrenttool.in bcode.pl | sed "s,@VERSION@,0.3.0,; \
			s,@PACKAGE@,torrentutils,; \
			s,@AUTHORS@,Oskar Liljeblad," > torrenttool
	if [[ "torrenttool" != *.spec ]]; then chmod a+x torrenttool; fi
 	[[: not found
	cat torrentmcfs.in bcode.pl | sed "s,@VERSION@,0.3.0,; \
			s,@PACKAGE@,torrentutils,; \
			s,@AUTHORS@,Oskar Liljeblad," > torrentmcfs
	if [[ "torrentmcfs" != *.spec ]]; then chmod a+x torrentmcfs; fi
	[[: not found
	cat defrag.in | sed "s,@VERSION@,0.3.0,; \
			s,@PACKAGE@,torrentutils,; \
			s,@AUTHORS@,Oskar Liljeblad," > defrag
	if [[ "defrag" != *.spec ]]; then chmod a+x defrag; fi
	[[: not found
	cat torrentutils.spec.in | sed "s,@VERSION@,0.3.0,; \
			s,@PACKAGE@,torrentutils,; \
			s,@AUTHORS@,Oskar Liljeblad," > torrentutils.spec
	if [[ "torrentutils.spec" != *.spec ]]; then chmod a+x torrentutils.spec; fi
	[[: not found
	=> Fixing buildlink references in files-to-be-installed.

	while executing an installed program (defrag in this example):
	/usr/pkg/bin/defrag: 36: Syntax error: Bad for loop variable

>Fix:
	
	The errors during execution of the packages can be fixed by setting the hashbang
	to /usr/pkg/bin/bash
>Release-Note:
>Audit-Trail:
>Unformatted: