Subject: pkg/31115: firefox-bin package fails if MOZILLA_USE_LINUX set
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 09/01/2005 03:53:00
>Number:         31115
>Category:       pkg
>Synopsis:       firefox-bin package fails if MOZILLA_USE_LINUX set
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 01 03:53:00 +0000 2005
>Release:        NetBSD 2.0, pkgsrc as of 10 minutes ago
	Little or none.
System: NetBSD rekusant 2.0 NetBSD 2.0 (REKUSANT) #5: Wed Feb 16 21:11:54 UTC 2005 root@ADMIN:/usr/src/sys/arch/i386/compile/REKUSANT i386
Architecture: i386
Machine: i386
	firefox silently exits
	Set MOZILLA_USE_LINUX.  Build firefox-bin and install.  Run
	"firefox-linux" and watch it silently exit.  If you ktrace
	"" you'll quickly see why: it tries to find
	the md5sum executable, but because the shell script is run
	with the *NetBSD* /bin/sh, it doesn't pick up /emul/linux/usr/bin
	in the path.

	The cleanest fix is probably to replace #!/bin/sh with
	#!/emul/linux/bin/sh in all the shell scripts when installing.
	In fact, this might save patching many shell scripts in many
	packages for differences between native sh and bash.