Subject: pkg/23685: mk/buildlink2/fake-la script 'bug.'
To: None <gnats-bugs@gnats.netbsd.org>
From: Adam C. Migus <amigus@ganyopa.migus.org>
List: netbsd-bugs
Date: 12/08/2003 02:10:50
>Number: 23685
>Category: pkg
>Synopsis: mk/buildlink2/fake-la script hard-codes /bin/sh interpreter.
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 07 07:13:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6ZF
>Organization:
>Environment:
System: NetBSD ganyopa.migus.org 1.6ZF NetBSD 1.6ZF (MIGUS.ORG.MP) #0: Wed Dec 3 03:11:39 EST 2003 amigus@ganyopa.migus.org:/obj/amd/srcfs/a/src/netbsd/CURRENT/src/sys/arch/i386/compile/MIGUS.ORG.MP i386
Architecture: i386
Machine: i386
>Description:
The fake-la script used by buildlink uses !#/bin/sh rather than
#!@BUILDLINK_SHELL@. This causes the script to fail on Solaris
as it's /bin/sh doesn't understand $(()). This bug occured for
me when installing mysql-server.
>How-To-Repeat:
cd pkgsrc/databases/mysql-server; make install # on a Solaris box.
>Fix:
Apply the following patch:
--- pkgsrc/mk/buildlink2/fake-la.orig 2003-12-07 01:47:09.000000000 -0500
+++ pkgsrc/mk/buildlink2/fake-la 2003-12-07 02:02:35.000000000 -0500
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@BUILDLINK_SHELL@
#
# $NetBSD: fake-la,v 1.6 2003/09/15 21:52:51 skrll Exp $
>Release-Note:
>Audit-Trail:
>Unformatted: